Skip to content

Commit

Permalink
Fix comments and ruby < 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wjordan committed Oct 8, 2014
1 parent 02d2bee commit 93c3820
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/image_optim/worker/jpegrecompress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class ImageOptim
class Worker
# http://www.kokkonen.net/tjko/projects.html
# https://github.com/danielgtaylor/jpeg-archive#jpeg-recompress
class Jpegrecompress < Worker
QUALITY_OPTION =
option(:quality, 4, 'JPEG quality preset: '\
Expand All @@ -15,13 +15,13 @@ class Jpegrecompress < Worker
OptionHelpers.limit_with_range(v.to_i, 0..4)
end

QUALITY_OPTIONS = %i(low medium high veryhigh lossless)
QUALITY_OPTIONS = [:low, :medium, :high, :veryhigh, :lossless]

def used_bins
QUALITY_OPTIONS[quality] == :lossless ? [] : [:'jpeg-recompress']
end

# Run first [-1] if max_quality < 100 otherwise with normal priority
# Run first [-1]
def run_order
-1
end
Expand Down

0 comments on commit 93c3820

Please sign in to comment.