yr_weather 1.0.3 → 1.0.4
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 +4 -4
- data/lib/yr_weather.rb +5 -0
- 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: 8d7aa96a8123796895c526c2900a92e01f85b9bc26975a7251e8154744762859
|
|
4
|
+
data.tar.gz: 24c90ed3e373f1e0ad41c3ab4b6ddd33bc2db976235591dc2eb0d3aae6f45d88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc9d18c645b49c9198b359fb579609b76b640c8b0af2534f9cf06ebd9d492518af939d0d97d2df8f3e3b51fd8c39a9b364c89d7a3096a901368d799e2268b182
|
|
7
|
+
data.tar.gz: 4dc216418ad259d06c8548348c57493c6885021eb6722ed90ad2686f5142e6323945041191e9ef55d8a466167f38f98e934c64c5a4066e2f816a555fa0b76d02
|
data/lib/yr_weather.rb
CHANGED
|
@@ -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) }
|