neingeist
/
neinomaten
Archived
1
0
Fork 0

wird nicht gebraucht

master
neingeist 19 years ago
parent 7427cd78ba
commit c2550ea9a9

@ -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

@ -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

@ -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