1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Modernize Gem::Specification#files and remove test from it

This commit is contained in:
Takashi Kokubun 2017-05-02 01:33:43 -07:00
parent c67e672743
commit d7ef8f8f3b

View file

@ -10,8 +10,9 @@ Gem::Specification.new do |spec|
readmes = Dir['*'].reject{ |x| x =~ /(^|[^.a-z])[a-z]+/ || x == "TODO" } readmes = Dir['*'].reject{ |x| x =~ /(^|[^.a-z])[a-z]+/ || x == "TODO" }
spec.executables = ['haml'] spec.executables = ['haml']
spec.files = Dir['lib/**/*', 'bin/*', 'test/**/*', spec.files = `git ls-files -z`.split("\x0").reject do |f|
'Rakefile', '.yardopts'] + readmes f.match(%r{\Atest/})
end
spec.homepage = 'http://haml.info/' spec.homepage = 'http://haml.info/'
spec.has_rdoc = false spec.has_rdoc = false
spec.test_files = Dir["test/**/*_test.rb"] spec.test_files = Dir["test/**/*_test.rb"]