weather-api 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weather-api.rb +1 -1
  3. data/lib/weather-api/condition.rb +1 -1
  4. data/lib/weather-api/forecast.rb +1 -1
  5. data/lib/weather-api/location.rb +3 -3
  6. data/lib/weather-api/response.rb +2 -2
  7. data/lib/weather-api/units.rb +4 -4
  8. data/lib/weather-api/version.rb +1 -1
  9. data/spec/fixtures/cassettes/Weather_Astronomy/should_contain_Time_objects_for_sunrise_and_sunset.yml +44 -89
  10. data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_float_indicating_atmospheric_pressure.yml +46 -91
  11. data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_a_string_indicating_barometric_pressure.yml +46 -91
  12. data/spec/fixtures/cassettes/Weather_Atmosphere/should_contain_integers_representing_humidity_and_visibility.yml +40 -89
  13. data/spec/fixtures/cassettes/Weather_Condition/should_contain_a_weather_condition_code_a_date_a_temperature_and_a_description.yml +43 -88
  14. data/spec/fixtures/cassettes/Weather_Forecast/should_contain_high_and_low_forecasts.yml +46 -91
  15. data/spec/fixtures/cassettes/Weather_Forecast/should_contain_the_name_of_the_day_associated_with_the_forecast.yml +46 -91
  16. data/spec/fixtures/cassettes/Weather_Forecast/should_have_a_brief_description_of_the_forecasted_conditions.yml +42 -91
  17. data/spec/fixtures/cassettes/Weather_Forecast/should_have_a_weather_condition_code.yml +46 -91
  18. data/spec/fixtures/cassettes/Weather_Forecast/should_have_an_associated_date.yml +46 -91
  19. data/spec/fixtures/cassettes/Weather_Image/should_contain_a_string_for_the_image_url.yml +42 -91
  20. data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Nice_France.yml +43 -88
  21. data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Seattle_WA.yml +43 -88
  22. data/spec/fixtures/cassettes/Weather_Location/should_be_able_to_look_up_Victoria_BC.yml +42 -91
  23. data/spec/fixtures/cassettes/Weather_Location/should_contain_city_country_and_region_as_strings.yml +46 -91
  24. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_HTML_description_summarizing_weather_conditions.yml +42 -91
  25. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_String_title.yml +46 -91
  26. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Astronomy_object.yml +46 -91
  27. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Atmosphere_object.yml +46 -91
  28. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Condition_object.yml +46 -91
  29. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Image_object.yml +46 -91
  30. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Location_object.yml +46 -91
  31. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Units_object.yml +42 -91
  32. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_Weather_Wind_object.yml +46 -91
  33. data/spec/fixtures/cassettes/Weather_Response/should_contain_a_collection_of_Weather_Forecast_objects.yml +46 -91
  34. data/spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml +42 -91
  35. data/spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml +46 -91
  36. data/spec/fixtures/cassettes/Weather_Response/should_return_a_RuntimeError_for_an_invalid_WOEID.yml +15 -13
  37. data/spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_metric_units.yml +45 -31
  38. data/spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_imperial_if_specified.yml +40 -30
  39. data/spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml +46 -91
  40. data/spec/lib/location_spec.rb +1 -1
  41. data/spec/spec_helper.rb +0 -4
  42. data/weather-api.gemspec +5 -5
  43. metadata +13 -17
  44. data/spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml +0 -122
  45. data/spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml +0 -123
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=9848%20and%20u='f'
5
+ uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=9848%20and%20u=%27c%27
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - '*/*'
13
+ - "*/*"
14
14
  User-Agent:
15
15
  - Ruby
16
16
  Host:
@@ -21,102 +21,57 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  X-Yql-Host:
24
- - engine6.yql.ne1.yahoo.com
24
+ - prod_gq1_1;paas.yql;queryyahooapiscomproductiongq1;aae6f440-5f25-11e6-acf5-f0921c12e67c
25
+ X-Content-Type-Options:
26
+ - nosniff
25
27
  Access-Control-Allow-Origin:
26
- - '*'
27
- Cache-Control:
28
- - public, max-age=3599
28
+ - "*"
29
29
  Content-Type:
30
- - application/json;charset=utf-8
31
- Vary:
32
- - Accept-Encoding
33
- Date:
34
- - Fri, 29 Mar 2013 06:50:18 GMT
35
- Server:
36
- - YTS/1.20.13
37
- Age:
38
- - '1528'
39
- Content-Length:
40
- - '880'
41
- Connection:
42
- - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"query":{"count":1,"created":"2013-03-29T06:50:19Z","lang":"en-US","results":{"channel":{"title":"Yahoo!
46
- Weather - Victoria, CA","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_f.html","description":"Yahoo!
47
- Weather for Victoria, CA","language":"en-us","lastBuildDate":"Thu, 28 Mar
48
- 2013 8:59 pm PDT","ttl":"60","location":{"city":"Victoria","country":"Canada","region":"BC"},"units":{"distance":"mi","pressure":"in","speed":"mph","temperature":"F"},"wind":{"chill":"46","direction":"230","speed":"5"},"atmosphere":{"humidity":"82","pressure":"30.11","rising":"1","visibility":""},"astronomy":{"sunrise":"6:59
49
- am","sunset":"7:36 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
50
- for Victoria, CA at 8:59 pm PDT","lat":"48.43","long":"-123.36","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_f.html","pubDate":"Thu,
51
- 28 Mar 2013 8:59 pm PDT","condition":{"code":"29","date":"Thu, 28 Mar 2013
52
- 8:59 pm PDT","temp":"48","text":"Partly Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/29.gif\"/><br
53
- />\n<b>Current Conditions:</b><br />\nPartly Cloudy, 48 F<BR />\n<BR /><b>Forecast:</b><BR
54
- />\nThu - Clear. High: 55 Low: 43<br />\nFri - AM Clouds/PM Sun. High: 55
55
- Low: 44<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_f.html\">Full
56
- Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\"
57
- >The Weather Channel</a>)<br/>\n","forecast":[{"code":"31","date":"28 Mar
58
- 2013","day":"Thu","high":"55","low":"43","text":"Clear"},{"code":"30","date":"29
59
- Mar 2013","day":"Fri","high":"55","low":"44","text":"AM Clouds/PM Sun"}],"guid":{"isPermaLink":"false","content":"CAXX0523_2013_03_29_7_00_PDT"}}}}}}'
60
- http_version:
61
- recorded_at: Fri, 29 Mar 2013 07:15:46 GMT
62
- - request:
63
- method: get
64
- uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=9848%20and%20u='c'
65
- body:
66
- encoding: US-ASCII
67
- string: ''
68
- headers:
69
- Accept-Encoding:
70
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
- Accept:
72
- - '*/*'
73
- User-Agent:
74
- - Ruby
75
- Host:
76
- - query.yahooapis.com
77
- response:
78
- status:
79
- code: 200
80
- message: OK
81
- headers:
82
- X-Yql-Host:
83
- - engine6.yql.gq1.yahoo.com
84
- Access-Control-Allow-Origin:
85
- - '*'
30
+ - application/json; charset=UTF-8
86
31
  Cache-Control:
87
- - public, max-age=199
88
- Content-Type:
89
- - application/json;charset=utf-8
32
+ - no-cache
90
33
  Date:
91
- - Fri, 08 Nov 2013 19:29:12 GMT
92
- Server:
93
- - YTS/1.20.13
34
+ - Wed, 17 Aug 2016 03:25:48 GMT
94
35
  Age:
95
- - '3'
96
- Content-Length:
97
- - '2345'
36
+ - '0'
37
+ Server:
38
+ - ATS
39
+ Via:
40
+ - http/1.1 a15.ue.gq1.yahoo.net (ApacheTrafficServer [cMsSf ])
41
+ Y-Trace:
42
+ - BAEAQAAAAACH.7tMKWjMAQAAAAAAAAAAvVrk5Fi531AAAAAAAAAAAAAFOjwFg1KnAAU6PAWDemBgfU9DAAAAAA--
43
+ Transfer-Encoding:
44
+ - chunked
98
45
  Connection:
99
46
  - keep-alive
100
47
  body:
101
48
  encoding: UTF-8
102
- string: '{"query":{"count":1,"created":"2013-11-08T19:29:13Z","lang":"en-US","results":{"channel":{"title":"Yahoo!
103
- Weather - Victoria, CA","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_c.html","description":"Yahoo!
104
- Weather for Victoria, CA","language":"en-us","lastBuildDate":"Fri, 08 Nov
105
- 2013 10:00 am PST","ttl":"60","location":{"city":"Victoria","country":"Canada","region":"BC"},"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"wind":{"chill":"8","direction":"260","speed":"14.48"},"atmosphere":{"humidity":"71","pressure":"1019.9","rising":"1","visibility":""},"astronomy":{"sunrise":"7:09
106
- am","sunset":"4:43 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
107
- for Victoria, CA at 10:00 am PST","lat":"48.43","long":"-123.36","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_c.html","pubDate":"Fri,
108
- 08 Nov 2013 10:00 am PST","condition":{"code":"28","date":"Fri, 08 Nov 2013
109
- 10:00 am PST","temp":"10","text":"Mostly Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/28.gif\"/><br
110
- />\n<b>Current Conditions:</b><br />\nMostly Cloudy, 10 C<BR />\n<BR /><b>Forecast:</b><BR
111
- />\nFri - PM Showers. High: 9 Low: 6<br />\nSat - Showers. High: 8 Low: 6<br
112
- />\nSun - AM Showers. High: 8 Low: 6<br />\nMon - Cloudy. High: 9 Low: 7<br
113
- />\nTue - Rain. High: 9 Low: 7<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_c.html\">Full
114
- Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\"
115
- >The Weather Channel</a>)<br/>\n","forecast":[{"code":"39","date":"8 Nov 2013","day":"Fri","high":"9","low":"6","text":"PM
116
- Showers"},{"code":"11","date":"9 Nov 2013","day":"Sat","high":"8","low":"6","text":"Showers"},{"code":"39","date":"10
117
- Nov 2013","day":"Sun","high":"8","low":"6","text":"AM Showers"},{"code":"26","date":"11
118
- Nov 2013","day":"Mon","high":"9","low":"7","text":"Cloudy"},{"code":"12","date":"12
119
- Nov 2013","day":"Tue","high":"9","low":"7","text":"Rain"}],"guid":{"isPermaLink":"false","content":"CAXX0523_2013_11_12_7_00_PST"}}}}}}'
49
+ string: '{"query":{"count":1,"created":"2016-08-17T03:25:48Z","lang":"en-US","results":{"channel":{"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"title":"Yahoo!
50
+ Weather - Victoria, BC, CA","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-9848/","description":"Yahoo!
51
+ Weather for Victoria, BC, CA","language":"en-us","lastBuildDate":"Tue, 16
52
+ Aug 2016 08:25 PM PDT","ttl":"60","location":{"city":"Victoria","country":"Canada","region":"
53
+ BC"},"wind":{"chill":"64","direction":"235","speed":"28.97"},"atmosphere":{"humidity":"72","pressure":"34337.99","rising":"0","visibility":"25.91"},"astronomy":{"sunrise":"6:10
54
+ am","sunset":"8:24 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
55
+ for Victoria, BC, CA at 07:00 PM PDT","lat":"48.42828","long":"-123.3564","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-9848/","pubDate":"Tue,
56
+ 16 Aug 2016 07:00 PM PDT","condition":{"code":"32","date":"Tue, 16 Aug 2016
57
+ 07:00 PM PDT","temp":"18","text":"Sunny"},"forecast":[{"code":"32","date":"16
58
+ Aug 2016","day":"Tue","high":"18","low":"16","text":"Sunny"},{"code":"32","date":"17
59
+ Aug 2016","day":"Wed","high":"18","low":"15","text":"Sunny"},{"code":"32","date":"18
60
+ Aug 2016","day":"Thu","high":"26","low":"16","text":"Sunny"},{"code":"32","date":"19
61
+ Aug 2016","day":"Fri","high":"23","low":"19","text":"Sunny"},{"code":"32","date":"20
62
+ Aug 2016","day":"Sat","high":"22","low":"17","text":"Sunny"},{"code":"32","date":"21
63
+ Aug 2016","day":"Sun","high":"19","low":"16","text":"Sunny"},{"code":"34","date":"22
64
+ Aug 2016","day":"Mon","high":"17","low":"15","text":"Mostly Sunny"},{"code":"30","date":"23
65
+ Aug 2016","day":"Tue","high":"18","low":"16","text":"Partly Cloudy"},{"code":"34","date":"24
66
+ Aug 2016","day":"Wed","high":"21","low":"16","text":"Mostly Sunny"},{"code":"34","date":"25
67
+ Aug 2016","day":"Thu","high":"23","low":"18","text":"Mostly Sunny"}],"description":"<![CDATA[<img
68
+ src=\"http://l.yimg.com/a/i/us/we/52/32.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR
69
+ />Sunny\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Tue - Sunny. High: 18Low:
70
+ 16\n<BR /> Wed - Sunny. High: 18Low: 15\n<BR /> Thu - Sunny. High: 26Low:
71
+ 16\n<BR /> Fri - Sunny. High: 23Low: 19\n<BR /> Sat - Sunny. High: 22Low:
72
+ 17\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-9848/\">Full
73
+ Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n(provided by <a href=\"http://www.weather.com\"
74
+ >The Weather Channel</a>)\n<BR />\n]]>","guid":{"isPermaLink":"false"}}}}}}'
120
75
  http_version:
121
- recorded_at: Fri, 08 Nov 2013 19:29:16 GMT
122
- recorded_with: VCR 2.6.0
76
+ recorded_at: Wed, 17 Aug 2016 03:25:48 GMT
77
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=9848%20and%20u='f'
5
+ uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=9848%20and%20u=%27c%27
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - '*/*'
13
+ - "*/*"
14
14
  User-Agent:
15
15
  - Ruby
16
16
  Host:
@@ -21,102 +21,53 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  X-Yql-Host:
24
- - engine6.yql.ne1.yahoo.com
24
+ - prod_gq1_1;paas.yql;queryyahooapiscomproductiongq1;aae3e7d8-5f25-11e6-acf5-f0921c12e67c
25
+ X-Content-Type-Options:
26
+ - nosniff
25
27
  Access-Control-Allow-Origin:
26
- - '*'
27
- Cache-Control:
28
- - public, max-age=3599
28
+ - "*"
29
29
  Content-Type:
30
- - application/json;charset=utf-8
31
- Vary:
32
- - Accept-Encoding
33
- Date:
34
- - Fri, 29 Mar 2013 06:50:18 GMT
35
- Server:
36
- - YTS/1.20.13
37
- Age:
38
- - '1529'
39
- Content-Length:
40
- - '880'
41
- Connection:
42
- - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"query":{"count":1,"created":"2013-03-29T06:50:19Z","lang":"en-US","results":{"channel":{"title":"Yahoo!
46
- Weather - Victoria, CA","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_f.html","description":"Yahoo!
47
- Weather for Victoria, CA","language":"en-us","lastBuildDate":"Thu, 28 Mar
48
- 2013 8:59 pm PDT","ttl":"60","location":{"city":"Victoria","country":"Canada","region":"BC"},"units":{"distance":"mi","pressure":"in","speed":"mph","temperature":"F"},"wind":{"chill":"46","direction":"230","speed":"5"},"atmosphere":{"humidity":"82","pressure":"30.11","rising":"1","visibility":""},"astronomy":{"sunrise":"6:59
49
- am","sunset":"7:36 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
50
- for Victoria, CA at 8:59 pm PDT","lat":"48.43","long":"-123.36","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_f.html","pubDate":"Thu,
51
- 28 Mar 2013 8:59 pm PDT","condition":{"code":"29","date":"Thu, 28 Mar 2013
52
- 8:59 pm PDT","temp":"48","text":"Partly Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/29.gif\"/><br
53
- />\n<b>Current Conditions:</b><br />\nPartly Cloudy, 48 F<BR />\n<BR /><b>Forecast:</b><BR
54
- />\nThu - Clear. High: 55 Low: 43<br />\nFri - AM Clouds/PM Sun. High: 55
55
- Low: 44<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_f.html\">Full
56
- Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\"
57
- >The Weather Channel</a>)<br/>\n","forecast":[{"code":"31","date":"28 Mar
58
- 2013","day":"Thu","high":"55","low":"43","text":"Clear"},{"code":"30","date":"29
59
- Mar 2013","day":"Fri","high":"55","low":"44","text":"AM Clouds/PM Sun"}],"guid":{"isPermaLink":"false","content":"CAXX0523_2013_03_29_7_00_PDT"}}}}}}'
60
- http_version:
61
- recorded_at: Fri, 29 Mar 2013 07:15:47 GMT
62
- - request:
63
- method: get
64
- uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=9848%20and%20u='c'
65
- body:
66
- encoding: US-ASCII
67
- string: ''
68
- headers:
69
- Accept-Encoding:
70
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
- Accept:
72
- - '*/*'
73
- User-Agent:
74
- - Ruby
75
- Host:
76
- - query.yahooapis.com
77
- response:
78
- status:
79
- code: 200
80
- message: OK
81
- headers:
82
- X-Yql-Host:
83
- - engine7.yql.gq1.yahoo.com
84
- Access-Control-Allow-Origin:
85
- - '*'
30
+ - application/json; charset=UTF-8
86
31
  Cache-Control:
87
- - public, max-age=199
88
- Content-Type:
89
- - application/json;charset=utf-8
32
+ - no-cache
90
33
  Date:
91
- - Fri, 08 Nov 2013 19:29:11 GMT
92
- Server:
93
- - YTS/1.20.13
34
+ - Wed, 17 Aug 2016 03:25:49 GMT
94
35
  Age:
95
- - '6'
96
- Content-Length:
97
- - '2345'
36
+ - '0'
37
+ Server:
38
+ - ATS
39
+ Transfer-Encoding:
40
+ - chunked
98
41
  Connection:
99
42
  - keep-alive
100
43
  body:
101
44
  encoding: UTF-8
102
- string: '{"query":{"count":1,"created":"2013-11-08T19:29:12Z","lang":"en-US","results":{"channel":{"title":"Yahoo!
103
- Weather - Victoria, CA","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_c.html","description":"Yahoo!
104
- Weather for Victoria, CA","language":"en-us","lastBuildDate":"Fri, 08 Nov
105
- 2013 11:00 am PST","ttl":"60","location":{"city":"Victoria","country":"Canada","region":"BC"},"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"wind":{"chill":"8","direction":"270","speed":"14.48"},"atmosphere":{"humidity":"66","pressure":"1020.2","rising":"1","visibility":""},"astronomy":{"sunrise":"7:09
106
- am","sunset":"4:43 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
107
- for Victoria, CA at 11:00 am PST","lat":"48.43","long":"-123.36","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_c.html","pubDate":"Fri,
108
- 08 Nov 2013 11:00 am PST","condition":{"code":"28","date":"Fri, 08 Nov 2013
109
- 11:00 am PST","temp":"10","text":"Mostly Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/28.gif\"/><br
110
- />\n<b>Current Conditions:</b><br />\nMostly Cloudy, 10 C<BR />\n<BR /><b>Forecast:</b><BR
111
- />\nFri - PM Showers. High: 9 Low: 6<br />\nSat - Showers. High: 8 Low: 6<br
112
- />\nSun - AM Showers. High: 8 Low: 6<br />\nMon - Cloudy. High: 9 Low: 7<br
113
- />\nTue - Rain. High: 9 Low: 7<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Victoria__CA/*http://weather.yahoo.com/forecast/CAXX0523_c.html\">Full
114
- Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\"
115
- >The Weather Channel</a>)<br/>\n","forecast":[{"code":"39","date":"8 Nov 2013","day":"Fri","high":"9","low":"6","text":"PM
116
- Showers"},{"code":"11","date":"9 Nov 2013","day":"Sat","high":"8","low":"6","text":"Showers"},{"code":"39","date":"10
117
- Nov 2013","day":"Sun","high":"8","low":"6","text":"AM Showers"},{"code":"26","date":"11
118
- Nov 2013","day":"Mon","high":"9","low":"7","text":"Cloudy"},{"code":"12","date":"12
119
- Nov 2013","day":"Tue","high":"9","low":"7","text":"Rain"}],"guid":{"isPermaLink":"false","content":"CAXX0523_2013_11_12_7_00_PST"}}}}}}'
45
+ string: '{"query":{"count":1,"created":"2016-08-17T03:25:49Z","lang":"en-US","results":{"channel":{"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"title":"Yahoo!
46
+ Weather - Victoria, BC, CA","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-9848/","description":"Yahoo!
47
+ Weather for Victoria, BC, CA","language":"en-us","lastBuildDate":"Tue, 16
48
+ Aug 2016 08:25 PM PDT","ttl":"60","location":{"city":"Victoria","country":"Canada","region":"
49
+ BC"},"wind":{"chill":"64","direction":"235","speed":"28.97"},"atmosphere":{"humidity":"72","pressure":"34337.99","rising":"0","visibility":"25.91"},"astronomy":{"sunrise":"6:10
50
+ am","sunset":"8:24 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
51
+ for Victoria, BC, CA at 07:00 PM PDT","lat":"48.42828","long":"-123.3564","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-9848/","pubDate":"Tue,
52
+ 16 Aug 2016 07:00 PM PDT","condition":{"code":"32","date":"Tue, 16 Aug 2016
53
+ 07:00 PM PDT","temp":"18","text":"Sunny"},"forecast":[{"code":"32","date":"16
54
+ Aug 2016","day":"Tue","high":"18","low":"16","text":"Sunny"},{"code":"32","date":"17
55
+ Aug 2016","day":"Wed","high":"18","low":"15","text":"Sunny"},{"code":"32","date":"18
56
+ Aug 2016","day":"Thu","high":"26","low":"16","text":"Sunny"},{"code":"32","date":"19
57
+ Aug 2016","day":"Fri","high":"23","low":"19","text":"Sunny"},{"code":"32","date":"20
58
+ Aug 2016","day":"Sat","high":"22","low":"17","text":"Sunny"},{"code":"32","date":"21
59
+ Aug 2016","day":"Sun","high":"19","low":"16","text":"Sunny"},{"code":"34","date":"22
60
+ Aug 2016","day":"Mon","high":"17","low":"15","text":"Mostly Sunny"},{"code":"30","date":"23
61
+ Aug 2016","day":"Tue","high":"18","low":"16","text":"Partly Cloudy"},{"code":"34","date":"24
62
+ Aug 2016","day":"Wed","high":"21","low":"16","text":"Mostly Sunny"},{"code":"34","date":"25
63
+ Aug 2016","day":"Thu","high":"23","low":"18","text":"Mostly Sunny"}],"description":"<![CDATA[<img
64
+ src=\"http://l.yimg.com/a/i/us/we/52/32.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR
65
+ />Sunny\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Tue - Sunny. High: 18Low:
66
+ 16\n<BR /> Wed - Sunny. High: 18Low: 15\n<BR /> Thu - Sunny. High: 26Low:
67
+ 16\n<BR /> Fri - Sunny. High: 23Low: 19\n<BR /> Sat - Sunny. High: 22Low:
68
+ 17\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-9848/\">Full
69
+ Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n(provided by <a href=\"http://www.weather.com\"
70
+ >The Weather Channel</a>)\n<BR />\n]]>","guid":{"isPermaLink":"false"}}}}}}'
120
71
  http_version:
121
- recorded_at: Fri, 08 Nov 2013 19:29:18 GMT
122
- recorded_with: VCR 2.6.0
72
+ recorded_at: Wed, 17 Aug 2016 03:25:49 GMT
73
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=614274%20and%20u='f'
5
+ uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=614274%20and%20u=%27c%27
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - '*/*'
13
+ - "*/*"
14
14
  User-Agent:
15
15
  - Ruby
16
16
  Host:
@@ -21,102 +21,57 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  X-Yql-Host:
24
- - engine10.yql.ne1.yahoo.com
24
+ - prod_gq1_1;paas.yql;queryyahooapiscomproductiongq1;aae56e8c-5f25-11e6-acf5-f0921c12e67c
25
+ X-Content-Type-Options:
26
+ - nosniff
25
27
  Access-Control-Allow-Origin:
26
- - '*'
27
- Cache-Control:
28
- - public, max-age=3599
28
+ - "*"
29
29
  Content-Type:
30
- - application/json;charset=utf-8
31
- Vary:
32
- - Accept-Encoding
33
- Date:
34
- - Fri, 29 Mar 2013 07:15:47 GMT
35
- Server:
36
- - YTS/1.20.13
37
- Age:
38
- - '2'
39
- Transfer-Encoding:
40
- - chunked
41
- Connection:
42
- - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"query":{"count":1,"created":"2013-03-29T07:15:48Z","lang":"en-US","results":{"channel":{"title":"Yahoo!
46
- Weather - Nice, FR","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Nice__FR/*http://weather.yahoo.com/forecast/FRXX0073_f.html","description":"Yahoo!
47
- Weather for Nice, FR","language":"en-us","lastBuildDate":"Fri, 29 Mar 2013
48
- 7:29 am CET","ttl":"60","location":{"city":"Nice","country":"France","region":""},"units":{"distance":"mi","pressure":"in","speed":"mph","temperature":"F"},"wind":{"chill":"47","direction":"340","speed":"8"},"atmosphere":{"humidity":"82","pressure":"29.71","rising":"0","visibility":"6.21"},"astronomy":{"sunrise":"6:18
49
- am","sunset":"6:51 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
50
- for Nice, FR at 7:29 am CET","lat":"43.7","long":"7.28","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Nice__FR/*http://weather.yahoo.com/forecast/FRXX0073_f.html","pubDate":"Fri,
51
- 29 Mar 2013 7:29 am CET","condition":{"code":"28","date":"Fri, 29 Mar 2013
52
- 7:29 am CET","temp":"50","text":"Mostly Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/28.gif\"/><br
53
- />\n<b>Current Conditions:</b><br />\nMostly Cloudy, 50 F<BR />\n<BR /><b>Forecast:</b><BR
54
- />\nFri - Cloudy/Wind. High: 64 Low: 49<br />\nSat - AM Showers. High: 57
55
- Low: 45<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Nice__FR/*http://weather.yahoo.com/forecast/FRXX0073_f.html\">Full
56
- Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\"
57
- >The Weather Channel</a>)<br/>\n","forecast":[{"code":"24","date":"29 Mar
58
- 2013","day":"Fri","high":"64","low":"49","text":"Cloudy/Wind"},{"code":"39","date":"30
59
- Mar 2013","day":"Sat","high":"57","low":"45","text":"AM Showers"}],"guid":{"isPermaLink":"false","content":"FRXX0073_2013_03_30_7_00_CET"}}}}}}'
60
- http_version:
61
- recorded_at: Fri, 29 Mar 2013 07:15:48 GMT
62
- - request:
63
- method: get
64
- uri: http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=614274%20and%20u='c'
65
- body:
66
- encoding: US-ASCII
67
- string: ''
68
- headers:
69
- Accept-Encoding:
70
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
- Accept:
72
- - '*/*'
73
- User-Agent:
74
- - Ruby
75
- Host:
76
- - query.yahooapis.com
77
- response:
78
- status:
79
- code: 200
80
- message: OK
81
- headers:
82
- X-Yql-Host:
83
- - engine3.yql.gq1.yahoo.com
84
- Access-Control-Allow-Origin:
85
- - '*'
30
+ - application/json; charset=UTF-8
86
31
  Cache-Control:
87
- - public, max-age=199
88
- Content-Type:
89
- - application/json;charset=utf-8
32
+ - no-cache
90
33
  Date:
91
- - Fri, 08 Nov 2013 19:29:18 GMT
92
- Server:
93
- - YTS/1.20.13
34
+ - Wed, 17 Aug 2016 03:25:49 GMT
94
35
  Age:
95
36
  - '0'
37
+ Server:
38
+ - ATS
39
+ Via:
40
+ - http/1.1 a12.ue.gq1.yahoo.net (ApacheTrafficServer [cMsSf ])
41
+ Y-Trace:
42
+ - BAEAQAAAAAD6HWgWLfRWkgAAAAAAAAAAIC5919ESryQAAAAAAAAAAAAFOjwFkNYRAAU6PAWQ96_yU244AAAAAA--
96
43
  Transfer-Encoding:
97
44
  - chunked
98
45
  Connection:
99
46
  - keep-alive
100
47
  body:
101
48
  encoding: UTF-8
102
- string: '{"query":{"count":1,"created":"2013-11-08T19:29:18Z","lang":"en-US","results":{"channel":{"title":"Yahoo!
103
- Weather - Nice, FR","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Nice__FR/*http://weather.yahoo.com/forecast/FRXX0073_c.html","description":"Yahoo!
104
- Weather for Nice, FR","language":"en-us","lastBuildDate":"Fri, 08 Nov 2013
105
- 7:59 pm CET","ttl":"60","location":{"city":"Nice","country":"France","region":""},"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"wind":{"chill":"17","direction":"320","speed":"8.05"},"atmosphere":{"humidity":"72","pressure":"982.05","rising":"2","visibility":"9.99"},"astronomy":{"sunrise":"7:13
106
- am","sunset":"5:13 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
107
- for Nice, FR at 7:59 pm CET","lat":"43.7","long":"7.25","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Nice__FR/*http://weather.yahoo.com/forecast/FRXX0073_c.html","pubDate":"Fri,
108
- 08 Nov 2013 7:59 pm CET","condition":{"code":"27","date":"Fri, 08 Nov 2013
109
- 7:59 pm CET","temp":"17","text":"Mostly Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/27.gif\"/><br
110
- />\n<b>Current Conditions:</b><br />\nMostly Cloudy, 17 C<BR />\n<BR /><b>Forecast:</b><BR
111
- />\nFri - Showers Early. High: 19 Low: 14<br />\nSat - Sunny/Wind. High: 20
112
- Low: 12<br />\nSun - Partly Cloudy/Wind. High: 19 Low: 9<br />\nMon - Sunny.
113
- High: 17 Low: 9<br />\nTue - Sunny. High: 19 Low: 11<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Nice__FR/*http://weather.yahoo.com/forecast/FRXX0073_c.html\">Full
114
- Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\"
115
- >The Weather Channel</a>)<br/>\n","forecast":[{"code":"45","date":"8 Nov 2013","day":"Fri","high":"19","low":"14","text":"Showers
116
- Early"},{"code":"24","date":"9 Nov 2013","day":"Sat","high":"20","low":"12","text":"Sunny/Wind"},{"code":"24","date":"10
117
- Nov 2013","day":"Sun","high":"19","low":"9","text":"Partly Cloudy/Wind"},{"code":"32","date":"11
118
- Nov 2013","day":"Mon","high":"17","low":"9","text":"Sunny"},{"code":"32","date":"12
119
- Nov 2013","day":"Tue","high":"19","low":"11","text":"Sunny"}],"guid":{"isPermaLink":"false","content":"FRXX0073_2013_11_12_7_00_CET"}}}}}}'
49
+ string: '{"query":{"count":1,"created":"2016-08-17T03:25:49Z","lang":"en-US","results":{"channel":{"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"title":"Yahoo!
50
+ Weather - Nice, Provence-Alpes-Cote d''Azur, FR","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-614274/","description":"Yahoo!
51
+ Weather for Nice, Provence-Alpes-Cote d''Azur, FR","language":"en-us","lastBuildDate":"Wed,
52
+ 17 Aug 2016 05:25 AM CEST","ttl":"60","location":{"city":"Nice","country":"France","region":"
53
+ Provence-Alpes-Cote d''Azur"},"wind":{"chill":"70","direction":"35","speed":"17.70"},"atmosphere":{"humidity":"75","pressure":"33626.85","rising":"0","visibility":"25.91"},"astronomy":{"sunrise":"6:39
54
+ am","sunset":"8:29 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions
55
+ for Nice, Provence-Alpes-Cote d''Azur, FR at 04:00 AM CEST","lat":"43.704441","long":"7.25217","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-614274/","pubDate":"Wed,
56
+ 17 Aug 2016 04:00 AM CEST","condition":{"code":"31","date":"Wed, 17 Aug 2016
57
+ 04:00 AM CEST","temp":"20","text":"Clear"},"forecast":[{"code":"4","date":"17
58
+ Aug 2016","day":"Wed","high":"26","low":"20","text":"Thunderstorms"},{"code":"47","date":"18
59
+ Aug 2016","day":"Thu","high":"26","low":"20","text":"Scattered Thunderstorms"},{"code":"30","date":"19
60
+ Aug 2016","day":"Fri","high":"26","low":"20","text":"Partly Cloudy"},{"code":"30","date":"20
61
+ Aug 2016","day":"Sat","high":"27","low":"22","text":"Partly Cloudy"},{"code":"34","date":"21
62
+ Aug 2016","day":"Sun","high":"27","low":"20","text":"Mostly Sunny"},{"code":"32","date":"22
63
+ Aug 2016","day":"Mon","high":"27","low":"20","text":"Sunny"},{"code":"32","date":"23
64
+ Aug 2016","day":"Tue","high":"28","low":"21","text":"Sunny"},{"code":"32","date":"24
65
+ Aug 2016","day":"Wed","high":"28","low":"20","text":"Sunny"},{"code":"32","date":"25
66
+ Aug 2016","day":"Thu","high":"29","low":"20","text":"Sunny"},{"code":"32","date":"26
67
+ Aug 2016","day":"Fri","high":"29","low":"21","text":"Sunny"}],"description":"<![CDATA[<img
68
+ src=\"http://l.yimg.com/a/i/us/we/52/31.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR
69
+ />Clear\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Wed - Thunderstorms. High:
70
+ 26Low: 20\n<BR /> Thu - Scattered Thunderstorms. High: 26Low: 20\n<BR /> Fri
71
+ - Partly Cloudy. High: 26Low: 20\n<BR /> Sat - Partly Cloudy. High: 27Low:
72
+ 22\n<BR /> Sun - Mostly Sunny. High: 27Low: 20\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-614274/\">Full
73
+ Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n(provided by <a href=\"http://www.weather.com\"
74
+ >The Weather Channel</a>)\n<BR />\n]]>","guid":{"isPermaLink":"false"}}}}}}'
120
75
  http_version:
121
- recorded_at: Fri, 08 Nov 2013 19:29:19 GMT
122
- recorded_with: VCR 2.6.0
76
+ recorded_at: Wed, 17 Aug 2016 03:25:49 GMT
77
+ recorded_with: VCR 3.0.3