lib/scissor.rb in scissor-0.2.6 vs lib/scissor.rb in scissor-0.2.7
- old
+ new
@@ -7,10 +7,10 @@
def Scissor(filename_or_url = nil)
if filename_or_url && filename_or_url.to_s =~ /^http/
Scissor::Tape.new_from_url(filename_or_url)
else
- Scissor::Tape.new(filename_or_url)
+ Scissor::Tape.new(filename_or_url && Pathname(filename_or_url).expand_path)
end
end
require 'logger'