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 +4 -4
- data/lib/bcash/api.rb +1 -0
- data/lib/bcash/api/response.rb +3 -3
- data/lib/bcash/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8dab922b95c39e52a083d7d7f23c21e691deadd
|
4
|
+
data.tar.gz: c77173f80b8b677d5be8c03f114b59a507d552e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71751d87166813a6badfc4696e496cde68644894c112c6263d87cd3781923b3e57d9e26b642c8a5b646630f340ff9576b2f1ba052dc4b73f23dc26a356cb7c1b
|
7
|
+
data.tar.gz: 5d1490dc9a9cda9421f57c6bec776e399882d227ab749ff993dea8f7658257e7c2d3272c86fa10671888adcb802b2181f57e9a916fcbdf3404d418e73a1e763f
|
data/lib/bcash/api.rb
CHANGED
@@ -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'
|
data/lib/bcash/api/response.rb
CHANGED
@@ -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 =
|
35
|
+
@body = MultiJson.load body
|
36
36
|
@success = response.success?
|
37
37
|
end
|
38
38
|
|
data/lib/bcash/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|