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:
parent
c67e672743
commit
d7ef8f8f3b
1 changed files with 3 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue