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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2016-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.5.1
33
+ version: 6.6.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 6.5.1
40
+ version: 6.6.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,56 +58,56 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.14.1
61
+ version: 3.5.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.14.1
68
+ version: 3.5.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.13.0
75
+ version: 2.1.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.13.0
82
+ version: 2.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 10.1.0
89
+ version: 11.2.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 10.1.0
96
+ version: 11.2.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: vcr
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.6.0
103
+ version: 3.0.3
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.6.0
110
+ version: 3.0.3
111
111
  description: A wrapper for the Yahoo! Weather XML RSS feed
112
112
  email:
113
113
  - andrew@stwrt.com
@@ -161,10 +161,8 @@ files:
161
161
  - spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml
162
162
  - spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml
163
163
  - spec/fixtures/cassettes/Weather_Response/should_return_a_RuntimeError_for_an_invalid_WOEID.yml
164
- - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml
165
164
  - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_metric_units.yml
166
165
  - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_imperial_if_specified.yml
167
- - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml
168
166
  - spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml
169
167
  - spec/lib/astronomy_spec.rb
170
168
  - spec/lib/atmosphere_spec.rb
@@ -199,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
197
  version: '0'
200
198
  requirements: []
201
199
  rubyforge_project:
202
- rubygems_version: 2.4.5
200
+ rubygems_version: 2.4.5.1
203
201
  signing_key:
204
202
  specification_version: 4
205
203
  summary: Weather-API provides an object-oriented interface to the Yahoo! Weather XML
@@ -233,10 +231,8 @@ test_files:
233
231
  - spec/fixtures/cassettes/Weather_Response/should_contain_latitude_and_longitude_in_floats.yml
234
232
  - spec/fixtures/cassettes/Weather_Response/should_contain_the_WOEID_of_the_request_location_and_the_requested_URL.yml
235
233
  - spec/fixtures/cassettes/Weather_Response/should_return_a_RuntimeError_for_an_invalid_WOEID.yml
236
- - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_imperial_units.yml
237
234
  - spec/fixtures/cassettes/Weather_Units/defaults/should_default_to_metric_units.yml
238
235
  - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_imperial_if_specified.yml
239
- - spec/fixtures/cassettes/Weather_Units/defaults/should_switch_to_metric_if_specified.yml
240
236
  - spec/fixtures/cassettes/Weather_Wind/should_contain_chill_direction_and_speed_as_integers.yml
241
237
  - spec/lib/astronomy_spec.rb
242
238
  - spec/lib/atmosphere_spec.rb
@@ -1,122 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
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'
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - Ruby
16
- Host:
17
- - query.yahooapis.com
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- X-Yql-Host:
24
- - engine6.yql.ne1.yahoo.com
25
- Access-Control-Allow-Origin:
26
- - '*'
27
- Cache-Control:
28
- - public, max-age=3599
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
- - '1532'
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:50 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
- - '*'
86
- Cache-Control:
87
- - public, max-age=200
88
- Content-Type:
89
- - application/json;charset=utf-8
90
- Date:
91
- - Fri, 08 Nov 2013 19:29:15 GMT
92
- Server:
93
- - YTS/1.20.13
94
- Age:
95
- - '10'
96
- Content-Length:
97
- - '2345'
98
- Connection:
99
- - keep-alive
100
- body:
101
- encoding: UTF-8
102
- string: '{"query":{"count":1,"created":"2013-11-08T19:29:15Z","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"}}}}}}'
120
- http_version:
121
- recorded_at: Fri, 08 Nov 2013 19:29:25 GMT
122
- recorded_with: VCR 2.6.0
@@ -1,123 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
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='c'
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - Ruby
16
- Host:
17
- - query.yahooapis.com
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- X-Yql-Host:
24
- - engine5.yql.ne1.yahoo.com
25
- Access-Control-Allow-Origin:
26
- - '*'
27
- Cache-Control:
28
- - public, max-age=3600
29
- Content-Type:
30
- - application/json;charset=utf-8
31
- Vary:
32
- - Accept-Encoding
33
- Date:
34
- - Fri, 29 Mar 2013 07:08:11 GMT
35
- Server:
36
- - YTS/1.20.13
37
- Age:
38
- - '459'
39
- Content-Length:
40
- - '881'
41
- Connection:
42
- - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"query":{"count":1,"created":"2013-03-29T07:08:12Z","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_c.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":"km","pressure":"mb","speed":"km/h","temperature":"C"},"wind":{"chill":"8","direction":"230","speed":"8.05"},"atmosphere":{"humidity":"82","pressure":"1015.92","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_c.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":"9","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, 9 C<BR />\n<BR /><b>Forecast:</b><BR
54
- />\nThu - Clear. High: 13 Low: 6<br />\nFri - AM Clouds/PM Sun. High: 13 Low:
55
- 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
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":"13","low":"6","text":"Clear"},{"code":"30","date":"29
59
- Mar 2013","day":"Fri","high":"13","low":"7","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:50 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='f'
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
- - engine8.yql.gq1.yahoo.com
84
- Access-Control-Allow-Origin:
85
- - '*'
86
- Cache-Control:
87
- - public, max-age=200
88
- Content-Type:
89
- - application/json;charset=utf-8
90
- Date:
91
- - Sun, 29 Sep 2013 06:34:32 GMT
92
- Server:
93
- - YTS/1.20.13
94
- Age:
95
- - '0'
96
- Transfer-Encoding:
97
- - chunked
98
- Connection:
99
- - keep-alive
100
- body:
101
- encoding: UTF-8
102
- string: '{"query":{"count":1,"created":"2013-09-29T06:34:32Z","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_f.html","description":"Yahoo!
104
- Weather for Victoria, CA","language":"en-us","lastBuildDate":"Sat, 28 Sep
105
- 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":"54","direction":"210","speed":"6"},"atmosphere":{"humidity":"77","pressure":"29.39","rising":"1","visibility":""},"astronomy":{"sunrise":"7:07
106
- am","sunset":"6:58 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 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":"Sat,
108
- 28 Sep 2013 8:59 pm PDT","condition":{"code":"27","date":"Sat, 28 Sep 2013
109
- 8:59 pm PDT","temp":"54","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, 54 F<BR />\n<BR /><b>Forecast:</b><BR
111
- />\nSat - Rain/Wind. High: 55 Low: 51<br />\nSun - Rain/Wind. High: 54 Low:
112
- 50<br />\nMon - Rain/Wind. High: 54 Low: 48<br />\nTue - Showers. High: 53
113
- Low: 47<br />\nWed - Partly Cloudy. High: 53 Low: 45<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
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":"12","date":"28 Sep
116
- 2013","day":"Sat","high":"55","low":"51","text":"Rain/Wind"},{"code":"12","date":"29
117
- Sep 2013","day":"Sun","high":"54","low":"50","text":"Rain/Wind"},{"code":"12","date":"30
118
- Sep 2013","day":"Mon","high":"54","low":"48","text":"Rain/Wind"},{"code":"11","date":"1
119
- Oct 2013","day":"Tue","high":"53","low":"47","text":"Showers"},{"code":"30","date":"2
120
- Oct 2013","day":"Wed","high":"53","low":"45","text":"Partly Cloudy"}],"guid":{"isPermaLink":"false","content":"CAXX0523_2013_10_02_7_00_PDT"}}}}}}'
121
- http_version:
122
- recorded_at: Sun, 29 Sep 2013 06:34:33 GMT
123
- recorded_with: VCR 2.6.0