Skip to content

Commit

Permalink
Fix Gemfile for travis
Browse files Browse the repository at this point in the history
inside .travis.yml we worked with PUPPET_VERSION like ~> 3.0.0 which
gives us the latest version inside the same major release. This did not
work together with the Gemfile that is created with puppet module
generate, because it expects fixed versions.

Modify the Gemfile to allow the old behaviour again.
  • Loading branch information
stschulte committed Jan 21, 2015
1 parent b81bd88 commit fbf7077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
facterversion = ENV.key?('FACTER_VERSION') ? "= #{ENV['FACTER_VERSION']}" : ['>= 1.6']
puppetversion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : ['>= 2.7']
facterversion = ENV.key?('FACTER_VERSION') ? ENV['FACTER_VERSION'] : ['>= 1.6']

gem 'puppet', puppetversion
gem 'puppetlabs_spec_helper', '>= 0.1.0'
Expand Down

0 comments on commit fbf7077

Please sign in to comment.