Permalink
Browse files

add files starting with a capital letter to the gemspec glob

  • Loading branch information...
1 parent 9854592 commit 6fcf7110f203f46c0c156c6c5a0dd63113a623de Sven Fuchs committed Jan 5, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/gem_release/gemspec.rb
  2. +2 −2 test/gemspec_test.rb
@@ -19,7 +19,7 @@ def files
when 'git'
'`git ls-files app lib`.split("\n")'
else
- 'Dir.glob("lib/**/**")'
+ 'Dir.glob("{lib/**/*,[A-Z]*}")'
end
end
View
@@ -32,13 +32,13 @@ def teardown
assert_equal '[description]', gemspec.description
assert_match %r(require 'foo_bar/version'), source
- assert_match %r(files\s*=\s*Dir.glob\(\"lib\/\*\*\/\*\*\"\)), source
+ assert_match %r(files\s*=\s*Dir.glob\(), source
end
test 'scaffolds a gemspec with glob strategy' do
source = GemRelease::Gemspec.new(:strategy => 'glob').render
gemspec = eval(source)
- assert_match %r(files\s*=\s*Dir.glob\(\"lib\/\*\*\/\*\*\"\)), source
+ assert_match %r(files\s*=\s*Dir.glob\(), source
end
test 'scaffolds a gemspec with git strategy' do

0 comments on commit 6fcf711

Please sign in to comment.