Permalink
Browse files

Switching MultiJson from deprecated decode to load method

  • Loading branch information...
Zach Moazeni
Zach Moazeni committed Apr 18, 2012
1 parent d51884c commit 82908f367c8c72a92065cdd458e9456fa5ee8ab3
Showing with 3 additions and 3 deletions.
  1. +1 −1 httparty.gemspec
  2. +1 −1 lib/httparty/parser.rb
  3. +1 −1 spec/httparty/parser_spec.rb
View
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.summary = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
s.description = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
- s.add_dependency 'multi_json'
+ s.add_dependency 'multi_json', ">= 1.3.0"
s.add_dependency 'multi_xml'
s.post_install_message = "When you HTTParty, you must party hard!"
View
@@ -113,7 +113,7 @@ def xml
end
def json
- MultiJson.decode(body)
+ MultiJson.load(body)
end
def yaml
@@ -145,7 +145,7 @@ def self.name; 'AtomParser'; end
end
it "parses json with MultiJson" do
- MultiJson.should_receive(:decode).with('body')
+ MultiJson.should_receive(:load).with('body')
subject.send(:json)
end

0 comments on commit 82908f3

Please sign in to comment.