script/worker_analysis in image_optim-0.26.3 vs script/worker_analysis in image_optim-0.26.4

- old
+ new

@@ -1,7 +1,8 @@ #!/usr/bin/env ruby # encoding: UTF-8 +# frozen_string_literal: true require 'bundler/setup' require 'image_optim' require 'image_optim/cmd' @@ -10,11 +11,11 @@ require 'gdbm' require 'digest' require 'erb' require 'ostruct' -DIR = 'tmp'.freeze +DIR = 'tmp' Pathname(DIR).mkpath Array.class_eval do # For an array of arrays with possible values yields arrays with all # combinations of values @@ -457,10 +458,10 @@ @time = steps.sum(&:time) @avg_time = time / steps.length end def unused? - success_count.zero? + success_count == 0 end end attr_reader :name, :results, :ids2names def initialize(name, results, ids2names)