summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorMartin Hellmich <mhellmic@gmail.com>2013-04-22 23:24:38 +0200
committerMartin Hellmich <mhellmic@gmail.com>2013-04-22 23:24:38 +0200
commit89bceb2821d82c64434e6529de48ec7d7389a13e (patch)
tree28378bbd407cae78abbff2a1fc86349db9d58c0b /Gemfile
parent0c622b2e30333f26103a4440a888d440cf455c9c (diff)
parentbebecd33783b483f6af059e311b9631d3a3336cc (diff)
downloadpuppet-stdlib-89bceb2821d82c64434e6529de48ec7d7389a13e.tar.gz
puppet-stdlib-89bceb2821d82c64434e6529de48ec7d7389a13e.tar.bz2
Merge branch 'master' of git://github.com/puppetlabs/puppetlabs-stdlib
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index 791e7a5..50df2ee 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,15 @@
-source :rubygems
+source "https://rubygems.org"
+
+def location_for(place, fake_version = nil)
+ mdata = /^(git:[^#]*)#(.*)/.match(place)
+ if mdata
+ [fake_version, { :git => mdata[1], :branch => mdata[2], :require => false }].compact
+ elsif place =~ /^file:\/\/(.*)/
+ ['>= 0', { :path => File.expand_path(mdata[1]), :require => false }]
+ else
+ [place, { :require => false }]
+ end
+end
group :development do
gem 'watchr'
@@ -6,6 +17,7 @@ end
group :development, :test do
gem 'rake'
+ gem 'puppetmodule-stdlib', ">= 1.0.0", :path => File.expand_path("..", __FILE__)
gem 'rspec', "~> 2.11.0", :require => false
gem 'mocha', "~> 0.10.5", :require => false
gem 'puppetlabs_spec_helper', :require => false
@@ -13,7 +25,7 @@ group :development, :test do
end
if puppetversion = ENV['PUPPET_GEM_VERSION']
- gem 'puppet', puppetversion, :require => false
+ gem 'puppet', *location_for(puppetversion)
else
gem 'puppet', :require => false
end