Changeset 220
- Timestamp:
- 09/24/2007 04:39:16 (14 months ago)
- Files:
-
- 1 modified
-
trunk/lib/camping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/camping.rb
r218 r220 1 1 %w[active_support markaby tempfile uri].map{|l|require l};module Camping;C=self 2 f=__FILE__;S=IO.read(f)unless f=~/\(/;P="Cam\ping Problem!";H= 3 H ashWithIndifferentAccess;class H;def method_missing m,*a;m.to_s=~/=$/?self[$`2 S=IO.read(f)rescue nil;P="Cam\ping Problem!";H=HashWithIndifferentAccess;class 3 H;def method_missing m,*a;m.to_s=~/=$/?self[$` 4 4 ]=a[0]:a==[]?self[m]:super end;alias u regular_update;end;module Helpers 5 5 def R c,*g;p,h=/\(.+?\)/,g.grep(Hash);(g-=h).inject(c.urls.find{|x|x.scan(p).
