From fd61a08e0bd2ee59e4a4b31c144f1572e55614b1 Mon Sep 17 00:00:00 2001 From: Yavor Nikolov Date: Fri, 30 Dec 2016 17:39:44 +0200 Subject: [PATCH] Use git branch v1.8 for json gem for ruby >= 2.4 and aciverecord 4.1 --- gemfiles/Gemfile.activerecord-4.1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gemfiles/Gemfile.activerecord-4.1 b/gemfiles/Gemfile.activerecord-4.1 index 139542f8..0aaa04c0 100644 --- a/gemfiles/Gemfile.activerecord-4.1 +++ b/gemfiles/Gemfile.activerecord-4.1 @@ -17,5 +17,9 @@ group :test, :development do platforms :ruby, :mswin, :mingw do gem 'ruby-oci8', '~> 2.1' + + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0') + gem 'json', github: 'flori/json', branch: 'v1.8' + end end end