From 46327e740a03ec783cb62863d40eef5efa68c0cb Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Tue, 8 Jan 2013 11:12:59 -0800 Subject: [PATCH] Relax multi_json dependency Closes #339. --- lib/twitter/response/parse_json.rb | 2 +- twitter.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/twitter/response/parse_json.rb b/lib/twitter/response/parse_json.rb index 04e20f870..76ecc41fd 100644 --- a/lib/twitter/response/parse_json.rb +++ b/lib/twitter/response/parse_json.rb @@ -10,7 +10,7 @@ def parse(body) when /\A^\s*$\z/, nil nil else - MultiJson.load(body, :symbolize_keys => true) + MultiJson.decode(body, :symbolize_keys => true) end end diff --git a/twitter.gemspec b/twitter.gemspec index 991e46562..6ba565e9a 100644 --- a/twitter.gemspec +++ b/twitter.gemspec @@ -3,7 +3,7 @@ require File.expand_path('../lib/twitter/version', __FILE__) Gem::Specification.new do |spec| spec.add_dependency 'faraday', ['~> 0.8', '< 0.10'] - spec.add_dependency 'multi_json', ['~> 1.3'] + spec.add_dependency 'multi_json', ['~> 1.0'] spec.add_dependency 'simple_oauth', ['~> 0.2'] spec.add_development_dependency 'kramdown' spec.add_development_dependency 'pry'