iugu 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/iugu/api_request.rb +1 -1
- data/lib/iugu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODllMTZhM2JiNDZhY2ZlM2NjZWFlZTUzNzE0NWYyMDUyOWVhNjRmMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTQ3ZmZlYzQzYzUxOWZiYTU5NWQzYmQ2MDI3YTlmZmU5ZGY3ZDdlMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjNiZmE1OWZlNGQ3Mzk5YWJmMmZjNmE3MDg0MWYyZDhhYWE4NzhjNTVhMTYy
|
10
|
+
NDk5NzVlOTYyY2Q0ZDg1NWJlODZlYjIxMDgxMzFkOTU0YmQ1ZTVkYTY1ZWIw
|
11
|
+
N2Y3MDA1YjczMjNhMDJlMWQ4N2Y5Yjg5MDU3YjA3NTMwNDk4OTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDkxYTI3MDFlMWY5ZjQzNGU1MDU1YTI1NzRiODUxZmY2YjhlMzhmZjdhZTA3
|
14
|
+
ODJhNzYxNjBkYTkyODVmYTJkNDJiMGEwOTE4MTM3ZDU4OTdmZGUxMTI5OWZj
|
15
|
+
NTA5ZDg2NDljYWJkNzkzNTNiNTg5MDQxNGRhZDgzNDgzZThiY2I=
|
data/lib/iugu/api_request.rb
CHANGED
@@ -39,7 +39,7 @@ module Iugu
|
|
39
39
|
def self.handle_response(response)
|
40
40
|
response_json = JSON.parse(response.body)
|
41
41
|
raise ObjectNotFound if response_json.is_a?(Hash) && response_json['errors'] == "Not Found"
|
42
|
-
raise RequestWithErrors, response_json['errors'] if response_json.is_a?(Hash) && response_json['errors'] && response_json['errors'].
|
42
|
+
raise RequestWithErrors, response_json['errors'] if response_json.is_a?(Hash) && response_json['errors'] && response_json['errors'].length > 0
|
43
43
|
response_json
|
44
44
|
rescue JSON::ParserError
|
45
45
|
raise RequestFailed
|
data/lib/iugu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iugu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcelo Paez Sequeira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|