~ubuntu-branches/ubuntu/vivid/yapra/vivid

« back to all changes in this revision

Viewing changes to debian/patches/30_change_mechanize_modulepath.dpatch

  • Committer: Package Import Robot
  • Author(s): Taku YASUI
  • Date: 2012-03-26 00:33:47 UTC
  • Revision ID: package-import@ubuntu.com-20120326003347-hnepw83oytxvc9em
Tags: 0.1.2-6
* Use quilt instead of dpatch
* Bump Standards-Version to 3.9.3
* Moved repository to svn.debian.org
  - svn://svn.debian.org/svn/collab-maint/deb-maint/yapra

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 30_change_mechanize_modulepath.dpatch by Taku YASUI <tach@debian.org>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: No description.
6
 
 
7
 
@DPATCH@
8
 
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
9
 
--- trunk~/legacy_plugins/Download/nicovideo.rb 2009-06-23 21:39:50.000000000 +0900
10
 
+++ trunk/legacy_plugins/Download/nicovideo.rb  2011-09-11 18:14:08.688832190 +0900
11
 
@@ -13,7 +13,7 @@
12
 
 
13
 
 def nicovideo(config,data)
14
 
   auth = YAML.load( File.read( config['authfile'] ) )
15
 
-  agent = WWW::Mechanize.new
16
 
+  agent = Mechanize.new
17
 
   
18
 
   page = agent.post("https://secure.nicovideo.jp/secure/login?site=niconico",
19
 
       {"mail"=>auth["mail"],"password"=>auth["password"]})
20
 
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
21
 
--- trunk~/legacy_plugins/Filter/Translations/yahoo.rb  2009-06-23 21:39:50.000000000 +0900
22
 
+++ trunk/legacy_plugins/Filter/Translations/yahoo.rb   2011-09-11 18:14:08.688832190 +0900
23
 
@@ -23,7 +23,7 @@
24
 
   
25
 
   data.collect {|d|
26
 
     if d && d =~ /\S/
27
 
-      agent = WWW::Mechanize.new
28
 
+      agent = Mechanize.new
29
 
       start = agent.get("http://honyaku.yahoo.co.jp/")
30
 
       form = start.forms.last
31
 
       
32
 
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
33
 
--- trunk~/legacy_plugins/Publish/delicious.rb  2009-06-23 21:39:50.000000000 +0900
34
 
+++ trunk/legacy_plugins/Publish/delicious.rb   2011-09-11 18:14:08.688832190 +0900
35
 
@@ -16,7 +16,7 @@
36
 
   def initialize username, password, proxy=nil
37
 
     @username = username
38
 
     @password = password
39
 
-    @agent    = WWW::Mechanize.new
40
 
+    @agent    = Mechanize.new
41
 
     @agent.basic_auth(@username, @password)
42
 
     if proxy && proxy.is_a?(Hash) && proxy['proxy_addr'] && proxy['proxy_port']
43
 
       @agent.set_proxy(proxy['proxy_addr'], proxy['proxy_port'],
44
 
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
45
 
--- trunk~/legacy_plugins/Publish/hatena_diary_writer.rb        2009-06-23 21:39:50.000000000 +0900
46
 
+++ trunk/legacy_plugins/Publish/hatena_diary_writer.rb 2011-09-11 18:14:08.688832190 +0900
47
 
@@ -13,7 +13,7 @@
48
 
   def initialize(id,password)
49
 
     @id = id
50
 
     @password = password
51
 
-    @agent = WWW::Mechanize.new
52
 
+    @agent = Mechanize.new
53
 
     if proxy = ENV['HTTP_PROXY']
54
 
       proxy = URI.parse(proxy)
55
 
       @agent.set_proxy(proxy.host, proxy.port)
56
 
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
57
 
--- trunk~/legacy_plugins/Publish/mixi_diary_writer.rb  2009-06-23 21:39:50.000000000 +0900
58
 
+++ trunk/legacy_plugins/Publish/mixi_diary_writer.rb   2011-09-11 18:14:08.688832190 +0900
59
 
@@ -31,7 +31,7 @@
60
 
     @id = nil
61
 
     @username = username
62
 
     @password = password
63
 
-    @agent = WWW::Mechanize.new
64
 
+    @agent = Mechanize.new
65
 
   end
66
 
 
67
 
   def login username=@username, password=@password
68
 
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
69
 
--- trunk~/legacy_plugins/Publish/scuttle.rb    2009-06-23 21:39:50.000000000 +0900
70
 
+++ trunk/legacy_plugins/Publish/scuttle.rb     2011-09-11 18:14:08.688832190 +0900
71
 
@@ -19,7 +19,7 @@
72
 
     @post_url = url + 'api/posts/add?'
73
 
     @username = username
74
 
     @password = password
75
 
-    @agent    = WWW::Mechanize.new
76
 
+    @agent    = Mechanize.new
77
 
     @agent.basic_auth(@username, @password)
78
 
     if proxy && proxy.is_a?(Hash) && proxy['proxy_addr'] && proxy['proxy_port']
79
 
       @agent.set_proxy(proxy['proxy_addr'], proxy['proxy_port'],
80
 
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
81
 
--- trunk~/lib/yapra/plugin/mechanize_base.rb   2009-06-23 21:39:50.000000000 +0900
82
 
+++ trunk/lib/yapra/plugin/mechanize_base.rb    2011-09-11 18:14:08.692832251 +0900
83
 
@@ -4,7 +4,7 @@
84
 
 
85
 
 class Yapra::Plugin::MechanizeBase < Yapra::Plugin::Base
86
 
   def agent
87
 
-    pipeline.context['mechanize_agent'] ||= WWW::Mechanize.new
88
 
+    pipeline.context['mechanize_agent'] ||= Mechanize.new
89
 
     pipeline.context['mechanize_agent']
90
 
   end
91