Patches to IOWA 0.15

Just difference between plain 0.15 and my copy after few changes I
made with help from ruby-talk list.

diff -ru iowa-0.15/iowa.cgi iowa-0.15-radek/iowa.cgi
— iowa-0.15/iowa.cgi Tue Apr 3 02:50:44 2001
+++ iowa-0.15-radek/iowa.cgi Fri Nov 1 17:29:53 2002
@@ -31,7 +31,7 @@
params = $stdin.read
end

-url =~ “.?/iowa/([^/])”
+url =~ %r{.?/iowa/([^/])}
socket_name = “#{$tempDir}iowa_#{$1}”

socket = UNIXSocket.new(socket_name)

diff -ru iowa-0.15/src/Application.rb iowa-0.15-radek/src/Application.rb
— iowa-0.15/src/Application.rb Tue Apr 3 02:50:47 2001
+++ iowa-0.15-radek/src/Application.rb Thu Oct 31 11:09:06 2002
@@ -88,7 +88,7 @@
data = file.read

	begin
  •   	codefile = File.new(file.path.sub(".html", ".iwa"))
    
  •   	codefile = File.new(file.path.sub(/\.html$/, ".iwa"))
    

puts "reloading " + codefile.path

		codedata = codefile.read
	rescue Exception

diff -ru iowa-0.15/src/Context.rb iowa-0.15-radek/src/Context.rb
— iowa-0.15/src/Context.rb Mon Mar 26 13:10:02 2001
+++ iowa-0.15-radek/src/Context.rb Fri Nov 1 17:30:20 2002
@@ -8,7 +8,7 @@
attr_accessor :session

def initialize(url, params, out)
  •   url =~ "(.*?/iowa/[^/]*)(/.*)?"
    
  •       url =~ %r{(.*?/iowa/[^/]*)(/.*)?}
      @urlRoot = $1
      remainder = $2? $2 : ""
    
···


Radek Hnilica
when I’m mobile, use Radek.Hnilica@atlas.cz

No matter how far down the wrong road you’ve gone, turn back.
Turkish proverb

Radek Hnilica said:

Just difference between plain 0.15 and my copy after few changes I made
with help from ruby-talk list.

Thank you for these.

Kirk Haines