From 583ddcb6add9464da362018b94e9b2ddc0ff1a01 Mon Sep 17 00:00:00 2001 From: Hailee Kenney Date: Wed, 24 Sep 2014 14:06:18 -0700 Subject: [PATCH] (PDOC-6) Allow for different puppet gem versions In order to make the Gemfile compatible with the puppet strings Jenkins job (which tests against multiple versions of puppet), update the Gemfile to allow for for the Jenkins job to specify which version of puppet it is testing against. --- Gemfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 5fcd95e..96e5d5d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,10 +1,15 @@ source 'https://rubygems.org' gem 'yard' -gem 'puppet', '~> 3.6.2' gem 'rgen' gem 'redcarpet' +if puppetversion = ENV['PUPPET_VERSION'] + gem 'puppet', puppetversion +else + gem 'puppet', '~> 3.6.2' +end + group :test do gem 'rspec' gem 'mocha'