yr_weather 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yr_weather.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee5c6ac78715039e4a68135c9101ed34352c347f44063410d159f9b35b011a3f
4
- data.tar.gz: d816f7296587b37ed76b46e99a3e83827d2a1aa5b416a97526e469e3fd52ef75
3
+ metadata.gz: 8d7aa96a8123796895c526c2900a92e01f85b9bc26975a7251e8154744762859
4
+ data.tar.gz: 24c90ed3e373f1e0ad41c3ab4b6ddd33bc2db976235591dc2eb0d3aae6f45d88
5
5
  SHA512:
6
- metadata.gz: 27328ad8f0b2ae5b831efb3636499d399cb884288546a8b327b1b10f9da73bf9a3f34430e9b7596ab1f23343ffccc38e69a592ff3ce7b19a730b37365f77f270
7
- data.tar.gz: 321853a092cd849bcbac54395d41ff880cdc38f8a511b3c4f7141689e94e8da13c93d178f7d570750fabcf3414e155522177617d58c7f396c692af75d546e947
6
+ metadata.gz: fc9d18c645b49c9198b359fb579609b76b640c8b0af2534f9cf06ebd9d492518af939d0d97d2df8f3e3b51fd8c39a9b364c89d7a3096a901368d799e2268b182
7
+ data.tar.gz: 4dc216418ad259d06c8548348c57493c6885021eb6722ed90ad2686f5142e6323945041191e9ef55d8a466167f38f98e934c64c5a4066e2f816a555fa0b76d02
@@ -153,6 +153,11 @@ class YrWeather
153
153
  forecast(range).merge(symbol: symbol_code_hourly(range))
154
154
  end
155
155
 
156
+ def tomorrow
157
+ range = (@start_of_day + 24*60*60)..(@start_of_day + 2*24*60*60)
158
+ forecast(range).tap { |hs| hs.delete(:wind_description) }
159
+ end
160
+
156
161
  def three_days
157
162
  range = @now..(@now + 3*24*60*60)
158
163
  forecast(range).tap { |hs| hs.delete(:wind_description) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yr_weather
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - renen