lib/kuzushi.rb in kuzushi-0.0.33 vs lib/kuzushi.rb in kuzushi-0.0.34
- old
+ new
@@ -301,15 +301,14 @@
end
### this needs to be brought up to date - way last version - no need to read and filter...
def fetch(file, filter = lambda { |d| d }, &block)
begin
- block.call("/tmp/kuzushi/#{@name}/#{file}")
- tmpfile(filter.call(File.read("/tmp/kuzushi/#{name}/#{file}")), file) do |tmp|
+ tmpfile(filter.call(File.read("/tmp/kuzushi/#{@name}/#{file}")), file) do |tmp|
block.call(tmp)
end
rescue Object => e
- error("error fetching file: #{names.first}/#{file} : #{e.message}")
+ error("error fetching file: #{file} : #{e.message}")
end
end
def error(message)
puts "ERROR :#{message}"