Skip to content

Commit b30c81a

Browse files
committed
Fix TravisCI for Ruby < 2
1 parent 926afb5 commit b30c81a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ else
1818
end
1919

2020
if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '2.0'
21-
gem 'json', '~> 1.0'
21+
# json 2.x requires ruby 2.0. Lock to 1.8
22+
gem 'json', '~> 1.8'
23+
# json_pure 2.0.2 requires ruby 2.0. Lock to 2.0.1
24+
gem 'json_pure', '= 2.0.1'
25+
else
26+
gem 'json'
2227
end
2328

2429
if facterversion = ENV['FACTER_GEM_VERSION']

0 commit comments

Comments
 (0)