Skip to content

Commit 8ab3fec

Browse files
authored
Merge pull request #14 from microcmsio/update-gemspec-files
Update gemspec to specify included files explicitly
2 parents 5b45327 + b5fdd8f commit 8ab3fec

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

microcms.gemspec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ Gem::Specification.new do |spec|
1818

1919
spec.metadata['rubygems_mfa_required'] = 'true'
2020

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)/}) }
21+
# `ruby -e "puts Gem::Specification.load('microcms.gemspec').files.sort"` で確認可能
22+
spec.files = Dir.chdir(__dir__) do
23+
`git ls-files -z lib LICENSE README.md microcms.gemspec`.split("\x0").reject(&:empty?)
2524
end
2625
spec.bindir = 'exe'
2726
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)