biro 0.6.8 → 0.6.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7240d2386f8b9696f528578279563e9277f39ee
|
4
|
+
data.tar.gz: 6df8e05545747546cb1307370ca39718ea57e848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6c4784dfc80b23ad6e9ba7dbf2271f09919b3ebd832daa0499309df931ff6336e8e704535c7d78748caa97974fe52550bedebcd25beff34ad3f9919981baf66
|
7
|
+
data.tar.gz: 2a645d2a372aa7e45065ab7639352a8c81470a9a21e8c6942032ef817e7c19ace5311ae2cd2dacfb39d5b8c3259954aab9853967a9eb1db8df8c0747cf243a8a
|
@@ -4,7 +4,7 @@ module Biro
|
|
4
4
|
module Bvs
|
5
5
|
class Request < BaseRequest
|
6
6
|
def production_url
|
7
|
-
"https://www.bvsnet.com.br/cgi-bin/db2www/netpo028.mbr/string?consulta=
|
7
|
+
"https://www.bvsnet.com.br/cgi-bin/db2www/netpo028.mbr/string?consulta="
|
8
8
|
end
|
9
9
|
|
10
10
|
def development_url
|
@@ -17,6 +17,7 @@ module Biro
|
|
17
17
|
|
18
18
|
def find(document, options = {})
|
19
19
|
bvs_results = {}
|
20
|
+
|
20
21
|
bvs_results[:score] = score(document) if options.keys.include?(:score)
|
21
22
|
bvs_results[:debits] = debits(document) if options.keys.include?(:debits)
|
22
23
|
|
@@ -44,6 +45,7 @@ module Biro
|
|
44
45
|
end
|
45
46
|
|
46
47
|
def score(document)
|
48
|
+
require 'pry'; binding.pry
|
47
49
|
params = ScoreRequestBuilder.new(document, @username, @password).build
|
48
50
|
|
49
51
|
begin
|
data/lib/biro/version.rb
CHANGED