yahoo_weather 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb7f3ed0f6d36bd6de06d1b65c1f81010fbb22b8
4
- data.tar.gz: ee771acace7a575324c9130cbfd92b38ac4913ff
3
+ metadata.gz: 21f33d31b5402a8844fa701e0f2b0079baeceb84
4
+ data.tar.gz: 2c5002c638c342d9dfb3b676c3d45679a49faf4e
5
5
  SHA512:
6
- metadata.gz: 3c0040b2a1e34ad92ec56f6901d6140c42bc575bc91788e33e7d5c71329176b1961fed055225aa6126a0aadea374d91bd5674f5572a365e39ed0775152b16aab
7
- data.tar.gz: 62f99922def35adf04b07fa8585c8ea7ec6732295f38eb4043ec16afb20790ddab7b5d1be32b72f640e9349a2fc53e7143055a719d2607877bfacd572b6aa48f
6
+ metadata.gz: 7300e7478a281ddcd8526a50b694746d51ed8ad2a6ccbe49528867985e3b7857cbffe7cb01fca139424cd0c3651a6180a96e0b5ade9d968c1e7126e44bb742d7
7
+ data.tar.gz: 933637281f0dc76727b6f42d99dbba38e7c84af770c27748443a5aee894f2e301cece0f82736cb117eb8054bf67ff043d6b1afca8461f4b6eb1fb181f569e2e7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yahoo_weather (1.0.5)
4
+ yahoo_weather (1.0.6)
5
5
  nokogiri
6
6
  rails (>= 3.1.0)
7
7
 
@@ -45,7 +45,7 @@ GEM
45
45
  mime-types (1.25)
46
46
  mini_portile (0.5.1)
47
47
  minitest (4.7.5)
48
- multi_json (1.7.9)
48
+ multi_json (1.8.0)
49
49
  nokogiri (1.6.0)
50
50
  mini_portile (~> 0.5.0)
51
51
  polyglot (0.3.3)
@@ -8,6 +8,16 @@ class YahooWeather::Client
8
8
  YahooWeather::Response.new(doc)
9
9
  end
10
10
 
11
+ def fetch_by_location(location, units = YahooWeather::Units::FAHRENHEIT)
12
+ url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20geo.placefinder%20where%20text%3D%22#{::CGI.escape(location)}%22%20and%20gflags%3D%22R%22"
13
+ xml = fetch_xml(url)
14
+ doc = Nokogiri::XML(xml)
15
+ woeid = doc.at('woeid').children.text
16
+ fetch(woeid, units)
17
+ rescue
18
+ nil
19
+ end
20
+
11
21
  private
12
22
  def get_url
13
23
  "http://weather.yahooapis.com/forecastrss?w=#{@woeid}&u=#{@units}"
@@ -18,11 +28,11 @@ private
18
28
  read_cache
19
29
  end
20
30
 
21
- def fetch_xml
31
+ def fetch_xml(url = get_url)
22
32
  begin
23
- response = open(get_url)
33
+ response = open(url)
24
34
  rescue OpenURI::HTTPError => e
25
- raise RuntimeError.new("Failed to get weather. Got a bad status code #{e.message}")
35
+ raise RuntimeError.new("Failed to get xml. Got a bad status code #{e.message}")
26
36
  end
27
37
 
28
38
  response.read
@@ -1,3 +1,3 @@
1
1
  module YahooWeather
2
- VERSION = '1.0.5'.freeze
2
+ VERSION = '1.0.6'.freeze
3
3
  end
@@ -216,5 +216,115 @@ YahooWeatherTest: test_Units
216
216
   (0.1ms) begin transaction
217
217
  ---------------------------
218
218
  YahooWeatherTest: test_Wind
219
+ ---------------------------
220
+  (0.1ms) rollback transaction
221
+  (0.3ms) begin transaction
222
+ --------------------------------
223
+ YahooWeatherTest: test_Astronomy
224
+ --------------------------------
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ ---------------------------------
228
+ YahooWeatherTest: test_Atmosphere
229
+ ---------------------------------
230
+  (0.1ms) rollback transaction
231
+  (0.0ms) begin transaction
232
+ --------------------------------
233
+ YahooWeatherTest: test_Condition
234
+ --------------------------------
235
+  (0.1ms) rollback transaction
236
+  (0.1ms) begin transaction
237
+ -------------------------------------
238
+ YahooWeatherTest: test_Fetch_by_WOEID
239
+ -------------------------------------
240
+  (0.1ms) rollback transaction
241
+  (0.1ms) begin transaction
242
+ --------------------------------------------------
243
+ YahooWeatherTest: test_Fetch_with_the_bad_response
244
+ --------------------------------------------------
245
+  (0.2ms) rollback transaction
246
+  (0.1ms) begin transaction
247
+ --------------------------------
248
+ YahooWeatherTest: test_Forecasts
249
+ --------------------------------
250
+  (0.1ms) rollback transaction
251
+  (0.1ms) begin transaction
252
+ ------------------------------
253
+ YahooWeatherTest: test_General
254
+ ------------------------------
255
+  (0.1ms) rollback transaction
256
+  (0.1ms) begin transaction
257
+ -------------------------------
258
+ YahooWeatherTest: test_Location
259
+ -------------------------------
260
+  (0.1ms) rollback transaction
261
+  (0.0ms) begin transaction
262
+ ---------------------------------------
263
+ YahooWeatherTest: test_Success_response
264
+ ---------------------------------------
265
+  (0.1ms) rollback transaction
266
+  (0.0ms) begin transaction
267
+ ----------------------------
268
+ YahooWeatherTest: test_Units
269
+ ----------------------------
270
+  (0.1ms) rollback transaction
271
+  (0.1ms) begin transaction
272
+ ---------------------------
273
+ YahooWeatherTest: test_Wind
274
+ ---------------------------
275
+  (0.1ms) rollback transaction
276
+  (0.3ms) begin transaction
277
+ --------------------------------
278
+ YahooWeatherTest: test_Astronomy
279
+ --------------------------------
280
+  (0.1ms) rollback transaction
281
+  (0.1ms) begin transaction
282
+ ---------------------------------
283
+ YahooWeatherTest: test_Atmosphere
284
+ ---------------------------------
285
+  (0.1ms) rollback transaction
286
+  (0.1ms) begin transaction
287
+ --------------------------------
288
+ YahooWeatherTest: test_Condition
289
+ --------------------------------
290
+  (0.1ms) rollback transaction
291
+  (0.1ms) begin transaction
292
+ -------------------------------------
293
+ YahooWeatherTest: test_Fetch_by_WOEID
294
+ -------------------------------------
295
+  (0.0ms) rollback transaction
296
+  (0.1ms) begin transaction
297
+ --------------------------------------------------
298
+ YahooWeatherTest: test_Fetch_with_the_bad_response
299
+ --------------------------------------------------
300
+  (0.1ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+ --------------------------------
303
+ YahooWeatherTest: test_Forecasts
304
+ --------------------------------
305
+  (0.1ms) rollback transaction
306
+  (0.1ms) begin transaction
307
+ ------------------------------
308
+ YahooWeatherTest: test_General
309
+ ------------------------------
310
+  (0.1ms) rollback transaction
311
+  (0.1ms) begin transaction
312
+ -------------------------------
313
+ YahooWeatherTest: test_Location
314
+ -------------------------------
315
+  (0.1ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+ ---------------------------------------
318
+ YahooWeatherTest: test_Success_response
319
+ ---------------------------------------
320
+  (0.0ms) rollback transaction
321
+  (0.1ms) begin transaction
322
+ ----------------------------
323
+ YahooWeatherTest: test_Units
324
+ ----------------------------
325
+  (0.0ms) rollback transaction
326
+  (0.1ms) begin transaction
327
+ ---------------------------
328
+ YahooWeatherTest: test_Wind
219
329
  ---------------------------
220
330
   (0.1ms) rollback transaction
@@ -0,0 +1,56 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"�
2
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
3
+ <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
4
+ <channel>
5
+
6
+ <title>Yahoo! Weather - Moscow, ID</title>
7
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Moscow__ID/*http://weather.yahoo.com/forecast/USID0170_f.html</link>
8
+ <description>Yahoo! Weather for Moscow, ID</description>
9
+ <language>en-us</language>
10
+ <lastBuildDate>Fri, 13 Sep 2013 9:53 pm PDT</lastBuildDate>
11
+ <ttl>60</ttl>
12
+ <yweather:location city="Moscow" region="ID" country="United States"/>
13
+ <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
14
+ <yweather:wind chill="64" direction="0" speed="0" />
15
+ <yweather:atmosphere humidity="52" visibility="9" pressure="29.84" rising="0" />
16
+ <yweather:astronomy sunrise="6:22 am" sunset="7:04 pm"/>
17
+ <image>
18
+ <title>Yahoo! Weather</title>
19
+ <width>142</width>
20
+ <height>18</height>
21
+ <link>http://weather.yahoo.com</link>
22
+ <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
23
+ </image>
24
+ <item>
25
+ <title>Conditions for Moscow, ID at 9:53 pm PDT</title>
26
+ <geo:lat>46.7</geo:lat>
27
+ <geo:long>-116.92</geo:long>
28
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Moscow__ID/*http://weather.yahoo.com/forecast/USID0170_f.html</link>
29
+ <pubDate>Fri, 13 Sep 2013 9:53 pm PDT</pubDate>
30
+ <yweather:condition text="Fair" code="33" temp="64" date="Fri, 13 Sep 2013 9:53 pm PDT" />
31
+ <description><![CDATA[
32
+ <img src="http://l.yimg.com/a/i/us/we/52/33.gif"/><br />
33
+ <b>Current Conditions:</b><br />
34
+ Fair, 64 F<BR />
35
+ <BR /><b>Forecast:</b><BR />
36
+ Fri - Mostly Clear. High: 88 Low: 58<br />
37
+ Sat - Mostly Sunny. High: 91 Low: 59<br />
38
+ Sun - Isolated Thunderstorms. High: 90 Low: 57<br />
39
+ Mon - AM Showers. High: 74 Low: 50<br />
40
+ Tue - Isolated Thunderstorms. High: 67 Low: 46<br />
41
+ <br />
42
+ <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Moscow__ID/*http://weather.yahoo.com/forecast/USID0170_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
43
+ (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
44
+ ]]></description>
45
+ <yweather:forecast day="Fri" date="13 Sep 2013" low="58" high="88" text="Mostly Clear" code="33" />
46
+ <yweather:forecast day="Sat" date="14 Sep 2013" low="59" high="91" text="Mostly Sunny" code="34" />
47
+ <yweather:forecast day="Sun" date="15 Sep 2013" low="57" high="90" text="Isolated Thunderstorms" code="37" />
48
+ <yweather:forecast day="Mon" date="16 Sep 2013" low="50" high="74" text="AM Showers" code="39" />
49
+ <yweather:forecast day="Tue" date="17 Sep 2013" low="46" high="67" text="Isolated Thunderstorms" code="37" />
50
+ <guid isPermaLink="false">USID0170_2013_09_17_7_00_PDT</guid>
51
+ </item>
52
+ </channel>
53
+ </rss>
54
+
55
+ <!-- api8.weather.gq1.yahoo.com Sat Sep 14 05:45:40 PST 2013 -->
56
+ :ET:@created_atf1379137646.7612648:@expires_inf6e1
@@ -0,0 +1,56 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"�
2
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
3
+ <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
4
+ <channel>
5
+
6
+ <title>Yahoo! Weather - New Orleans, LA</title>
7
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/New_Orleans__LA/*http://weather.yahoo.com/forecast/USLA0340_f.html</link>
8
+ <description>Yahoo! Weather for New Orleans, LA</description>
9
+ <language>en-us</language>
10
+ <lastBuildDate>Sat, 14 Sep 2013 12:24 am CDT</lastBuildDate>
11
+ <ttl>60</ttl>
12
+ <yweather:location city="New Orleans" region="LA" country="United States"/>
13
+ <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
14
+ <yweather:wind chill="81" direction="360" speed="12" />
15
+ <yweather:atmosphere humidity="79" visibility="9" pressure="29.89" rising="0" />
16
+ <yweather:astronomy sunrise="6:42 am" sunset="7:06 pm"/>
17
+ <image>
18
+ <title>Yahoo! Weather</title>
19
+ <width>142</width>
20
+ <height>18</height>
21
+ <link>http://weather.yahoo.com</link>
22
+ <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
23
+ </image>
24
+ <item>
25
+ <title>Conditions for New Orleans, LA at 12:24 am CDT</title>
26
+ <geo:lat>30.01</geo:lat>
27
+ <geo:long>-89.99</geo:long>
28
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/New_Orleans__LA/*http://weather.yahoo.com/forecast/USLA0340_f.html</link>
29
+ <pubDate>Sat, 14 Sep 2013 12:24 am CDT</pubDate>
30
+ <yweather:condition text="Partly Cloudy" code="29" temp="81" date="Sat, 14 Sep 2013 12:24 am CDT" />
31
+ <description><![CDATA[
32
+ <img src="http://l.yimg.com/a/i/us/we/52/29.gif"/><br />
33
+ <b>Current Conditions:</b><br />
34
+ Partly Cloudy, 81 F<BR />
35
+ <BR /><b>Forecast:</b><BR />
36
+ Fri - Partly Cloudy. High: 92 Low: 78<br />
37
+ Sat - Partly Cloudy. High: 89 Low: 80<br />
38
+ Sun - Mostly Sunny. High: 91 Low: 80<br />
39
+ Mon - Partly Cloudy. High: 89 Low: 81<br />
40
+ Tue - Partly Cloudy. High: 89 Low: 80<br />
41
+ <br />
42
+ <a href="http://us.rd.yahoo.com/dailynews/rss/weather/New_Orleans__LA/*http://weather.yahoo.com/forecast/USLA0340_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
43
+ (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
44
+ ]]></description>
45
+ <yweather:forecast day="Fri" date="13 Sep 2013" low="78" high="92" text="Partly Cloudy" code="29" />
46
+ <yweather:forecast day="Sat" date="14 Sep 2013" low="80" high="89" text="Partly Cloudy" code="30" />
47
+ <yweather:forecast day="Sun" date="15 Sep 2013" low="80" high="91" text="Mostly Sunny" code="34" />
48
+ <yweather:forecast day="Mon" date="16 Sep 2013" low="81" high="89" text="Partly Cloudy" code="30" />
49
+ <yweather:forecast day="Tue" date="17 Sep 2013" low="80" high="89" text="Partly Cloudy" code="30" />
50
+ <guid isPermaLink="false">USLA0340_2013_09_17_7_00_CDT</guid>
51
+ </item>
52
+ </channel>
53
+ </rss>
54
+
55
+ <!-- api23.weather.gq1.yahoo.com Sat Sep 14 05:43:53 PST 2013 -->
56
+ :ET:@created_atf1379137437.346328:@expires_inf6e1
@@ -0,0 +1,56 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"�
2
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
3
+ <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
4
+ <channel>
5
+
6
+ <title>Yahoo! Weather - Kazan, TR</title>
7
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Kazan__TR/*http://weather.yahoo.com/forecast/TUXX0003_f.html</link>
8
+ <description>Yahoo! Weather for Kazan, TR</description>
9
+ <language>en-us</language>
10
+ <lastBuildDate>Sat, 14 Sep 2013 7:48 am EEST</lastBuildDate>
11
+ <ttl>60</ttl>
12
+ <yweather:location city="Kazan" region="" country="Turkey"/>
13
+ <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
14
+ <yweather:wind chill="59" direction="0" speed="1" />
15
+ <yweather:atmosphere humidity="48" visibility="6.21" pressure="29.97" rising="0" />
16
+ <yweather:astronomy sunrise="6:27 am" sunset="6:58 pm"/>
17
+ <image>
18
+ <title>Yahoo! Weather</title>
19
+ <width>142</width>
20
+ <height>18</height>
21
+ <link>http://weather.yahoo.com</link>
22
+ <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
23
+ </image>
24
+ <item>
25
+ <title>Conditions for Kazan, TR at 7:48 am EEST</title>
26
+ <geo:lat>40.15</geo:lat>
27
+ <geo:long>32.65</geo:long>
28
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Kazan__TR/*http://weather.yahoo.com/forecast/TUXX0003_f.html</link>
29
+ <pubDate>Sat, 14 Sep 2013 7:48 am EEST</pubDate>
30
+ <yweather:condition text="Fair" code="34" temp="59" date="Sat, 14 Sep 2013 7:48 am EEST" />
31
+ <description><![CDATA[
32
+ <img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br />
33
+ <b>Current Conditions:</b><br />
34
+ Fair, 59 F<BR />
35
+ <BR /><b>Forecast:</b><BR />
36
+ Sat - Sunny/Wind. High: 83 Low: 49<br />
37
+ Sun - Sunny. High: 75 Low: 47<br />
38
+ Mon - Partly Cloudy. High: 80 Low: 56<br />
39
+ Tue - Mostly Cloudy. High: 76 Low: 55<br />
40
+ Wed - Sunny. High: 80 Low: 56<br />
41
+ <br />
42
+ <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Kazan__TR/*http://weather.yahoo.com/forecast/TUXX0003_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
43
+ (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
44
+ ]]></description>
45
+ <yweather:forecast day="Sat" date="14 Sep 2013" low="49" high="83" text="Sunny/Wind" code="24" />
46
+ <yweather:forecast day="Sun" date="15 Sep 2013" low="47" high="75" text="Sunny" code="32" />
47
+ <yweather:forecast day="Mon" date="16 Sep 2013" low="56" high="80" text="Partly Cloudy" code="30" />
48
+ <yweather:forecast day="Tue" date="17 Sep 2013" low="55" high="76" text="Mostly Cloudy" code="28" />
49
+ <yweather:forecast day="Wed" date="18 Sep 2013" low="56" high="80" text="Sunny" code="32" />
50
+ <guid isPermaLink="false">TUXX0003_2013_09_18_7_00_EEST</guid>
51
+ </item>
52
+ </channel>
53
+ </rss>
54
+
55
+ <!-- api16.weather.gq1.yahoo.com Sat Sep 14 05:43:33 PST 2013 -->
56
+ :ET:@created_atf1379137417.98425:@expires_inf6e1
@@ -1,4 +1,4 @@
1
- o: ActiveSupport::Cache::Entry: @valueI"�
1
+ o: ActiveSupport::Cache::Entry: @valueI"�
2
2
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
3
3
  <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
4
4
  <channel>
@@ -7,13 +7,13 @@
7
7
  <link>http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html</link>
8
8
  <description>Yahoo! Weather for San Francisco, CA</description>
9
9
  <language>en-us</language>
10
- <lastBuildDate>Sat, 07 Sep 2013 9:52 am PDT</lastBuildDate>
10
+ <lastBuildDate>Fri, 13 Sep 2013 9:53 pm PDT</lastBuildDate>
11
11
  <ttl>60</ttl>
12
12
  <yweather:location city="San Francisco" region="CA" country="United States"/>
13
13
  <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
14
- <yweather:wind chill="76" direction="280" speed="6" />
15
- <yweather:atmosphere humidity="50" visibility="10" pressure="29.88" rising="1" />
16
- <yweather:astronomy sunrise="6:42 am" sunset="7:28 pm"/>
14
+ <yweather:wind chill="59" direction="270" speed="14" />
15
+ <yweather:atmosphere humidity="100" visibility="10" pressure="29.82" rising="0" />
16
+ <yweather:astronomy sunrise="6:48 am" sunset="7:19 pm"/>
17
17
  <image>
18
18
  <title>Yahoo! Weather</title>
19
19
  <width>142</width>
@@ -22,35 +22,35 @@
22
22
  <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
23
23
  </image>
24
24
  <item>
25
- <title>Conditions for San Francisco, CA at 9:52 am PDT</title>
25
+ <title>Conditions for San Francisco, CA at 9:53 pm PDT</title>
26
26
  <geo:lat>37.78</geo:lat>
27
27
  <geo:long>-122.46</geo:long>
28
28
  <link>http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html</link>
29
- <pubDate>Sat, 07 Sep 2013 9:52 am PDT</pubDate>
30
- <yweather:condition text="Fair" code="34" temp="76" date="Sat, 07 Sep 2013 9:52 am PDT" />
29
+ <pubDate>Fri, 13 Sep 2013 9:53 pm PDT</pubDate>
30
+ <yweather:condition text="Cloudy" code="26" temp="59" date="Fri, 13 Sep 2013 9:53 pm PDT" />
31
31
  <description><![CDATA[
32
- <img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br />
32
+ <img src="http://l.yimg.com/a/i/us/we/52/26.gif"/><br />
33
33
  <b>Current Conditions:</b><br />
34
- Fair, 76 F<BR />
34
+ Cloudy, 59 F<BR />
35
35
  <BR /><b>Forecast:</b><BR />
36
- Sat - Sunny. High: 83 Low: 62<br />
37
- Sun - Sunny. High: 79 Low: 63<br />
38
- Mon - Sunny. High: 79 Low: 62<br />
39
- Tue - Partly Cloudy. High: 72 Low: 62<br />
40
- Wed - Sunny. High: 69 Low: 62<br />
36
+ Fri - Mostly Cloudy. High: 65 Low: 57<br />
37
+ Sat - AM Clouds/PM Sun. High: 66 Low: 58<br />
38
+ Sun - AM Clouds/PM Sun. High: 66 Low: 59<br />
39
+ Mon - Partly Cloudy. High: 69 Low: 58<br />
40
+ Tue - Sunny. High: 70 Low: 57<br />
41
41
  <br />
42
42
  <a href="http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
43
43
  (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
44
44
  ]]></description>
45
- <yweather:forecast day="Sat" date="7 Sep 2013" low="62" high="83" text="Sunny" code="32" />
46
- <yweather:forecast day="Sun" date="8 Sep 2013" low="63" high="79" text="Sunny" code="32" />
47
- <yweather:forecast day="Mon" date="9 Sep 2013" low="62" high="79" text="Sunny" code="32" />
48
- <yweather:forecast day="Tue" date="10 Sep 2013" low="62" high="72" text="Partly Cloudy" code="30" />
49
- <yweather:forecast day="Wed" date="11 Sep 2013" low="62" high="69" text="Sunny" code="32" />
50
- <guid isPermaLink="false">USCA0987_2013_09_11_7_00_PDT</guid>
45
+ <yweather:forecast day="Fri" date="13 Sep 2013" low="57" high="65" text="Mostly Cloudy" code="27" />
46
+ <yweather:forecast day="Sat" date="14 Sep 2013" low="58" high="66" text="AM Clouds/PM Sun" code="30" />
47
+ <yweather:forecast day="Sun" date="15 Sep 2013" low="59" high="66" text="AM Clouds/PM Sun" code="30" />
48
+ <yweather:forecast day="Mon" date="16 Sep 2013" low="58" high="69" text="Partly Cloudy" code="30" />
49
+ <yweather:forecast day="Tue" date="17 Sep 2013" low="57" high="70" text="Sunny" code="32" />
50
+ <guid isPermaLink="false">USCA0987_2013_09_17_7_00_PDT</guid>
51
51
  </item>
52
52
  </channel>
53
53
  </rss>
54
54
 
55
- <!-- api5.weather.sg3.yahoo.com Sat Sep 7 17:51:42 PST 2013 -->
56
- :ET:@created_atf1378576310.242527:@expires_inf6e1
55
+ <!-- api26.weather.gq1.yahoo.com Sat Sep 14 05:48:21 PST 2013 -->
56
+ :ET:@created_atf1379137770.996958:@expires_inf6e1
@@ -25,7 +25,7 @@ class YahooWeatherTest < ActiveSupport::TestCase
25
25
  :status => ["404", "Not Found"]
26
26
  )
27
27
  problem = assert_raise(RuntimeError) {client.fetch(woeid_sf)}
28
- assert_equal "Failed to get weather. Got a bad status code 404 Not Found", problem.message
28
+ assert_equal "Failed to get xml. Got a bad status code 404 Not Found", problem.message
29
29
  FakeWeb.clean_registry
30
30
  end
31
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yahoo_weather
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ildar Manzhikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-07 00:00:00.000000000 Z
11
+ date: 2013-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -138,6 +138,9 @@ files:
138
138
  - test/yahoo_weather_test.rb
139
139
  - yahoo_weather.gemspec
140
140
  - test/dummy/log/test.log
141
+ - test/dummy/tmp/cache/82F/B30/yahoo_weather_12794004_f
142
+ - test/dummy/tmp/cache/839/E20/yahoo_weather_12788173_f
143
+ - test/dummy/tmp/cache/839/F10/yahoo_weather_29391445_f
141
144
  - test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
142
145
  homepage: http://github.com/manzhikov/yahoo_weather
143
146
  licenses:
@@ -159,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
162
  version: '0'
160
163
  requirements: []
161
164
  rubyforge_project:
162
- rubygems_version: 2.0.3
165
+ rubygems_version: 2.1.3
163
166
  signing_key:
164
167
  specification_version: 4
165
168
  summary: YahooWeather fetcher
@@ -198,6 +201,9 @@ test_files:
198
201
  - test/dummy/public/favicon.ico
199
202
  - test/dummy/Rakefile
200
203
  - test/dummy/README.rdoc
204
+ - test/dummy/tmp/cache/82F/B30/yahoo_weather_12794004_f
205
+ - test/dummy/tmp/cache/839/E20/yahoo_weather_12788173_f
206
+ - test/dummy/tmp/cache/839/F10/yahoo_weather_29391445_f
201
207
  - test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
202
208
  - test/test_helper.rb
203
209
  - test/yahoo_weather_test.rb