Permalink
Browse files

decode, not parse

  • Loading branch information...
1 parent 241179a commit 86e6c5b3e73776e7f5d2e71d7d88971669906af7 @ddollar ddollar committed Apr 1, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/taps/cli.rb
  2. +1 −1 lib/taps/data_stream.rb
View
@@ -172,7 +172,7 @@ def clientxfer(method, opts)
end
def clientresumexfer(method, opts)
- session = OkJson.parse(File.read(opts.delete(:resume_filename)))
+ session = OkJson.decode(File.read(opts.delete(:resume_filename)))
session.symbolize_recursively!
database_url = opts.delete(:database_url)
View
@@ -180,7 +180,7 @@ def fetch_from_resource(resource, headers)
end
def self.parse_json(json)
- hash = OkJson.parse(json).symbolize_keys
+ hash = OkJson.decode(json).symbolize_keys
hash[:state].symbolize_keys! if hash.has_key?(:state)
hash
end

0 comments on commit 86e6c5b

Please sign in to comment.