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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b40e34425b319729198a09de5030ee7edb69e844
4
- data.tar.gz: 370478e5514ce4ce346c36ae470672563e9f79b9
3
+ metadata.gz: 9c04c6cafe3179fc10be84049ef4700cef37d6db
4
+ data.tar.gz: bbc70486ce3f4768429328af097a981d278c0903
5
5
  SHA512:
6
- metadata.gz: 045b41822902b9f8c0c881ba48ac0f836fddb389f48d2364c674beb0d352eb6f0261117e271702d88db7c83232104302c4e8a5d3e0bae649beb75739dd22ad73
7
- data.tar.gz: bc4293af26e035a93743572d83b18bc2720f5171ac2e4902a6604a43f80a08ee529d90ebb18e47e1c97b60a7f4dc5676b2f91c27fc0268724d8afcef00663b3e
6
+ metadata.gz: 1de5e3326eddc8cd07a11fbd841b1e3c4e64db13a04ba7603107c05e5e26a3ef163db48ab04d257285bd0261a08695b144eadb8bada84ad2195ce3f2a69394a3
7
+ data.tar.gz: ff025a1049b3d6bc00f762c18e77a28c04a4ac4da98932ccb6a95ddd2159b3485381eba12d9ffbe990148901f58bbf7840b6557f768b3a704a8cedad6c721afb
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Assertiva
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler