lita-onewheel-forecast-io 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4973d862a7f63d33ebc7433799e0ca0cfcfa5952
4
- data.tar.gz: a5cded2488420f509fc0b3e62ae0a00bc3e98f77
3
+ metadata.gz: 72536d5b1065e43f030d6b986bdad048a67fcd1c
4
+ data.tar.gz: ef409e9ff3ad406a864f76e3565adb5ddf8c4ad1
5
5
  SHA512:
6
- metadata.gz: aacb79de8f6a0b323866de5b7e4d943fc28cfde1e16b0bc3306ac24d59f235950e1fbb0b9692178e1aced2ccc311d324979a13c923b85644a131702137fdcc2f
7
- data.tar.gz: f7e5fbfc6ac34b0ee56087b53e1524fd2462369dafe264dfc8a30b444b174f573d3108f716dd48ef6853db68a48bdf2883c7f6928c9542fd395f445608a92590
6
+ metadata.gz: ee9c5e61b4db3f127752329c275d70f4fa9956acaf8efef50adeba320affcfd8b10252477a7ed6607ada8c58f130f1ee9dbd63f3da537536838d1cf5dea8720f
7
+ data.tar.gz: 34c6ef670a438b59bd1f0e7bf2bc409bbd219abd6f1e1c1fbd5f5ad15b3e38768df996005ee6797bf34296a372ad7719377bc603b9b32fdef31eda73402e1079
@@ -3,13 +3,13 @@ module ForecastIo
3
3
  def ascii_rain_forecast(forecast)
4
4
  (str, precip_type) = do_the_rain_chance_thing(forecast, ascii_chars, 'precipProbability')
5
5
  max = get_max_by_data_key(forecast, 'minutely', 'precipProbability')
6
- "1hr #{precip_type} probability #{(Time.now).strftime('%H:%M').to_s}|#{str}|#{(Time.now + 3600).strftime('%H:%M').to_s} max #{max * 100}%"
6
+ "1hr #{precip_type} probability #{(Time.now).strftime('%H:%M').to_s}|#{str}|#{(Time.now + 3600).strftime('%H:%M').to_s} max #{(max.to_f * 100).round(2)}%"
7
7
  end
8
8
 
9
9
  def ansi_rain_forecast(forecast)
10
10
  (str, precip_type) = do_the_rain_chance_thing(forecast, ansi_chars, 'precipProbability') #, 'probability', get_rain_range_colors)
11
11
  max = get_max_by_data_key(forecast, 'minutely', 'precipProbability')
12
- "1hr #{precip_type} probability #{(Time.now).strftime('%H:%M').to_s}|#{str}|#{(Time.now + 3600).strftime('%H:%M').to_s} max #{max.to_f * 100}%"
12
+ "1hr #{precip_type} probability #{(Time.now).strftime('%H:%M').to_s}|#{str}|#{(Time.now + 3600).strftime('%H:%M').to_s} max #{(max.to_f * 100).round(2)}%"
13
13
  end
14
14
 
15
15
  def ansi_rain_intensity_forecast(forecast)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-forecast-io'
3
- spec.version = '1.0.1'
3
+ spec.version = '1.0.2'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = <<-EOS
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-forecast-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps