currency_quote 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/currency_quote/dolar.rb +2 -2
- data/lib/currency_quote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb28e36b9639588febc4fb586d7427b948174992ed74a8eb0cb2710e44f6003
|
4
|
+
data.tar.gz: e6a0b640af6bd565680e2ada442cca52311834e824964b2cea8538d9114485f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb1fb334786f7451e88d6d1484e60f22d8c519a3d992f27438d26cd1f5d7c44a52af1532a52d35fc44ef35ce76f1a30460695238782a33dc9d0408ea11d8741d
|
7
|
+
data.tar.gz: fb9793f9fc5c6cb51aee4491d5374445ad837a4d3c09c7a17483a4cc17aef6c8f4967852bd05e20a356bf0a35644b1ed2c00def53aba000b58c5244e670dd722
|
data/Gemfile.lock
CHANGED
data/lib/currency_quote/dolar.rb
CHANGED
@@ -35,8 +35,8 @@ class CurrencyQuote::Dolar
|
|
35
35
|
def extract_data
|
36
36
|
data = @doc.css("td").map(&:text)
|
37
37
|
@date = data[data.size - 1]
|
38
|
-
@sell = data[data.size - 2].to_f
|
39
|
-
@buy = data[data.size - 3].to_f
|
38
|
+
@sell = data[data.size - 2].gsub(",", ".").to_f
|
39
|
+
@buy = data[data.size - 3].gsub(",", ".").to_f
|
40
40
|
end
|
41
41
|
|
42
42
|
def struct
|