Merge pull request #232 from apenney/add-back-location

Readd location_for
This commit is contained in:
Ashley Penney 2014-03-10 14:58:25 -07:00
commit e382c0db5c

10
Gemfile
View file

@ -1,5 +1,15 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
def location_for(place, fake_version = nil)
if place =~ /^(git[:@][^#]*)#(.*)/
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
[place, { :require => false }]
end
end
group :development, :test do
gem 'rake', :require => false
gem 'rspec-puppet', :require => false