Skip to content

Commit abd62e7

Browse files
authored
Merge pull request #1856 from ruby/revise-gemspec
Revise .gemspec to remove `Gemfile` and `Gemfile.lock`
2 parents f8b9d46 + 9f88d73 commit abd62e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rbs.gemspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ Gem::Specification.new do |spec|
2929
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
3030
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
3131
`git ls-files -z`.split("\x0").reject do |f|
32-
f.match(%r{^(test|spec|features|bin|steep|benchmark)/}) || f.match(/Gemfile\.lock/)
32+
[
33+
%r{^(test|spec|features|bin|steep|benchmark)/},
34+
/Gemfile/
35+
].any? {|r| f.match(r) }
3336
end
3437
end
3538
spec.extensions = %w{ext/rbs_extension/extconf.rb}

0 commit comments

Comments
 (0)