Skip to content

Commit

Permalink
Merge pull request #2 from AdWerx/update-for-ruby-3.2
Browse files Browse the repository at this point in the history
Update for Ruby 3.2
  • Loading branch information
cfaloon authored Dec 17, 2024
2 parents bc3dd98 + 69d3d18 commit 4d86549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/color_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_color_palette(file, num_colors = 2)
num_colors = num_colors.to_i

palette = []
return [] unless File.exists?(file)
return [] unless File.exist?(file)

image = Magick::Image.read(file).first
image.quantize(num_colors).color_histogram.each do |c, n|
Expand Down
2 changes: 1 addition & 1 deletion lib/color_util/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class ColorUtil
VERSION = "0.0.3"
VERSION = "0.0.4"
end

0 comments on commit 4d86549

Please sign in to comment.