Skip to content

Commit 9d2c918

Browse files
committed
Fix Mjollnir gem build and install
1 parent 54d2718 commit 9d2c918

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mjollnir.gemspec

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ Gem::Specification.new do |spec|
2323
# Specify which files should be added to the gem when it is released.
2424
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
2525
gemspec = File.basename(__FILE__)
26-
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
26+
files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
2727
ls.readlines("\x0", chomp: true).reject do |f|
2828
(f == gemspec) ||
2929
f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
3030
end
3131
end
32+
files << 'ext/mjollnir/parse.c'
33+
files << 'ext/mjollnir/parse.h'
34+
spec.files = files
3235
spec.bindir = 'exe'
3336
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
3437
spec.require_paths = ['lib']

0 commit comments

Comments
 (0)