Skip to content

Commit

Permalink
don't require git on the system for the gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jul 27, 2010
1 parent 93e7b44 commit fccbb0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion will_paginate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ Gem::Specification.new do |s|
s.rdoc_options = ['--main', 'README.rdoc', '--charset=UTF-8']
s.extra_rdoc_files = ['README.rdoc', 'LICENSE', 'CHANGELOG.rdoc']

s.files = Dir['Rakefile', '{bin,lib,test,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files`.split("\n")
s.files = Dir['Rakefile', '{bin,lib,test,spec}/**/*', 'README*', 'LICENSE*']
s.files &= `git ls-files -z`.split("\0") if `type -t git 2>/dev/null || which git 2>/dev/null` && $?.success?
end

0 comments on commit fccbb0b

Please sign in to comment.