Index: graph.rb
===================================================================
--- graph.rb (revision 4)
+++ graph.rb (working copy)
@@ -48,7 +48,15 @@
req = ::Net::HTTP::Post.new(url.path, headers)
req.form_data = params
req.basic_auth url.user, url.password if url.user
- ::Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
+
+ proxy_host, proxy_port = (ENV['HTTP_PROXY'] || '').split(/:/)
+ ::Net::HTTP::Proxy(proxy_host, proxy_port.to_i).start(url.host, url.port) {|http|
+ http.request(req)
+ }
end
def wsse(username, password)
なかなかダイエットにとりかかれません。
昨日の続き。ダイエットはいまだ始まらず。 はてなグラフのAPIで値が取得できないと、メール更新プログラムのロジックはこうなってしまう: メールを受信して、追加する値[A]を取り出す ローカルに保存してあった以前の値[B]を取り出す [A]と[B]を足し合わせた値で、グラフ..