lib/evideo.rb in evideo-0.1.3 vs lib/evideo.rb in evideo-0.1.4

- old
+ new

@@ -20,18 +20,19 @@ desc: 'Pasta destino' # Processa videos def conv dar = options[:d] Dir.glob("#{dar.first}/#{options[:i]}/*.???").sort.each do |f| - HRVideo.new(f).processa(dar, dar.first, options[:o]) + HRVideo.new(f).processa(dar, options[:o], dar.first) end end desc 'test', 'testa videos' # Analisa videos def test - Dir.glob("#{options[:d].first}/#{options[:i]}/*.???").sort.each do |f| - p HRVideo.new(f).testa + dar = options[:d] + Dir.glob("#{dar.first}/#{options[:i]}/*.???").sort.each do |f| + HRVideo.new(f).testa(dar, options[:o]) end end default_task :conv end end