Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- relase 0.2.0 - more tests on .travis-ci - fix #reject to pass tests on ruby >= 2.2 - fix Gemfile to work in recent environments
- Loading branch information
Showing
9 changed files
with
163 additions
and
23 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
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,19 +1,42 @@ | ||
source 'https://rubygems.org' | ||
source ENV['GEM_SOURCE'] || 'https://rubygems.org' | ||
def location_for(place, fake_version = nil) | ||
if place =~ /^(git[:@][^#]*)#(.*)/ | ||
[fake_version, { :git => Regexp.last_match(1), | ||
:branch => Regexp.last_match(2), | ||
:require => false }].compact | ||
elsif place =~ %r{^file://(.*)} | ||
['>= 0', { :path => File.expand_path(Regexp.last_match(1)), | ||
:require => false }] | ||
else | ||
[place, { :require => false }] | ||
end | ||
end | ||
|
||
group :development, :test do | ||
# http://stackoverflow.com/questions/30928415/how-to-setup-puppet-rspec-correctly | ||
gem 'rspec', '~> 2.0' if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9' | ||
|
||
group :development, :test do | ||
gem 'puppetlabs_spec_helper', :require => false | ||
if RUBY_VERSION >= '1.9' | ||
gem 'rake' | ||
else | ||
gem 'rake', '< 10.0' | ||
gem 'highline', '< 1.7' | ||
end | ||
if RUBY_VERSION >= '1.9' | ||
gem 'coveralls', :require => false | ||
end | ||
gem 'tins', '< 1.7.0' if RUBY_VERSION >= '1.9' && RUBY_VERSION < '2.0' | ||
gem 'json', '< 2.0.0' if RUBY_VERSION < '2.0' | ||
gem 'json_pure', '< 2.0.0' if RUBY_VERSION < '2.0' | ||
gem 'term-ansicolor', '<= 1.3.2' if RUBY_VERSION >= '1.9' && RUBY_VERSION < '2.0' | ||
if RUBY_VERSION.split('.').slice(0,2) == ['1','8'] | ||
# for 1.8 we need specific version of mime-types | ||
gem 'mime-types', '~> 1.25' | ||
end | ||
gem 'rake' | ||
gem 'puppetlabs_spec_helper', :require => false | ||
gem 'coveralls', :require => false | ||
end | ||
end | ||
|
||
|
||
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION']) | ||
|
||
if puppetversion = ENV['PUPPET_GEM_VERSION'] | ||
gem 'puppet', puppetversion, :require => false | ||
else | ||
gem 'puppet', :require => false | ||
end | ||
# | ||
# vim:ft=ruby | ||
# vim:ft=ruby |
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,3 +1,5 @@ | ||
require 'coveralls' | ||
Coveralls.wear! | ||
require 'puppetlabs_spec_helper/puppetlabs_spec_helper' | ||
if RUBY_VERSION >= '1.9' | ||
require 'coveralls' | ||
Coveralls.wear! | ||
end | ||
require 'puppetlabs_spec_helper/puppetlabs_spec_helper' |
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