lita-onewheel-finance 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/yahoo_quote.rb +2 -1
- data/lita-onewheel-finance.gemspec +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: 15c662356a8c3af7ef1ddc3d9e2593e1f97407f14715342e9a4bb8b6e9eb1d6f
|
4
|
+
data.tar.gz: a06245525f9266e6d0860175a994399b8e9049c80ef7c5c90bec1244fd29b5e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c88a85f9a6b5dc86bc2a9683398c734debab9a5f7fdf9c8f0be8cd6e2bfd69aa9da16798318b7a7b05a73b5facd9a99b89c003363628629a3f92dfb2ab352c7
|
7
|
+
data.tar.gz: 91f5c5cc47f9690698faa731b7b7e93eaea9b16ec22badae7293dd075275861e072d5b331d2ef7b687c6c54160d6fe390cf120bb1cf673a743d22513ca1b1609
|
@@ -35,8 +35,9 @@ class YahooQuote
|
|
35
35
|
@change_percent = self.fix_number ((@change / @price) * 100)
|
36
36
|
end
|
37
37
|
|
38
|
+
# Apparently rounding stopped working at some point for trailing 0's
|
38
39
|
def fix_number(price_str)
|
39
|
-
price_str.to_f.round(2)
|
40
|
+
"%.2f" % price_str.to_f.round(2)
|
40
41
|
end
|
41
42
|
|
42
43
|
def is_index?
|