diff --git a/ruby-hdf5.gemspec b/ruby-hdf5.gemspec index 046cd2e..f31da31 100644 --- a/ruby-hdf5.gemspec +++ b/ruby-hdf5.gemspec @@ -13,18 +13,12 @@ Gem::Specification.new do |spec| spec.license = 'MIT' spec.required_ruby_version = '>= 3.2.0' - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(__dir__) do - `git ls-files -z`.split("\x0").reject do |f| - (File.expand_path(f) == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)}) - end - end + spec.files = Dir["*.{md,txt}", "{lib}/**/*", "vendor/*.{so,dylib,dll}"] + spec.require_path = "lib" spec.require_paths = ['lib'] spec.add_dependency 'ffi' spec.add_dependency 'pkg-config' - # For more information and examples about making a new gem, check out our - # guide at: https://bundler.io/guides/creating_gem.html + spec.metadata["msys2_mingw_dependencies"] = "hdf5" end