assertiva 0.1.1 → 0.2.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: b9e1a3d31aa6f964b4a4b7fe3e10318f385f884c
4
- data.tar.gz: 381c53529e4fae68796ec99e03eebe509183359f
3
+ metadata.gz: c6515e97d1273b47a1edf2176c498c50e4e98898
4
+ data.tar.gz: 03af003b639e80b07d849015757d70731fc49360
5
5
  SHA512:
6
- metadata.gz: b7e1dbb12af330ea04fbc0731e1714b44f1969e372cbf0eaeb0b423958d854e1cdf0cfd6de0baaf0b1ef668a0cce6d5a345179571f3e03eb8d8e8d11edae5729
7
- data.tar.gz: 360ec7419d8dfde4be66603c7bf8fee8b5254164cd7325afc9056643e65b22b334336fd50361df8d92990d22a03c9d6cb997d714835d27cb6840c12d6b65f611
6
+ metadata.gz: bdc6143522cbdebdeed24cce968f5794986cd4767491f6f6009999223890012fbc2de211f856cacdf4e9a33db1b70938a671e40738894ef7d27425a7a1214736
7
+ data.tar.gz: c53043ad4cd542c0084633ec38a4835db9fd01d611ffed98cb0b71376c77e95f1a86e7da4971391ae3befaeb99a691fa3fb3c4941367c482105031a3882e2959
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  Gemfile.lock
10
+ *.gem
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
@@ -12,11 +12,19 @@ module Assertiva
12
12
  end
13
13
 
14
14
  def self.query_by_cpf(cpf)
15
- Requests.post(self.paths[:by_cpf] + "?cpf=#{cpf}")
15
+ begin
16
+ Requests.post(self.paths[:by_cpf] + "?cpf=#{cpf}")
17
+ rescue => e
18
+ raise
19
+ end
16
20
  end
17
21
 
18
22
  def self.query_by_name_or_address(query_params)
19
- Requests.post(self.paths[:by_name_or_address], query_params)
23
+ begin
24
+
25
+ rescue => e
26
+ Requests.post(self.paths[:by_name_or_address], query_params)
27
+ end
20
28
  end
21
29
  end
22
30
  end
@@ -13,7 +13,7 @@ module Assertiva
13
13
  begin
14
14
  response = RestClient.post(url, params.to_json, headers)
15
15
  rescue => e
16
- e
16
+ raise
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Assertiva
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assertiva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Fonseca