diff --git a/http-access2.rb.diff b/http-access2.rb.diff deleted file mode 100644 index fae2c25..0000000 --- a/http-access2.rb.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- http-access2.rb.orig 2005-10-05 21:55:04.000000000 +0200 -+++ http-access2.rb 2005-10-05 22:49:05.000000000 +0200 -@@ -1464,6 +1464,14 @@ - timeout(@receive_timeout) do - begin - initial_line = socket.gets("\n") -+ if initial_line == "0\r\n" -+ # Regetting initial_line -+ initial_line = socket.gets("\n") -+ if initial_line == "\r\n" -+ # Regetting initial_line, again -+ initial_line = socket.gets("\n") -+ end -+ end - if initial_line.nil? - raise KeepAliveDisconnected.new - end -@@ -1586,3 +1594,5 @@ - - - HTTPClient = HTTPAccess2::Client -+ -+# vim:tabstop=8 - diff --git a/http-access2.rb.get_status-breakage-workaround.diff b/http-access2.rb.get_status-breakage-workaround.diff deleted file mode 100644 index 7bf4a7f..0000000 --- a/http-access2.rb.get_status-breakage-workaround.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- http-access2.rb.orig 2005-10-05 21:55:04.000000000 +0200 -+++ http-access2.rb 2005-10-25 23:56:23.000000000 +0200 -@@ -439,7 +439,7 @@ - block.call(str) if block - content << str - end -- @session_manager.keep(sess) unless sess.closed? -+ #FIXME @session_manager.keep(sess) unless sess.closed? - end - - def do_get_stream(req, proxy, conn) -@@ -1249,7 +1249,7 @@ - version = status = reason = nil - begin - if @state != :META -- raise RuntimeError.new("get_status must be called at the beginning of a session.") -+ raise RuntimeError.new("get_status must be called at the beginning of a session. @state = #{@state}") - end - version, status, reason = read_header() - rescue diff --git a/mediawikibotchecker.rb b/mediawikibotchecker.rb deleted file mode 100644 index f010d85..0000000 --- a/mediawikibotchecker.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'mediawikibot' - -class WikiChecker < MediaWikiBot::WikiBot - def category_checker (page, category) - body = "== #{page} ==\n\n" - body += "[[Category:FIXME]]\n\n" - body += "Unter [[#{page}]] fehlen folgende Artikel aus [[:#{category}]]:\n\n" - - count = 0 - page_html = @client.get_content(url_page(page)) - get_category_articles(category).each do |title| - re = Regexp.new(Regexp.escape("title=\"" + CGI.escapeHTML(title))) - if ! re.match(page_html) && title != page - body += "* [[" + title + "]]\n" - count += 1 - end - end - - body += "\n#{count} Artikel.\n" - return body - end -end -