wepay 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wepay.rb +3 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 984dedaa25f4999e812d6beb6308bf3c9d7ce7c1
4
- data.tar.gz: 6f4797e7420823bfab43700d53e7323d378dd5de
3
+ metadata.gz: 1dd0e186215a8be09503386af82f22ea9851fbb6
4
+ data.tar.gz: b4b9861b30bbb6a412723215bb5fb3aaeebc3094
5
5
  SHA512:
6
- metadata.gz: 090ea3e5dd776694dfecc4a5cdff4d4ad275f148d978329a22d71c60481e165c29d6fb2d4c83310a07c89557c8fc416b17ef6fa49925ad59f3c3aa69ba3b6dae
7
- data.tar.gz: 6f6f5b8f51386747cd5a3e19ff81e651b646ec3a1a5f576458b33f4c03a20a1bbd79a7086e429ba02cd4016b1ef78da358dd158b8f6bded013888148672c73c5
6
+ metadata.gz: d5f1188982366f9900ef8ab88a6303d1929fc79c1958df84885678fb40d2e2ed08830590ba99072f24202d05de30a08f47d7f63e622c22678ea82a436cd5d72a
7
+ data.tar.gz: 2d3e0235f31f01fac80938a78030d4f896fad147e8c854334b8f4bb7e9413d1dcd9eb60982a3eb9f42bf51c273f42f5b6d9f1681d53f22f2b3032303cba5b042
@@ -56,7 +56,7 @@ module WePay
56
56
  ##
57
57
  # Execute a call to the WePay API.
58
58
  ##
59
- def call(call, access_token = false, params = {})
59
+ def call(call, access_token = false, params = {}, risk_token = false, client_ip = false)
60
60
  path = call.start_with?('/') ? call : call.prepend('/')
61
61
  url = URI.parse(api_endpoint + path)
62
62
 
@@ -71,6 +71,8 @@ module WePay
71
71
 
72
72
  if access_token then call.add_field('Authorization', "Bearer #{access_token}"); end
73
73
  if @api_version then call.add_field('Api-Version', @api_version); end
74
+ if risk_token then call.add_field('WePay-Risk-Token', risk_token); end
75
+ if client_ip then call.add_field('Client-IP', client_ip); end
74
76
 
75
77
  make_request(call, url)
76
78
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wepay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WePay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-11 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The WePay SDK for Ruby lets you easily make WePay API calls from Ruby.
14
14
  email: api@wepay.com
@@ -37,7 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
37
  version: '0'
38
38
  requirements: []
39
39
  rubyforge_project:
40
- rubygems_version: 2.6.4
40
+ rubygems_version: 2.4.8
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: WePay SDK for Ruby