weatheruby 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/weather/actions.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7787ec777c7e28c511d3afb014c0e89adaf18652
|
4
|
+
data.tar.gz: 61ab8ab8949b5d85605db19177d535bcad195b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0a0573dcd72d6986343a7fff63cae502b0d77736bfa73d3a12a7758f4b9688efd4c25860b66f1cb4cc40edced7fc7406260ab021bec698d274a5597c695a9cc
|
7
|
+
data.tar.gz: 80b259e9c15493c1d88970fce879f5ad19082968313866d17260a765305ac5d5e5cc9527ffb3c65ae5946dcda2774cca3c8423e8f03b56a5d3dbfddd19ba75ce
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
## Version 0
|
3
|
+
### Version 0.3.1
|
4
|
+
* Fix forecast names to 10day, and made it apparent in documentation that the non-10 day methods are only for the next 3 days.
|
5
|
+
|
3
6
|
### Version 0.3.0
|
4
7
|
* Proper error handling, with new initialization parameter verbose_errors.
|
5
8
|
|
data/lib/weather/actions.rb
CHANGED
@@ -181,7 +181,8 @@ module Weather
|
|
181
181
|
end
|
182
182
|
end
|
183
183
|
|
184
|
-
# Gets the basic forecast information for the location.
|
184
|
+
# Gets the basic forecast information for the location. Only gets data
|
185
|
+
# for the next 3 days.
|
185
186
|
# @param location [String] The place to get the forecast for.
|
186
187
|
# @return [Hash] A hash containing hashes of information. Sub-hashes are
|
187
188
|
# named as their "period", or the day in relation to the current day.
|
@@ -208,8 +209,8 @@ module Weather
|
|
208
209
|
end
|
209
210
|
|
210
211
|
# Exactly the same as #simple_forecast, except that it gets the data for
|
211
|
-
#
|
212
|
-
def
|
212
|
+
# 10 days.
|
213
|
+
def simple_forecast_10day(location)
|
213
214
|
response = get('forecast10day', location)
|
214
215
|
|
215
216
|
return parse_simple_forecast(response)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weatheruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Foster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|