lib/signet/oauth_2.rb in signet-0.4.1 vs lib/signet/oauth_2.rb in signet-0.4.2

- old
+ new

@@ -13,10 +13,11 @@ # limitations under the License. require 'base64' require 'signet' require 'multi_json' +require 'compat/multi_json' require 'signet/ssl_config' module Signet #:nodoc: ## # An implementation of http://tools.ietf.org/html/draft-ietf-oauth-v2-10 @@ -75,10 +76,10 @@ def self.parse_json_credentials(body) if !body.kind_of?(String) raise TypeError, "Expected String, got #{body.class}." end - return MultiJson.decode(body) + return MultiJson.load(body) end ## # Generates a Basic Authorization header from a client identifier and a # client password.