lib/stars/favstar.rb in stars-0.2.1 vs lib/stars/favstar.rb in stars-0.3.0

- old
+ new

@@ -1,10 +1,12 @@ require 'nokogiri' module Stars class Favstar include HTTParty base_uri 'favstar.fm' + proxy_url = URI.parse(ENV['http_proxy']) if ENV['http_proxy'] + http_proxy proxy_url.host,proxy_url.port if proxy_url def recent(username) self.class.get("/users/#{username}/rss", :format => :xml)['rss']['channel']['item'] end @@ -15,6 +17,6 @@ Nokogiri::HTML(html).css('.avatarList img').collect do |img| " ★ #{img.attributes['alt'].value}" end end end -end \ No newline at end of file +end