rbpdf 1.18.5 → 1.18.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rbpdf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rbpdf
2
- VERSION = "1.18.5"
2
+ VERSION = "1.18.6"
3
3
  end
@@ -161,9 +161,9 @@ class RbpdfTest < ActiveSupport::TestCase
161
161
  dom2 = pdf.getHtmlDomArray('<b>ab<br/>c</b>')
162
162
  assert_equal dom, dom2
163
163
 
164
- htmlcontent = '<b><img src="' + Rails.root.to_s + '/public/ng.png" alt="test alt attribute" width="30" height="30" border="0"/></b>'
164
+ htmlcontent = '<b><img src="/public/ng.png" alt="test alt attribute" width="30" height="30" border="0"/></b>'
165
165
  dom1 = pdf.getHtmlDomArray(htmlcontent)
166
- htmlcontent = '<b><img src="' + Rails.root.to_s + '/public/ng.png" alt="test alt attribute" width="30" height="30" border="0"></b>'
166
+ htmlcontent = '<b><img src="/public/ng.png" alt="test alt attribute" width="30" height="30" border="0"></b>'
167
167
  dom2 = pdf.getHtmlDomArray(htmlcontent)
168
168
  assert_equal dom1, dom2
169
169
 
@@ -271,7 +271,7 @@ class RbpdfTest < ActiveSupport::TestCase
271
271
  pdf.add_page
272
272
 
273
273
  # Image Error HTML
274
- htmlcontent = '<img src="' + Rails.root.to_s + '/public/ng.png" alt="test alt attribute" width="30" height="30" border="0"/>'
274
+ htmlcontent = '<img src="/public/ng.png" alt="test alt attribute" width="30" height="30" border="0"/>'
275
275
  dom1 = pdf.getHtmlDomArray(htmlcontent)
276
276
  y1 = pdf.get_y
277
277
 
@@ -286,7 +286,7 @@ class RbpdfTest < ActiveSupport::TestCase
286
286
  pdf.add_page
287
287
 
288
288
  # Image Error HTML
289
- htmlcontent = '<img src="' + Rails.root.to_s + '/public/ng.png" alt="test alt attribute" border="0"/>'
289
+ htmlcontent = '<img src="/public/ng.png" alt="test alt attribute" border="0"/>'
290
290
  dom1 = pdf.getHtmlDomArray(htmlcontent)
291
291
  y1 = pdf.get_y
292
292
 
@@ -296,6 +296,37 @@ class RbpdfTest < ActiveSupport::TestCase
296
296
  assert_equal y1, y2
297
297
  end
298
298
 
299
+ test "Dom open angled bracket '<' test" do
300
+ pdf = MYPDF.new
301
+ pdf.add_page
302
+
303
+ htmlcontent = "<p>AAA '<'-BBB << <<< '</' '<//' '<///' CCC.</p>"
304
+ dom = pdf.getHtmlDomArray(htmlcontent)
305
+ assert_equal dom.length, 4
306
+
307
+ assert_equal 0, dom[0]['parent'] # Root
308
+ assert_equal false, dom[0]['tag']
309
+ assert_equal({}, dom[0]['attribute'])
310
+
311
+ assert_equal 0, dom[1]['parent'] # parent -> parent tag key
312
+ assert_equal 0, dom[1]['elkey']
313
+ assert_equal true, dom[1]['tag']
314
+ assert_equal true, dom[1]['opening']
315
+ assert_equal 'p', dom[1]['value']
316
+ assert_equal({}, dom[1]['attribute'])
317
+
318
+ assert_equal 1, dom[2]['parent'] # parent -> open tag key
319
+ assert_equal 1, dom[2]['elkey']
320
+ assert_equal false, dom[2]['tag']
321
+ assert_equal "AAA '<'-BBB << <<< '</' '<//' '<///' CCC.", dom[2]['value']
322
+
323
+ assert_equal 1, dom[3]['parent'] # parent -> open tag key
324
+ assert_equal 2, dom[3]['elkey']
325
+ assert_equal true, dom[3]['tag']
326
+ assert_equal false, dom[3]['opening']
327
+ assert_equal 'p', dom[3]['value']
328
+ end
329
+
299
330
  test "getHtmlDomArray encoding test" do
300
331
  return unless 'test'.respond_to?(:force_encoding)
301
332
 
@@ -140,12 +140,10 @@ class RbpdfTest < ActiveSupport::TestCase
140
140
  test "html func sanitize test 1" do
141
141
  pdf = MYPDF.new
142
142
  pdf.add_page()
143
- html = '<table border="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead>
144
- <tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr>
145
- <tr><td>' + 'ABC' + '</td></tr></table>'
143
+ html = '<table border="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead><tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr><tr><td>' + 'ABC' + '</td></tr></table>'
146
144
  html = pdf.sanitize_html(html).gsub(/[\r\n]/,'')
147
145
 
148
- assert_equal html, %{<table border="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead> <tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr> <tr><td>ABC</td></tr></table>}
146
+ assert_equal html, %{<table border="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead><tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr><tr><td>ABC</td></tr></table>}
149
147
  end
150
148
 
151
149
  test "html func sanitize test 2" do
@@ -153,10 +151,16 @@ class RbpdfTest < ActiveSupport::TestCase
153
151
  pdf.add_page()
154
152
 
155
153
  htmlcontent = '1<br><br><br><br><br><br><br><br><br><br> 2<br><br><br><br><br><br><br><br><br><br> 3<br><br><br><br><br><br><br><br><br><br> 4<br><br><br><br><br><br><br><br><br><br> 5<br><br><br><br><br><br><br><br><br><br> 6<br><br><br><br><br><br><br><br><br><br> 7<br><br><br><br><br><br><br><br><br><br> 8<br><br><br><br><br><br><br><br><br><br> 9<br><br><br><br><br><br><br><br><br><br> 10<br><br><br><br><br><br><br><br><br><br> 11<br><br><br><br><br><br><br><br><br><br>'
156
- html = '<table cellpadding="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead>
157
- <tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr>
158
- <tr><td>' + htmlcontent + '</td></tr></table>'
154
+ html = '<table cellpadding="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead><tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr><tr><td>' + htmlcontent + '</td></tr></table>'
159
155
  html = pdf.sanitize_html(html).gsub(/[\r\n]/,'')
160
- assert_equal html, %{<table cellpadding="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead> <tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr> <tr><td>1<br><br><br><br><br><br><br><br><br><br> 2<br><br><br><br><br><br><br><br><br><br> 3<br><br><br><br><br><br><br><br><br><br> 4<br><br><br><br><br><br><br><br><br><br> 5<br><br><br><br><br><br><br><br><br><br> 6<br><br><br><br><br><br><br><br><br><br> 7<br><br><br><br><br><br><br><br><br><br> 8<br><br><br><br><br><br><br><br><br><br> 9<br><br><br><br><br><br><br><br><br><br> 10<br><br><br><br><br><br><br><br><br><br> 11<br><br><br><br><br><br><br><br><br><br></td></tr></table>}
156
+ assert_equal html, %{<table cellpadding="1"><thead><tr><td>ABCD</td><td>EFGH</td><td>IJKL</td></tr></thead><tr><td>abcd</td><td>efgh</td><td>ijkl</td></tr><tr><td>1<br><br><br><br><br><br><br><br><br><br> 2<br><br><br><br><br><br><br><br><br><br> 3<br><br><br><br><br><br><br><br><br><br> 4<br><br><br><br><br><br><br><br><br><br> 5<br><br><br><br><br><br><br><br><br><br> 6<br><br><br><br><br><br><br><br><br><br> 7<br><br><br><br><br><br><br><br><br><br> 8<br><br><br><br><br><br><br><br><br><br> 9<br><br><br><br><br><br><br><br><br><br> 10<br><br><br><br><br><br><br><br><br><br> 11<br><br><br><br><br><br><br><br><br><br></td></tr></table>}
157
+ end
158
+
159
+ test "html func sanitize open angled bracket '<' test" do
160
+ pdf = MYPDF.new
161
+ pdf.add_page()
162
+ html = "<p>AAA '<'-BBB << <<< '</' '<//' '<///' <</ <<// CCC.</p>"
163
+ html = pdf.sanitize_html(html).gsub(/[\r\n]/,'')
164
+ assert_equal %{<p>AAA '&lt;'-BBB &lt;&lt; &lt;&lt;&lt; '&lt;/' '&lt;//' '&lt;///' &lt;&lt;/ &lt;&lt;// CCC.</p>}, html
161
165
  end
162
166
  end
data/test/rbpdf_test.rb CHANGED
@@ -266,6 +266,101 @@ class RbpdfTest < ActiveSupport::TestCase
266
266
  assert_equal pagedim['CropBox']['llx'], 0.0
267
267
  end
268
268
 
269
+ test "Page Box A4 test 1" do
270
+ pdf = RBPDF.new
271
+ pagedim = pdf.get_page_dimensions
272
+ assert_equal pagedim['MediaBox']['llx'], 0.0
273
+ assert_equal pagedim['MediaBox']['lly'], 0.0
274
+ assert_equal pagedim['MediaBox']['urx'], 595.28
275
+ assert_equal pagedim['MediaBox']['ury'], 841.89
276
+ assert_equal pagedim['CropBox']['llx'], 0.0
277
+ assert_equal pagedim['CropBox']['lly'], 0.0
278
+ assert_equal pagedim['CropBox']['urx'], 595.28
279
+ assert_equal pagedim['CropBox']['ury'], 841.89
280
+ assert_equal pagedim['BleedBox']['llx'], 0.0
281
+ assert_equal pagedim['BleedBox']['lly'], 0.0
282
+ assert_equal pagedim['BleedBox']['urx'], 595.28
283
+ assert_equal pagedim['BleedBox']['ury'], 841.89
284
+ assert_equal pagedim['TrimBox']['llx'], 0.0
285
+ assert_equal pagedim['TrimBox']['lly'], 0.0
286
+ assert_equal pagedim['TrimBox']['urx'], 595.28
287
+ assert_equal pagedim['TrimBox']['ury'], 841.89
288
+ assert_equal pagedim['ArtBox']['llx'], 0.0
289
+ assert_equal pagedim['ArtBox']['lly'], 0.0
290
+ assert_equal pagedim['ArtBox']['urx'], 595.28
291
+ assert_equal pagedim['ArtBox']['ury'], 841.89
292
+ end
293
+
294
+ test "Page Box A4 test 2" do
295
+ format = {}
296
+ type = ['CropBox', 'BleedBox', 'TrimBox', 'ArtBox']
297
+ type.each do |type|
298
+ format[type] = {}
299
+ format[type]['llx'] = 0
300
+ format[type]['lly'] = 0
301
+ format[type]['urx'] = 210
302
+ format[type]['ury'] = 297
303
+ end
304
+
305
+ pdf = RBPDF.new('P', 'mm', format)
306
+ pagedim = pdf.get_page_dimensions
307
+ assert_equal pagedim['MediaBox']['llx'], 0.0
308
+ assert_equal pagedim['MediaBox']['lly'], 0.0
309
+ assert_in_delta pagedim['MediaBox']['urx'], 595.28, 0.1
310
+ assert_in_delta pagedim['MediaBox']['ury'], 841.89, 0.1
311
+ assert_equal pagedim['CropBox']['llx'], 0.0
312
+ assert_equal pagedim['CropBox']['lly'], 0.0
313
+ assert_in_delta pagedim['CropBox']['urx'], 595.28, 0.1
314
+ assert_in_delta pagedim['CropBox']['ury'], 841.89, 0.1
315
+ assert_equal pagedim['BleedBox']['llx'], 0.0
316
+ assert_equal pagedim['BleedBox']['lly'], 0.0
317
+ assert_in_delta pagedim['BleedBox']['urx'], 595.28, 0.1
318
+ assert_in_delta pagedim['BleedBox']['ury'], 841.89, 0.1
319
+ assert_equal pagedim['TrimBox']['llx'], 0.0
320
+ assert_equal pagedim['TrimBox']['lly'], 0.0
321
+ assert_in_delta pagedim['TrimBox']['urx'], 595.28, 0.1
322
+ assert_in_delta pagedim['TrimBox']['ury'], 841.89, 0.1
323
+ assert_equal pagedim['ArtBox']['llx'], 0.0
324
+ assert_equal pagedim['ArtBox']['lly'], 0.0
325
+ assert_in_delta pagedim['ArtBox']['urx'], 595.28, 0.1
326
+ assert_in_delta pagedim['ArtBox']['ury'], 841.89, 0.1
327
+ end
328
+
329
+ test "Page Box A4 test 3" do
330
+ format = {}
331
+ type = ['MediaBox', 'CropBox', 'BleedBox', 'TrimBox', 'ArtBox']
332
+ type.each do |type|
333
+ format[type] = {}
334
+ format[type]['llx'] = 0
335
+ format[type]['lly'] = 0
336
+ format[type]['urx'] = 210
337
+ format[type]['ury'] = 297
338
+ end
339
+
340
+ pdf = RBPDF.new('P', 'mm', format)
341
+ pagedim = pdf.get_page_dimensions
342
+ assert_equal pagedim['MediaBox']['llx'], 0.0
343
+ assert_equal pagedim['MediaBox']['lly'], 0.0
344
+ assert_in_delta pagedim['MediaBox']['urx'], 595.28, 0.1
345
+ assert_in_delta pagedim['MediaBox']['ury'], 841.89, 0.1
346
+ assert_equal pagedim['CropBox']['llx'], 0.0
347
+ assert_equal pagedim['CropBox']['lly'], 0.0
348
+ assert_in_delta pagedim['CropBox']['urx'], 595.28, 0.1
349
+ assert_in_delta pagedim['CropBox']['ury'], 841.89, 0.1
350
+ assert_equal pagedim['BleedBox']['llx'], 0.0
351
+ assert_equal pagedim['BleedBox']['lly'], 0.0
352
+ assert_in_delta pagedim['BleedBox']['urx'], 595.28, 0.1
353
+ assert_in_delta pagedim['BleedBox']['ury'], 841.89, 0.1
354
+ assert_equal pagedim['TrimBox']['llx'], 0.0
355
+ assert_equal pagedim['TrimBox']['lly'], 0.0
356
+ assert_in_delta pagedim['TrimBox']['urx'], 595.28, 0.1
357
+ assert_in_delta pagedim['TrimBox']['ury'], 841.89, 0.1
358
+ assert_equal pagedim['ArtBox']['llx'], 0.0
359
+ assert_equal pagedim['ArtBox']['lly'], 0.0
360
+ assert_in_delta pagedim['ArtBox']['urx'], 595.28, 0.1
361
+ assert_in_delta pagedim['ArtBox']['ury'], 841.89, 0.1
362
+ end
363
+
269
364
  test "get_break_margin test" do
270
365
  pdf = RBPDF.new
271
366
  pdf.add_page
data/test/test_helper.rb CHANGED
@@ -1 +1,2 @@
1
- #!/usr/bin/env ruby
1
+ #!/usr/bin/env ruby
2
+ require 'rbpdf'
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+ #require 'test/unit'
3
+ #require 'active_support'
4
+ require 'rbpdf'
5
+
6
+ =begin
7
+ if Rails::VERSION::MAJOR >= 4
8
+ # require 'active_support/testing/autorun' # Rails 4.2
9
+
10
+ gem 'test-unit'
11
+ require 'test/unit'
12
+ #Test::Unit::AutoRunner.new(true).run
13
+ Test::Unit::AutoRunner.new(false).run
14
+ #(r = Test::Unit::AutoRunner.new(true)).process_args(ARGV) or
15
+ # abort r.options.banner + " tests..."
16
+ #exit r.run
17
+
18
+ # require 'active_support/testing/autorun' # Rails 4.2
19
+
20
+ #gem 'minitest'
21
+ #require 'minitest'
22
+ #Minitest.autorun
23
+
24
+ else
25
+ =end
26
+ # require 'rails/all'
27
+ require "rails"
28
+
29
+ class Application < Rails::Application
30
+ end
31
+ #end
metadata CHANGED
@@ -1,237 +1,245 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbpdf
3
- version: !ruby/object:Gem::Version
4
- version: 1.18.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.18.6
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - NAITOH Jun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2015-01-24 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2015-06-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: "1.6"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
22
20
  type: :development
23
- version_requirements: *id001
24
- - !ruby/object:Gem::Dependency
25
- name: rake
26
21
  prerelease: false
27
- requirement: &id002 !ruby/object:Gem::Requirement
28
- requirements:
29
- - &id003
30
- - ">="
31
- - !ruby/object:Gem::Version
32
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
33
34
  type: :development
34
- version_requirements: *id002
35
- description: A template plugin allowing the inclusion of ERB-enabled RBPDF template files.
36
- email:
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: A template plugin allowing the inclusion of ERB-enabled RBPDF template
42
+ files.
43
+ email:
37
44
  - naitoh@gmail.com
38
45
  executables: []
39
-
40
46
  extensions: []
41
-
42
47
  extra_rdoc_files: []
43
-
44
- files:
45
- - lib/rbpdf/version.rb
46
- - lib/htmlcolors.rb
47
- - lib/unicode_data.rb
48
- - lib/rbpdf.rb
48
+ files:
49
+ - CHANGELOG
50
+ - Gemfile
51
+ - LICENSE.TXT
52
+ - README.md
53
+ - Rakefile
49
54
  - lib/core/rmagick.rb
55
+ - lib/fonts/README.z
56
+ - lib/fonts/arialunicid0_cw.rb
57
+ - lib/fonts/cid0cs.rb
58
+ - lib/fonts/cid0ct.rb
50
59
  - lib/fonts/cid0jp.rb
51
- - lib/fonts/kozminproregular.rb
52
- - lib/fonts/stsongstdlight.rb
53
- - lib/fonts/helvetica.rb
54
- - lib/fonts/freesans.rb
55
- - lib/fonts/symbol.rb
56
- - lib/fonts/uni2cid_aj16.rb
57
- - lib/fonts/hysmyeongjostdmedium.rb
58
- - lib/fonts/helveticabi.rb
59
- - lib/fonts/freemonoi.rb
60
- - lib/fonts/freemonob.rb
61
- - lib/fonts/uni2cid_ag15.rb
62
- - lib/fonts/freeserifbi.rb
63
- - lib/fonts/kozgopromedium.rb
64
- - lib/fonts/zapfdingbats.rb
65
- - lib/fonts/freeserifi.rb
66
- - lib/fonts/freeserif.rb
67
- - lib/fonts/msungstdlight.rb
68
60
  - lib/fonts/cid0kr.rb
69
- - lib/fonts/dejavusansb.rb
70
- - lib/fonts/freeserifb.rb
71
- - lib/fonts/timesi.rb
72
- - lib/fonts/times.rb
73
- - lib/fonts/helveticai.rb
74
61
  - lib/fonts/courier.rb
75
- - lib/fonts/timesb.rb
76
- - lib/fonts/freemono.rb
77
- - lib/fonts/dejavusansi.rb
78
- - lib/fonts/cid0ct.rb
79
- - lib/fonts/cid0cs.rb
80
- - lib/fonts/freemonobi.rb
81
- - lib/fonts/helveticab.rb
62
+ - lib/fonts/dejavu-fonts-ttf-2.33/AUTHORS
63
+ - lib/fonts/dejavu-fonts-ttf-2.33/BUGS
64
+ - lib/fonts/dejavu-fonts-ttf-2.33/LICENSE
65
+ - lib/fonts/dejavu-fonts-ttf-2.33/NEWS
66
+ - lib/fonts/dejavu-fonts-ttf-2.33/README
67
+ - lib/fonts/dejavusans.ctg.z
82
68
  - lib/fonts/dejavusans.rb
83
- - lib/fonts/freesansb.rb
84
- - lib/fonts/sjis.rb
85
- - lib/fonts/arialunicid0_cw.rb
86
- - lib/fonts/timesbi.rb
87
- - lib/fonts/uni2cid_ac15.rb
88
- - lib/fonts/uni2cid_ak12.rb
69
+ - lib/fonts/dejavusans.z
70
+ - lib/fonts/dejavusansb.ctg.z
71
+ - lib/fonts/dejavusansb.rb
72
+ - lib/fonts/dejavusansb.z
73
+ - lib/fonts/dejavusansbi.ctg.z
89
74
  - lib/fonts/dejavusansbi.rb
90
- - lib/fonts/freesansbi.rb
91
- - lib/fonts/freesansi.rb
92
- - lib/fonts/freesansbi.z
93
- - lib/fonts/freesansb.ctg.z
94
- - lib/fonts/freeserifb.z
75
+ - lib/fonts/dejavusansbi.z
76
+ - lib/fonts/dejavusansi.ctg.z
77
+ - lib/fonts/dejavusansi.rb
78
+ - lib/fonts/dejavusansi.z
79
+ - lib/fonts/freefont-20080912/AUTHORS
80
+ - lib/fonts/freefont-20080912/COPYING
81
+ - lib/fonts/freefont-20080912/CREDITS
82
+ - lib/fonts/freefont-20080912/ChangeLog
83
+ - lib/fonts/freefont-20080912/INSTALL
84
+ - lib/fonts/freefont-20080912/README
85
+ - lib/fonts/freemono.ctg.z
86
+ - lib/fonts/freemono.rb
95
87
  - lib/fonts/freemono.z
96
- - lib/fonts/freeserif.ctg.z
97
- - lib/fonts/dejavusansb.ctg.z
98
88
  - lib/fonts/freemonob.ctg.z
99
- - lib/fonts/freemono.ctg.z
100
- - lib/fonts/dejavusansi.ctg.z
101
- - lib/fonts/dejavusansb.z
89
+ - lib/fonts/freemonob.rb
102
90
  - lib/fonts/freemonob.z
103
- - lib/fonts/freeserifi.ctg.z
104
- - lib/fonts/freesans.z
105
- - lib/fonts/freeserifb.ctg.z
91
+ - lib/fonts/freemonobi.ctg.z
92
+ - lib/fonts/freemonobi.rb
93
+ - lib/fonts/freemonobi.z
106
94
  - lib/fonts/freemonoi.ctg.z
107
- - lib/fonts/freeserif.z
95
+ - lib/fonts/freemonoi.rb
96
+ - lib/fonts/freemonoi.z
97
+ - lib/fonts/freesans.ctg.z
98
+ - lib/fonts/freesans.rb
99
+ - lib/fonts/freesans.z
100
+ - lib/fonts/freesansb.ctg.z
101
+ - lib/fonts/freesansb.rb
102
+ - lib/fonts/freesansb.z
108
103
  - lib/fonts/freesansbi.ctg.z
104
+ - lib/fonts/freesansbi.rb
105
+ - lib/fonts/freesansbi.z
106
+ - lib/fonts/freesansi.ctg.z
107
+ - lib/fonts/freesansi.rb
109
108
  - lib/fonts/freesansi.z
110
- - lib/fonts/dejavusansbi.z
111
- - lib/fonts/dejavusans.ctg.z
112
- - lib/fonts/freesansb.z
113
- - lib/fonts/dejavusansbi.ctg.z
109
+ - lib/fonts/freeserif.ctg.z
110
+ - lib/fonts/freeserif.rb
111
+ - lib/fonts/freeserif.z
112
+ - lib/fonts/freeserifb.ctg.z
113
+ - lib/fonts/freeserifb.rb
114
+ - lib/fonts/freeserifb.z
114
115
  - lib/fonts/freeserifbi.ctg.z
115
- - lib/fonts/freesans.ctg.z
116
- - lib/fonts/freeserifi.z
117
- - lib/fonts/dejavusans.z
118
- - lib/fonts/freesansi.ctg.z
119
- - lib/fonts/freemonobi.ctg.z
120
- - lib/fonts/freemonobi.z
116
+ - lib/fonts/freeserifbi.rb
121
117
  - lib/fonts/freeserifbi.z
122
- - lib/fonts/README.z
123
- - lib/fonts/dejavusansi.z
124
- - lib/fonts/freemonoi.z
125
- - lib/fonts/freefont-20080912/AUTHORS
126
- - lib/fonts/freefont-20080912/CREDITS
127
- - lib/fonts/freefont-20080912/README
128
- - lib/fonts/freefont-20080912/ChangeLog
129
- - lib/fonts/freefont-20080912/INSTALL
130
- - lib/fonts/freefont-20080912/COPYING
131
- - lib/fonts/dejavu-fonts-ttf-2.33/AUTHORS
132
- - lib/fonts/dejavu-fonts-ttf-2.33/BUGS
133
- - lib/fonts/dejavu-fonts-ttf-2.33/LICENSE
134
- - lib/fonts/dejavu-fonts-ttf-2.33/NEWS
135
- - lib/fonts/dejavu-fonts-ttf-2.33/README
118
+ - lib/fonts/freeserifi.ctg.z
119
+ - lib/fonts/freeserifi.rb
120
+ - lib/fonts/freeserifi.z
121
+ - lib/fonts/helvetica.rb
122
+ - lib/fonts/helveticab.rb
123
+ - lib/fonts/helveticabi.rb
124
+ - lib/fonts/helveticai.rb
125
+ - lib/fonts/hysmyeongjostdmedium.rb
126
+ - lib/fonts/kozgopromedium.rb
127
+ - lib/fonts/kozminproregular.rb
128
+ - lib/fonts/msungstdlight.rb
129
+ - lib/fonts/sjis.rb
130
+ - lib/fonts/stsongstdlight.rb
131
+ - lib/fonts/symbol.rb
132
+ - lib/fonts/times.rb
133
+ - lib/fonts/timesb.rb
134
+ - lib/fonts/timesbi.rb
135
+ - lib/fonts/timesi.rb
136
+ - lib/fonts/uni2cid_ac15.rb
137
+ - lib/fonts/uni2cid_ag15.rb
138
+ - lib/fonts/uni2cid_aj16.rb
139
+ - lib/fonts/uni2cid_ak12.rb
140
+ - lib/fonts/zapfdingbats.rb
141
+ - lib/htmlcolors.rb
142
+ - lib/rbpdf.rb
143
+ - lib/rbpdf/version.rb
144
+ - lib/unicode_data.rb
145
+ - logo_example.png
146
+ - rbpdf.gemspec
147
+ - test/logo_rbpdf_8bit.gif
148
+ - test/logo_rbpdf_8bit.jpg
136
149
  - test/logo_rbpdf_8bit.png
137
- - test/rbpdf_bookmark_test.rb
150
+ - test/logo_rbpdf_8bit_alpha.gif
151
+ - test/logo_rbpdf_mono_gray.jpg
152
+ - test/logo_rbpdf_mono_gray.png
153
+ - test/logo_rbpdf_mono_rgb.jpg
154
+ - test/logo_rbpdf_mono_rgb.png
155
+ - test/png_test_alpha.png
156
+ - test/png_test_msk_alpha.png
138
157
  - test/png_test_non_alpha.png
158
+ - test/rbpdf_bidi_test.rb
159
+ - test/rbpdf_bookmark_test.rb
160
+ - test/rbpdf_cell_test.rb
161
+ - test/rbpdf_content_test.rb
139
162
  - test/rbpdf_css_test.rb
140
- - test/logo_rbpdf_8bit_alpha.gif
141
- - test/rbpdf_font_style_test.rb
142
163
  - test/rbpdf_dom_test.rb
143
164
  - test/rbpdf_font_func_test.rb
144
- - test/rbpdf_image_test.rb
145
- - test/rbpdf_content_test.rb
146
- - test/rbpdf_transaction_test.rb
165
+ - test/rbpdf_font_style_test.rb
147
166
  - test/rbpdf_font_test.rb
148
167
  - test/rbpdf_format_test.rb
149
- - test/logo_rbpdf_8bit.gif
150
- - test/png_test_alpha.png
151
- - test/rbpdf_test.rb
152
- - test/logo_rbpdf_mono_rgb.png
153
- - test/logo_rbpdf_8bit.jpg
154
- - test/logo_rbpdf_mono_gray.png
155
- - test/rbpdf_write_test.rb
156
168
  - test/rbpdf_func_test.rb
157
- - test/rbpdf_html_test.rb
158
- - test/logo_rbpdf_mono_rgb.jpg
159
- - test/test_helper.rb
160
- - test/rbpdf_cell_test.rb
161
- - test/png_test_msk_alpha.png
162
- - test/logo_rbpdf_mono_gray.jpg
163
169
  - test/rbpdf_html_func_test.rb
164
- - test/rbpdf_viewerpreferences_test.rb
170
+ - test/rbpdf_html_test.rb
165
171
  - test/rbpdf_htmlcell_test.rb
166
172
  - test/rbpdf_image_rmagick_test.rb
167
- - test/rbpdf_bidi_test.rb
168
- - Rakefile
169
- - rbpdf.gemspec
170
- - Gemfile
171
- - CHANGELOG
173
+ - test/rbpdf_image_test.rb
174
+ - test/rbpdf_test.rb
175
+ - test/rbpdf_transaction_test.rb
176
+ - test/rbpdf_viewerpreferences_test.rb
177
+ - test/rbpdf_write_test.rb
178
+ - test/test_helper.rb
179
+ - test/test_helper.rb_
172
180
  - test_unicode.rbpdf
173
- - README.md
174
- - LICENSE.TXT
175
181
  - utf8test.txt
176
- - logo_example.png
177
- homepage: ""
178
- licenses:
182
+ homepage: ''
183
+ licenses:
179
184
  - LGPL 2.1 or later
180
185
  metadata: {}
181
-
182
186
  post_install_message:
183
- rdoc_options:
184
- - --exclude
187
+ rdoc_options:
188
+ - "--exclude"
185
189
  - lib/fonts/
186
- - --exclude
190
+ - "--exclude"
187
191
  - lib/htmlcolors.rb
188
- - --exclude
192
+ - "--exclude"
189
193
  - lib/unicode_data.rb
190
- require_paths:
194
+ require_paths:
191
195
  - lib
192
- required_ruby_version: !ruby/object:Gem::Requirement
193
- requirements:
194
- - *id003
195
- required_rubygems_version: !ruby/object:Gem::Requirement
196
- requirements:
197
- - *id003
196
+ required_ruby_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ required_rubygems_version: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
198
206
  requirements: []
199
-
200
207
  rubyforge_project:
201
- rubygems_version: 2.0.14
208
+ rubygems_version: 2.2.2
202
209
  signing_key:
203
210
  specification_version: 4
204
211
  summary: RBPDF via TCPDF.
205
- test_files:
212
+ test_files:
213
+ - test/logo_rbpdf_8bit.gif
214
+ - test/logo_rbpdf_8bit.jpg
206
215
  - test/logo_rbpdf_8bit.png
207
- - test/rbpdf_bookmark_test.rb
216
+ - test/logo_rbpdf_8bit_alpha.gif
217
+ - test/logo_rbpdf_mono_gray.jpg
218
+ - test/logo_rbpdf_mono_gray.png
219
+ - test/logo_rbpdf_mono_rgb.jpg
220
+ - test/logo_rbpdf_mono_rgb.png
221
+ - test/png_test_alpha.png
222
+ - test/png_test_msk_alpha.png
208
223
  - test/png_test_non_alpha.png
224
+ - test/rbpdf_bidi_test.rb
225
+ - test/rbpdf_bookmark_test.rb
226
+ - test/rbpdf_cell_test.rb
227
+ - test/rbpdf_content_test.rb
209
228
  - test/rbpdf_css_test.rb
210
- - test/logo_rbpdf_8bit_alpha.gif
211
- - test/rbpdf_font_style_test.rb
212
229
  - test/rbpdf_dom_test.rb
213
230
  - test/rbpdf_font_func_test.rb
214
- - test/rbpdf_image_test.rb
215
- - test/rbpdf_content_test.rb
216
- - test/rbpdf_transaction_test.rb
231
+ - test/rbpdf_font_style_test.rb
217
232
  - test/rbpdf_font_test.rb
218
233
  - test/rbpdf_format_test.rb
219
- - test/logo_rbpdf_8bit.gif
220
- - test/png_test_alpha.png
221
- - test/rbpdf_test.rb
222
- - test/logo_rbpdf_mono_rgb.png
223
- - test/logo_rbpdf_8bit.jpg
224
- - test/logo_rbpdf_mono_gray.png
225
- - test/rbpdf_write_test.rb
226
234
  - test/rbpdf_func_test.rb
227
- - test/rbpdf_html_test.rb
228
- - test/logo_rbpdf_mono_rgb.jpg
229
- - test/test_helper.rb
230
- - test/rbpdf_cell_test.rb
231
- - test/png_test_msk_alpha.png
232
- - test/logo_rbpdf_mono_gray.jpg
233
235
  - test/rbpdf_html_func_test.rb
234
- - test/rbpdf_viewerpreferences_test.rb
236
+ - test/rbpdf_html_test.rb
235
237
  - test/rbpdf_htmlcell_test.rb
236
238
  - test/rbpdf_image_rmagick_test.rb
237
- - test/rbpdf_bidi_test.rb
239
+ - test/rbpdf_image_test.rb
240
+ - test/rbpdf_test.rb
241
+ - test/rbpdf_transaction_test.rb
242
+ - test/rbpdf_viewerpreferences_test.rb
243
+ - test/rbpdf_write_test.rb
244
+ - test/test_helper.rb
245
+ - test/test_helper.rb_