wepay 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wepay.rb +3 -6
- 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: c86dcca9455ad83f6ff213a82c85b13b18c93fa4
|
4
|
+
data.tar.gz: 1747d7d4c47031e4048ef1cba62828906a32c245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a84527ba0b32c5b6342f085b54de8fbe0bff93f517de06c812545a609b07710c89febedc325667f8da125e96b7d0662c6beb30ab01dbe4bdd745dfecabddf18d
|
7
|
+
data.tar.gz: 373bd14d97ca49473ff3093e32e40e338c3d1ecb496e361b5bdac74fad9478a59b81066edfdee4755d4c1384b137ee734d3f423371e3ada07517413e733f1b36
|
data/lib/wepay.rb
CHANGED
@@ -66,14 +66,11 @@ module WePay
|
|
66
66
|
'User-Agent' => 'WePay Ruby SDK'
|
67
67
|
})
|
68
68
|
|
69
|
-
unless params.empty?
|
70
|
-
|
71
|
-
"client_id" => @client_id,
|
72
|
-
"client_secret" => @client_secret
|
73
|
-
})
|
69
|
+
unless params.empty?
|
70
|
+
call.body = params.to_json
|
74
71
|
end
|
75
72
|
|
76
|
-
if access_token then call.add_field('Authorization
|
73
|
+
if access_token then call.add_field('Authorization', "Bearer #{access_token}"); end
|
77
74
|
if @api_version then call.add_field('Api-Version', @api_version); end
|
78
75
|
|
79
76
|
make_request(call, url)
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WePay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-30 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.4.
|
40
|
+
rubygems_version: 2.4.6
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
43
|
summary: WePay SDK for Ruby
|