bin/whereto in where_to-1.0.4 vs bin/whereto in where_to-1.0.5
- old
+ new
@@ -89,11 +89,11 @@
files.sort.each do |file|
puts ''
puts "For file #{file}:"
- locator.episode_number += 1
+ locator.episode_number = locator.episode_number.to_i = 1
locator.episode_extension = @options[:extname]
%i{season episode_number group}.each do |field|
locator.send("#{field}=", prompt_for(field, default: locator.send(field)))
end
@@ -146,9 +146,10 @@
on_error do |exception|
# Error logic here
# return false to skip default error handling
if @options && @options[:debug]
+ puts exception.message
puts exception.backtrace
false
else
true
end