Skip to content

Commit

Permalink
Change gemspec to not rely on the presence of git and the git reposit…
Browse files Browse the repository at this point in the history
…ory, making it compatible with specifying the git repository in a Gemfile, bundle package --all and subsequent deployment.
  • Loading branch information
courtland committed Jan 28, 2013
1 parent 6de06ca commit db02a5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion savon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ Gem::Specification.new do |s|
s.add_development_dependency "mocha", "~> 0.11"
s.add_development_dependency "json", "~> 1.7"

s.files = `git ls-files`.split("\n")

ignores = File.readlines('.gitignore').grep(/\S+/).map {|s| s.chomp }
dotfiles = [ '.gitignore', '.rspec', '.travis.yml', '.yardopts' ]
s.files = (Dir["**/*"].reject { |f| File.directory?(f) || ignores.any? { |i| File.fnmatch(i, f) } } + dotfiles).sort

s.require_path = "lib"
end

0 comments on commit db02a5a

Please sign in to comment.