wepay 0.2.0 → 0.2.1

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 -6
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19b8acb8a744b06fbacbfa8700b3df2678c90223
4
- data.tar.gz: 09f4d706b306d796ae6ed9e27e0579108257b88b
3
+ metadata.gz: c86dcca9455ad83f6ff213a82c85b13b18c93fa4
4
+ data.tar.gz: 1747d7d4c47031e4048ef1cba62828906a32c245
5
5
  SHA512:
6
- metadata.gz: ca6156e6ad955560cab2544ae3e090dfe7d18cc368b96dc23ecf787e606f1622558ec4615872aedbd60ccdf820ad1022700dbeaf94bfa8d733c8e89a9a11e310
7
- data.tar.gz: 84eaceea88f95d1cb7e6a10e19d6c30959b94c11aa590633bab773fa0264f63c74309e585dce0a9644d39ab000bbf57c9f1402cfdb3e4415ea1d2599a0d444fd
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
- params = params.merge({
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: Bearer', access_token); end
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.0
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-25 00:00:00.000000000 Z
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.5
40
+ rubygems_version: 2.4.6
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: WePay SDK for Ruby