assertiva 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assertiva/localize.rb +8 -0
- data/lib/assertiva/version.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: 9c04c6cafe3179fc10be84049ef4700cef37d6db
|
4
|
+
data.tar.gz: bbc70486ce3f4768429328af097a981d278c0903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de5e3326eddc8cd07a11fbd841b1e3c4e64db13a04ba7603107c05e5e26a3ef163db48ab04d257285bd0261a08695b144eadb8bada84ad2195ce3f2a69394a3
|
7
|
+
data.tar.gz: ff025a1049b3d6bc00f762c18e77a28c04a4ac4da98932ccb6a95ddd2159b3485381eba12d9ffbe990148901f58bbf7840b6557f768b3a704a8cedad6c721afb
|
data/lib/assertiva/localize.rb
CHANGED
@@ -19,6 +19,14 @@ module Assertiva
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
def self.query_by_cnpj(cnpj)
|
23
|
+
begin
|
24
|
+
Requests.post(self.paths[:by_cnpj] + "?cnpj=#{cnpj}")
|
25
|
+
rescue => e
|
26
|
+
raise
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
22
30
|
def self.query_by_name_or_address(query_params)
|
23
31
|
begin
|
24
32
|
Requests.post(self.paths[:by_name_or_address], query_params)
|
data/lib/assertiva/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assertiva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Fonseca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|