wwo 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wwo.rb +2 -1
- data/lib/wwo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b775c80ee0c2d0fb8f8c02088c42489c0a215aff
|
4
|
+
data.tar.gz: d03ddacf04bdea460f9480049a97791f66c78463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '026966e5b577aeee39e53d662d4a96864a17d4d2aa9403d93875f3452c7b0b9ee161306be45b37c9be7dc26dbe1149a64d4de46ae076dd0235c407bd433e9800'
|
7
|
+
data.tar.gz: 9b1b5da23a3731f665bbf7d8c1234c6627a69a784791a803e8af80e2f1befd5ed5cb5ae1daaa815b6d613d4727183caa2713838cba140f15571e53318c5a4929
|
data/lib/wwo.rb
CHANGED
@@ -36,9 +36,10 @@ module Wwo
|
|
36
36
|
|
37
37
|
uri = "#{Wwo.api_endpoint}/past-weather.ashx?q=#{latitude},#{longitude}&format=json&extra=utcDateTime&date=#{start_date_string}&enddate=#{yesterday_date_string}&show_comments=no&tp=24&key=#{Wwo.api_key}&mca=false&show_comments=false"
|
38
38
|
past_response = Hashie::Mash.new(api_call(uri))
|
39
|
-
uri = "#{Wwo.api_endpoint}/weather.ashx?q=#{latitude},#{longitude}&format=json&num_of_days=7&
|
39
|
+
uri = "#{Wwo.api_endpoint}/weather.ashx?q=#{latitude},#{longitude}&format=json&num_of_days=7&cc=no&mca=no&tp=24&key=#{Wwo.api_key}"
|
40
40
|
future_response = Hashie::Mash.new(api_call(uri))
|
41
41
|
|
42
|
+
|
42
43
|
if forecast_compat
|
43
44
|
past = make_into_forecast_response(past_response)
|
44
45
|
future = make_into_forecast_response(future_response)
|
data/lib/wwo/version.rb
CHANGED