jagthedrummer-yahoo-weather 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/yahoo-weather.rb +7 -6
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -255,11 +255,11 @@ module YahooWeather
255
255
  @page_url = item['link']
256
256
  @title = item['title']
257
257
  @description = item['description']
258
-
259
- #puts "description .class = #{@description.to_yaml}"
260
-
261
- #match_data = @@REGEXP_IMAGE.match(description)
262
- @image_url = root['image']['url']#(match_data) ? match_data[1] : nil
258
+
259
+ match_data = @@REGEXP_IMAGE.match(description)
260
+ @image_url = (match_data) ? match_data[1] : nil
261
+
262
+
263
263
  end
264
264
  end
265
265
 
@@ -292,9 +292,10 @@ module YahooWeather
292
292
  rescue
293
293
  raise "failed to get weather via '#{url}': " + $!
294
294
  end
295
-
295
+
296
296
  # create the response object
297
297
  response = XmlSimple.xml_in(response)
298
+
298
299
  YahooWeather::Response.new(location, url, response)
299
300
  end
300
301
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jagthedrummer-yahoo-weather
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walter Korman