lib/snapshot/runner.rb in snapshot-0.4.1 vs lib/snapshot/runner.rb in snapshot-0.4.2

- old
+ new

@@ -78,11 +78,11 @@ when :retry retry_run = true when :screenshot Helper.log.info "Successfully took screenshot 📱" when :need_permission - raise "Looks like you may need to grant permission for Instruments to analyze other processes.\nPlease run this command: \"#{command}\"" + raise "Looks like you may need to grant permission for Instruments to analyze other processes.\nPlease Ctrc + C and run this command: \"#{command}\"" end rescue Exception => ex Helper.log.error lines.join('') Helper.log.error ex.to_s.red errors << ex.to_s @@ -128,9 +128,11 @@ FileUtils.mkdir_p resulting_path unless SnapshotConfig.shared_instance.skip_alpha_removal ScreenshotFlatten.new.run(TRACE_DIR) end + + ScreenshotRotate.new.run(TRACE_DIR) Dir.glob("#{TRACE_DIR}/**/*.png") do |file| FileUtils.cp_r(file, resulting_path + '/') end return Dir.glob("#{TRACE_DIR}/**/*.png").count \ No newline at end of file