Skip to content

Commit

Permalink
update multi_json dependency to eliminate deprecated MultiJson.decode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbenton committed May 2, 2012
1 parent 6e08279 commit 161101a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/twilio-ruby/rest/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def connect_and_send(request) # :doc:
begin
response = @connection.request request
@last_response = response
object = MultiJson.decode response.body if response.body
object = MultiJson.load response.body if response.body
if response.kind_of? Net::HTTPServerError
raise Twilio::REST::ServerError, object['message']
end
Expand Down
2 changes: 1 addition & 1 deletion twilio-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.files = `git ls-files`.split("\n")
s.test_files = Dir['test/**/*.rb']

s.add_dependency('multi_json', '>= 1.0.3')
s.add_dependency('multi_json', '>= 1.3.0')
s.add_dependency('builder', '>= 2.1.2')
s.add_dependency('jwt', '>= 0.1.2')

Expand Down

0 comments on commit 161101a

Please sign in to comment.