synapse_pay 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/synapse_pay/apibits/api_method.rb +1 -1
- data/lib/synapse_pay/client.rb +1 -0
- data/lib/synapse_pay/resources/card.rb +1 -1
- data/lib/synapse_pay/resources/order.rb +2 -2
- data/lib/synapse_pay/resources/user.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed02af71c64495b38516136c6e54c7f44f7acec
|
4
|
+
data.tar.gz: 32250445ab748e18c2c07cd1c115cb912ab05640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79e5304312a223e99de085ec1c5b437ce92ab50c01e6a9dfe6aae20d4b91f6bcb3ae5c0be6ae355f9a2be0af74c345003645604667a65004d6ed58a8bd402f8b
|
7
|
+
data.tar.gz: 251de173f65c451dae2b50d0ff550b97c92e481b765983f0f1a77dec1bb93dbb17bda408becc6430bbfa801f53b75b236b801e58ae591d5160e878e94e6b5a57
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
@@ -26,7 +26,7 @@ module SynapsePay
|
|
26
26
|
response = Requester.request(method, url, params, headers)
|
27
27
|
@response_body = response.body
|
28
28
|
@response_code = response.code
|
29
|
-
rescue
|
29
|
+
rescue StandardError => e
|
30
30
|
@response_body = e.http_body if e.respond_to?(:http_body)
|
31
31
|
@response_code = e.http_code if e.respond_to?(:http_code)
|
32
32
|
@error = compose_error(e)
|
data/lib/synapse_pay/client.rb
CHANGED
@@ -14,7 +14,7 @@ module SynapsePay
|
|
14
14
|
}, params)
|
15
15
|
method = APIMethod.new(:post, "/card/edit", params, headers, self)
|
16
16
|
json = @client.execute(method)
|
17
|
-
self.refresh_from(json[:card], method)
|
17
|
+
self.refresh_from(json[:card], method, @client)
|
18
18
|
end
|
19
19
|
|
20
20
|
# Everything below here is used behind the scenes.
|
@@ -25,7 +25,7 @@ module SynapsePay
|
|
25
25
|
}, params)
|
26
26
|
method = APIMethod.new(:post, "/order/update", params, headers, self)
|
27
27
|
json = @client.execute(method)
|
28
|
-
self.refresh_from(json[:order], method)
|
28
|
+
self.refresh_from(json[:order], method, @client)
|
29
29
|
end
|
30
30
|
|
31
31
|
def void(params={}, headers={})
|
@@ -34,7 +34,7 @@ module SynapsePay
|
|
34
34
|
}, params)
|
35
35
|
method = APIMethod.new(:post, "/order/void", params, headers, self)
|
36
36
|
json = @client.execute(method)
|
37
|
-
self.refresh_from(json[:order], method)
|
37
|
+
self.refresh_from(json[:order], method, @client)
|
38
38
|
end
|
39
39
|
|
40
40
|
# Everything below here is used behind the scenes.
|
@@ -46,13 +46,13 @@ module SynapsePay
|
|
46
46
|
def refresh(params={}, headers={})
|
47
47
|
method = APIMethod.new(:post, "/user/show", params, headers, self)
|
48
48
|
json = @client.execute(method)
|
49
|
-
self.refresh_from(json[:user], method)
|
49
|
+
self.refresh_from(json[:user], method, @client)
|
50
50
|
end
|
51
51
|
|
52
52
|
def update(params={}, headers={})
|
53
53
|
method = APIMethod.new(:post, "/user/edit", params, headers, self)
|
54
54
|
json = @client.execute(method)
|
55
|
-
self.refresh_from(json[:user], method)
|
55
|
+
self.refresh_from(json[:user], method, @client)
|
56
56
|
end
|
57
57
|
|
58
58
|
# Everything below here is used behind the scenes.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apibits.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.4.5
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Ruby bindings for SynapsePay API
|