wepay 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wepay.rb +3 -1
- 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: 1dd0e186215a8be09503386af82f22ea9851fbb6
|
4
|
+
data.tar.gz: b4b9861b30bbb6a412723215bb5fb3aaeebc3094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5f1188982366f9900ef8ab88a6303d1929fc79c1958df84885678fb40d2e2ed08830590ba99072f24202d05de30a08f47d7f63e622c22678ea82a436cd5d72a
|
7
|
+
data.tar.gz: 2d3e0235f31f01fac80938a78030d4f896fad147e8c854334b8f4bb7e9413d1dcd9eb60982a3eb9f42bf51c273f42f5b6d9f1681d53f22f2b3032303cba5b042
|
data/lib/wepay.rb
CHANGED
@@ -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.
|
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:
|
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.
|
40
|
+
rubygems_version: 2.4.8
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
43
|
summary: WePay SDK for Ruby
|