Changeset 216

Show
Ignore:
Timestamp:
09/23/2007 18:40:20 (14 months ago)
Author:
zimbatm
Message:

Loosing one octet so that we can have the same code on unabridged

Location:
trunk/lib
Files:
2 modified

Legend:

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

    r215 r216  
    9292  #  
    9393  C = self 
    94   S = IO.read(__FILE__).sub(/^  S = I.+$/,'') 
     94  S = IO.read(f) unless f =~ /\(/ 
    9595  P="Cam\ping Problem!" 
    9696 
  • trunk/lib/camping.rb

    r215 r216  
    11%w[active_support markaby tempfile uri].map{|l|require l} 
    2 module Camping;C=self;S=IO.read(__FILE__).sub(/S=I.+$/,'') 
     2module Camping;C=self;f=__FILE__;S=IO.read(f)unless f=~/\(/ 
    33P="Cam\ping Problem!";module Helpers;def R(c,*g);p,h=/\(.+?\)/,g.grep(Hash) 
    44(g-=h).inject(c.urls.find{|x|x.scan(p).size==g.size}.dup){|s,a|s.sub p,C.