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 +8 -8
- data/README.md +2 -2
- data/asciiart.gemspec +2 -2
- data/lib/asciiart.rb +5 -1
- data/lib/asciiart/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjNlMGZiNmU3MmMxNWJhYzg5ZjQ5OGU2NjVlODAwMzU4ZjAyMzAzMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mzk3ZTdkNDA3MDEwNzY0YTNmYmUxZTU4MmNkYWY1MjA2NTQ0ZjU3NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmQ5OWJhYTAxNGM2OTNiMDFkOTNjZmIyNzgzZmQwNWE5MTA2MzJkYjQ3YTdi
|
10
|
+
MzhmN2NiZjdiYzgxNjdlOWE0ZjljZWUzY2NhM2E5NjZkYzk3ZGJhNTRlYTcw
|
11
|
+
Y2FlODFiZWY3YmRhMjk3N2UyNzkyZWJkY2VhZWIwMGM0OWE0NmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
$
|
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
|
-
$
|
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
|
|
data/asciiart.gemspec
CHANGED
@@ -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',
|
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
|
data/lib/asciiart.rb
CHANGED
@@ -84,7 +84,11 @@ private
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def unified_rgb_value(number)
|
87
|
-
(Magick::QuantumDepth
|
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 = "")
|
data/lib/asciiart/version.rb
CHANGED
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.
|
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:
|
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:
|
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:
|
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.
|
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
|