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 +4 -4
- data/lib/pin_pays/api.rb +2 -2
- data/lib/pin_pays/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccf58b51926d69e09bdebe7d4f072bc065c693b4
|
4
|
+
data.tar.gz: b58b87d6ed7c379ffab34cb38503f04775a46b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3670b684bcd871204b94811f3ca9319dab440fbfa58d7033a2d593097d80c1edfa7b63343afd2bc22c1e3d2f564c518725e5a9721c13bb604d9acef16dfebe3c
|
7
|
+
data.tar.gz: 2c649529300051640291ab3e17972d8ba3627c1e4bdb505ebff2cb207a41acf502fadcdbb0b814f9c8232b614f90b892f73536d61e820310a0651964ad3482e1
|
data/lib/pin_pays/api.rb
CHANGED
@@ -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
|
|
data/lib/pin_pays/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|