asciiart 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjRlMDdkZTRjMGQ0MzA0N2YzNDg4OGFjNGUyYTE5MDliOWRlNGEzNQ==
4
+ YjNlMGZiNmU3MmMxNWJhYzg5ZjQ5OGU2NjVlODAwMzU4ZjAyMzAzMg==
5
5
  data.tar.gz: !binary |-
6
- YjcwNzc4MGM2MTllN2ZlZjg5MmMxNWIwMTI1MDRjODQ2YzA0ZTk4ZA==
6
+ Mzk3ZTdkNDA3MDEwNzY0YTNmYmUxZTU4MmNkYWY1MjA2NTQ0ZjU3NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Njg3Zjk1MjcwOWNjODNjYWM3ZmJjYWJiYTI5MWJiYTc4M2YwNDkxZmRjMmM3
10
- MDUzNGY5NGE1OWZlMmE2YWVlZjliMzhjMzc3MDk1Y2UwMDBiMGYxZDAzMWRk
11
- MjI0Y2IzOTZmNWRmMWQ1NTYxY2VmODM5Mzk4NWRhOGQwNmJiMmY=
9
+ YmQ5OWJhYTAxNGM2OTNiMDFkOTNjZmIyNzgzZmQwNWE5MTA2MzJkYjQ3YTdi
10
+ MzhmN2NiZjdiYzgxNjdlOWE0ZjljZWUzY2NhM2E5NjZkYzk3ZGJhNTRlYTcw
11
+ Y2FlODFiZWY3YmRhMjk3N2UyNzkyZWJkY2VhZWIwMGM0OWE0NmU=
12
12
  data.tar.gz: !binary |-
13
- ZTk4NmQ5N2VmODU5OTBjOWQ3ZjNjMGMyMWRhYzcyNzE1MDA3YmRiMWMxODYx
14
- YzI1ZGI3NTY2NWNkNWQ0NzIyNDg1NDlmMWJkNTlmYTc5NGY4ZTVjYTYyNjM2
15
- MTUzZjNjMTI4ZWQwMzIwYjc1MzhhZjk1MjM4NDA3N2Q0MTdhMmM=
13
+ YWZiZjgyMmY3YTUzYjRjMDM4OTRjMTk0MmI0MDlkNTg1YWIyYjE0MTQ2Yjg3
14
+ NmJkZGJjYTFkYTJhNTEyMDVmZDgwYTk0MDc4NjgwODY1ZTBkNjNlZDI0ZDkx
15
+ NmFjMWI4YTliZjRkMjljMWQ2NGZhY2JkMzg3NGU5MDM2YjM4ZTc=
data/README.md CHANGED
@@ -153,11 +153,11 @@ Remote Images
153
153
 
154
154
  Output it as HTML
155
155
 
156
- $ be asciiart -c -f html ~/Ross/cppsource/secret/noopen/sillhere?/turnback/bea-arthur-birthdaysuit.jpg > ~/Desktop/ascii-as-html.html
156
+ $ asciiart -c -f html ~/Ross/cppsource/secret/noopen/sillhere?/turnback/bea-arthur-birthdaysuit.jpg > ~/Desktop/ascii-as-html.html
157
157
 
158
158
  _or smaller_
159
159
 
160
- $ be asciiart -w 50 -c -f html ~/Stephen/boringSQLsnippets/nothingtoseehere/turnback/bea-arthur-with-ross's-head.jpg > ~/Desktop/saturdaynight.html
160
+ $ asciiart -w 50 -c -f html ~/Stephen/boringSQLsnippets/nothingtoseehere/turnback/bea-arthur-with-ross's-head.jpg > ~/Desktop/saturdaynight.html
161
161
 
162
162
  Get Help
163
163
 
@@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency('rmagick')
21
- gem.add_dependency('rainbow', "2.0.0")
20
+ gem.add_dependency('rmagick', '2.13.4')
21
+ gem.add_dependency('rainbow', '2.0.0')
22
22
 
23
23
  gem.add_development_dependency('pry')
24
24
  end
@@ -84,7 +84,11 @@ private
84
84
  end
85
85
 
86
86
  def unified_rgb_value(number)
87
- (Magick::QuantumDepth == 16) ? (number / 256) : number
87
+ if defined?(Magick::QuantumDepth)
88
+ return (Magick::QuantumDepth == 16) ? (number / 256) : number
89
+ else
90
+ return (Magick::QuantumRange == 65535) ? (number / 256) : number
91
+ end
88
92
  end
89
93
 
90
94
  def html_char(char, additional_style = "")
@@ -1,3 +1,3 @@
1
1
  class AsciiArt
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciiart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - nodanaonlyzuul
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-15 00:00:00.000000000 Z
12
+ date: 2015-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rmagick
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: 2.13.4
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: 2.13.4
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rainbow
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.2.2
92
+ rubygems_version: 2.4.5
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: A command line tool to turn images into ASCII art