## 30_change_mechanize_modulepath.dpatch by Taku YASUI <tach@debian.org>
## DP: No description.

diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/legacy_plugins/Download/nicovideo.rb trunk/legacy_plugins/Download/nicovideo.rb
--- trunk~/legacy_plugins/Download/nicovideo.rb	2009-06-23 21:39:50.000000000 +0900
+++ trunk/legacy_plugins/Download/nicovideo.rb	2011-09-11 18:14:08.688832190 +0900
@@ -13,7 +13,7 @@
 
 def nicovideo(config,data)
   auth = YAML.load( File.read( config['authfile'] ) )
-  agent = WWW::Mechanize.new
+  agent = Mechanize.new
   
   page = agent.post("https://secure.nicovideo.jp/secure/login?site=niconico",
       {"mail"=>auth["mail"],"password"=>auth["password"]})
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/legacy_plugins/Filter/Translations/yahoo.rb trunk/legacy_plugins/Filter/Translations/yahoo.rb
--- trunk~/legacy_plugins/Filter/Translations/yahoo.rb	2009-06-23 21:39:50.000000000 +0900
+++ trunk/legacy_plugins/Filter/Translations/yahoo.rb	2011-09-11 18:14:08.688832190 +0900
@@ -23,7 +23,7 @@
   
   data.collect {|d|
     if d && d =~ /\S/
-      agent = WWW::Mechanize.new
+      agent = Mechanize.new
       start = agent.get("http://honyaku.yahoo.co.jp/")
       form = start.forms.last
       
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/legacy_plugins/Publish/delicious.rb trunk/legacy_plugins/Publish/delicious.rb
--- trunk~/legacy_plugins/Publish/delicious.rb	2009-06-23 21:39:50.000000000 +0900
+++ trunk/legacy_plugins/Publish/delicious.rb	2011-09-11 18:14:08.688832190 +0900
@@ -16,7 +16,7 @@
   def initialize username, password, proxy=nil
     @username = username
     @password = password
-    @agent    = WWW::Mechanize.new
+    @agent    = Mechanize.new
     @agent.basic_auth(@username, @password)
     if proxy && proxy.is_a?(Hash) && proxy['proxy_addr'] && proxy['proxy_port']
       @agent.set_proxy(proxy['proxy_addr'], proxy['proxy_port'],
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/legacy_plugins/Publish/hatena_diary_writer.rb trunk/legacy_plugins/Publish/hatena_diary_writer.rb
--- trunk~/legacy_plugins/Publish/hatena_diary_writer.rb	2009-06-23 21:39:50.000000000 +0900
+++ trunk/legacy_plugins/Publish/hatena_diary_writer.rb	2011-09-11 18:14:08.688832190 +0900
@@ -13,7 +13,7 @@
   def initialize(id,password)
     @id = id
     @password = password
-    @agent = WWW::Mechanize.new
+    @agent = Mechanize.new
     if proxy = ENV['HTTP_PROXY']
       proxy = URI.parse(proxy)
       @agent.set_proxy(proxy.host, proxy.port)
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/legacy_plugins/Publish/mixi_diary_writer.rb trunk/legacy_plugins/Publish/mixi_diary_writer.rb
--- trunk~/legacy_plugins/Publish/mixi_diary_writer.rb	2009-06-23 21:39:50.000000000 +0900
+++ trunk/legacy_plugins/Publish/mixi_diary_writer.rb	2011-09-11 18:14:08.688832190 +0900
@@ -31,7 +31,7 @@
     @id = nil
     @username = username
     @password = password
-    @agent = WWW::Mechanize.new
+    @agent = Mechanize.new
   end
 
   def login username=@username, password=@password
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/legacy_plugins/Publish/scuttle.rb trunk/legacy_plugins/Publish/scuttle.rb
--- trunk~/legacy_plugins/Publish/scuttle.rb	2009-06-23 21:39:50.000000000 +0900
+++ trunk/legacy_plugins/Publish/scuttle.rb	2011-09-11 18:14:08.688832190 +0900
@@ -19,7 +19,7 @@
     @post_url = url + 'api/posts/add?'
     @username = username
     @password = password
-    @agent    = WWW::Mechanize.new
+    @agent    = Mechanize.new
     @agent.basic_auth(@username, @password)
     if proxy && proxy.is_a?(Hash) && proxy['proxy_addr'] && proxy['proxy_port']
       @agent.set_proxy(proxy['proxy_addr'], proxy['proxy_port'],
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' trunk~/lib/yapra/plugin/mechanize_base.rb trunk/lib/yapra/plugin/mechanize_base.rb
--- trunk~/lib/yapra/plugin/mechanize_base.rb	2009-06-23 21:39:50.000000000 +0900
+++ trunk/lib/yapra/plugin/mechanize_base.rb	2011-09-11 18:14:08.692832251 +0900
@@ -4,7 +4,7 @@
 
 class Yapra::Plugin::MechanizeBase < Yapra::Plugin::Base
   def agent
-    pipeline.context['mechanize_agent'] ||= WWW::Mechanize.new
+    pipeline.context['mechanize_agent'] ||= Mechanize.new
     pipeline.context['mechanize_agent']
   end
   
