Skip to content

Commit dddd59c

Browse files
committed
Fix structure
1 parent 299727a commit dddd59c

File tree

14 files changed

+34
-34
lines changed

14 files changed

+34
-34
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*.o
1313
*.a
1414
mkmf.log
15+
vendor/
1516

1617
# rspec failure tracking
1718
.rspec_status

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# ZstdRuby
1+
# Zstd
22

33
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/zstd_ruby`. To experiment with that code, run `bin/console` for an interactive prompt.
44

5-
TODO: Delete this and the text above, and describe your gem
6-
75
## Installation
86

97
Add this line to your application's Gemfile:

Rakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ require "rake/extensiontask"
77

88
task :build => :compile
99

10-
Rake::ExtensionTask.new("zstd_ruby") do |ext|
11-
ext.lib_dir = "lib/zstd_ruby"
10+
Rake::ExtensionTask.new("zstdruby") do |ext|
11+
ext.lib_dir = "lib/zstd-ruby"
12+
ext.ext_dir = "ext/zstdruby"
1213
end
1314

1415
task :default => [:clobber, :compile, :spec]

ext/zstd_ruby/extconf.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

ext/zstd_ruby/zstd_ruby.c

Lines changed: 0 additions & 9 deletions
This file was deleted.

ext/zstdruby/extconf.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require "mkmf"
2+
3+
create_makefile("zstdruby")

ext/zstdruby/zstdruby.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "zstdruby.h"
2+
3+
VALUE rb_mZstd;
4+
5+
void
6+
Init_zstdruby(void)
7+
{
8+
rb_mZstd = rb_define_module("Zstd");
9+
}
File renamed without changes.

lib/zstd-ruby.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require "zstd-ruby/version"
2+
require "zstd-ruby/zstdruby"
3+
4+
module Zstd
5+
# Your code goes here...
6+
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module ZstdRuby
1+
module Zstd
22
VERSION = "0.1.0"
33
end

0 commit comments

Comments
 (0)