Skip to content

Commit 84d7c8a

Browse files
committed
Fix gemspec files
1 parent 60ef8d3 commit 84d7c8a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

rapidjson.gemspec

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ Gem::Specification.new do |spec|
2121
# Specify which files should be added to the gem when it is released.
2222
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
2323
spec.files = Dir.chdir(File.expand_path(__dir__)) do
24-
`git ls-files -z`.split("\x0").reject do |f|
25-
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26-
end
24+
[
25+
Dir["ext/rapidjson/*.{hh,cc}"],
26+
Dir["ext/rapidjson/rapidjson/include/**/*.h"],
27+
Dir["lib/**/*.rb"],
28+
"CODE_OF_CONDUCT.md",
29+
"LICENSE.txt",
30+
"README.md",
31+
"Rakefile",
32+
].flatten
2733
end
2834
spec.bindir = "exe"
2935
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)