-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1687132
commit d03afaa
Showing
5 changed files
with
635 additions
and
212 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,18 +1,68 @@ | ||
source ENV['GEM_SOURCE'] || 'https://rubygems.org' | ||
|
||
group :test do | ||
gem 'rake', '~> 10.4' | ||
gem 'puppet', ENV['PUPPET_VERSION'] || '~> 3.8' | ||
gem 'rspec', '< 3.2.0' # https://github.com/rspec/rspec-core/issues/1864 | ||
gem 'rspec-puppet', '~> 2.2' | ||
gem 'puppetlabs_spec_helper', '~> 0.10' | ||
gem 'json_pure', '~> 1.8.3' # avoid version incompatible with Puppet 3.8 | ||
gem 'json', '~> 1.8.3' # avoid trying to pull a newer version with Ruby 1.8.7 | ||
gem 'metadata-json-lint', '~> 0.0' | ||
gem 'rspec-puppet-facts', '~> 1.3' | ||
# group :test do | ||
# gem 'rake', '~> 10.4' | ||
# gem 'puppet', ENV['PUPPET_VERSION'] || '~> 3.8' | ||
# gem 'rspec', '< 3.2.0' # https://github.com/rspec/rspec-core/issues/1864 | ||
# gem 'rspec-puppet', '~> 2.2' | ||
# gem 'puppetlabs_spec_helper', '~> 0.10' | ||
# gem 'json_pure', '~> 1.8.3' # avoid version incompatible with Puppet 3.8 | ||
# gem 'json', '~> 1.8.3' # avoid trying to pull a newer version with Ruby 1.8.7 | ||
# gem 'metadata-json-lint', '~> 0.0' | ||
# gem 'rspec-puppet-facts', '~> 1.3' | ||
# end | ||
|
||
# group :system_tests do | ||
# gem 'beaker', '~> 2.16' | ||
# gem 'beaker-rspec', '~> 5.1' | ||
# end | ||
|
||
|
||
#This file is generated by ModuleSync, do not edit. | ||
|
||
source ENV['GEM_SOURCE'] || "https://rubygems.org" | ||
|
||
def location_from_env(env, default_location = []) | ||
if location = ENV[env] | ||
if location =~ /^((?:git|https?)[:@][^#]*)#(.*)/ | ||
[{ :git => $1, :branch => $2, :require => false }] | ||
elsif location =~ /^file:\/\/(.*)/ | ||
['>= 0', { :path => File.expand_path($1), :require => false }] | ||
else | ||
[location, { :require => false }] | ||
end | ||
else | ||
default_location | ||
end | ||
end | ||
|
||
group :development, :unit_tests do | ||
gem 'metadata-json-lint' | ||
gem 'puppet_facts' | ||
gem 'puppet-blacksmith', '>= 3.4.0' | ||
gem 'puppetlabs_spec_helper', '>= 1.2.1' | ||
gem 'rspec-puppet', '>= 2.3.2' | ||
gem 'rspec-puppet-facts' | ||
gem 'simplecov' | ||
gem 'parallel_tests' | ||
gem 'rubocop', '0.41.2' if RUBY_VERSION < '2.0.0' | ||
gem 'rubocop' if RUBY_VERSION >= '2.0.0' | ||
gem 'rubocop-rspec', '~> 1.6' if RUBY_VERSION >= '2.3.0' | ||
gem 'json_pure', '<= 2.0.1' if RUBY_VERSION < '2.0.0' | ||
end | ||
group :system_tests do | ||
gem 'beaker', '~> 2.16' | ||
gem 'beaker-rspec', '~> 5.1' | ||
gem 'beaker', *location_from_env('BEAKER_VERSION', []) if RUBY_VERSION >= '2.3.0' | ||
gem 'beaker', *location_from_env('BEAKER_VERSION', ['< 3']) if RUBY_VERSION < '2.3.0' | ||
gem 'beaker-rspec', *location_from_env('BEAKER_RSPEC_VERSION', ['>= 3.4']) | ||
gem 'serverspec' | ||
gem 'beaker-puppet_install_helper' | ||
gem 'master_manipulator' | ||
gem 'beaker-hostgenerator', *location_from_env('BEAKER_HOSTGENERATOR_VERSION', []) | ||
end | ||
|
||
gem 'facter', *location_from_env('FACTER_GEM_VERSION') | ||
gem 'puppet', *location_from_env('PUPPET_VERSION') | ||
|
||
if File.exists? "#{__FILE__}.local" | ||
eval(File.read("#{__FILE__}.local"), binding) | ||
end |
Oops, something went wrong.