Skip to content

Commit a093ca2

Browse files
committed
#3 - Updated to a newer version of rmagick
1 parent c26c63e commit a093ca2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
source 'https://rubygems.org'
2+
gemspec
23

3-
# Specify your gem's dependencies in binding_of_isaac.gemspec
4-
gemspec

ascii-image.gemspec

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Gem::Specification.new do |s|
22
s.name = "ascii-image"
3-
s.version = "0.1.3"
3+
s.version = "0.1.4"
4+
s.license = "GPL-3.0-or-later"
45
s.summary = "Convert images into ASCII"
56
s.description = "A Ruby gem to convert images into ASCII for your awesome command-line applications"
67
s.authors = ["Nathan Campos"]
7-
s.email = "nathanpc@dreamintech.net"
8+
s.email = "nathan@innoveworkshop.com"
89
s.files = ["lib/ascii-image.rb"]
910
s.homepage = "https://github.com/nathanpc/ascii-image"
1011

11-
s.add_dependency "rainbow", ">= 1.1.4"
12-
s.add_dependency "rmagick", ">= 2.13.1"
12+
s.add_dependency "rainbow", ">= 3.0.0"
13+
s.add_dependency "rmagick", ">= 2.16.0"
1314
end

lib/ascii-image.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

33
require 'rubygems'
4-
require 'RMagick'
4+
require 'rmagick'
55
require 'rainbow'
66
require 'open-uri'
77

@@ -33,8 +33,8 @@ def initialize(uri, console_width = 80)
3333
@uri = uri
3434
@console_width = console_width
3535

36-
if Magick::QuantumDepth > 8
37-
raise "Your ImageMagick quantum depth is set to #{Magick::QuantumDepth}. You need to have it set to 8 in order for this app to work."
36+
if Magick::MAGICKCORE_QUANTUM_DEPTH > 8
37+
raise "Your ImageMagick quantum depth is set to #{Magick::MAGICKCORE_QUANTUM_DEPTH}. You need to have it set to 8 in order for this app to work."
3838
end
3939
end
4040

0 commit comments

Comments
 (0)