pin_pays 0.2.0 → 0.3.0

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: 2cbfbd8f959f73fcbf5e6d71bf79699b7a7032e2
4
- data.tar.gz: 2793f70e8da74a6c84d62025d802c4e0c9cf024c
3
+ metadata.gz: ccf58b51926d69e09bdebe7d4f072bc065c693b4
4
+ data.tar.gz: b58b87d6ed7c379ffab34cb38503f04775a46b17
5
5
  SHA512:
6
- metadata.gz: 93ec2c47b016fab6c1efbf37e15b65faf62cd5f50d85866340b54175755029d4eb28e4cf5f88cbe3f47cde2d7e4c74acbcb8fa517cba2a239992a026d1418607
7
- data.tar.gz: fd4ea8b8c759818445569ca02cf3fb28654a365941d30e5e6ca0a3a917d7d369e9491183e0c050d6ca9b18ac8879ae9452b2b2cc0c1e000bcaa02cf85512de25
6
+ metadata.gz: 3670b684bcd871204b94811f3ca9319dab440fbfa58d7033a2d593097d80c1edfa7b63343afd2bc22c1e3d2f564c518725e5a9721c13bb604d9acef16dfebe3c
7
+ data.tar.gz: 2c649529300051640291ab3e17972d8ba3627c1e4bdb505ebff2cb207a41acf502fadcdbb0b814f9c8232b614f90b892f73536d61e820310a0651964ad3482e1
@@ -27,12 +27,12 @@ module PinPays
27
27
  end
28
28
 
29
29
  def api_response(response)
30
- raise ApiError.new(response.code, response.parsed_response) unless response.code == 200 || response.code == 201
30
+ raise ApiError.new(response.code, symbolize_keys(response.parsed_response)) unless response.code == 200 || response.code == 201
31
31
  symbolize_keys(response.parsed_response['response'])
32
32
  end
33
33
 
34
34
  def api_paginated_response(response)
35
- raise ApiError.new(response.code, response.parsed_response) unless response.code == 200 || response.code == 201
35
+ raise ApiError.new(response.code, sybolize_keys(response.parsed_response)) unless response.code == 200 || response.code == 201
36
36
  { items: symbolize_keys(response.parsed_response['response']), pages: symbolize_keys(response.parsed_response['pagination']) }
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module PinPays
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -5,7 +5,7 @@ require 'webmock/minitest'
5
5
  require 'vcr'
6
6
  require 'turn'
7
7
 
8
- #SECRET_KEY = 'your-pinpayments-secret-key'
8
+ SECRET_KEY = 'your-pinpayments-secret-key'
9
9
 
10
10
  Turn.config do |c|
11
11
  c.format = :outline
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pin_pays
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Lilley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-26 00:00:00.000000000 Z
11
+ date: 2014-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty