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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef2f754f9b1fe08aa1fe7749a6cc7b338e83b0ecb5d2745decb441f8773f278e
4
- data.tar.gz: 95d1163691c52c32eeae155112c0d86fad7bec95226ec56156e28ef94eceb616
3
+ metadata.gz: 15c662356a8c3af7ef1ddc3d9e2593e1f97407f14715342e9a4bb8b6e9eb1d6f
4
+ data.tar.gz: a06245525f9266e6d0860175a994399b8e9049c80ef7c5c90bec1244fd29b5e5
5
5
  SHA512:
6
- metadata.gz: 33982576f1623d697254375a928dab14974cac4173d8f6079d30c381d8ce56b62d13013ec799f7ca07c1b6e6c8a5f585cdce4d2ae0aaa329072483890b155e71
7
- data.tar.gz: cd8eb5c4a74651005cf8579511af016206fbceca03337c4b323b892e6c4204057c8d7df8bc00b05c7df5788648aa7ce0940197c2533ed920d0488c5e4d5d40cb
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?
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-onewheel-finance"
3
- spec.version = "0.7.0"
3
+ spec.version = "0.7.1"
4
4
  spec.authors = ["Andrew Kreps"]
5
5
  spec.email = ["andrew.kreps@gmail.com"]
6
6
  spec.description = "Wee li'l stock quote bot"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-finance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps