Changeset 216
- Timestamp:
- 09/23/2007 18:40:20 (14 months ago)
- Location:
- trunk/lib
- Files:
-
- 2 modified
-
camping-unabridged.rb (modified) (1 diff)
-
camping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/camping-unabridged.rb
r215 r216 92 92 # 93 93 C = self 94 S = IO.read( __FILE__).sub(/^ S = I.+$/,'')94 S = IO.read(f) unless f =~ /\(/ 95 95 P="Cam\ping Problem!" 96 96 -
trunk/lib/camping.rb
r215 r216 1 1 %w[active_support markaby tempfile uri].map{|l|require l} 2 module Camping;C=self; S=IO.read(__FILE__).sub(/S=I.+$/,'')2 module Camping;C=self;f=__FILE__;S=IO.read(f)unless f=~/\(/ 3 3 P="Cam\ping Problem!";module Helpers;def R(c,*g);p,h=/\(.+?\)/,g.grep(Hash) 4 4 (g-=h).inject(c.urls.find{|x|x.scan(p).size==g.size}.dup){|s,a|s.sub p,C.
