mojo_magick 0.6.4 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -23
- data/README.md +6 -0
- data/lib/mojo_magick/errors.rb +2 -0
- data/lib/mojo_magick/opt_builder.rb +2 -2
- data/lib/mojo_magick/util/font_parser.rb +2 -2
- data/lib/mojo_magick/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 177811722037322ee39c9c1fe8b164a3ec5e5b138079879aa94e899763f1c195
|
|
4
|
+
data.tar.gz: 36ecfdae665f75a651cc9aca57d91f6cbb8e945ab0252d675fec87051dfc609c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c74521f1ce50257577906ef53ab838fb85a50bc3c8a8d5f2b54917aa0eac091cab3b8e9fc15f477edd6bf6f8f91245e1424177dfdb5fb49e9a81fe893376777a
|
|
7
|
+
data.tar.gz: a0a203c7e3458b750bdc4bfb341385f7ffdb8f48c7752c4533aa5df75cc347d00067e7a37b561838ddd0c3d8ac6a5f1e01bc5cb24cd877986301c09d1ebfab5f
|
data/Gemfile.lock
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mojo_magick (0.6.
|
|
4
|
+
mojo_magick (0.6.5)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
ast (2.4.
|
|
9
|
+
ast (2.4.2)
|
|
10
10
|
bundle-audit (0.1.0)
|
|
11
11
|
bundler-audit
|
|
12
|
-
bundler-audit (0.
|
|
12
|
+
bundler-audit (0.8.0)
|
|
13
13
|
bundler (>= 1.2.0, < 3)
|
|
14
|
-
thor (
|
|
14
|
+
thor (~> 1.0)
|
|
15
15
|
docile (1.3.5)
|
|
16
|
-
io-console (0.5.
|
|
17
|
-
irb (1.3.
|
|
16
|
+
io-console (0.5.9)
|
|
17
|
+
irb (1.3.5)
|
|
18
18
|
reline (>= 0.1.5)
|
|
19
|
-
minitest (5.14.
|
|
20
|
-
parallel (1.
|
|
21
|
-
parser (
|
|
19
|
+
minitest (5.14.4)
|
|
20
|
+
parallel (1.20.1)
|
|
21
|
+
parser (3.0.1.0)
|
|
22
22
|
ast (~> 2.4.1)
|
|
23
23
|
rainbow (3.0.0)
|
|
24
24
|
rake (13.0.3)
|
|
25
|
-
regexp_parser (1.
|
|
26
|
-
reline (0.2.
|
|
25
|
+
regexp_parser (2.1.1)
|
|
26
|
+
reline (0.2.5)
|
|
27
27
|
io-console (~> 0.5)
|
|
28
|
-
rexml (3.2.
|
|
29
|
-
rubocop (1.
|
|
28
|
+
rexml (3.2.5)
|
|
29
|
+
rubocop (1.13.0)
|
|
30
30
|
parallel (~> 1.10)
|
|
31
|
-
parser (>=
|
|
31
|
+
parser (>= 3.0.0.0)
|
|
32
32
|
rainbow (>= 2.2.2, < 4.0)
|
|
33
|
-
regexp_parser (>= 1.8)
|
|
33
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
34
34
|
rexml
|
|
35
|
-
rubocop-ast (>= 1.0.
|
|
35
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
|
36
36
|
ruby-progressbar (~> 1.7)
|
|
37
|
-
unicode-display_width (>= 1.4.0, <
|
|
38
|
-
rubocop-ast (1.
|
|
37
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
38
|
+
rubocop-ast (1.4.1)
|
|
39
39
|
parser (>= 2.7.1.5)
|
|
40
|
-
rubocop-performance (1.
|
|
41
|
-
rubocop (>=
|
|
40
|
+
rubocop-performance (1.11.0)
|
|
41
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
42
42
|
rubocop-ast (>= 0.4.0)
|
|
43
|
-
ruby-progressbar (1.
|
|
43
|
+
ruby-progressbar (1.11.0)
|
|
44
44
|
simplecov (0.21.2)
|
|
45
45
|
docile (~> 1.1)
|
|
46
46
|
simplecov-html (~> 0.11)
|
|
47
47
|
simplecov_json_formatter (~> 0.1)
|
|
48
48
|
simplecov-html (0.12.3)
|
|
49
49
|
simplecov_json_formatter (0.1.2)
|
|
50
|
-
thor (1.0
|
|
51
|
-
unicode-display_width (
|
|
50
|
+
thor (1.1.0)
|
|
51
|
+
unicode-display_width (2.0.0)
|
|
52
52
|
|
|
53
53
|
PLATFORMS
|
|
54
54
|
ruby
|
data/README.md
CHANGED
|
@@ -211,6 +211,12 @@ in the new code
|
|
|
211
211
|
|
|
212
212
|
Recent Changes
|
|
213
213
|
==============
|
|
214
|
+
|
|
215
|
+
#### Version 0.6.4
|
|
216
|
+
|
|
217
|
+
* Fix issue with `identity -list font` returning exit code 1 on some systems (Ubuntu) with PR #https://github.com/rcode5/mojo_magick/pull/35
|
|
218
|
+
35
|
|
219
|
+
|
|
214
220
|
#### Version 0.6.3
|
|
215
221
|
|
|
216
222
|
* Major cleanup and refactor (https://github.com/rcode5/mojo_magick/pull/33)
|
data/lib/mojo_magick/errors.rb
CHANGED
|
@@ -58,7 +58,7 @@ module MojoMagick
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Generic commands. Arguments will be formatted if necessary
|
|
61
|
-
# rubocop:disable
|
|
61
|
+
# rubocop:disable Style/MissingRespondToMissing
|
|
62
62
|
def method_missing(command, *args)
|
|
63
63
|
@opts << if command.to_s[-1, 1] == "!"
|
|
64
64
|
"+#{command.to_s.chop}"
|
|
@@ -69,7 +69,7 @@ module MojoMagick
|
|
|
69
69
|
self
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
# rubocop:enable
|
|
72
|
+
# rubocop:enable Style/MissingRespondToMissing
|
|
73
73
|
def to_a
|
|
74
74
|
@opts.flatten
|
|
75
75
|
end
|
|
@@ -10,7 +10,7 @@ module MojoMagick
|
|
|
10
10
|
|
|
11
11
|
def parse
|
|
12
12
|
fonts = {}
|
|
13
|
-
enumerator = raw_fonts.split(
|
|
13
|
+
enumerator = raw_fonts.split("\n").each
|
|
14
14
|
name = nil
|
|
15
15
|
while begin; line = enumerator.next; rescue StopIteration; line = nil; end
|
|
16
16
|
line.chomp!
|
|
@@ -30,7 +30,7 @@ module MojoMagick
|
|
|
30
30
|
private
|
|
31
31
|
|
|
32
32
|
def extract_key_value(line)
|
|
33
|
-
key_val = line.split(
|
|
33
|
+
key_val = line.split(":").map(&:strip)
|
|
34
34
|
[key_val[0].downcase.to_sym, key_val[1]]
|
|
35
35
|
end
|
|
36
36
|
|
data/lib/mojo_magick/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mojo_magick
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Midgley
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2021-01
|
|
13
|
+
date: 2021-05-01 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundle-audit
|
|
@@ -169,7 +169,7 @@ requirements: []
|
|
|
169
169
|
rubygems_version: 3.0.3
|
|
170
170
|
signing_key:
|
|
171
171
|
specification_version: 4
|
|
172
|
-
summary: mojo_magick-0.6.
|
|
172
|
+
summary: mojo_magick-0.6.5
|
|
173
173
|
test_files:
|
|
174
174
|
- test/fixtures/5742.jpg
|
|
175
175
|
- test/fixtures/not_an_image.jpg
|