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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7faac0658738fc21876367766b4044f3f95dd3d1
4
- data.tar.gz: 562fe84ecb400b9f6737092e13d3deaea814aadc
3
+ metadata.gz: 2ed02af71c64495b38516136c6e54c7f44f7acec
4
+ data.tar.gz: 32250445ab748e18c2c07cd1c115cb912ab05640
5
5
  SHA512:
6
- metadata.gz: 2acbefd02f3d80ac10aa22abec508c429acabc8b0b919273d2c8a13e22221858c5e3425f569de10f93d9105286ef40bc2e7bac5c90f4c2ffbd77cd8f9af63abd
7
- data.tar.gz: aaaab33d62be31762a6f5be272b9a4709c1d73541e12b7f5d0da24bb13f4124ffc993c3910db1575a371c0dc74d6e7762e8259628a9bf0f612b778c3311e9aba
6
+ metadata.gz: 79e5304312a223e99de085ec1c5b437ce92ab50c01e6a9dfe6aae20d4b91f6bcb3ae5c0be6ae355f9a2be0af74c345003645604667a65004d6ed58a8bd402f8b
7
+ data.tar.gz: 251de173f65c451dae2b50d0ff550b97c92e481b765983f0f1a77dec1bb93dbb17bda408becc6430bbfa801f53b75b236b801e58ae591d5160e878e94e6b5a57
data/README.md CHANGED
@@ -15,7 +15,7 @@ If you want to build & install the gem from source:
15
15
 
16
16
  ```bash
17
17
  gem build synapse_pay.gemspec
18
- gem install synapse_pay-0.0.4.gem
18
+ gem install synapse_pay-0.0.6.gem
19
19
  ```
20
20
 
21
21
  ## Documentation
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
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 Exception => e
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)
@@ -2,6 +2,7 @@ module SynapsePay
2
2
  class Client < APIClient
3
3
  attr_reader :oauth_consumer_key,
4
4
  :refresh_token,
5
+ :expires_at,
5
6
  :expires_in,
6
7
  :username,
7
8
  :user_id,
@@ -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
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-05-27 00:00:00.000000000 Z
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.2.2
208
+ rubygems_version: 2.4.5
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Ruby bindings for SynapsePay API