prawn 0.11.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. data/GPLv2 +340 -0
  2. data/GPLv3 +674 -0
  3. data/README.md +96 -0
  4. data/Rakefile +0 -12
  5. data/examples/example_helper.rb +3 -0
  6. data/lib/prawn.rb +1 -1
  7. data/lib/prawn/core/page.rb +4 -2
  8. data/lib/prawn/core/pdf_object.rb +7 -7
  9. data/lib/prawn/core/text/formatted/arranger.rb +2 -1
  10. data/lib/prawn/core/text/formatted/line_wrap.rb +2 -1
  11. data/lib/prawn/core/text/formatted/wrap.rb +5 -1
  12. data/lib/prawn/document.rb +135 -112
  13. data/lib/prawn/document/bounding_box.rb +51 -5
  14. data/lib/prawn/document/column_box.rb +0 -19
  15. data/lib/prawn/document/internals.rb +1 -0
  16. data/lib/prawn/document/snapshot.rb +3 -0
  17. data/lib/prawn/font.rb +4 -3
  18. data/lib/prawn/font/afm.rb +11 -2
  19. data/lib/prawn/font/ttf.rb +15 -0
  20. data/lib/prawn/images.rb +1 -1
  21. data/lib/prawn/table.rb +23 -7
  22. data/lib/prawn/table/cell.rb +31 -9
  23. data/lib/prawn/table/cell/text.rb +2 -2
  24. data/prawn.gemspec +5 -6
  25. data/spec/bounding_box_spec.rb +157 -0
  26. data/spec/data/curves.pdf +66 -0
  27. data/spec/document_spec.rb +59 -4
  28. data/spec/extensions/mocha.rb +1 -3
  29. data/spec/font_spec.rb +23 -0
  30. data/spec/formatted_text_box_spec.rb +40 -0
  31. data/spec/images_spec.rb +7 -0
  32. data/spec/object_store_spec.rb +3 -3
  33. data/spec/snapshot_spec.rb +33 -0
  34. data/spec/table_spec.rb +75 -0
  35. data/spec/template_spec.rb +11 -5
  36. data/spec/text_spacing_spec.rb +18 -0
  37. data/spec/text_spec.rb +32 -0
  38. metadata +217 -283
  39. data/HACKING +0 -50
  40. data/README +0 -141
  41. data/examples/bounding_box/bounding_boxes.rb +0 -44
  42. data/examples/bounding_box/indentation.rb +0 -35
  43. data/examples/bounding_box/stretched_nesting.rb +0 -68
  44. data/examples/general/background.rb +0 -24
  45. data/examples/general/canvas.rb +0 -16
  46. data/examples/general/float.rb +0 -12
  47. data/examples/general/margin.rb +0 -37
  48. data/examples/general/measurement_units.rb +0 -52
  49. data/examples/general/metadata-info.rb +0 -17
  50. data/examples/general/multi_page_layout.rb +0 -19
  51. data/examples/general/outlines.rb +0 -67
  52. data/examples/general/page_geometry.rb +0 -32
  53. data/examples/general/page_numbering.rb +0 -40
  54. data/examples/general/page_templates.rb +0 -20
  55. data/examples/general/repeaters.rb +0 -48
  56. data/examples/general/stamp.rb +0 -42
  57. data/examples/general/templates.rb +0 -14
  58. data/examples/graphics/basic_images.rb +0 -24
  59. data/examples/graphics/curves.rb +0 -12
  60. data/examples/graphics/hexagon.rb +0 -14
  61. data/examples/graphics/image_fit.rb +0 -16
  62. data/examples/graphics/image_flow.rb +0 -38
  63. data/examples/graphics/image_position.rb +0 -18
  64. data/examples/graphics/line.rb +0 -33
  65. data/examples/graphics/polygons.rb +0 -17
  66. data/examples/graphics/rounded_polygons.rb +0 -20
  67. data/examples/graphics/rounded_rectangle.rb +0 -21
  68. data/examples/graphics/ruport_style_helpers.rb +0 -20
  69. data/examples/graphics/stroke_bounds.rb +0 -21
  70. data/examples/graphics/stroke_cap_and_join.rb +0 -46
  71. data/examples/graphics/stroke_dash.rb +0 -43
  72. data/examples/graphics/transformations.rb +0 -53
  73. data/examples/graphics/transparency.rb +0 -27
  74. data/examples/grid/bounding_boxes.rb +0 -22
  75. data/examples/grid/column_gutter_grid.rb +0 -21
  76. data/examples/grid/multi_boxes.rb +0 -52
  77. data/examples/grid/show_grid.rb +0 -14
  78. data/examples/grid/simple_grid.rb +0 -21
  79. data/examples/m17n/chinese_text_wrapping.rb +0 -18
  80. data/examples/m17n/euro.rb +0 -16
  81. data/examples/m17n/utf8.rb +0 -14
  82. data/examples/security/hello_foo.rb +0 -9
  83. data/examples/table/borders.rb +0 -25
  84. data/examples/table/cell.rb +0 -13
  85. data/examples/table/checkerboard.rb +0 -23
  86. data/examples/table/inline_format_table.rb +0 -13
  87. data/examples/table/multi_page_table.rb +0 -10
  88. data/examples/table/simple_table.rb +0 -25
  89. data/examples/table/subtable.rb +0 -13
  90. data/examples/table/widths.rb +0 -21
  91. data/examples/text/alignment.rb +0 -19
  92. data/examples/text/character_spacing.rb +0 -13
  93. data/examples/text/dfont.rb +0 -49
  94. data/examples/text/family_based_styling.rb +0 -25
  95. data/examples/text/font_size.rb +0 -34
  96. data/examples/text/inline_format.rb +0 -104
  97. data/examples/text/kerning.rb +0 -31
  98. data/examples/text/rendering_mode.rb +0 -21
  99. data/examples/text/rotated.rb +0 -99
  100. data/examples/text/shaped_text_box.rb +0 -32
  101. data/examples/text/simple_text.rb +0 -18
  102. data/examples/text/simple_text_ttf.rb +0 -18
  103. data/examples/text/span.rb +0 -30
  104. data/examples/text/text_box.rb +0 -90
  105. data/examples/text/text_box_returning_excess.rb +0 -52
  106. data/examples/text/text_flow.rb +0 -68
@@ -2,7 +2,7 @@ require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")
2
2
 
3
3
  describe "Document built from a template" do
4
4
  it "should have the same page count as the source document" do
5
- filename = "#{Prawn::BASEDIR}/reference_pdfs/curves.pdf"
5
+ filename = "#{Prawn::BASEDIR}/spec/data/curves.pdf"
6
6
  @pdf = Prawn::Document.new(:template => filename)
7
7
  page_counter = PDF::Inspector::Page.analyze(@pdf.render)
8
8
 
@@ -10,14 +10,14 @@ describe "Document built from a template" do
10
10
  end
11
11
 
12
12
  it "should have start with the Y cursor at the top of the document" do
13
- filename = "#{Prawn::BASEDIR}/reference_pdfs/curves.pdf"
13
+ filename = "#{Prawn::BASEDIR}/spec/data/curves.pdf"
14
14
 
15
15
  @pdf = Prawn::Document.new(:template => filename)
16
16
  (@pdf.y == nil).should == false
17
17
  end
18
18
 
19
19
  it "should respect margins set by Prawn" do
20
- filename = "#{Prawn::BASEDIR}/reference_pdfs/curves.pdf"
20
+ filename = "#{Prawn::BASEDIR}/spec/data/curves.pdf"
21
21
 
22
22
  @pdf = Prawn::Document.new(:template => filename, :margin => 0)
23
23
  assert_equal @pdf.page.margins, { :left => 0,
@@ -44,7 +44,7 @@ describe "Document built from a template" do
44
44
  end
45
45
 
46
46
  it "should not add an extra restore_graphics_state operator to the end of any content stream" do
47
- filename = "#{Prawn::BASEDIR}/reference_pdfs/curves.pdf"
47
+ filename = "#{Prawn::BASEDIR}/spec/data/curves.pdf"
48
48
 
49
49
  @pdf = Prawn::Document.new(:template => filename)
50
50
  output = StringIO.new(@pdf.render)
@@ -165,7 +165,13 @@ describe "Document built from a template" do
165
165
  end
166
166
 
167
167
  describe "Document#start_new_page with :template option" do
168
- filename = "#{Prawn::BASEDIR}/reference_pdfs/curves.pdf"
168
+ filename = "#{Prawn::BASEDIR}/spec/data/curves.pdf"
169
+
170
+ it "should set the imported page's parent to the document pages catalog" do
171
+ @pdf = Prawn::Document.new()
172
+ @pdf.start_new_page(:template => filename)
173
+ @pdf.state.page.dictionary.data[:Parent].should == @pdf.state.store.pages
174
+ end
169
175
 
170
176
  it "should set start the Y cursor at the top of the page" do
171
177
  @pdf = Prawn::Document.new()
@@ -36,6 +36,24 @@ describe "#character_spacing" do
36
36
  end
37
37
  @pdf.character_spacing.should == 0
38
38
  end
39
+
40
+ # ensure that we properly internationalize by using the number of characters
41
+ # in a string, not the number of bytes, to insert character spaces
42
+ #
43
+ it "should calculate character spacing widths by characters, not bytes" do
44
+ create_pdf
45
+ @pdf.font("#{Prawn::BASEDIR}/data/fonts/gkai00mp.ttf")
46
+
47
+ str = "こんにちは世界"
48
+ @pdf.character_spacing(0) do
49
+ @raw_width = @pdf.width_of(str)
50
+ end
51
+
52
+ @pdf.character_spacing(10) do
53
+ # the new width should include seven 10-pt character spaces.
54
+ @pdf.width_of(str).should.be.close(@raw_width + (10 * 7), 0.001)
55
+ end
56
+ end
39
57
  end
40
58
 
41
59
  describe "#word_spacing" do
@@ -256,6 +256,12 @@ describe "#text" do
256
256
  it "should raise an exception when an unknown font is used" do
257
257
  lambda { @pdf.font "Pao bu" }.should.raise(Prawn::Errors::UnknownFont)
258
258
  end
259
+
260
+ it "should not raise an exception when providing Pathname instance as font" do
261
+ lambda {
262
+ @pdf.font Pathname.new("#{Prawn::BASEDIR}/data/fonts/comicsans.ttf")
263
+ }.should.not.raise(Prawn::Errors::UnknownFont)
264
+ end
259
265
 
260
266
  it "should correctly render a utf-8 string when using a built-in font" do
261
267
  str = "©" # copyright symbol
@@ -382,4 +388,30 @@ describe "#text" do
382
388
  end
383
389
  end
384
390
  end
391
+
392
+ describe "kerning" do
393
+ it "should respect text kerning setting (document default)" do
394
+ create_pdf
395
+ @pdf.font.expects(:compute_width_of).with do |str, options|
396
+ str == "VAT" && options[:kerning] == true
397
+ end.at_least_once.returns(10)
398
+ @pdf.text "VAT"
399
+ end
400
+
401
+ it "should respect text kerning setting (kerning=true)" do
402
+ create_pdf
403
+ @pdf.font.expects(:compute_width_of).with do |str, options|
404
+ str == "VAT" && options[:kerning] == true
405
+ end.at_least_once.returns(10)
406
+ @pdf.text "VAT", :kerning => true
407
+ end
408
+
409
+ it "should respect text kerning setting (kerning=false)" do
410
+ create_pdf
411
+ @pdf.font.expects(:compute_width_of).with do |str, options|
412
+ str == "VAT" && options[:kerning] == false
413
+ end.at_least_once.returns(10)
414
+ @pdf.text "VAT", :kerning => false
415
+ end
416
+ end
385
417
  end
metadata CHANGED
@@ -1,382 +1,316 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: prawn
3
- version: !ruby/object:Gem::Version
4
- hash: 49
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 11
9
- - 1
10
- version: 0.11.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Gregory Brown
14
9
  - Brad Ediger
15
10
  - Daniel Nelson
16
- - Jonathen Greenberg
11
+ - Jonathan Greenberg
17
12
  - James Healy
18
13
  autorequire:
19
14
  bindir: bin
20
15
  cert_chain: []
21
-
22
- date: 2011-04-03 00:00:00 -05:00
16
+ date: 2011-08-13 00:00:00.000000000 -05:00
23
17
  default_executable:
24
- dependencies:
25
- - !ruby/object:Gem::Dependency
18
+ dependencies:
19
+ - !ruby/object:Gem::Dependency
26
20
  name: pdf-reader
27
- prerelease: false
28
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ requirement: &21445960 !ruby/object:Gem::Requirement
29
22
  none: false
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- hash: 59
34
- segments:
35
- - 0
36
- - 9
37
- - 0
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
38
26
  version: 0.9.0
39
27
  type: :runtime
40
- version_requirements: *id001
41
- - !ruby/object:Gem::Dependency
42
- name: ttfunk
43
28
  prerelease: false
44
- requirement: &id002 !ruby/object:Gem::Requirement
29
+ version_requirements: *21445960
30
+ - !ruby/object:Gem::Dependency
31
+ name: ttfunk
32
+ requirement: &21445500 !ruby/object:Gem::Requirement
45
33
  none: false
46
- requirements:
34
+ requirements:
47
35
  - - ~>
48
- - !ruby/object:Gem::Version
49
- hash: 23
50
- segments:
51
- - 1
52
- - 0
53
- - 0
54
- version: 1.0.0
36
+ - !ruby/object:Gem::Version
37
+ version: 1.0.2
55
38
  type: :runtime
56
- version_requirements: *id002
57
- description: " Prawn is a fast, tiny, and nimble PDF generator for Ruby\n"
58
- email:
39
+ prerelease: false
40
+ version_requirements: *21445500
41
+ description: ! ' Prawn is a fast, tiny, and nimble PDF generator for Ruby
42
+
43
+ '
44
+ email:
59
45
  - gregory.t.brown@gmail.com
60
46
  - brad@bradediger.com
61
47
  - dnelson@bluejade.com
62
48
  - greenberg@entryway.net
63
49
  - jimmy@deefa.com
64
50
  executables: []
65
-
66
51
  extensions: []
67
-
68
- extra_rdoc_files:
69
- - HACKING
70
- - README
52
+ extra_rdoc_files:
53
+ - README.md
71
54
  - LICENSE
72
55
  - COPYING
73
- files:
74
- - examples/example_helper.rb
75
- - examples/bounding_box/stretched_nesting.rb
76
- - examples/bounding_box/bounding_boxes.rb
77
- - examples/bounding_box/indentation.rb
78
- - examples/bounding_box/russian_boxes.rb
79
- - examples/table/multi_page_table.rb
80
- - examples/table/header.rb
81
- - examples/table/checkerboard.rb
82
- - examples/table/inline_format_table.rb
83
- - examples/table/borders.rb
84
- - examples/table/simple_table.rb
85
- - examples/table/subtable.rb
86
- - examples/table/bill.rb
87
- - examples/table/widths.rb
88
- - examples/table/cell.rb
89
- - examples/security/hello_foo.rb
90
- - examples/text/span.rb
91
- - examples/text/simple_text_ttf.rb
92
- - examples/text/inline_format.rb
93
- - examples/text/font_size.rb
94
- - examples/text/text_flow.rb
95
- - examples/text/family_based_styling.rb
96
- - examples/text/text_box_returning_excess.rb
97
- - examples/text/alignment.rb
98
- - examples/text/shaped_text_box.rb
99
- - examples/text/font_calculations.rb
100
- - examples/text/text_box.rb
101
- - examples/text/rotated.rb
56
+ - GPLv2
57
+ - GPLv3
58
+ files:
102
59
  - examples/text/indent_paragraphs.rb
103
- - examples/text/simple_text.rb
104
60
  - examples/text/hyphenation.rb
105
- - examples/text/character_spacing.rb
106
- - examples/text/rendering_mode.rb
107
- - examples/text/dfont.rb
108
- - examples/text/kerning.rb
109
- - examples/general/canvas.rb
110
- - examples/general/measurement_units.rb
111
- - examples/general/templates.rb
112
- - examples/general/repeaters.rb
113
- - examples/general/context_sensitive_headers.rb
114
- - examples/general/page_numbering.rb
115
- - examples/general/multi_page_layout.rb
116
- - examples/general/float.rb
117
- - examples/general/page_geometry.rb
118
- - examples/general/margin.rb
119
- - examples/general/outlines.rb
120
- - examples/general/background.rb
121
- - examples/general/metadata-info.rb
122
- - examples/general/stamp.rb
123
- - examples/general/page_templates.rb
124
- - examples/graphics/line.rb
125
- - examples/graphics/ruport_style_helpers.rb
126
- - examples/graphics/image_position.rb
127
- - examples/graphics/polygons.rb
61
+ - examples/text/font_calculations.rb
128
62
  - examples/graphics/gradient.rb
129
- - examples/graphics/image_fit.rb
130
- - examples/graphics/curves.rb
131
- - examples/graphics/stroke_bounds.rb
132
- - examples/graphics/transformations.rb
133
- - examples/graphics/rounded_rectangle.rb
134
- - examples/graphics/transparency.rb
135
- - examples/graphics/stroke_cap_and_join.rb
136
63
  - examples/graphics/png_types.rb
137
64
  - examples/graphics/cmyk.rb
138
- - examples/graphics/rounded_polygons.rb
139
- - examples/graphics/hexagon.rb
140
65
  - examples/graphics/remote_images.rb
141
- - examples/graphics/image_flow.rb
142
- - examples/graphics/stroke_dash.rb
143
- - examples/graphics/basic_images.rb
144
- - examples/grid/multi_boxes.rb
145
- - examples/grid/bounding_boxes.rb
146
- - examples/grid/simple_grid.rb
147
- - examples/grid/show_grid.rb
148
- - examples/grid/column_gutter_grid.rb
149
- - examples/m17n/euro.rb
150
- - examples/m17n/utf8.rb
151
- - examples/m17n/sjis.rb
66
+ - examples/example_helper.rb
67
+ - examples/general/context_sensitive_headers.rb
68
+ - examples/table/header.rb
69
+ - examples/table/bill.rb
152
70
  - examples/m17n/full_win_ansi_character_list.rb
153
- - examples/m17n/chinese_text_wrapping.rb
71
+ - examples/m17n/sjis.rb
154
72
  - examples/m17n/win_ansi_charset.rb
73
+ - examples/bounding_box/russian_boxes.rb
155
74
  - lib/prawn.rb
156
- - lib/prawn/core.rb
157
- - lib/prawn/errors.rb
158
- - lib/prawn/text.rb
159
- - lib/prawn/images.rb
160
- - lib/prawn/core/object_store.rb
161
- - lib/prawn/core/byte_string.rb
162
- - lib/prawn/core/text.rb
75
+ - lib/prawn/text/box.rb
76
+ - lib/prawn/text/formatted/parser.rb
77
+ - lib/prawn/text/formatted/fragment.rb
78
+ - lib/prawn/text/formatted/box.rb
79
+ - lib/prawn/text/formatted.rb
80
+ - lib/prawn/outline.rb
81
+ - lib/prawn/repeater.rb
82
+ - lib/prawn/measurement_extensions.rb
83
+ - lib/prawn/font/ttf.rb
84
+ - lib/prawn/font/afm.rb
85
+ - lib/prawn/font/dfont.rb
86
+ - lib/prawn/graphics/transparency.rb
87
+ - lib/prawn/graphics/gradient.rb
88
+ - lib/prawn/graphics/join_style.rb
89
+ - lib/prawn/graphics/transformation.rb
90
+ - lib/prawn/graphics/color.rb
91
+ - lib/prawn/graphics/dash.rb
92
+ - lib/prawn/graphics/cap_style.rb
163
93
  - lib/prawn/core/pdf_object.rb
164
- - lib/prawn/core/document_state.rb
165
- - lib/prawn/core/destinations.rb
94
+ - lib/prawn/core/text/formatted/arranger.rb
95
+ - lib/prawn/core/text/formatted/line_wrap.rb
96
+ - lib/prawn/core/text/formatted/wrap.rb
166
97
  - lib/prawn/core/reference.rb
98
+ - lib/prawn/core/object_store.rb
99
+ - lib/prawn/core/name_tree.rb
100
+ - lib/prawn/core/destinations.rb
101
+ - lib/prawn/core/byte_string.rb
167
102
  - lib/prawn/core/annotations.rb
168
103
  - lib/prawn/core/page.rb
169
- - lib/prawn/core/name_tree.rb
170
- - lib/prawn/core/text/formatted/wrap.rb
171
- - lib/prawn/core/text/formatted/arranger.rb
172
- - lib/prawn/core/text/formatted/line_wrap.rb
104
+ - lib/prawn/core/document_state.rb
105
+ - lib/prawn/core/text.rb
173
106
  - lib/prawn/core/literal_string.rb
174
- - lib/prawn/measurements.rb
107
+ - lib/prawn/errors.rb
175
108
  - lib/prawn/compatibility.rb
176
- - lib/prawn/repeater.rb
177
- - lib/prawn/measurement_extensions.rb
178
- - lib/prawn/document.rb
179
- - lib/prawn/images/jpg.rb
180
- - lib/prawn/images/png.rb
181
- - lib/prawn/encoding.rb
182
109
  - lib/prawn/table/cells.rb
183
- - lib/prawn/table/cell/text.rb
184
- - lib/prawn/table/cell/in_table.rb
185
- - lib/prawn/table/cell/subtable.rb
186
110
  - lib/prawn/table/cell.rb
187
- - lib/prawn/graphics.rb
111
+ - lib/prawn/table/cell/subtable.rb
112
+ - lib/prawn/table/cell/in_table.rb
113
+ - lib/prawn/table/cell/text.rb
114
+ - lib/prawn/core.rb
115
+ - lib/prawn/font.rb
116
+ - lib/prawn/measurements.rb
117
+ - lib/prawn/images.rb
118
+ - lib/prawn/layout/grid.rb
188
119
  - lib/prawn/security/arcfour.rb
189
- - lib/prawn/document/span.rb
120
+ - lib/prawn/stamp.rb
121
+ - lib/prawn/encoding.rb
122
+ - lib/prawn/graphics.rb
190
123
  - lib/prawn/document/snapshot.rb
191
124
  - lib/prawn/document/bounding_box.rb
192
- - lib/prawn/document/internals.rb
193
- - lib/prawn/document/page_geometry.rb
194
125
  - lib/prawn/document/graphics_state.rb
126
+ - lib/prawn/document/span.rb
127
+ - lib/prawn/document/page_geometry.rb
128
+ - lib/prawn/document/internals.rb
195
129
  - lib/prawn/document/column_box.rb
196
- - lib/prawn/layout/grid.rb
197
- - lib/prawn/text/formatted/parser.rb
198
- - lib/prawn/text/formatted/fragment.rb
199
- - lib/prawn/text/formatted/box.rb
200
- - lib/prawn/text/box.rb
201
- - lib/prawn/text/formatted.rb
202
- - lib/prawn/font/ttf.rb
203
- - lib/prawn/font/afm.rb
204
- - lib/prawn/font/dfont.rb
205
- - lib/prawn/graphics/join_style.rb
206
- - lib/prawn/graphics/gradient.rb
207
- - lib/prawn/graphics/transformation.rb
208
- - lib/prawn/graphics/cap_style.rb
209
- - lib/prawn/graphics/transparency.rb
210
- - lib/prawn/graphics/color.rb
211
- - lib/prawn/graphics/dash.rb
212
130
  - lib/prawn/layout.rb
213
- - lib/prawn/stamp.rb
214
131
  - lib/prawn/table.rb
215
- - lib/prawn/outline.rb
216
- - lib/prawn/font.rb
217
132
  - lib/prawn/security.rb
218
- - spec/text_spacing_spec.rb
219
- - spec/annotations_spec.rb
220
- - spec/jpg_spec.rb
221
- - spec/object_store_spec.rb
133
+ - lib/prawn/text.rb
134
+ - lib/prawn/images/png.rb
135
+ - lib/prawn/images/jpg.rb
136
+ - lib/prawn/document.rb
137
+ - spec/data/curves.pdf
138
+ - spec/text_spec.rb
222
139
  - spec/snapshot_spec.rb
223
- - spec/measurement_units_spec.rb
224
- - spec/inline_formatted_text_parser_spec.rb
225
- - spec/reference_spec.rb
226
- - spec/graphics_spec.rb
227
- - spec/stamp_spec.rb
228
- - spec/bounding_box_spec.rb
140
+ - spec/png_spec.rb
141
+ - spec/pdf_object_spec.rb
142
+ - spec/object_store_spec.rb
229
143
  - spec/transparency_spec.rb
144
+ - spec/span_spec.rb
145
+ - spec/security_spec.rb
146
+ - spec/name_tree_spec.rb
147
+ - spec/formatted_text_box_spec.rb
230
148
  - spec/spec_helper.rb
231
- - spec/document_spec.rb
232
- - spec/font_spec.rb
233
- - spec/text_box_spec.rb
149
+ - spec/stamp_spec.rb
150
+ - spec/graphics_spec.rb
234
151
  - spec/text_with_inline_formatting_spec.rb
152
+ - spec/jpg_spec.rb
153
+ - spec/stroke_styles_spec.rb
154
+ - spec/annotations_spec.rb
155
+ - spec/text_rendering_mode_spec.rb
156
+ - spec/cell_spec.rb
157
+ - spec/grid_spec.rb
158
+ - spec/font_spec.rb
159
+ - spec/line_wrap_spec.rb
160
+ - spec/repeater_spec.rb
161
+ - spec/document_spec.rb
235
162
  - spec/images_spec.rb
236
- - spec/text_at_spec.rb
237
163
  - spec/destinations_spec.rb
238
- - spec/png_spec.rb
239
- - spec/name_tree_spec.rb
240
- - spec/formatted_text_arranger_spec.rb
241
- - spec/line_wrap_spec.rb
242
- - spec/template_spec.rb
164
+ - spec/text_box_spec.rb
243
165
  - spec/formatted_text_fragment_spec.rb
244
- - spec/span_spec.rb
166
+ - spec/bounding_box_spec.rb
167
+ - spec/template_spec.rb
245
168
  - spec/extensions/mocha.rb
246
- - spec/text_rendering_mode_spec.rb
247
- - spec/outline_spec.rb
248
- - spec/cell_spec.rb
249
- - spec/stroke_styles_spec.rb
250
- - spec/formatted_text_box_spec.rb
251
- - spec/text_spec.rb
252
- - spec/pdf_object_spec.rb
253
- - spec/security_spec.rb
169
+ - spec/measurement_units_spec.rb
170
+ - spec/inline_formatted_text_parser_spec.rb
171
+ - spec/reference_spec.rb
172
+ - spec/text_at_spec.rb
173
+ - spec/formatted_text_arranger_spec.rb
254
174
  - spec/table_spec.rb
255
- - spec/repeater_spec.rb
256
- - spec/grid_spec.rb
175
+ - spec/outline_spec.rb
176
+ - spec/text_spacing_spec.rb
257
177
  - data/encodings/win_ansi.txt
258
- - data/fonts/comicsans.ttf
259
- - data/fonts/Times-Roman.afm
178
+ - data/fonts/Courier-Bold.afm
179
+ - data/fonts/Times-Italic.afm
260
180
  - data/fonts/Courier-Oblique.afm
261
- - data/fonts/Helvetica-BoldOblique.afm
181
+ - data/fonts/Courier.afm
262
182
  - data/fonts/Symbol.afm
183
+ - data/fonts/Helvetica-Oblique.afm
184
+ - data/fonts/Helvetica-BoldOblique.afm
185
+ - data/fonts/Action Man.dfont
186
+ - data/fonts/Courier-BoldOblique.afm
187
+ - data/fonts/MustRead.html
263
188
  - data/fonts/Helvetica-Bold.afm
264
- - data/fonts/ZapfDingbats.afm
265
189
  - data/fonts/Times-BoldItalic.afm
266
- - data/fonts/Dustismo_Roman.ttf
267
- - data/fonts/Courier.afm
268
- - data/fonts/Helvetica-Oblique.afm
190
+ - data/fonts/Times-Roman.afm
269
191
  - data/fonts/Chalkboard.ttf
270
- - data/fonts/Courier-Bold.afm
192
+ - data/fonts/Dustismo_Roman.ttf
193
+ - data/fonts/comicsans.ttf
271
194
  - data/fonts/Activa.ttf
272
- - data/fonts/Courier-BoldOblique.afm
273
- - data/fonts/Helvetica.afm
195
+ - data/fonts/ZapfDingbats.afm
274
196
  - data/fonts/DejaVuSans.ttf
275
- - data/fonts/MustRead.html
276
- - data/fonts/Times-Italic.afm
277
- - data/fonts/gkai00mp.ttf
278
- - data/fonts/Action Man.dfont
279
197
  - data/fonts/Times-Bold.afm
280
- - data/images/16bit.png
281
- - data/images/page_white_text.alpha
282
- - data/images/tru256.bmp
283
- - data/images/arrow.png
284
- - data/images/letterhead.jpg
285
- - data/images/barcode_issue.png
286
- - data/images/web-links.png
287
- - data/images/ruport.png
288
- - data/images/prawn.png
289
- - data/images/dice.dat
290
- - data/images/page_white_text.dat
291
- - data/images/dice.alpha
292
- - data/images/dice_interlaced.png
293
- - data/images/rails.png
294
- - data/images/ruport_type0.png
295
- - data/images/ruport_data.dat
296
- - data/images/fractal.jpg
297
- - data/images/stef.jpg
298
- - data/images/web-links.dat
299
- - data/images/arrow2.png
300
- - data/images/page_white_text.png
301
- - data/images/16bit.dat
302
- - data/images/pigs.jpg
303
- - data/images/ruport_transparent.png
304
- - data/images/dice.png
305
- - data/images/rails.dat
306
- - data/images/16bit.alpha
198
+ - data/fonts/gkai00mp.ttf
199
+ - data/fonts/Helvetica.afm
307
200
  - data/shift_jis_text.txt
308
- - data/pdfs/encrypted.pdf
309
201
  - data/pdfs/nested_pages.pdf
202
+ - data/pdfs/page_without_mediabox.pdf
203
+ - data/pdfs/two_hexagons.pdf
204
+ - data/pdfs/indirect_reference.pdf
205
+ - data/pdfs/multipage_template.pdf
310
206
  - data/pdfs/resources_as_indirect_object.pdf
311
- - data/pdfs/hexagon.pdf
312
- - data/pdfs/form.pdf
313
207
  - data/pdfs/complex_template.pdf
314
- - data/pdfs/multipage_template.pdf
208
+ - data/pdfs/hexagon.pdf
315
209
  - data/pdfs/version_1_6.pdf
316
- - data/pdfs/two_hexagons.pdf
317
- - data/pdfs/page_without_mediabox.pdf
318
210
  - data/pdfs/contains_ttf_font.pdf
319
- - data/pdfs/indirect_reference.pdf
211
+ - data/pdfs/encrypted.pdf
212
+ - data/pdfs/form.pdf
213
+ - data/images/stef.jpg
214
+ - data/images/web-links.dat
215
+ - data/images/ruport_transparent.png
216
+ - data/images/ruport_data.dat
217
+ - data/images/barcode_issue.png
218
+ - data/images/pigs.jpg
219
+ - data/images/dice.dat
220
+ - data/images/arrow2.png
221
+ - data/images/dice.png
222
+ - data/images/page_white_text.dat
223
+ - data/images/rails.dat
224
+ - data/images/page_white_text.alpha
225
+ - data/images/ruport.png
226
+ - data/images/16bit.alpha
227
+ - data/images/fractal.jpg
228
+ - data/images/web-links.png
229
+ - data/images/16bit.png
230
+ - data/images/page_white_text.png
231
+ - data/images/prawn.png
232
+ - data/images/letterhead.jpg
233
+ - data/images/dice_interlaced.png
234
+ - data/images/arrow.png
235
+ - data/images/tru256.bmp
236
+ - data/images/dice.alpha
237
+ - data/images/ruport_type0.png
238
+ - data/images/rails.png
239
+ - data/images/16bit.dat
320
240
  - Rakefile
321
241
  - prawn.gemspec
322
- - HACKING
323
- - README
242
+ - README.md
324
243
  - LICENSE
325
244
  - COPYING
245
+ - GPLv2
246
+ - GPLv3
326
247
  has_rdoc: true
327
248
  homepage: http://prawn.majesticseacreature.com
328
249
  licenses: []
329
-
330
- post_install_message: |+
331
-
332
- ********************************************
333
-
334
-
335
- A lot has changed since 0.8.4
336
-
337
- Please read the changelog for details:
338
-
339
- https://github.com/sandal/prawn/wiki/CHANGELOG
340
-
341
-
342
- ********************************************
343
-
344
- rdoc_options:
250
+ post_install_message: ! "\n ********************************************\n\n\n A
251
+ lot has changed since 0.8.4\n\n Please read the changelog for details:\n\n https://github.com/sandal/prawn/wiki/CHANGELOG\n\n\n
252
+ \ ********************************************\n\n"
253
+ rdoc_options:
345
254
  - --title
346
255
  - Prawn Documentation
347
256
  - --main
348
257
  - README
349
258
  - -q
350
- require_paths:
259
+ require_paths:
351
260
  - lib
352
- required_ruby_version: !ruby/object:Gem::Requirement
261
+ required_ruby_version: !ruby/object:Gem::Requirement
353
262
  none: false
354
- requirements:
355
- - - ">="
356
- - !ruby/object:Gem::Version
357
- hash: 57
358
- segments:
359
- - 1
360
- - 8
361
- - 7
263
+ requirements:
264
+ - - ! '>='
265
+ - !ruby/object:Gem::Version
362
266
  version: 1.8.7
363
- required_rubygems_version: !ruby/object:Gem::Requirement
267
+ required_rubygems_version: !ruby/object:Gem::Requirement
364
268
  none: false
365
- requirements:
366
- - - ">="
367
- - !ruby/object:Gem::Version
368
- hash: 23
369
- segments:
370
- - 1
371
- - 3
372
- - 6
269
+ requirements:
270
+ - - ! '>='
271
+ - !ruby/object:Gem::Version
373
272
  version: 1.3.6
374
273
  requirements: []
375
-
376
274
  rubyforge_project: prawn
377
- rubygems_version: 1.5.2
275
+ rubygems_version: 1.6.2
378
276
  signing_key:
379
277
  specification_version: 3
380
278
  summary: A fast and nimble PDF generator for Ruby
381
- test_files: []
382
-
279
+ test_files:
280
+ - spec/text_spec.rb
281
+ - spec/snapshot_spec.rb
282
+ - spec/png_spec.rb
283
+ - spec/pdf_object_spec.rb
284
+ - spec/object_store_spec.rb
285
+ - spec/transparency_spec.rb
286
+ - spec/span_spec.rb
287
+ - spec/security_spec.rb
288
+ - spec/name_tree_spec.rb
289
+ - spec/formatted_text_box_spec.rb
290
+ - spec/stamp_spec.rb
291
+ - spec/graphics_spec.rb
292
+ - spec/text_with_inline_formatting_spec.rb
293
+ - spec/jpg_spec.rb
294
+ - spec/stroke_styles_spec.rb
295
+ - spec/annotations_spec.rb
296
+ - spec/text_rendering_mode_spec.rb
297
+ - spec/cell_spec.rb
298
+ - spec/grid_spec.rb
299
+ - spec/font_spec.rb
300
+ - spec/line_wrap_spec.rb
301
+ - spec/repeater_spec.rb
302
+ - spec/document_spec.rb
303
+ - spec/images_spec.rb
304
+ - spec/destinations_spec.rb
305
+ - spec/text_box_spec.rb
306
+ - spec/formatted_text_fragment_spec.rb
307
+ - spec/bounding_box_spec.rb
308
+ - spec/template_spec.rb
309
+ - spec/measurement_units_spec.rb
310
+ - spec/inline_formatted_text_parser_spec.rb
311
+ - spec/reference_spec.rb
312
+ - spec/text_at_spec.rb
313
+ - spec/formatted_text_arranger_spec.rb
314
+ - spec/table_spec.rb
315
+ - spec/outline_spec.rb
316
+ - spec/text_spacing_spec.rb