@@ -24,22 +24,15 @@ Gem::Specification.new do |spec|
24
24
"wiki_uri" => "https://github.com/Eppo-exp/ruby-sdk/wiki"
25
25
}
26
26
27
- # Specify which files should be added to the gem when it is released.
28
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
29
- gemspec = File . basename ( __FILE__ )
30
- spec . files = IO . popen ( %w[ git ls-files -z ] , chdir : __dir__ , err : IO ::NULL ) do |ls |
31
- ls . readlines ( "\x0 " , chomp : true ) . reject do |f |
32
- ( f == gemspec ) ||
33
- f . start_with? ( *%w[ bin/ test/ spec/ features/ .cargo/ .git/ .github/ appveyor Gemfile ] )
34
- end
35
- end
27
+ spec . files = Dir [ "{lib,ext}/**/*" , "LICENSE" , "README.md" , "Cargo.*" ]
28
+ spec . files . reject! { |f | File . directory? ( f ) }
29
+ spec . files . reject! { |f | f =~ /\. (dll|so|dylib|lib|bundle)\Z / }
36
30
spec . bindir = "exe"
37
31
spec . executables = spec . files . grep ( %r{\A exe/} ) { |f | File . basename ( f ) }
38
32
spec . require_paths = [ "lib" ]
39
- spec . extensions = [ "ext/eppo_client/Cargo.toml " ]
33
+ spec . extensions = [ "ext/eppo_client/extconf.rb " ]
40
34
41
- # Uncomment to register a new dependency of your gem
42
- # spec.add_dependency "example-gem", "~> 1.0"
35
+ spec . add_dependency "rb_sys" , "~> 0.9.102"
43
36
44
37
# For more information and examples about making a new gem, check out our
45
38
# guide at: https://bundler.io/guides/creating_gem.html
0 commit comments