lib/frameit/runner.rb in frameit-2.6.1 vs lib/frameit/runner.rb in frameit-2.6.2

- old
+ new

@@ -12,10 +12,15 @@ # First run converter.run end end - def run(path, color = Color::BLACK) + def run(path, color = nil) + unless color + color = Frameit::Color::BLACK + color = Frameit::Color::SILVER if Frameit.config[:white] || Frameit.config[:silver] + end + screenshots = Dir.glob("#{path}/**/*.{png,PNG}").uniq # uniq because thanks to {png,PNG} there are duplicates if screenshots.count > 0 screenshots.each do |full_path| next if full_path.include? "_framed.png"