3abe8bf456027f77b3d24b0891c4f65f8ee86226
[puppet-modules/puppetlabs-apt.git] / Gemfile
1 #This file is generated by ModuleSync, do not edit.
2
3 source ENV['GEM_SOURCE'] || "https://rubygems.org"
4
5 def location_from_env(env, default_location = [])
6   if location = ENV[env]
7     if location =~ /^((?:git|https?)[:@][^#]*)#(.*)/
8       [{ :git => $1, :branch => $2, :require => false }]
9     elsif location =~ /^file:\/\/(.*)/
10       ['>= 0', { :path => File.expand_path($1), :require => false }]
11     else
12       [location, { :require => false }]
13     end
14   else
15     default_location
16   end
17 end
18
19 group :development, :unit_tests do
20   gem 'metadata-json-lint'
21   gem 'puppet_facts'
22   gem 'puppet-blacksmith', '>= 3.4.0'
23   gem 'puppetlabs_spec_helper', '>= 1.2.1'
24   gem 'rspec-puppet', '>= 2.3.2'
25   gem 'rspec-puppet-facts'
26   gem 'mocha', '< 1.2.0'
27   gem 'simplecov'
28   gem 'parallel_tests', '< 2.10.0' if RUBY_VERSION < '2.0.0'
29   gem 'parallel_tests' if RUBY_VERSION >= '2.0.0'
30   gem 'rubocop', '0.41.2' if RUBY_VERSION < '2.0.0'
31   gem 'rubocop' if RUBY_VERSION >= '2.0.0'
32   gem 'rubocop-rspec', '~> 1.6' if RUBY_VERSION >= '2.3.0'
33   gem 'json_pure', '<= 2.0.1' if RUBY_VERSION < '2.0.0'
34 end
35 group :system_tests do
36   gem 'beaker', *location_from_env('BEAKER_VERSION', []) if RUBY_VERSION >= '2.3.0'
37   gem 'beaker', *location_from_env('BEAKER_VERSION', ['< 3']) if RUBY_VERSION < '2.3.0'
38   gem 'beaker-pe' if RUBY_VERSION >= '2.3.0'
39   gem 'beaker-rspec', *location_from_env('BEAKER_RSPEC_VERSION', ['>= 3.4'])
40   gem 'serverspec'
41   gem 'beaker-puppet_install_helper'
42   gem 'master_manipulator'
43   gem 'beaker-hostgenerator', *location_from_env('BEAKER_HOSTGENERATOR_VERSION', [])
44 end
45
46 gem 'facter', *location_from_env('FACTER_GEM_VERSION')
47 gem 'puppet', *location_from_env('PUPPET_GEM_VERSION')
48
49 if File.exists? "#{__FILE__}.local"
50   eval(File.read("#{__FILE__}.local"), binding)
51 end