Changeset 221

Show
Ignore:
Timestamp:
09/24/2007 12:35:03 (14 months ago)
Author:
zimbatm
Message:

I am tired today. Fixed camping.rb and added some doc to camping-unabridged.rb.

Location:
trunk/lib
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/camping-unabridged.rb

    r219 r221  
    549549    class NotFound < R() 
    550550      def get(p) 
    551         r(404, Mab.new{h1(P);h2 p + " not found"}) 
     551        r(404, Mab.new{h1 P;h2 p + " not found"}) 
    552552      end 
    553553    end 
     
    631631    #   input = Camping.qsp("post[id]=1&post[user]=_why") 
    632632    #     #=> {'post' => {'id' => '1', 'user' => '_why'}} 
     633    # 
     634    # And finally, Array syntax like: 
     635    # 
     636    #   input = Camping.qsp("user[]=_why&user[]=lucky&user[]=stiff") 
     637    #     #=> {"user" => ["_why", "lucky", "stiff"]} 
    633638    # 
    634639    def qsp(q, d='&;', y=nil, z=H[]) 
  • trunk/lib/camping.rb

    r220 r221  
    11%w[active_support markaby tempfile uri].map{|l|require l};module Camping;C=self 
    2 S=IO.read(f)rescue nil;P="Cam\ping Problem!";H=HashWithIndifferentAccess;class 
     2S=IO.read(__FILE__)rescue nil;P="Cam\ping Problem!";H=HashWithIndifferentAccess;class 
    33H;def method_missing m,*a;m.to_s=~/=$/?self[$` 
    44]=a[0]:a==[]?self[m]:super end;alias u regular_update;end;module Helpers