prawn-icon 2.4.0 → 2.5.0
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/CHANGELOG.md +5 -0
- data/data/fonts/fab/fa-brands.ttf +0 -0
- data/data/fonts/fab/fab.yml +7 -2
- data/data/fonts/far/fa-regular.ttf +0 -0
- data/data/fonts/far/far.yml +1 -1
- data/data/fonts/fas/fa-solid.ttf +0 -0
- data/data/fonts/fas/fas.yml +25 -1
- data/lib/prawn/icon/version.rb +1 -1
- data/spec/integration/icon_spec.rb +6 -6
- data/spec/unit/errors/icon_key_empty_spec.rb +1 -3
- data/spec/unit/errors/icon_not_found_spec.rb +1 -3
- data/spec/unit/font_data_spec.rb +9 -9
- data/spec/unit/icon_spec.rb +15 -15
- data/spec/unit/parser_spec.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cdc8d2f00cba2e00c1205ed4de7c247b0f38b27aa853923d3b1f9f4860e95308
|
|
4
|
+
data.tar.gz: d5911e59b2076987f2cf47ba1f2ec2f51f5cd3588d268f528287ce88bcafca05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0ac31b6d85219aa25a593fc9a14c39cae53876f67290b9b3406e2aaf1dd416de3d37c184330d8f8aa2b5e891e7532c7f487d9270a340a2b4dcbfc19e97a09d8
|
|
7
|
+
data.tar.gz: 02a6738e896b3e7decbd790e302233cd49ce04c7022be9cb4a4f399fd76ec6f49f361ee4f9d6ebc9b7621f83cc316720735c5766770942cf0a820028238dc89a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
# 2.5.0 - October 4, 2019
|
|
2
|
+
|
|
3
|
+
* Update FontAwesome from `5.8.2` to `5.11.2`.
|
|
4
|
+
* See FontAwesome's [upgrade guide](https://github.com/FortAwesome/Font-Awesome/blob/master/UPGRADING.md) for more details.
|
|
5
|
+
|
|
1
6
|
# 2.4.0 - May 26, 2019
|
|
2
7
|
|
|
3
8
|
* Update FontAwesome from `5.4.0` to `5.8.2`.
|
|
Binary file
|
data/data/fonts/fab/fab.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
fab:
|
|
3
|
-
__font_version__: 5.
|
|
3
|
+
__font_version__: 5.11.2
|
|
4
4
|
500px: ""
|
|
5
5
|
accessible-icon: ""
|
|
6
6
|
accusoft: ""
|
|
@@ -50,6 +50,7 @@ fab:
|
|
|
50
50
|
btc: ""
|
|
51
51
|
buffer: ""
|
|
52
52
|
buromobelexperte: ""
|
|
53
|
+
buy-n-large: ""
|
|
53
54
|
buysellads: ""
|
|
54
55
|
canadian-maple-leaf: ""
|
|
55
56
|
cc-amazon-pay: ""
|
|
@@ -74,6 +75,7 @@ fab:
|
|
|
74
75
|
confluence: ""
|
|
75
76
|
connectdevelop: ""
|
|
76
77
|
contao: ""
|
|
78
|
+
cotton-bureau: ""
|
|
77
79
|
cpanel: ""
|
|
78
80
|
creative-commons: ""
|
|
79
81
|
creative-commons-by: ""
|
|
@@ -239,6 +241,7 @@ fab:
|
|
|
239
241
|
markdown: ""
|
|
240
242
|
mastodon: ""
|
|
241
243
|
maxcdn: ""
|
|
244
|
+
mdb: ""
|
|
242
245
|
medapps: ""
|
|
243
246
|
medium: ""
|
|
244
247
|
medium-m: ""
|
|
@@ -255,7 +258,6 @@ fab:
|
|
|
255
258
|
napster: ""
|
|
256
259
|
neos: ""
|
|
257
260
|
nimblr: ""
|
|
258
|
-
nintendo-switch: ""
|
|
259
261
|
node: ""
|
|
260
262
|
node-js: ""
|
|
261
263
|
npm: ""
|
|
@@ -268,6 +270,7 @@ fab:
|
|
|
268
270
|
openid: ""
|
|
269
271
|
opera: ""
|
|
270
272
|
optin-monster: ""
|
|
273
|
+
orcid: ""
|
|
271
274
|
osi: ""
|
|
272
275
|
page4: ""
|
|
273
276
|
pagelines: ""
|
|
@@ -359,6 +362,7 @@ fab:
|
|
|
359
362
|
superpowers: ""
|
|
360
363
|
supple: ""
|
|
361
364
|
suse: ""
|
|
365
|
+
swift: ""
|
|
362
366
|
symfony: ""
|
|
363
367
|
teamspeak: ""
|
|
364
368
|
telegram: ""
|
|
@@ -380,6 +384,7 @@ fab:
|
|
|
380
384
|
uber: ""
|
|
381
385
|
ubuntu: ""
|
|
382
386
|
uikit: ""
|
|
387
|
+
umbraco: ""
|
|
383
388
|
uniregistry: ""
|
|
384
389
|
untappd: ""
|
|
385
390
|
ups: ""
|
|
Binary file
|
data/data/fonts/far/far.yml
CHANGED
data/data/fonts/fas/fa-solid.ttf
CHANGED
|
Binary file
|
data/data/fonts/fas/fas.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
fas:
|
|
3
|
-
__font_version__: 5.
|
|
3
|
+
__font_version__: 5.11.2
|
|
4
4
|
ad: ""
|
|
5
5
|
address-book: ""
|
|
6
6
|
address-card: ""
|
|
@@ -55,6 +55,8 @@ fas:
|
|
|
55
55
|
backward: ""
|
|
56
56
|
bacon: ""
|
|
57
57
|
balance-scale: ""
|
|
58
|
+
balance-scale-left: ""
|
|
59
|
+
balance-scale-right: ""
|
|
58
60
|
ban: ""
|
|
59
61
|
band-aid: ""
|
|
60
62
|
barcode: ""
|
|
@@ -74,6 +76,7 @@ fas:
|
|
|
74
76
|
bezier-curve: ""
|
|
75
77
|
bible: ""
|
|
76
78
|
bicycle: ""
|
|
79
|
+
biking: ""
|
|
77
80
|
binoculars: ""
|
|
78
81
|
biohazard: ""
|
|
79
82
|
birthday-cake: ""
|
|
@@ -92,6 +95,9 @@ fas:
|
|
|
92
95
|
book-open: ""
|
|
93
96
|
book-reader: ""
|
|
94
97
|
bookmark: ""
|
|
98
|
+
border-all: ""
|
|
99
|
+
border-none: ""
|
|
100
|
+
border-style: ""
|
|
95
101
|
bowling-ball: ""
|
|
96
102
|
box: ""
|
|
97
103
|
box-open: ""
|
|
@@ -298,6 +304,7 @@ fas:
|
|
|
298
304
|
eye: ""
|
|
299
305
|
eye-dropper: ""
|
|
300
306
|
eye-slash: ""
|
|
307
|
+
fan: ""
|
|
301
308
|
fast-backward: ""
|
|
302
309
|
fast-forward: ""
|
|
303
310
|
fax: ""
|
|
@@ -424,6 +431,8 @@ fas:
|
|
|
424
431
|
hanukiah: ""
|
|
425
432
|
hard-hat: ""
|
|
426
433
|
hashtag: ""
|
|
434
|
+
hat-cowboy: ""
|
|
435
|
+
hat-cowboy-side: ""
|
|
427
436
|
hat-wizard: ""
|
|
428
437
|
haykal: ""
|
|
429
438
|
hdd: ""
|
|
@@ -459,6 +468,7 @@ fas:
|
|
|
459
468
|
i-cursor: ""
|
|
460
469
|
ice-cream: ""
|
|
461
470
|
icicles: ""
|
|
471
|
+
icons: ""
|
|
462
472
|
id-badge: ""
|
|
463
473
|
id-card: ""
|
|
464
474
|
id-card-alt: ""
|
|
@@ -567,6 +577,7 @@ fas:
|
|
|
567
577
|
mosque: ""
|
|
568
578
|
motorcycle: ""
|
|
569
579
|
mountain: ""
|
|
580
|
+
mouse: ""
|
|
570
581
|
mouse-pointer: ""
|
|
571
582
|
mug-hot: ""
|
|
572
583
|
music: ""
|
|
@@ -611,9 +622,12 @@ fas:
|
|
|
611
622
|
percentage: ""
|
|
612
623
|
person-booth: ""
|
|
613
624
|
phone: ""
|
|
625
|
+
phone-alt: ""
|
|
614
626
|
phone-slash: ""
|
|
615
627
|
phone-square: ""
|
|
628
|
+
phone-square-alt: ""
|
|
616
629
|
phone-volume: ""
|
|
630
|
+
photo-video: ""
|
|
617
631
|
piggy-bank: ""
|
|
618
632
|
pills: ""
|
|
619
633
|
pizza-slice: ""
|
|
@@ -657,10 +671,12 @@ fas:
|
|
|
657
671
|
rainbow: ""
|
|
658
672
|
random: ""
|
|
659
673
|
receipt: ""
|
|
674
|
+
record-vinyl: ""
|
|
660
675
|
recycle: ""
|
|
661
676
|
redo: ""
|
|
662
677
|
redo-alt: ""
|
|
663
678
|
registered: ""
|
|
679
|
+
remove-format: ""
|
|
664
680
|
reply: ""
|
|
665
681
|
reply-all: ""
|
|
666
682
|
republican: ""
|
|
@@ -743,15 +759,22 @@ fas:
|
|
|
743
759
|
solar-panel: ""
|
|
744
760
|
sort: ""
|
|
745
761
|
sort-alpha-down: ""
|
|
762
|
+
sort-alpha-down-alt: ""
|
|
746
763
|
sort-alpha-up: ""
|
|
764
|
+
sort-alpha-up-alt: ""
|
|
747
765
|
sort-amount-down: ""
|
|
766
|
+
sort-amount-down-alt: ""
|
|
748
767
|
sort-amount-up: ""
|
|
768
|
+
sort-amount-up-alt: ""
|
|
749
769
|
sort-down: ""
|
|
750
770
|
sort-numeric-down: ""
|
|
771
|
+
sort-numeric-down-alt: ""
|
|
751
772
|
sort-numeric-up: ""
|
|
773
|
+
sort-numeric-up-alt: ""
|
|
752
774
|
sort-up: ""
|
|
753
775
|
spa: ""
|
|
754
776
|
space-shuttle: ""
|
|
777
|
+
spell-check: ""
|
|
755
778
|
spider: ""
|
|
756
779
|
spinner: ""
|
|
757
780
|
splotch: ""
|
|
@@ -909,6 +932,7 @@ fas:
|
|
|
909
932
|
video: ""
|
|
910
933
|
video-slash: ""
|
|
911
934
|
vihara: ""
|
|
935
|
+
voicemail: ""
|
|
912
936
|
volleyball-ball: ""
|
|
913
937
|
volume-down: ""
|
|
914
938
|
volume-mute: ""
|
data/lib/prawn/icon/version.rb
CHANGED
|
@@ -77,17 +77,17 @@ describe Prawn::Icon::Interface do
|
|
|
77
77
|
|
|
78
78
|
context 'invalid icon key' do
|
|
79
79
|
it 'should raise IconNotFound' do
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
expect { pdf.icon('far-__INVALID') }.to raise_error(
|
|
81
|
+
Prawn::Icon::Errors::IconNotFound
|
|
82
|
+
)
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
context 'invalid specifier' do
|
|
87
87
|
it 'should raise UnknownFont' do
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
expect { pdf.icon('__INVALID__') }.to raise_error(
|
|
89
|
+
Prawn::Errors::UnknownFont
|
|
90
|
+
)
|
|
91
91
|
end
|
|
92
92
|
end
|
|
93
93
|
end
|
|
@@ -12,8 +12,6 @@ describe Prawn::Icon::Errors::IconNotFound do
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
it 'is thrown on an invalid icon key' do
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
expect(proc).to raise_error(described_class)
|
|
15
|
+
expect { pdf.icon('far-an invalid key') }.to raise_error(described_class)
|
|
18
16
|
end
|
|
19
17
|
end
|
data/spec/unit/font_data_spec.rb
CHANGED
|
@@ -72,15 +72,15 @@ describe Prawn::Icon::FontData do
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
it 'should error when key is nil' do
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
expect { Prawn::Icon::FontData.specifier_from_key(nil) }.to raise_error(
|
|
76
|
+
Prawn::Icon::Errors::IconKeyEmpty
|
|
77
|
+
)
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
it 'should error when key is an empty string' do
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
expect { Prawn::Icon::FontData.specifier_from_key('') }.to raise_error(
|
|
82
|
+
Prawn::Icon::Errors::IconKeyEmpty
|
|
83
|
+
)
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
it 'should handle strings without any dashes properly' do
|
|
@@ -141,9 +141,9 @@ describe Prawn::Icon::FontData do
|
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
it 'should raise an error if unable to match a key' do
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
expect { fontawesome.unicode('an invalid sequence') }.to raise_error(
|
|
145
|
+
Prawn::Icon::Errors::IconNotFound
|
|
146
|
+
)
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
|
data/spec/unit/icon_spec.rb
CHANGED
|
@@ -19,25 +19,25 @@ describe Prawn::Icon do
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
it 'should raise an error if icon key is not found' do
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
expect { Prawn::Icon.new('far-__INVALID__', pdf) }.to raise_error(
|
|
23
|
+
errors::IconNotFound
|
|
24
|
+
)
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
context 'invalid icon specifier' do
|
|
29
29
|
it 'should raise an error' do
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
expect { pdf.icon('__INVALID__ some text') }.to raise_error(
|
|
31
|
+
Prawn::Errors::UnknownFont
|
|
32
|
+
)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
context 'without a pdf object' do
|
|
37
37
|
it 'should raise an ArgumentError' do
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
expect { Prawn::Icon.new('far-address-book') }.to raise_error(
|
|
39
|
+
ArgumentError
|
|
40
|
+
)
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
end
|
|
@@ -80,9 +80,9 @@ describe Prawn::Icon do
|
|
|
80
80
|
|
|
81
81
|
context 'without dashes in key' do
|
|
82
82
|
it 'raise an error about invalid keys' do
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
expect { Prawn::Icon.new('some invalid key', pdf) }.to raise_error(
|
|
84
|
+
Prawn::Errors::UnknownFont
|
|
85
|
+
)
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
end
|
|
@@ -98,9 +98,9 @@ describe Prawn::Icon do
|
|
|
98
98
|
|
|
99
99
|
context 'invalid icon key' do
|
|
100
100
|
it 'should raise IconNotFound' do
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
expect { Prawn::Icon.new('far-__INVALID__', pdf) }.to raise_error(
|
|
102
|
+
errors::IconNotFound
|
|
103
|
+
)
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
end
|
data/spec/unit/parser_spec.rb
CHANGED
|
@@ -38,16 +38,18 @@ describe Prawn::Icon::Parser do
|
|
|
38
38
|
|
|
39
39
|
it 'should raise an error when an icon key is invalid' do
|
|
40
40
|
string = '<icon>an invalid key</icon>'
|
|
41
|
-
proc = Proc.new { Prawn::Icon::Parser.format(pdf, string) }
|
|
42
41
|
|
|
43
|
-
expect(
|
|
42
|
+
expect { Prawn::Icon::Parser.format(pdf, string) }.to raise_error(
|
|
43
|
+
Prawn::Errors::UnknownFont
|
|
44
|
+
)
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
it 'should raise an error when an icon is not found for valid set' do
|
|
47
48
|
string = '<icon>far-__INVALID__</icon>'
|
|
48
|
-
proc = Proc.new { Prawn::Icon::Parser.format(pdf, string) }
|
|
49
49
|
|
|
50
|
-
expect(
|
|
50
|
+
expect { Prawn::Icon::Parser.format(pdf, string) }.to raise_error(
|
|
51
|
+
Prawn::Icon::Errors::IconNotFound
|
|
52
|
+
)
|
|
51
53
|
end
|
|
52
54
|
end
|
|
53
55
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prawn-icon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jesse Doyle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05
|
|
11
|
+
date: 2019-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: prawn
|