-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-2 octets: "if" keyword don't need spacing after special chars.
Good night folks :)
- Loading branch information
Jonas Pfenniger
committed
Sep 23, 2007
1 parent
e54f097
commit 1b674e6
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ module Camping;C=self;f=__FILE__;S=IO.read(f)unless f=~/\(/ | |
p end;def errors_for o;ul.errors{o.errors.each_full{|x|li x}}if o.errors.any?end | ||
end;module Base;attr_accessor:input,:cookies,:env,:headers,:body, | ||
:status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new({},self) | ||
s=m.capture{send(*a,&b)};s=m.capture{send(:layout){s}} if /^_/!~a[0].to_s and m. | ||
s=m.capture{send(*a,&b)};s=m.capture{send(:layout){s}}if /^_/!~a[0].to_s and m. | ||
respond_to?:layout;s end;def r s,b,h={};@status=s;@headers.merge!h;@body=b end | ||
def redirect*a;r 302,'','Location'=>URL(*a)end;Z="\r\n";def to_a;[@status,@body, | ||
@headers]end;def initialize r,e,m;e=H[e.to_hash];@status,@method,@env,@headers, | ||
|
@@ -21,7 +21,7 @@ def redirect*a;r 302,'','Location'=>URL(*a)end;Z="\r\n";def to_a;[@status,@body, | |
fh[:filename];o=fh[:tempfile]=Tempfile.new(:C);o.binmode;else;fh=""end;s=8192;k= | ||
'';l=@in.read(s*2);while l;if(k<<l)=~b;o<<$`.chomp;@in.seek(-$'.size, | ||
IO::SEEK_CUR);break;end;o<<k.slice!(0...s);[email protected](s) | ||
end;C.qsp(fn,'&;',fh,q) if fn;fh[:tempfile].rewind if fh.is_a?H;end;elsif@method== | ||
end;C.qsp(fn,'&;',fh,q)if fn;fh[:tempfile].rewind if fh.is_a?H;end;elsif@method== | ||
"post" and e.CONTENT_TYPE == "application/x-www-form-urlencoded" | ||
q.u C.qsp(@in.read)end;@cookies,@[email protected],q.dup end;def service*a | ||
@body=send(@method,*a)if respond_to?@method;@headers["Set-Cookie"][email protected]{ | ||
|