asciiart 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YjRlMDdkZTRjMGQ0MzA0N2YzNDg4OGFjNGUyYTE5MDliOWRlNGEzNQ==
5
+ data.tar.gz: !binary |-
6
+ YjcwNzc4MGM2MTllN2ZlZjg5MmMxNWIwMTI1MDRjODQ2YzA0ZTk4ZA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ Njg3Zjk1MjcwOWNjODNjYWM3ZmJjYWJiYTI5MWJiYTc4M2YwNDkxZmRjMmM3
10
+ MDUzNGY5NGE1OWZlMmE2YWVlZjliMzhjMzc3MDk1Y2UwMDBiMGYxZDAzMWRk
11
+ MjI0Y2IzOTZmNWRmMWQ1NTYxY2VmODM5Mzk4NWRhOGQwNmJiMmY=
12
+ data.tar.gz: !binary |-
13
+ ZTk4NmQ5N2VmODU5OTBjOWQ3ZjNjMGMyMWRhYzcyNzE1MDA3YmRiMWMxODYx
14
+ YzI1ZGI3NTY2NWNkNWQ0NzIyNDg1NDlmMWJkNTlmYTc5NGY4ZTVjYTYyNjM2
15
+ MTUzZjNjMTI4ZWQwMzIwYjc1MzhhZjk1MjM4NDA3N2Q0MTdhMmM=
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_dependency('rmagick')
21
- gem.add_dependency('rainbow')
21
+ gem.add_dependency('rainbow', "2.0.0")
22
22
 
23
23
  gem.add_development_dependency('pry')
24
24
  end
@@ -3,6 +3,7 @@ require 'RMagick'
3
3
  require 'uri'
4
4
  require 'open-uri'
5
5
  require 'rainbow'
6
+ require 'rainbow/ext/string'
6
7
 
7
8
  class AsciiArt
8
9
 
@@ -28,7 +29,7 @@ class AsciiArt
28
29
  img = img.quantize(image_chars.length, Magick::GRAYColorspace).normalize
29
30
  quantum_calc = Magick::QuantumRange / Magick::QuantumPixel.to_i
30
31
  image_chars.map! {|char| char == " " ? " " : char } if options[:format] == "html"
31
-
32
+
32
33
  border = "+#{'-' * width}+#{line_break(options[:format])}"
33
34
  border = html_char(border) if options[:format] == "html"
34
35
 
@@ -1,3 +1,3 @@
1
1
  class AsciiArt
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciiart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - nodanaonlyzuul
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2014-07-15 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rmagick
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ! '>='
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ! '>='
29
26
  - !ruby/object:Gem::Version
@@ -31,23 +28,20 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rainbow
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '='
37
33
  - !ruby/object:Gem::Version
38
- version: '0'
34
+ version: 2.0.0
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '='
45
40
  - !ruby/object:Gem::Version
46
- version: '0'
41
+ version: 2.0.0
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: pry
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ! '>='
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ! '>='
61
54
  - !ruby/object:Gem::Version
@@ -79,26 +72,25 @@ files:
79
72
  - lib/asciiart/version.rb
80
73
  homepage: https://github.com/nodanaonlyzuul/asciiart
81
74
  licenses: []
75
+ metadata: {}
82
76
  post_install_message:
83
77
  rdoc_options: []
84
78
  require_paths:
85
79
  - lib
86
80
  required_ruby_version: !ruby/object:Gem::Requirement
87
- none: false
88
81
  requirements:
89
82
  - - ! '>='
90
83
  - !ruby/object:Gem::Version
91
84
  version: '0'
92
85
  required_rubygems_version: !ruby/object:Gem::Requirement
93
- none: false
94
86
  requirements:
95
87
  - - ! '>='
96
88
  - !ruby/object:Gem::Version
97
89
  version: '0'
98
90
  requirements: []
99
91
  rubyforge_project:
100
- rubygems_version: 1.8.24
92
+ rubygems_version: 2.2.2
101
93
  signing_key:
102
- specification_version: 3
94
+ specification_version: 4
103
95
  summary: A command line tool to turn images into ASCII art
104
96
  test_files: []