Changeset 116

Show
Ignore:
Timestamp:
06/30/2006 17:40:41 (2 years ago)
Author:
why
Message:
  • lib/camping.rb: an unnecessary line break and an excessive one. cool that Array#* does an automatic flatten.
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/Rakefile

    r105 r116  
    77 
    88NAME = "camping" 
    9 VERS = "1.5" 
     9VERS = "1.4.115" 
    1010CLEAN.include ['**/.*.sw?', '*.gem', '.config'] 
    1111RDOC_OPTS = ['--quiet', '--title', "Camping, the Documentation", 
     
    6060 
    6161        s.add_dependency('activerecord', '>=1.14.2') 
    62         s.add_dependency('markaby', '>=0.5') 
     62        s.add_dependency('markaby', '>0.4') 
    6363        s.add_dependency('metaid') 
    6464        s.required_ruby_version = '>= 1.8.2' 
  • trunk/lib/camping-unabridged.rb

    r115 r116  
    431431    # alter the way Camping builds HTTP headers, consider overriding this method. 
    432432    def to_s 
    433       "Status: #{@status}\n#{@headers.map{|k,v|[*v].map{|x|"#{k}: #{x}"}*"\n"}*"\n"}\n\n#{@body}" 
     433      "Status: #{@status}\n#{@headers.map{|k,v|[*v].map{|x|"#{k}: #{x}"}}*"\n"}\n#{@body}" 
    434434    end 
    435435 
  • trunk/lib/camping.rb

    r115 r116  
    2424@headers["Set-Cookie"]=@cookies.map{|k,v|"#{k}=#{C.escape(v)}; path=#{self/"/"}\ 
    2525" if v != @k[k]}.compact;self end;def to_s;"Status: #{@status}\n#{@headers.map{ 
    26 |k,v|[*v].map{|x|"#{k}: #{x}"}*"\n"}*"\n"}\n\n#{@body}" end;def markaby;Mab.new( 
     26|k,v|[*v].map{|x|"#{k}: #{x}"}}*"\n"}\n#{@body}" end;def markaby;Mab.new( 
    2727instance_variables.map{|iv|[iv[1..-1],instance_variable_get(iv)]}) end;def  
    2828markaview m,*a,&b;h=markaby;h.send m,*a,&b;h.to_s end end;class R;include Base