bin/httpthumbnailer in httpthumbnailer-1.1.2 vs bin/httpthumbnailer in httpthumbnailer-1.2.0

- old
+ new

@@ -28,29 +28,32 @@ puts "Input formats:" puts "\t#{Plugin::Thumbnailer::Service.input_formats.join(' ')}" puts puts "Output formats:" puts "\t#{Plugin::Thumbnailer::Service.output_formats.join(' ')}" + puts + puts "Supported Interlace:" + puts "\t#{Magick::InterlaceType.values.map(&:to_s).join(' ')}" exit 0 end - Controler.settings[:optimization] = (not settings.no_optimization) - Controler.settings[:limit_memory] = settings.limit_memory * 1024**2 - Controler.settings[:limit_map] = settings.limit_disk * 1024**2 - Controler.settings[:limit_disk] = settings.limit_disk * 1024**2 + Controller.settings[:optimization] = (not settings.no_optimization) + Controller.settings[:limit_memory] = settings.limit_memory * 1024**2 + Controller.settings[:limit_map] = settings.limit_disk * 1024**2 + Controller.settings[:limit_disk] = settings.limit_disk * 1024**2 end main do |settings| require 'httpthumbnailer/error_reporter' require 'httpthumbnailer/thumbnailer' - class HTTPThumbniler < Controler + class HTTPThumbniler < Controller extend Stats def_stats( :workers, - :total_requests, - :total_errors + :total_requests, + :total_errors ) raindrops_stats = Raindrops::Middleware::Stats.new self.use Raindrops::Middleware, stats: raindrops_stats @@ -63,10 +66,10 @@ HTTPThumbniler.stats.incr_total_requests on error? do HTTPThumbniler.stats.incr_total_errors run ErrorReporter end - + on 'stats' do run StatsReporter end on 'health_check' do