There was an error while loading. Please reload this page.
2 parents 5b45327 + b5fdd8f commit 8ab3fecCopy full SHA for 8ab3fec
1 file changed
microcms.gemspec
@@ -18,10 +18,9 @@ Gem::Specification.new do |spec|
18
19
spec.metadata['rubygems_mfa_required'] = 'true'
20
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+ # `ruby -e "puts Gem::Specification.load('microcms.gemspec').files.sort"` で確認可能
+ spec.files = Dir.chdir(__dir__) do
+ `git ls-files -z lib LICENSE README.md microcms.gemspec`.split("\x0").reject(&:empty?)
25
end
26
spec.bindir = 'exe'
27
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
0 commit comments