summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 3d6d5ea..876beab 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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