[icinga-checkins] icinga.org: puppet-icingaweb2/master: Gemfile: Pinning json version for Ruby < 2

git at icinga.org git at icinga.org
Tue Jan 3 16:32:09 CET 2017


Module: puppet-icingaweb2
Branch: master
Commit: cde93d8cce55b67e890a11b2623837911a5a18db
URL:    https://git.icinga.org/?p=puppet-icingaweb2.git;a=commit;h=cde93d8cce55b67e890a11b2623837911a5a18db

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Tue Jan  3 16:10:17 2017 +0100

Gemfile: Pinning json version for Ruby < 2

---

 Gemfile |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Gemfile b/Gemfile
index 761735b..8aeb415 100644
--- a/Gemfile
+++ b/Gemfile
@@ -7,4 +7,8 @@ gem 'puppet-lint', '>= 2'
 gem 'facter', '>= 1.7.0'
 gem 'metadata-json-lint'
 
+json_version = ENV.key?('TRAVIS_RUBY_VERSION') && ENV['TRAVIS_RUBY_VERSION'].to_i < 2 ? '~> 1.8.3' : '~> 2.0'
+gem 'json', json_version
+gem 'json_pure', json_version
+
 gem 'puppet-lint-strict_indent-check'



More information about the icinga-checkins mailing list