iugu 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTU5MDBjMmUxMDkxNTE2MjQ0ZjNlMzdhNTE2MThjZjE5NTkxZGMwOA==
4
+ ODllMTZhM2JiNDZhY2ZlM2NjZWFlZTUzNzE0NWYyMDUyOWVhNjRmMA==
5
5
  data.tar.gz: !binary |-
6
- YzQzODBhNTY4ZDUyNWYxYjU2YmZlZWNhNzZlZmIyZGNmZDhmNDAyOQ==
6
+ OTQ3ZmZlYzQzYzUxOWZiYTU5NWQzYmQ2MDI3YTlmZmU5ZGY3ZDdlMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWVhZjZkMzVlODBmMWZkNTQ5NDRlYjgwMzcyM2IwN2FmZDFmMzZjN2I3MDNk
10
- Mjc0MzMxZjA3YmVhNzk3ZGUzYjI5MGViMzgwZGMwZDQxYjNjZmZiYjE5ZGQy
11
- ZTNmNDFjZjJiMWNmM2MzMThlYzJlNjcyOGI4YmRmYjU2Mzc3ZWU=
9
+ MjNiZmE1OWZlNGQ3Mzk5YWJmMmZjNmE3MDg0MWYyZDhhYWE4NzhjNTVhMTYy
10
+ NDk5NzVlOTYyY2Q0ZDg1NWJlODZlYjIxMDgxMzFkOTU0YmQ1ZTVkYTY1ZWIw
11
+ N2Y3MDA1YjczMjNhMDJlMWQ4N2Y5Yjg5MDU3YjA3NTMwNDk4OTE=
12
12
  data.tar.gz: !binary |-
13
- MmQ4ZjJhZDU0NGVjZmY5NjRmMGRmMTVhZjUzMjA1ZmQ2NmFlMGM0Mzc5NGVm
14
- OWYzMzdlOWIwYjYyMmMxZDdmYWFlNTYxY2JiNjk4YzZiNTMzOWYyMmVkNjJk
15
- ODM2YmNlN2VhMTFjZDYxNzQzYTNmZjFjYzljMjlkNGRmOTU4ZTI=
13
+ NDkxYTI3MDFlMWY5ZjQzNGU1MDU1YTI1NzRiODUxZmY2YjhlMzhmZjdhZTA3
14
+ ODJhNzYxNjBkYTkyODVmYTJkNDJiMGEwOTE4MTM3ZDU4OTdmZGUxMTI5OWZj
15
+ NTA5ZDg2NDljYWJkNzkzNTNiNTg5MDQxNGRhZDgzNDgzZThiY2I=
@@ -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'].count > 0
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
@@ -1,3 +1,3 @@
1
1
  module Iugu
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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-27 00:00:00.000000000 Z
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client