prawn-icon 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -1
  3. data/GPLv2 +21 -22
  4. data/README.md +10 -10
  5. data/data/fonts/fab/LICENSE +34 -0
  6. data/data/fonts/fab/fa-brands.ttf +0 -0
  7. data/data/fonts/fab/fab.yml +333 -0
  8. data/data/fonts/far/LICENSE +34 -0
  9. data/data/fonts/far/fa-regular.ttf +0 -0
  10. data/data/fonts/far/far.yml +119 -0
  11. data/data/fonts/fas/LICENSE +34 -0
  12. data/data/fonts/fas/fa-solid.ttf +0 -0
  13. data/data/fonts/fas/fas.yml +503 -0
  14. data/data/fonts/pf/paymentfont-webfont.ttf +0 -0
  15. data/data/fonts/pf/pf.yml +118 -97
  16. data/examples/fas-beer-inline.png +0 -0
  17. data/examples/fas-beer.png +0 -0
  18. data/examples/fontawesome.rb +28 -20
  19. data/examples/foundation_icons.rb +1 -1
  20. data/examples/paymentfont.rb +1 -1
  21. data/lib/prawn/icon.rb +3 -200
  22. data/lib/prawn/icon/base.rb +19 -0
  23. data/lib/prawn/icon/errors.rb +21 -0
  24. data/lib/prawn/icon/font_data.rb +11 -13
  25. data/lib/prawn/icon/interface.rb +208 -0
  26. data/lib/prawn/icon/parser.rb +45 -53
  27. data/lib/prawn/icon/version.rb +1 -1
  28. data/prawn-icon.gemspec +8 -9
  29. data/spec/integration/icon_spec.rb +80 -60
  30. data/spec/spec_helper.rb +4 -0
  31. data/spec/support/parser_helper.rb +1 -1
  32. data/spec/support/pdf_helper.rb +1 -1
  33. data/spec/unit/base_spec.rb +15 -0
  34. data/spec/unit/errors/icon_key_empty_spec.rb +19 -0
  35. data/spec/unit/errors/icon_not_found_spec.rb +19 -0
  36. data/spec/unit/font_data_spec.rb +54 -73
  37. data/spec/unit/icon_spec.rb +20 -27
  38. data/spec/unit/parser_spec.rb +66 -63
  39. metadata +35 -41
  40. data/data/fonts/fa/LICENSE +0 -4
  41. data/data/fonts/fa/fa.yml +0 -676
  42. data/data/fonts/fa/fontawesome.ttf +0 -0
  43. data/data/fonts/octicon/LICENSE +0 -9
  44. data/data/fonts/octicon/octicon.yml +0 -192
  45. data/data/fonts/octicon/octicons.ttf +0 -0
  46. data/examples/fa-beer-inline.png +0 -0
  47. data/examples/fa-beer.png +0 -0
  48. data/examples/octicons.rb +0 -35
@@ -7,26 +7,26 @@
7
7
  require 'spec_helper'
8
8
 
9
9
  describe Prawn::Icon do
10
+ let(:errors) { described_class::Errors }
11
+ let(:pdf) { create_pdf }
12
+
10
13
  describe '#initialize' do
11
14
  context 'valid icon family specifier' do
12
15
  it 'should be capable of creating icon instances' do
13
- pdf = create_pdf
14
- icon = Prawn::Icon.new 'fa-arrows', pdf
16
+ icon = Prawn::Icon.new 'far-address-book', pdf
15
17
 
16
- expect(icon.unicode).to eq("\uf047")
18
+ expect(icon.unicode).to eq('')
17
19
  end
18
20
 
19
21
  it 'should raise an error if icon key is not found' do
20
- pdf = create_pdf
21
- proc = Proc.new { Prawn::Icon.new 'fa-__INVALID__', pdf }
22
+ proc = Proc.new { Prawn::Icon.new 'far-__INVALID__', pdf }
22
23
 
23
- expect(proc).to raise_error(Prawn::Errors::IconNotFound)
24
+ expect(proc).to raise_error(errors::IconNotFound)
24
25
  end
25
26
  end
26
27
 
27
28
  context 'invalid icon specifier' do
28
29
  it 'should raise an error' do
29
- pdf = create_pdf
30
30
  proc = Proc.new { pdf.icon '__INVALID__ some text' }
31
31
 
32
32
  expect(proc).to raise_error(Prawn::Errors::UnknownFont)
@@ -35,7 +35,7 @@ describe Prawn::Icon do
35
35
 
36
36
  context 'without a pdf object' do
37
37
  it 'should raise an ArgumentError' do
38
- proc = Proc.new { Prawn::Icon.new('fa-arrows') }
38
+ proc = Proc.new { Prawn::Icon.new('far-address-book') }
39
39
 
40
40
  expect(proc).to raise_error(ArgumentError)
41
41
  end
@@ -44,17 +44,15 @@ describe Prawn::Icon do
44
44
 
45
45
  describe '#format_hash' do
46
46
  it 'should add :font and :content keys' do
47
- pdf = create_pdf
48
- icon = Prawn::Icon.new 'fa-arrows', pdf
47
+ icon = Prawn::Icon.new 'far-address-book', pdf
49
48
  hash = icon.format_hash
50
49
 
51
- expect(hash[:font]).to eq('fa')
52
- expect(hash[:content]).to eq("\uf047")
50
+ expect(hash[:font]).to eq('far')
51
+ expect(hash[:content]).to eq('')
53
52
  end
54
53
 
55
54
  it 'should rename key :color to :text_color' do
56
- pdf = create_pdf
57
- icon = Prawn::Icon.new 'fa-arrows', pdf, color: '0099ff'
55
+ icon = Prawn::Icon.new 'far-address-book', pdf, color: '0099ff'
58
56
  hash = icon.format_hash
59
57
 
60
58
  expect(hash[:color]).to be_nil
@@ -64,8 +62,7 @@ describe Prawn::Icon do
64
62
 
65
63
  describe '#render' do
66
64
  it 'should render an icon to the page' do
67
- pdf = create_pdf
68
- pdf.icon('fa-arrows').render
65
+ pdf.icon('far-address-book').render
69
66
  text = PDF::Inspector::Text.analyze(pdf.render)
70
67
 
71
68
  expect(text.font_settings.first[:name]).to match(/FontAwesome/)
@@ -75,16 +72,14 @@ describe Prawn::Icon do
75
72
  describe '#set' do
76
73
  context 'with dashes in key' do
77
74
  it 'should return the set as a symbol from key' do
78
- pdf = create_pdf
79
- set = Prawn::Icon.new('fa-arrows', pdf).set
75
+ set = Prawn::Icon.new('far-address-book', pdf).set
80
76
 
81
- expect(set).to eq(:fa)
77
+ expect(set).to eq(:far)
82
78
  end
83
79
  end
84
80
 
85
81
  context 'without dashes in key' do
86
82
  it 'raise an error about invalid keys' do
87
- pdf = create_pdf
88
83
  proc = Proc.new { Prawn::Icon.new 'some invalid key', pdf }
89
84
 
90
85
  expect(proc).to raise_error(Prawn::Errors::UnknownFont)
@@ -95,20 +90,18 @@ describe Prawn::Icon do
95
90
  describe '#unicode' do
96
91
  context 'valid icon key' do
97
92
  it 'should return a unicode character' do
98
- pdf = create_pdf
99
- icon = Prawn::Icon.new 'fa-arrows', pdf
93
+ icon = Prawn::Icon.new 'far-address-book', pdf
100
94
 
101
- expect(valid_unicode?(icon.unicode)).to be_true
95
+ expect(valid_unicode?(icon.unicode)).to be true
102
96
  end
103
97
  end
104
98
 
105
99
  context 'invalid icon key' do
106
100
  it 'should raise IconNotFound' do
107
- pdf = create_pdf
108
- proc = Proc.new { Prawn::Icon.new 'fa-__INVALID__', pdf }
101
+ proc = Proc.new { Prawn::Icon.new 'far-__INVALID__', pdf }
109
102
 
110
- expect(proc).to raise_error(Prawn::Errors::IconNotFound)
103
+ expect(proc).to raise_error(errors::IconNotFound)
111
104
  end
112
105
  end
113
106
  end
114
- end
107
+ end
@@ -7,23 +7,23 @@
7
7
  require 'spec_helper'
8
8
 
9
9
  describe Prawn::Icon::Parser do
10
+ let(:pdf) { create_pdf }
11
+
10
12
  describe '::format' do
11
13
  it 'should return a raw prawn-formatted string on valid input' do
12
- string = '<icon>fa-arrows</icon>'
13
- pdf = create_pdf
14
+ string = '<icon>far-address-book</icon>'
14
15
  formatted = Prawn::Icon::Parser.format(pdf, string)
15
- match = "<font name=\"fa\"></font>"
16
+ match = '<font name="far"></font>'
16
17
 
17
18
  expect(formatted).to eq(match)
18
19
  end
19
20
 
20
21
  it 'should return unchanged if no icon tags are found' do
21
22
  string = <<-EOS
22
- <link href="#">test</link>
23
+ <link href='#'>test</link>
23
24
  Here's some sample text.
24
25
  <i>more text</i>
25
26
  EOS
26
- pdf = create_pdf
27
27
  formatted = Prawn::Icon::Parser.format(pdf, string)
28
28
 
29
29
  expect(formatted).to eq(string)
@@ -31,7 +31,6 @@ describe Prawn::Icon::Parser do
31
31
 
32
32
  it 'should return the empty string if given the empty string' do
33
33
  string = ''
34
- pdf = create_pdf
35
34
  formatted = Prawn::Icon::Parser.format(pdf, string)
36
35
 
37
36
  expect(formatted).to be_empty
@@ -39,24 +38,22 @@ describe Prawn::Icon::Parser do
39
38
 
40
39
  it 'should raise an error when an icon key is invalid' do
41
40
  string = '<icon>an invalid key</icon>'
42
- pdf = create_pdf
43
41
  proc = Proc.new { Prawn::Icon::Parser.format(pdf, string) }
44
42
 
45
43
  expect(proc).to raise_error(Prawn::Errors::UnknownFont)
46
44
  end
47
45
 
48
46
  it 'should raise an error when an icon is not found for valid set' do
49
- string = '<icon>fa-__INVALID__</icon>'
50
- pdf = create_pdf
47
+ string = '<icon>far-__INVALID__</icon>'
51
48
  proc = Proc.new { Prawn::Icon::Parser.format(pdf, string) }
52
49
 
53
- expect(proc).to raise_error(Prawn::Errors::IconNotFound)
50
+ expect(proc).to raise_error(Prawn::Icon::Errors::IconNotFound)
54
51
  end
55
52
  end
56
53
 
57
54
  describe '::config_from_tokens' do
58
55
  it 'should handle attrs with double quotes' do
59
- string = '<icon size="20">fa-arrows</icon>'
56
+ string = '<icon size="20">far-address-book</icon>'
60
57
  tokens = tokenize_string(string)
61
58
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
62
59
  inner = config.first
@@ -65,7 +62,7 @@ describe Prawn::Icon::Parser do
65
62
  end
66
63
 
67
64
  it 'should handle attrs with single quotes' do
68
- string = "<icon size='20'>fa-arrows</icon>"
65
+ string = '<icon size="20">far-address-book</icon>'
69
66
  tokens = tokenize_string(string)
70
67
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
71
68
  inner = config.first
@@ -74,7 +71,7 @@ describe Prawn::Icon::Parser do
74
71
  end
75
72
 
76
73
  it 'should handle both single/double quotes in same string' do
77
- string = '<icon color="0099FF" size=\'20\'>fa-arrows</icon>'
74
+ string = '<icon color="0099FF" size=\'20\'>far-address-book</icon>'
78
75
  tokens = tokenize_string(string)
79
76
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
80
77
  inner = config.first
@@ -84,7 +81,7 @@ describe Prawn::Icon::Parser do
84
81
  end
85
82
 
86
83
  it 'should return an array containing only an empty hash' do
87
- string = '<icon>fa-arrows</icon>'
84
+ string = '<icon>far-address-book</icon>'
88
85
  tokens = tokenize_string(string)
89
86
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
90
87
  inner = config.first
@@ -94,7 +91,7 @@ describe Prawn::Icon::Parser do
94
91
  end
95
92
 
96
93
  it 'should return an array containing a single hash of attrs' do
97
- string = '<icon size="12" color="CCCCCC">fa-arrows</icon>'
94
+ string = '<icon size="12" color="CCCCCC">far-address-book</icon>'
98
95
  tokens = tokenize_string(string)
99
96
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
100
97
  inner = config.first
@@ -106,9 +103,9 @@ describe Prawn::Icon::Parser do
106
103
 
107
104
  it 'should return an array containing as many hashes as icons' do
108
105
  string = <<-EOS
109
- <icon>fa-arrows</icon>
110
- <icon>fa-arrows</icon>
111
- <icon>fa-arrows</icon>
106
+ <icon>far-address-book</icon>
107
+ <icon>far-address-book</icon>
108
+ <icon>far-address-book</icon>
112
109
  EOS
113
110
  tokens = tokenize_string(string)
114
111
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
@@ -122,49 +119,45 @@ describe Prawn::Icon::Parser do
122
119
  string = ''
123
120
  config = []
124
121
  content = contentize_string(string)
125
- pdf = create_pdf
126
122
  icons = Prawn::Icon::Parser.keys_to_unicode(pdf, content, config)
127
123
 
128
124
  expect(icons).to be_empty
129
125
  end
130
126
 
131
127
  it 'should return an array with unicode content' do
132
- string = '<icon>fa-arrows</icon>'
128
+ string = '<icon>far-address-book</icon>'
133
129
  tokens = tokenize_string(string)
134
130
  content = contentize_string(string)
135
131
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
136
- pdf = create_pdf
137
132
  icons = Prawn::Icon::Parser.keys_to_unicode(pdf, content, config)
138
133
  icon = icons.first[:content]
139
134
 
140
- expect(valid_unicode?(icon)).to be_true
135
+ expect(valid_unicode?(icon)).to be true
141
136
  end
142
137
 
143
138
  it 'should return a single array containing attr hash of defaults' do
144
139
  # Hash must contain :set and :content by default
145
- string = '<icon>fa-arrows</icon>'
140
+ string = '<icon>far-address-book</icon>'
146
141
  tokens = tokenize_string(string)
147
142
  content = contentize_string(string)
148
143
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
149
- pdf = create_pdf
150
144
  icons = Prawn::Icon::Parser.keys_to_unicode(pdf, content, config)
151
145
  icon = icons.first
152
146
 
153
- expect(icon[:set]).to eq(:fa)
147
+ expect(icon[:set]).to eq(:far)
154
148
  expect(icon[:content]).not_to be_empty
155
149
  end
156
150
 
157
151
  it 'should handle strings with multiple icons/attrs combinations' do
158
152
  string = <<-EOS
159
- <icon size="20">fa-arrows</icon>
153
+ <icon size='20'>far-address-book</icon>
160
154
  some filler text
161
- <icon>fa-arrows</icon>
162
- <icon size="8" color="0099FF">fa-arrows</icon>
155
+ <icon>far-address-book</icon>
156
+ <icon size='8' color='0099FF'>far-address-book</icon>
163
157
  EOS
164
158
  tokens = tokenize_string(string)
165
159
  content = contentize_string(string)
166
160
  config = Prawn::Icon::Parser.config_from_tokens(tokens)
167
- pdf = create_pdf
168
161
  icons = Prawn::Icon::Parser.keys_to_unicode(pdf, content, config)
169
162
  first = icons.first
170
163
  second = icons[1]
@@ -179,40 +172,50 @@ describe Prawn::Icon::Parser do
179
172
  end
180
173
 
181
174
  describe '::icon_tags' do
182
- it 'should return valid input as prawn formatted text tags wrapping color tags' do
183
- icons = [
184
- { set: :fa, color: 'CCCCCC', content: "\uf001" }
185
- ]
186
- tags = Prawn::Icon::Parser.icon_tags(icons)
187
- match = "<font name=\"fa\"><color rgb=\"CCCCCC\">\uf001</color></font>"
188
-
189
- expect(tags.size).to eq(1)
190
- expect(tags.first).to eq(match)
191
- end
192
-
193
- it 'should return valid input as prawn formatted text tags without color' do
194
- icons = [
195
- { set: :fa, content: "\uf001" }
196
- ]
197
- tags = Prawn::Icon::Parser.icon_tags(icons)
198
- match = "<font name=\"fa\">\uf001</font>"
199
-
200
- expect(tags.size).to eq(1)
201
- expect(tags.first).to eq(match)
202
- end
203
-
204
- it 'should be capable of handling multiple icon fonts' do
205
- icons = [
206
- { set: :fa, content: "\uf001" },
207
- { set: :fi, content: "\uf001" }
208
- ]
209
- tags = Prawn::Icon::Parser.icon_tags(icons)
210
- match1 = "<font name=\"fa\">\uf001</font>"
211
- match2 = "<font name=\"fi\">\uf001</font>"
212
-
213
- expect(tags.size).to eq(2)
214
- expect(tags[0]).to eq(match1)
215
- expect(tags[1]).to eq(match2)
175
+ let(:tags) { Prawn::Icon::Parser.icon_tags(icons) }
176
+
177
+ context 'with color attribute' do
178
+ let(:icons) do
179
+ [
180
+ { set: :far, color: 'CCCCCC', content: '' }
181
+ ]
182
+ end
183
+
184
+ it 'should return valid input as prawn formatted text tags wrapping color tags' do
185
+ match = '<font name="far"><color rgb="CCCCCC"></color></font>'
186
+
187
+ expect(tags).to eq([match])
188
+ end
189
+ end
190
+
191
+ context 'without the color attribute' do
192
+ let(:icons) do
193
+ [
194
+ { set: :far, content: '' }
195
+ ]
196
+ end
197
+
198
+ it 'should return valid input as prawn formatted text tags without color' do
199
+ match = '<font name="far"></font>'
200
+
201
+ expect(tags).to eq([match])
202
+ end
203
+ end
204
+
205
+ context 'with multiple icon fonts' do
206
+ let(:icons) do
207
+ [
208
+ { set: :far, content: '' },
209
+ { set: :fi, content: '\uf001' }
210
+ ]
211
+ end
212
+
213
+ it 'should be capable of handling multiple icon fonts' do
214
+ match1 = '<font name="far"></font>'
215
+ match2 = '<font name="fi">\uf001</font>'
216
+
217
+ expect(tags).to eq([match1, match2])
218
+ end
216
219
  end
217
220
  end
218
221
  end
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: 1.0.0
4
+ version: 2.0.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: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn
@@ -34,46 +34,46 @@ dependencies:
34
34
  name: pdf-inspector
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 1.1.0
39
+ version: 1.2.1
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.1.0
46
+ version: 1.2.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 2.14.1
53
+ version: 3.5.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 2.14.1
60
+ version: 3.5.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rubocop
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.27.0
67
+ version: 0.49.1
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.27.0
74
+ version: 0.49.1
75
75
  - !ruby/object:Gem::Dependency
76
- name: mocha
76
+ name: rake
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
@@ -87,19 +87,19 @@ dependencies:
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
- name: rake
90
+ name: pdf-reader
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: '0'
95
+ version: '1.4'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: '0'
102
+ version: '1.4'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: simplecov
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -114,23 +114,9 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
- - !ruby/object:Gem::Dependency
118
- name: pdf-reader
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '1.2'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '1.2'
131
117
  description: |2
132
118
  Prawn::Icon provides various icon fonts including
133
- FontAwesome, Foundation Icons and GitHub Octicons
119
+ FontAwesome, PaymentFont and Foundation Icons
134
120
  for use with the Prawn PDF toolkit.
135
121
  email:
136
122
  - jdoyle@ualberta.ca
@@ -147,27 +133,32 @@ files:
147
133
  - README.md
148
134
  - Rakefile
149
135
  - data/fonts/DejaVuSans.ttf
150
- - data/fonts/fa/LICENSE
151
- - data/fonts/fa/fa.yml
152
- - data/fonts/fa/fontawesome.ttf
136
+ - data/fonts/fab/LICENSE
137
+ - data/fonts/fab/fa-brands.ttf
138
+ - data/fonts/fab/fab.yml
139
+ - data/fonts/far/LICENSE
140
+ - data/fonts/far/fa-regular.ttf
141
+ - data/fonts/far/far.yml
142
+ - data/fonts/fas/LICENSE
143
+ - data/fonts/fas/fa-solid.ttf
144
+ - data/fonts/fas/fas.yml
153
145
  - data/fonts/fi/LICENSE
154
146
  - data/fonts/fi/fi.yml
155
147
  - data/fonts/fi/foundation-icons.ttf
156
- - data/fonts/octicon/LICENSE
157
- - data/fonts/octicon/octicon.yml
158
- - data/fonts/octicon/octicons.ttf
159
148
  - data/fonts/pf/LICENSE
160
149
  - data/fonts/pf/paymentfont-webfont.ttf
161
150
  - data/fonts/pf/pf.yml
162
151
  - examples/example_helper.rb
163
- - examples/fa-beer-inline.png
164
- - examples/fa-beer.png
152
+ - examples/fas-beer-inline.png
153
+ - examples/fas-beer.png
165
154
  - examples/fontawesome.rb
166
155
  - examples/foundation_icons.rb
167
- - examples/octicons.rb
168
156
  - examples/paymentfont.rb
169
157
  - lib/prawn/icon.rb
158
+ - lib/prawn/icon/base.rb
159
+ - lib/prawn/icon/errors.rb
170
160
  - lib/prawn/icon/font_data.rb
161
+ - lib/prawn/icon/interface.rb
171
162
  - lib/prawn/icon/parser.rb
172
163
  - lib/prawn/icon/version.rb
173
164
  - prawn-icon.gemspec
@@ -175,6 +166,9 @@ files:
175
166
  - spec/spec_helper.rb
176
167
  - spec/support/parser_helper.rb
177
168
  - spec/support/pdf_helper.rb
169
+ - spec/unit/base_spec.rb
170
+ - spec/unit/errors/icon_key_empty_spec.rb
171
+ - spec/unit/errors/icon_not_found_spec.rb
178
172
  - spec/unit/font_data_spec.rb
179
173
  - spec/unit/icon_spec.rb
180
174
  - spec/unit/parser_spec.rb
@@ -200,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
194
  version: 1.3.6
201
195
  requirements: []
202
196
  rubyforge_project:
203
- rubygems_version: 2.4.8
197
+ rubygems_version: 2.5.1
204
198
  signing_key:
205
199
  specification_version: 4
206
200
  summary: Provides icon fonts for PrawnPDF