ascii-image 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ascii-image.rb +1 -1
  3. metadata +14 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20e9c6bd0f23903a1a8583d73b1220d72d93979fd174de4c077b67ab06fa1a99
4
- data.tar.gz: 38a3cc6fcacc0b7a789bcd591f45b1e4f854be70369c3039e19673fac6bd388d
3
+ metadata.gz: 7e72fbcb87924d7001fb0b1aa535b9ea6c29125ce0f3c30c1cc09a30fe6c5329
4
+ data.tar.gz: 8894b345a0f270009058171c5d6438337cc8da0db3e030644149b5ccad3b3382
5
5
  SHA512:
6
- metadata.gz: 59d030f538b5ff5907edafcd593a6b37bd7e9829f31ce3a470325c648111ff4c45bd15254e87d630cc3ad2995f74f57b13c9931ce99464bd745111591d791218
7
- data.tar.gz: ba33bbf4187e2dd3a076468e33e5d9dbd249757fc3e8375221376d8cd8853ebde579ed9054df7fceb90c944c8d1fc21cdf2a477c48ad6f8092ec734ee7b01f9b
6
+ metadata.gz: dd2859adf1d5c6f9e8b6390933fbab6e9891edfb30360ad60ac4ad2aee91027876d9ee1fc080e8414a80fe1a0d889e004a8b6407a5cf51a50820c5fe55b42f07
7
+ data.tar.gz: 2df96514479fa9775f1a454197ac0e3ce8f7c89e1710a13e0bbaa0a9be49acde384e765cb04aa61dc7cd8685c0cc330a9903960fd02c9616f3c916d14367929f
@@ -62,7 +62,7 @@ class ASCII_Image
62
62
 
63
63
  # Get the pixel array
64
64
  image.each_pixel do |pixel, col, row|
65
- print " ".background(pixel.red, pixel.green, pixel.blue)
65
+ print Rainbow(" ").background(pixel.red, pixel.green, pixel.blue)
66
66
 
67
67
  if (col % (width - 1) == 0) and (col != 0)
68
68
  print "\n"
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascii-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Campos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-20 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 3.0.0
@@ -21,6 +24,9 @@ dependencies:
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 3.0.0
@@ -28,6 +34,9 @@ dependencies:
28
34
  name: rmagick
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.16'
31
40
  - - ">="
32
41
  - !ruby/object:Gem::Version
33
42
  version: 2.16.0
@@ -35,6 +44,9 @@ dependencies:
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '2.16'
38
50
  - - ">="
39
51
  - !ruby/object:Gem::Version
40
52
  version: 2.16.0