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 +4 -4
- data/.gitignore +1 -0
- data/lib/assertiva/localize.rb +10 -2
- data/lib/assertiva/requests.rb +1 -1
- data/lib/assertiva/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6515e97d1273b47a1edf2176c498c50e4e98898
|
4
|
+
data.tar.gz: 03af003b639e80b07d849015757d70731fc49360
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdc6143522cbdebdeed24cce968f5794986cd4767491f6f6009999223890012fbc2de211f856cacdf4e9a33db1b70938a671e40738894ef7d27425a7a1214736
|
7
|
+
data.tar.gz: c53043ad4cd542c0084633ec38a4835db9fd01d611ffed98cb0b71376c77e95f1a86e7da4971391ae3befaeb99a691fa3fb3c4941367c482105031a3882e2959
|
data/.gitignore
CHANGED
data/lib/assertiva/localize.rb
CHANGED
@@ -12,11 +12,19 @@ module Assertiva
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.query_by_cpf(cpf)
|
15
|
-
|
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
|
-
|
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
|
data/lib/assertiva/requests.rb
CHANGED
data/lib/assertiva/version.rb
CHANGED