Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
Use older rake on ruby 1.8.7, sync with Foreman's gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam committed Mar 11, 2016
1 parent dac0108 commit d0c6e7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
13 changes: 5 additions & 8 deletions config_defaults.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
Gemfile:
required:
- gem: rake
- gem: rspec-puppet
version: '~> 2.0'
version: '~> 2.3'
- gem: puppetlabs_spec_helper
version: '>= 0.8.0'
- gem: puppet-lint
Expand All @@ -17,6 +16,8 @@ Gemfile:
- gem: puppet-lint-leading_zero-check
- gem: puppet-lint-trailing_comma-check
- gem: puppet-lint-file_ensure-check
- gem: puppet-lint-param-docs
version: '>= 1.3.0'
- gem: simplecov
- gem: puppet-blacksmith
version: '>= 3.1.0'
Expand All @@ -37,16 +38,12 @@ Gemfile:
- 'ruby_18'
groups:
- 'development'
- gem: rspec-puppet-facts
- gem: metadata-json-lint
- gem: rspec
version: '< 3.2.0'
options:
platforms:
- 'ruby_18'
.puppet-lint.rc:
default_disabled_lint_checks:
- '80chars'
- 'class_inherits_from_params_class'
spec/spec_helper.rb:
requires: []
Rakefile:
param_docs_pattern: []
9 changes: 9 additions & 0 deletions moduleroot/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ source 'https://rubygems.org'

gem 'puppet', ENV.key?('PUPPET_VERSION') ? "~> #{ENV['PUPPET_VERSION']}" : '~> 3.5'

if RUBY_VERSION.start_with? '1.8'
gem 'rake', '< 11'
gem 'rspec', '>= 3', '< 3.2'
gem 'rspec-puppet-facts', '< 1.4.0'
else
gem 'rake'
gem 'rspec', '~> 3.0'
gem 'rspec-puppet-facts'
end
<% (@configs['required'] + (@configs['extra'] || [])).each do |gem| -%>
gem '<%= gem['gem'] %>'<%= ", '#{gem['version']}'" if gem['version'] %><%= ", #{gem['options'].inspect}" if gem['options'] %>
<% end -%>
Expand Down

0 comments on commit d0c6e7c

Please sign in to comment.