-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ghoneycutt/ruby231
Support Puppet v4 AIO with Ruby 2.3.1
- Loading branch information
Showing
8 changed files
with
91 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
fixtures: | ||
repositories: | ||
stdlib: | ||
repo: 'git://github.com/puppetlabs/puppetlabs-stdlib.git' | ||
repo: 'https://github.com/puppetlabs/puppetlabs-stdlib.git' | ||
ref: '4.9.0' | ||
symlinks: | ||
rngd: "#{source_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
source 'https://rubygems.org' | ||
source ENV['GEM_SOURCE'] || 'https://rubygems.org' | ||
|
||
if puppetversion = ENV['PUPPET_GEM_VERSION'] | ||
gem 'puppet', puppetversion, :require => false | ||
else | ||
gem 'puppet', :require => false | ||
end | ||
|
||
gem 'metadata-json-lint' | ||
gem 'puppetlabs_spec_helper', '>= 0.1.0' | ||
gem 'puppet-lint', '>= 1.0.0' | ||
gem 'puppetlabs_spec_helper', '>= 1.2.0' | ||
gem 'facter', '>= 1.7.0' | ||
gem 'rspec-puppet' | ||
gem 'puppet-lint', '~> 2.0' | ||
gem 'puppet-lint-absolute_classname-check' | ||
gem 'puppet-lint-alias-check' | ||
gem 'puppet-lint-empty_string-check' | ||
gem 'puppet-lint-file_ensure-check' | ||
gem 'puppet-lint-file_source_rights-check' | ||
gem 'puppet-lint-fileserver-check' | ||
gem 'puppet-lint-leading_zero-check' | ||
gem 'puppet-lint-spaceship_operator_without_tag-check' | ||
gem 'puppet-lint-trailing_comma-check' | ||
gem 'puppet-lint-undef_in_function-check' | ||
gem 'puppet-lint-unquoted_string-check' | ||
gem 'puppet-lint-variable_contains_upcase' | ||
|
||
# rspec must be v2 for ruby 1.8.7 | ||
if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9' | ||
gem 'rspec', '~> 2.0' | ||
end | ||
gem 'rspec', '~> 2.0' if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9' | ||
gem 'rake', '~> 10.0' if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9' | ||
gem 'json', '<= 1.8' if RUBY_VERSION < '2.0.0' | ||
gem 'json_pure', '<= 2.0.1' if RUBY_VERSION < '2.0.0' | ||
gem 'metadata-json-lint', '0.0.11' if RUBY_VERSION < '1.9' | ||
gem 'metadata-json-lint' if RUBY_VERSION >= '1.9' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
require 'puppetlabs_spec_helper/module_spec_helper' | ||
|
||
RSpec.configure do |config| | ||
config.hiera_config = 'spec/fixtures/hiera/hiera.yaml' | ||
config.before :each do | ||
# Ensure that we don't accidentally cache facts and environment between | ||
# test cases. This requires each example group to explicitly load the | ||
# facts being exercised with something like | ||
# Facter.collection.loader.load(:ipaddress) | ||
Facter.clear | ||
Facter.clear_messages | ||
end | ||
config.default_facts = { | ||
:environment => 'rp_env', | ||
} | ||
end |