bcash-ruby 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5527831f196904ff9541540a15ed485b561bc72
4
- data.tar.gz: b88f11eab14cc2afe41b14b70a91a03643386765
3
+ metadata.gz: a8dab922b95c39e52a083d7d7f23c21e691deadd
4
+ data.tar.gz: c77173f80b8b677d5be8c03f114b59a507d552e1
5
5
  SHA512:
6
- metadata.gz: 396a14cf2ab0ea9fdb3b9aac8d1301e70012f8834acf41b464a1d9ab652e2d6b3f1ddad274262ec1ae0b758bb97d93732cd7f58d2d8587c5f8b391071850b84b
7
- data.tar.gz: c360164db4c81e8f477f0b6587c89450f88e5501d1278bb7fcc5f59622ebc8f24a5ce40f8cdf9895f69091eb298df0f288d83bd8179a07f9f7c81e6e01c61325
6
+ metadata.gz: 71751d87166813a6badfc4696e496cde68644894c112c6263d87cd3781923b3e57d9e26b642c8a5b646630f340ff9576b2f1ba052dc4b73f23dc26a356cb7c1b
7
+ data.tar.gz: 5d1490dc9a9cda9421f57c6bec776e399882d227ab749ff993dea8f7658257e7c2d3272c86fa10671888adcb802b2181f57e9a916fcbdf3404d418e73a1e763f
@@ -2,6 +2,7 @@ module Bcash::Api
2
2
  autoload :Accounts, 'bcash/api/accounts'
3
3
  autoload :VerifyReturn, 'bcash/api/verify_return'
4
4
  autoload :FindTransaction, 'bcash/api/find_transaction'
5
+
5
6
  autoload :Response, 'bcash/api/response'
6
7
  autoload :AccountResponse, 'bcash/api/account_response'
7
8
  autoload :CreateAccountResponse, 'bcash/api/create_account_response'
@@ -9,9 +9,9 @@ module Bcash::Api
9
9
  end
10
10
 
11
11
  def code
12
- success ? body['code'] : value_from_errors('code')
12
+ success ? body['code'] : value_from_errors('code')
13
13
  end
14
-
14
+
15
15
  def message
16
16
  success ? body['message'] : value_from_errors('description')
17
17
  end
@@ -32,7 +32,7 @@ module Bcash::Api
32
32
 
33
33
  def parse_body(response)
34
34
  @body = CGI::unescape(response.body)
35
- @body = JSON::parse body
35
+ @body = MultiJson.load body
36
36
  @success = response.success?
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Bcash
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcash-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Costa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty