diff --git a/lib/yahoo_weatherman.rb b/lib/yahoo_weatherman.rb index 9e7158e..8006be0 100644 --- a/lib/yahoo_weatherman.rb +++ b/lib/yahoo_weatherman.rb @@ -15,7 +15,7 @@ module Weatherman VERSION = '2.0.1' - URI = 'http://xml.yahooapis.com/forecastrss' + URI = 'http://xml.weather.yahoo.com/forecastrss' # = Client # diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5c2c867..f63839f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -17,11 +17,11 @@ def fahrenheight_fixture end FakeWeb.allow_net_connect = false -FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=455821&u=c", :body => celsius_fixture) -FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=455821&u=f", :body => fahrenheight_fixture) -FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=123456&u=f", :body => celsius_fixture) -FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=4729347&u=c", :body => celsius_fixture) -FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=12786745&u=c", :body => celsius_fixture) +FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=455821&u=c", :body => celsius_fixture) +FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=455821&u=f", :body => fahrenheight_fixture) +FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=123456&u=f", :body => celsius_fixture) +FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=4729347&u=c", :body => celsius_fixture) +FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=12786745&u=c", :body => celsius_fixture) module YAML class << self