zpng 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +37 -5
  3. data/VERSION +1 -1
  4. data/lib/zpng/cli.rb +5 -1
  5. data/zpng.gemspec +4 -4
  6. metadata +15 -30
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: adc61618aa2acb1428d8fb00cdf8fd5a14872b3e
4
+ data.tar.gz: 21b2f8c2b20de10fcd7748a5ba221508616f9996
5
+ SHA512:
6
+ metadata.gz: eb56ab61f2cb303534c76da51e8a0d12007704695f9337170696849207d418078e070e94c266608a8c7c5ca3d34d61aed042ca826d3b77cf817fa2091b964edd
7
+ data.tar.gz: 20b32ec5cf2ef15c5148b8c9c953c55dfbc8afa28cd0b042c07f32ecc0a92a112c87bcd6f3d39d8a94cf3c7cbc5b9e338b6f7cce0143c2cf0e6154b8562fe7e9
@@ -1,17 +1,49 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ addressable (2.3.5)
5
+ builder (3.2.2)
4
6
  diff-lcs (1.1.3)
5
- git (1.2.5)
6
- jeweler (1.8.4)
7
+ faraday (0.8.8)
8
+ multipart-post (~> 1.2.0)
9
+ git (1.2.6)
10
+ github_api (0.10.1)
11
+ addressable
12
+ faraday (~> 0.8.1)
13
+ hashie (>= 1.2)
14
+ multi_json (~> 1.4)
15
+ nokogiri (~> 1.5.2)
16
+ oauth2
17
+ hashie (2.0.5)
18
+ highline (1.6.20)
19
+ httpauth (0.2.0)
20
+ jeweler (1.8.8)
21
+ builder
7
22
  bundler (~> 1.0)
8
23
  git (>= 1.2.5)
24
+ github_api (= 0.10.1)
25
+ highline (>= 1.6.15)
26
+ nokogiri (= 1.5.10)
9
27
  rake
10
28
  rdoc
11
- json (1.7.5)
29
+ json (1.8.1)
30
+ jwt (0.1.8)
31
+ multi_json (>= 1.5)
32
+ multi_json (1.8.2)
33
+ multi_xml (0.5.5)
34
+ multipart-post (1.2.0)
35
+ nokogiri (1.5.10)
36
+ oauth2 (0.9.2)
37
+ faraday (~> 0.8)
38
+ httpauth (~> 0.2)
39
+ jwt (~> 0.1.4)
40
+ multi_json (~> 1.0)
41
+ multi_xml (~> 0.5)
42
+ rack (~> 1.2)
43
+ rack (1.5.2)
12
44
  rainbow (1.1.4)
13
- rake (10.0.3)
14
- rdoc (3.12)
45
+ rake (10.1.0)
46
+ rdoc (4.0.1)
15
47
  json (~> 1.4)
16
48
  rspec (2.12.0)
17
49
  rspec-core (~> 2.12.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -56,6 +56,10 @@ module ZPNG
56
56
  opts.on "-A", '--ascii', 'Try to convert image to ASCII (works best with monochrome images)' do
57
57
  @actions << :ascii
58
58
  end
59
+ opts.on '--ascii-string STRING', 'Use specific string to map pixels to ASCII characters' do |x|
60
+ @options[:ascii_string] = x
61
+ @actions << :ascii
62
+ end
59
63
  opts.on "-N", '--ansi', 'Try to display image as ANSI colored text' do
60
64
  @actions << :ansi
61
65
  end
@@ -216,7 +220,7 @@ module ZPNG
216
220
  def ascii
217
221
  @img.height.times do |y|
218
222
  @img.width.times do |x|
219
- c = @img[x,y].to_ascii
223
+ c = @img[x,y].to_ascii *[@options[:ascii_string]].compact
220
224
  c *= 2 if @options[:wide]
221
225
  print c
222
226
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "zpng"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrey \"Zed\" Zaikin"]
12
- s.date = "2013-01-24"
12
+ s.date = "2013-11-14"
13
13
  s.email = "zed.0xff@gmail.com"
14
14
  s.executables = ["zpng"]
15
15
  s.extra_rdoc_files = [
@@ -93,11 +93,11 @@ Gem::Specification.new do |s|
93
93
  s.homepage = "http://github.com/zed-0xff/zpng"
94
94
  s.licenses = ["MIT"]
95
95
  s.require_paths = ["lib"]
96
- s.rubygems_version = "1.8.24"
96
+ s.rubygems_version = "2.0.3"
97
97
  s.summary = "pure ruby PNG file manipulation & validation"
98
98
 
99
99
  if s.respond_to? :specification_version then
100
- s.specification_version = 3
100
+ s.specification_version = 4
101
101
 
102
102
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
103
103
  s.add_runtime_dependency(%q<rainbow>, [">= 0"])
metadata CHANGED
@@ -1,68 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zpng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
5
- prerelease:
4
+ version: 0.2.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andrey "Zed" Zaikin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
11
+ date: 2013-11-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rainbow
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 2.8.0
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 2.8.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 1.0.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 1.0.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: jeweler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,17 +69,15 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: what_methods
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description:
@@ -175,29 +164,25 @@ files:
175
164
  homepage: http://github.com/zed-0xff/zpng
176
165
  licenses:
177
166
  - MIT
167
+ metadata: {}
178
168
  post_install_message:
179
169
  rdoc_options: []
180
170
  require_paths:
181
171
  - lib
182
172
  required_ruby_version: !ruby/object:Gem::Requirement
183
- none: false
184
173
  requirements:
185
- - - ! '>='
174
+ - - '>='
186
175
  - !ruby/object:Gem::Version
187
176
  version: '0'
188
- segments:
189
- - 0
190
- hash: 377147211466559287
191
177
  required_rubygems_version: !ruby/object:Gem::Requirement
192
- none: false
193
178
  requirements:
194
- - - ! '>='
179
+ - - '>='
195
180
  - !ruby/object:Gem::Version
196
181
  version: '0'
197
182
  requirements: []
198
183
  rubyforge_project:
199
- rubygems_version: 1.8.24
184
+ rubygems_version: 2.0.3
200
185
  signing_key:
201
- specification_version: 3
186
+ specification_version: 4
202
187
  summary: pure ruby PNG file manipulation & validation
203
188
  test_files: []