Skip to content

Commit 2fd0a6b

Browse files
G-Rathk0kubun
andauthored
fix: exclude some files from published gem (#108)
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
1 parent bf1ded9 commit 2fd0a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

erb.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
2020
spec.metadata['source_code_uri'] = spec.homepage
2121
spec.metadata['changelog_uri'] = "https://github.com/ruby/erb/blob/v#{spec.version}/NEWS.md"
2222

23-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23+
spec.files = Dir.chdir(__dir__) do
24+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|\.git|\.github)/}) }
2525
end
2626
spec.bindir = 'libexec'
2727
spec.executables = ['erb']

0 commit comments

Comments
 (0)