From 4cdd8a1456c0977bc9a55eeacce3890bfa317edf Mon Sep 17 00:00:00 2001 From: Raphaƫl Pinson Date: Mon, 20 Oct 2014 09:43:30 +0200 Subject: Sync module --- Gemfile | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'Gemfile') diff --git a/Gemfile b/Gemfile index a500d9e..cff878d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,13 +1,24 @@ -source :rubygems +source ENV['GEM_SOURCE'] || "https://rubygems.org" -if ENV.key?('PUPPET_VERSION') - puppetversion = "= #{ENV['PUPPET_VERSION']}" +group :development, :test do + gem 'rake', :require => false + gem 'rspec-puppet', :require => false + gem 'puppetlabs_spec_helper', :require => false + gem 'puppet-lint', :require => false + gem 'pry', :require => false + gem 'simplecov', :require => false +end + +if facterversion = ENV['FACTER_GEM_VERSION'] + gem 'facter', facterversion, :require => false +else + gem 'facter', :require => false +end + +if puppetversion = ENV['PUPPET_GEM_VERSION'] + gem 'puppet', puppetversion, :require => false else - puppetversion = ['>= 2.7'] + gem 'puppet', :require => false end -gem 'rake' -gem 'puppet-lint' -gem 'rspec-puppet' -gem 'puppet', puppetversion -gem 'puppetlabs_spec_helper', '>= 0.4.0' +# vim:ft=ruby -- cgit v1.2.3