prawn 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/Rakefile +12 -0
  4. data/lib/prawn.rb +9 -21
  5. data/lib/prawn/document.rb +95 -68
  6. data/lib/prawn/document/bounding_box.rb +22 -4
  7. data/lib/prawn/document/column_box.rb +2 -0
  8. data/lib/prawn/document/graphics_state.rb +1 -1
  9. data/lib/prawn/document/internals.rb +2 -2
  10. data/lib/prawn/document/snapshot.rb +2 -1
  11. data/lib/prawn/document/span.rb +2 -0
  12. data/lib/prawn/encoding.rb +1 -1
  13. data/lib/prawn/font.rb +89 -75
  14. data/lib/prawn/font/afm.rb +3 -0
  15. data/lib/prawn/font/dfont.rb +1 -0
  16. data/lib/prawn/font/ttf.rb +2 -0
  17. data/lib/prawn/font_metric_cache.rb +3 -1
  18. data/lib/prawn/graphics.rb +2 -14
  19. data/lib/prawn/graphics/cap_style.rb +1 -0
  20. data/lib/prawn/graphics/color.rb +1 -0
  21. data/lib/prawn/graphics/dash.rb +3 -2
  22. data/lib/prawn/graphics/join_style.rb +2 -0
  23. data/lib/prawn/graphics/patterns.rb +1 -0
  24. data/lib/prawn/graphics/transformation.rb +1 -0
  25. data/lib/prawn/graphics/transparency.rb +2 -0
  26. data/lib/prawn/image_handler.rb +2 -0
  27. data/lib/prawn/images.rb +5 -0
  28. data/lib/prawn/images/image.rb +1 -0
  29. data/lib/prawn/images/jpg.rb +3 -0
  30. data/lib/prawn/images/png.rb +2 -0
  31. data/lib/prawn/layout.rb +8 -13
  32. data/lib/prawn/layout/grid.rb +15 -3
  33. data/lib/prawn/measurement_extensions.rb +4 -0
  34. data/lib/prawn/measurements.rb +2 -0
  35. data/lib/prawn/outline.rb +3 -1
  36. data/lib/prawn/repeater.rb +3 -1
  37. data/lib/prawn/security.rb +15 -7
  38. data/lib/prawn/security/arcfour.rb +52 -0
  39. data/lib/prawn/soft_mask.rb +3 -1
  40. data/lib/prawn/stamp.rb +2 -0
  41. data/lib/prawn/table.rb +2 -0
  42. data/lib/prawn/table/cell.rb +4 -1
  43. data/lib/prawn/table/cell/image.rb +1 -2
  44. data/lib/prawn/table/cell/in_table.rb +2 -0
  45. data/lib/prawn/table/cell/span_dummy.rb +1 -0
  46. data/lib/prawn/table/cells.rb +7 -2
  47. data/lib/prawn/table/column_width_calculator.rb +8 -2
  48. data/lib/prawn/text.rb +4 -2
  49. data/lib/prawn/text/box.rb +3 -0
  50. data/lib/prawn/text/formatted/arranger.rb +2 -0
  51. data/lib/prawn/text/formatted/box.rb +55 -50
  52. data/lib/prawn/text/formatted/fragment.rb +2 -0
  53. data/lib/prawn/text/formatted/line_wrap.rb +1 -0
  54. data/lib/prawn/text/formatted/parser.rb +2 -0
  55. data/lib/prawn/text/formatted/wrap.rb +2 -0
  56. data/lib/prawn/utilities.rb +5 -3
  57. data/manual/graphics/common_lines.rb +2 -0
  58. data/manual/text/group.rb +2 -0
  59. data/manual/text/text.rb +1 -1
  60. data/prawn.gemspec +4 -3
  61. data/spec/grid_spec.rb +11 -0
  62. data/spec/object_store_spec.rb +1 -96
  63. data/spec/reference_spec.rb +0 -57
  64. data/spec/spec_helper.rb +7 -0
  65. data/spec/table_spec.rb +26 -0
  66. metadata +172 -185
  67. data/lib/pdf/core.rb +0 -35
  68. data/lib/pdf/core/annotations.rb +0 -60
  69. data/lib/pdf/core/byte_string.rb +0 -9
  70. data/lib/pdf/core/destinations.rb +0 -90
  71. data/lib/pdf/core/document_state.rb +0 -79
  72. data/lib/pdf/core/filter_list.rb +0 -51
  73. data/lib/pdf/core/filters.rb +0 -36
  74. data/lib/pdf/core/graphics_state.rb +0 -89
  75. data/lib/pdf/core/literal_string.rb +0 -16
  76. data/lib/pdf/core/name_tree.rb +0 -177
  77. data/lib/pdf/core/object_store.rb +0 -311
  78. data/lib/pdf/core/outline.rb +0 -315
  79. data/lib/pdf/core/page.rb +0 -212
  80. data/lib/pdf/core/page_geometry.rb +0 -126
  81. data/lib/pdf/core/pdf_object.rb +0 -99
  82. data/lib/pdf/core/reference.rb +0 -103
  83. data/lib/pdf/core/stream.rb +0 -98
  84. data/lib/pdf/core/text.rb +0 -275
  85. data/lib/prawn/templates.rb +0 -75
  86. data/spec/filters_spec.rb +0 -34
  87. data/spec/name_tree_spec.rb +0 -112
  88. data/spec/pdf_object_spec.rb +0 -172
  89. data/spec/stream_spec.rb +0 -58
  90. data/spec/template_spec_obsolete.rb +0 -352
@@ -5,6 +5,13 @@ puts "Prawn specs: Running on Ruby Version: #{RUBY_VERSION}"
5
5
  require "bundler"
6
6
  Bundler.setup
7
7
 
8
+ if ENV["COVERAGE"]
9
+ require "simplecov"
10
+ SimpleCov.start do
11
+ add_filter "/spec/"
12
+ end
13
+ end
14
+
8
15
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
9
16
  require "prawn"
10
17
 
@@ -46,6 +46,23 @@ describe "Prawn::Table" do
46
46
  end
47
47
 
48
48
  describe "You can explicitly set the column widths and use a colspan > 1" do
49
+
50
+ it "should tolerate floating point rounding errors < 0.000000001" do
51
+ data=[["a", "b ", "c ", "d", "e", "f", "g", "h", "i", "j", "k", "l"],
52
+ [{:content=>"Foobar", :colspan=>12}]
53
+ ]
54
+ #we need values with lots of decimals so that arithmetic errors will occur
55
+ #the values are not arbitrary but where found converting mm to pdf pt
56
+ column_widths=[137, 40, 40, 54.69291338582678, 54.69291338582678,
57
+ 54.69291338582678, 54.69291338582678, 54.69291338582678,
58
+ 54.69291338582678, 54.69291338582678, 54.69291338582678,
59
+ 54.69291338582678]
60
+
61
+ pdf = Prawn::Document.new({:page_size => 'A4', :page_layout => :landscape})
62
+ table = Prawn::Table.new data, pdf, :column_widths => column_widths
63
+ table.column_widths.should == column_widths
64
+ end
65
+
49
66
  it "should work with two different given colspans", :issue => 628 do
50
67
  data = [
51
68
  [" ", " ", " "],
@@ -153,6 +170,15 @@ describe "Prawn::Table" do
153
170
  # Before we fixed #407, this line incorrectly raise a CannotFit error
154
171
  pdf.table(table_data, :column_widths => column_widths)
155
172
  end
173
+
174
+ it "should not allow oversized subtables when parent column width is constrained" do
175
+ pdf = Prawn::Document.new
176
+ child_1 = pdf.make_table([['foo'*100]])
177
+ child_2 = pdf.make_table([['foo']])
178
+ lambda do
179
+ pdf.table([[child_1], [child_2]], column_widths: [pdf.bounds.width/2] * 2)
180
+ end.should raise_error(Prawn::Errors::CannotFit)
181
+ end
156
182
  end
157
183
 
158
184
  describe "#initialize" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
@@ -12,134 +12,148 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-01-16 00:00:00.000000000 Z
15
+ date: 2014-02-16 00:00:00.000000000 Z
16
16
  dependencies:
17
- - !ruby/object:Gem::Dependency
18
- name: pdf-reader
19
- requirement: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: '1.2'
24
- type: :runtime
25
- prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- version: '1.2'
31
17
  - !ruby/object:Gem::Dependency
32
18
  name: ttfunk
33
19
  requirement: !ruby/object:Gem::Requirement
34
20
  requirements:
35
- - - ~>
21
+ - - "~>"
36
22
  - !ruby/object:Gem::Version
37
- version: 1.0.3
23
+ version: 1.1.0
38
24
  type: :runtime
39
25
  prerelease: false
40
26
  version_requirements: !ruby/object:Gem::Requirement
41
27
  requirements:
42
- - - ~>
28
+ - - "~>"
43
29
  - !ruby/object:Gem::Version
44
- version: 1.0.3
30
+ version: 1.1.0
45
31
  - !ruby/object:Gem::Dependency
46
- name: ruby-rc4
32
+ name: pdf-core
47
33
  requirement: !ruby/object:Gem::Requirement
48
34
  requirements:
49
- - - '>='
35
+ - - "~>"
50
36
  - !ruby/object:Gem::Version
51
- version: '0'
37
+ version: 0.1.3
52
38
  type: :runtime
53
39
  prerelease: false
54
40
  version_requirements: !ruby/object:Gem::Requirement
55
41
  requirements:
56
- - - '>='
42
+ - - "~>"
57
43
  - !ruby/object:Gem::Version
58
- version: '0'
44
+ version: 0.1.3
59
45
  - !ruby/object:Gem::Dependency
60
46
  name: pdf-inspector
61
47
  requirement: !ruby/object:Gem::Requirement
62
48
  requirements:
63
- - - ~>
49
+ - - "~>"
64
50
  - !ruby/object:Gem::Version
65
51
  version: 1.1.0
66
52
  type: :development
67
53
  prerelease: false
68
54
  version_requirements: !ruby/object:Gem::Requirement
69
55
  requirements:
70
- - - ~>
56
+ - - "~>"
71
57
  - !ruby/object:Gem::Version
72
58
  version: 1.1.0
73
59
  - !ruby/object:Gem::Dependency
74
60
  name: coderay
75
61
  requirement: !ruby/object:Gem::Requirement
76
62
  requirements:
77
- - - ~>
63
+ - - "~>"
78
64
  - !ruby/object:Gem::Version
79
65
  version: 1.0.7
80
66
  type: :development
81
67
  prerelease: false
82
68
  version_requirements: !ruby/object:Gem::Requirement
83
69
  requirements:
84
- - - ~>
70
+ - - "~>"
85
71
  - !ruby/object:Gem::Version
86
72
  version: 1.0.7
87
73
  - !ruby/object:Gem::Dependency
88
74
  name: yard
89
75
  requirement: !ruby/object:Gem::Requirement
90
76
  requirements:
91
- - - '>='
77
+ - - ">="
92
78
  - !ruby/object:Gem::Version
93
79
  version: '0'
94
80
  type: :development
95
81
  prerelease: false
96
82
  version_requirements: !ruby/object:Gem::Requirement
97
83
  requirements:
98
- - - '>='
84
+ - - ">="
99
85
  - !ruby/object:Gem::Version
100
86
  version: '0'
101
87
  - !ruby/object:Gem::Dependency
102
88
  name: rspec
103
89
  requirement: !ruby/object:Gem::Requirement
104
90
  requirements:
105
- - - '>='
91
+ - - ">="
106
92
  - !ruby/object:Gem::Version
107
93
  version: '0'
108
94
  type: :development
109
95
  prerelease: false
110
96
  version_requirements: !ruby/object:Gem::Requirement
111
97
  requirements:
112
- - - '>='
98
+ - - ">="
113
99
  - !ruby/object:Gem::Version
114
100
  version: '0'
115
101
  - !ruby/object:Gem::Dependency
116
102
  name: mocha
117
103
  requirement: !ruby/object:Gem::Requirement
118
104
  requirements:
119
- - - '>='
105
+ - - ">="
120
106
  - !ruby/object:Gem::Version
121
107
  version: '0'
122
108
  type: :development
123
109
  prerelease: false
124
110
  version_requirements: !ruby/object:Gem::Requirement
125
111
  requirements:
126
- - - '>='
112
+ - - ">="
127
113
  - !ruby/object:Gem::Version
128
114
  version: '0'
129
115
  - !ruby/object:Gem::Dependency
130
116
  name: rake
131
117
  requirement: !ruby/object:Gem::Requirement
132
118
  requirements:
133
- - - '>='
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ - !ruby/object:Gem::Dependency
130
+ name: simplecov
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  type: :development
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - '>='
140
+ - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
+ - !ruby/object:Gem::Dependency
144
+ name: pdf-reader
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '1.2'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '1.2'
143
157
  description: |2
144
158
  Prawn is a fast, tiny, and nimble PDF generator for Ruby
145
159
  email:
@@ -152,38 +166,85 @@ executables: []
152
166
  extensions: []
153
167
  extra_rdoc_files: []
154
168
  files:
155
- - lib/pdf/core/annotations.rb
156
- - lib/pdf/core/byte_string.rb
157
- - lib/pdf/core/destinations.rb
158
- - lib/pdf/core/document_state.rb
159
- - lib/pdf/core/filter_list.rb
160
- - lib/pdf/core/filters.rb
161
- - lib/pdf/core/graphics_state.rb
162
- - lib/pdf/core/literal_string.rb
163
- - lib/pdf/core/name_tree.rb
164
- - lib/pdf/core/object_store.rb
165
- - lib/pdf/core/outline.rb
166
- - lib/pdf/core/page.rb
167
- - lib/pdf/core/page_geometry.rb
168
- - lib/pdf/core/pdf_object.rb
169
- - lib/pdf/core/reference.rb
170
- - lib/pdf/core/stream.rb
171
- - lib/pdf/core/text.rb
172
- - lib/pdf/core.rb
169
+ - ".yardopts"
170
+ - COPYING
171
+ - GPLv2
172
+ - GPLv3
173
+ - Gemfile
174
+ - LICENSE
175
+ - Rakefile
176
+ - data/encodings/win_ansi.txt
177
+ - data/fonts/Courier-Bold.afm
178
+ - data/fonts/Courier-BoldOblique.afm
179
+ - data/fonts/Courier-Oblique.afm
180
+ - data/fonts/Courier.afm
181
+ - data/fonts/Helvetica-Bold.afm
182
+ - data/fonts/Helvetica-BoldOblique.afm
183
+ - data/fonts/Helvetica-Oblique.afm
184
+ - data/fonts/Helvetica.afm
185
+ - data/fonts/MustRead.html
186
+ - data/fonts/Symbol.afm
187
+ - data/fonts/Times-Bold.afm
188
+ - data/fonts/Times-BoldItalic.afm
189
+ - data/fonts/Times-Italic.afm
190
+ - data/fonts/Times-Roman.afm
191
+ - data/fonts/ZapfDingbats.afm
192
+ - data/images/16bit.alpha
193
+ - data/images/16bit.color
194
+ - data/images/16bit.png
195
+ - data/images/arrow.png
196
+ - data/images/arrow2.png
197
+ - data/images/barcode_issue.png
198
+ - data/images/dice.alpha
199
+ - data/images/dice.color
200
+ - data/images/dice.png
201
+ - data/images/dice_interlaced.png
202
+ - data/images/fractal.jpg
203
+ - data/images/indexed_color.dat
204
+ - data/images/indexed_color.png
205
+ - data/images/letterhead.jpg
206
+ - data/images/page_white_text.alpha
207
+ - data/images/page_white_text.color
208
+ - data/images/page_white_text.png
209
+ - data/images/pigs.jpg
210
+ - data/images/prawn.png
211
+ - data/images/ruport.png
212
+ - data/images/ruport_data.dat
213
+ - data/images/ruport_transparent.png
214
+ - data/images/ruport_type0.png
215
+ - data/images/stef.jpg
216
+ - data/images/tru256.bmp
217
+ - data/images/web-links.dat
218
+ - data/images/web-links.png
219
+ - data/pdfs/complex_template.pdf
220
+ - data/pdfs/contains_ttf_font.pdf
221
+ - data/pdfs/encrypted.pdf
222
+ - data/pdfs/form.pdf
223
+ - data/pdfs/hexagon.pdf
224
+ - data/pdfs/indirect_reference.pdf
225
+ - data/pdfs/multipage_template.pdf
226
+ - data/pdfs/nested_pages.pdf
227
+ - data/pdfs/page_without_mediabox.pdf
228
+ - data/pdfs/resources_as_indirect_object.pdf
229
+ - data/pdfs/two_hexagons.pdf
230
+ - data/pdfs/version_1_6.pdf
231
+ - data/shift_jis_text.txt
232
+ - lib/prawn.rb
233
+ - lib/prawn/document.rb
173
234
  - lib/prawn/document/bounding_box.rb
174
235
  - lib/prawn/document/column_box.rb
175
236
  - lib/prawn/document/graphics_state.rb
176
237
  - lib/prawn/document/internals.rb
177
238
  - lib/prawn/document/snapshot.rb
178
239
  - lib/prawn/document/span.rb
179
- - lib/prawn/document.rb
180
240
  - lib/prawn/encoding.rb
181
241
  - lib/prawn/errors.rb
242
+ - lib/prawn/font.rb
182
243
  - lib/prawn/font/afm.rb
183
244
  - lib/prawn/font/dfont.rb
184
245
  - lib/prawn/font/ttf.rb
185
- - lib/prawn/font.rb
186
246
  - lib/prawn/font_metric_cache.rb
247
+ - lib/prawn/graphics.rb
187
248
  - lib/prawn/graphics/cap_style.rb
188
249
  - lib/prawn/graphics/color.rb
189
250
  - lib/prawn/graphics/dash.rb
@@ -191,91 +252,40 @@ files:
191
252
  - lib/prawn/graphics/patterns.rb
192
253
  - lib/prawn/graphics/transformation.rb
193
254
  - lib/prawn/graphics/transparency.rb
194
- - lib/prawn/graphics.rb
195
255
  - lib/prawn/image_handler.rb
256
+ - lib/prawn/images.rb
196
257
  - lib/prawn/images/image.rb
197
258
  - lib/prawn/images/jpg.rb
198
259
  - lib/prawn/images/png.rb
199
- - lib/prawn/images.rb
200
- - lib/prawn/layout/grid.rb
201
260
  - lib/prawn/layout.rb
261
+ - lib/prawn/layout/grid.rb
202
262
  - lib/prawn/measurement_extensions.rb
203
263
  - lib/prawn/measurements.rb
204
264
  - lib/prawn/outline.rb
205
265
  - lib/prawn/repeater.rb
206
266
  - lib/prawn/security.rb
267
+ - lib/prawn/security/arcfour.rb
207
268
  - lib/prawn/soft_mask.rb
208
269
  - lib/prawn/stamp.rb
270
+ - lib/prawn/table.rb
271
+ - lib/prawn/table/cell.rb
209
272
  - lib/prawn/table/cell/image.rb
210
273
  - lib/prawn/table/cell/in_table.rb
211
274
  - lib/prawn/table/cell/span_dummy.rb
212
275
  - lib/prawn/table/cell/subtable.rb
213
276
  - lib/prawn/table/cell/text.rb
214
- - lib/prawn/table/cell.rb
215
277
  - lib/prawn/table/cells.rb
216
278
  - lib/prawn/table/column_width_calculator.rb
217
- - lib/prawn/table.rb
218
- - lib/prawn/templates.rb
279
+ - lib/prawn/text.rb
219
280
  - lib/prawn/text/box.rb
281
+ - lib/prawn/text/formatted.rb
220
282
  - lib/prawn/text/formatted/arranger.rb
221
283
  - lib/prawn/text/formatted/box.rb
222
284
  - lib/prawn/text/formatted/fragment.rb
223
285
  - lib/prawn/text/formatted/line_wrap.rb
224
286
  - lib/prawn/text/formatted/parser.rb
225
287
  - lib/prawn/text/formatted/wrap.rb
226
- - lib/prawn/text/formatted.rb
227
- - lib/prawn/text.rb
228
288
  - lib/prawn/utilities.rb
229
- - lib/prawn.rb
230
- - spec/acceptance/png.rb
231
- - spec/annotations_spec.rb
232
- - spec/bounding_box_spec.rb
233
- - spec/cell_spec.rb
234
- - spec/column_box_spec.rb
235
- - spec/data/curves.pdf
236
- - spec/destinations_spec.rb
237
- - spec/document_spec.rb
238
- - spec/extensions/encoding_helpers.rb
239
- - spec/extensions/mocha.rb
240
- - spec/filters_spec.rb
241
- - spec/font_metric_cache_spec.rb
242
- - spec/font_spec.rb
243
- - spec/formatted_text_arranger_spec.rb
244
- - spec/formatted_text_box_spec.rb
245
- - spec/formatted_text_fragment_spec.rb
246
- - spec/graphics_spec.rb
247
- - spec/grid_spec.rb
248
- - spec/image_handler_spec.rb
249
- - spec/images_spec.rb
250
- - spec/inline_formatted_text_parser_spec.rb
251
- - spec/jpg_spec.rb
252
- - spec/line_wrap_spec.rb
253
- - spec/measurement_units_spec.rb
254
- - spec/name_tree_spec.rb
255
- - spec/object_store_spec.rb
256
- - spec/outline_spec.rb
257
- - spec/pdf_object_spec.rb
258
- - spec/png_spec.rb
259
- - spec/reference_spec.rb
260
- - spec/repeater_spec.rb
261
- - spec/security_spec.rb
262
- - spec/snapshot_spec.rb
263
- - spec/soft_mask_spec.rb
264
- - spec/span_spec.rb
265
- - spec/spec_helper.rb
266
- - spec/stamp_spec.rb
267
- - spec/stream_spec.rb
268
- - spec/stroke_styles_spec.rb
269
- - spec/table/span_dummy_spec.rb
270
- - spec/table_spec.rb
271
- - spec/template_spec_obsolete.rb
272
- - spec/text_at_spec.rb
273
- - spec/text_box_spec.rb
274
- - spec/text_rendering_mode_spec.rb
275
- - spec/text_spacing_spec.rb
276
- - spec/text_spec.rb
277
- - spec/text_with_inline_formatting_spec.rb
278
- - spec/transparency_spec.rb
279
289
  - manual/basic_concepts/adding_pages.rb
280
290
  - manual/basic_concepts/basic_concepts.rb
281
291
  - manual/basic_concepts/creation.rb
@@ -395,70 +405,51 @@ files:
395
405
  - manual/text/text_box_overflow.rb
396
406
  - manual/text/utf8.rb
397
407
  - manual/text/win_ansi_charset.rb
398
- - data/encodings/win_ansi.txt
399
- - data/images/16bit.alpha
400
- - data/images/16bit.color
401
- - data/images/16bit.png
402
- - data/images/arrow.png
403
- - data/images/arrow2.png
404
- - data/images/barcode_issue.png
405
- - data/images/dice.alpha
406
- - data/images/dice.color
407
- - data/images/dice.png
408
- - data/images/dice_interlaced.png
409
- - data/images/fractal.jpg
410
- - data/images/indexed_color.dat
411
- - data/images/indexed_color.png
412
- - data/images/letterhead.jpg
413
- - data/images/page_white_text.alpha
414
- - data/images/page_white_text.color
415
- - data/images/page_white_text.png
416
- - data/images/pigs.jpg
417
- - data/images/prawn.png
418
- - data/images/ruport.png
419
- - data/images/ruport_data.dat
420
- - data/images/ruport_transparent.png
421
- - data/images/ruport_type0.png
422
- - data/images/stef.jpg
423
- - data/images/tru256.bmp
424
- - data/images/web-links.dat
425
- - data/images/web-links.png
426
- - data/pdfs/complex_template.pdf
427
- - data/pdfs/contains_ttf_font.pdf
428
- - data/pdfs/encrypted.pdf
429
- - data/pdfs/form.pdf
430
- - data/pdfs/hexagon.pdf
431
- - data/pdfs/indirect_reference.pdf
432
- - data/pdfs/multipage_template.pdf
433
- - data/pdfs/nested_pages.pdf
434
- - data/pdfs/page_without_mediabox.pdf
435
- - data/pdfs/resources_as_indirect_object.pdf
436
- - data/pdfs/two_hexagons.pdf
437
- - data/pdfs/version_1_6.pdf
438
- - data/fonts/MustRead.html
439
- - data/fonts/Courier-Bold.afm
440
- - data/fonts/Courier-BoldOblique.afm
441
- - data/fonts/Courier-Oblique.afm
442
- - data/fonts/Courier.afm
443
- - data/fonts/Helvetica-Bold.afm
444
- - data/fonts/Helvetica-BoldOblique.afm
445
- - data/fonts/Helvetica-Oblique.afm
446
- - data/fonts/Helvetica.afm
447
- - data/fonts/Symbol.afm
448
- - data/fonts/Times-Bold.afm
449
- - data/fonts/Times-BoldItalic.afm
450
- - data/fonts/Times-Italic.afm
451
- - data/fonts/Times-Roman.afm
452
- - data/fonts/ZapfDingbats.afm
453
- - data/shift_jis_text.txt
454
- - Rakefile
455
408
  - prawn.gemspec
456
- - Gemfile
457
- - COPYING
458
- - LICENSE
459
- - GPLv2
460
- - GPLv3
461
- - .yardopts
409
+ - spec/acceptance/png.rb
410
+ - spec/annotations_spec.rb
411
+ - spec/bounding_box_spec.rb
412
+ - spec/cell_spec.rb
413
+ - spec/column_box_spec.rb
414
+ - spec/data/curves.pdf
415
+ - spec/destinations_spec.rb
416
+ - spec/document_spec.rb
417
+ - spec/extensions/encoding_helpers.rb
418
+ - spec/extensions/mocha.rb
419
+ - spec/font_metric_cache_spec.rb
420
+ - spec/font_spec.rb
421
+ - spec/formatted_text_arranger_spec.rb
422
+ - spec/formatted_text_box_spec.rb
423
+ - spec/formatted_text_fragment_spec.rb
424
+ - spec/graphics_spec.rb
425
+ - spec/grid_spec.rb
426
+ - spec/image_handler_spec.rb
427
+ - spec/images_spec.rb
428
+ - spec/inline_formatted_text_parser_spec.rb
429
+ - spec/jpg_spec.rb
430
+ - spec/line_wrap_spec.rb
431
+ - spec/measurement_units_spec.rb
432
+ - spec/object_store_spec.rb
433
+ - spec/outline_spec.rb
434
+ - spec/png_spec.rb
435
+ - spec/reference_spec.rb
436
+ - spec/repeater_spec.rb
437
+ - spec/security_spec.rb
438
+ - spec/snapshot_spec.rb
439
+ - spec/soft_mask_spec.rb
440
+ - spec/span_spec.rb
441
+ - spec/spec_helper.rb
442
+ - spec/stamp_spec.rb
443
+ - spec/stroke_styles_spec.rb
444
+ - spec/table/span_dummy_spec.rb
445
+ - spec/table_spec.rb
446
+ - spec/text_at_spec.rb
447
+ - spec/text_box_spec.rb
448
+ - spec/text_rendering_mode_spec.rb
449
+ - spec/text_spacing_spec.rb
450
+ - spec/text_spec.rb
451
+ - spec/text_with_inline_formatting_spec.rb
452
+ - spec/transparency_spec.rb
462
453
  homepage: http://prawn.majesticseacreature.com
463
454
  licenses:
464
455
  - RUBY
@@ -484,17 +475,17 @@ require_paths:
484
475
  - lib
485
476
  required_ruby_version: !ruby/object:Gem::Requirement
486
477
  requirements:
487
- - - '>='
478
+ - - ">="
488
479
  - !ruby/object:Gem::Version
489
480
  version: 1.9.3
490
481
  required_rubygems_version: !ruby/object:Gem::Requirement
491
482
  requirements:
492
- - - '>='
483
+ - - ">="
493
484
  - !ruby/object:Gem::Version
494
485
  version: 1.3.6
495
486
  requirements: []
496
487
  rubyforge_project: prawn
497
- rubygems_version: 2.0.14
488
+ rubygems_version: 2.2.1
498
489
  signing_key:
499
490
  specification_version: 4
500
491
  summary: A fast and nimble PDF generator for Ruby
@@ -505,7 +496,6 @@ test_files:
505
496
  - spec/column_box_spec.rb
506
497
  - spec/destinations_spec.rb
507
498
  - spec/document_spec.rb
508
- - spec/filters_spec.rb
509
499
  - spec/font_metric_cache_spec.rb
510
500
  - spec/font_spec.rb
511
501
  - spec/formatted_text_arranger_spec.rb
@@ -519,10 +509,8 @@ test_files:
519
509
  - spec/jpg_spec.rb
520
510
  - spec/line_wrap_spec.rb
521
511
  - spec/measurement_units_spec.rb
522
- - spec/name_tree_spec.rb
523
512
  - spec/object_store_spec.rb
524
513
  - spec/outline_spec.rb
525
- - spec/pdf_object_spec.rb
526
514
  - spec/png_spec.rb
527
515
  - spec/reference_spec.rb
528
516
  - spec/repeater_spec.rb
@@ -531,7 +519,6 @@ test_files:
531
519
  - spec/soft_mask_spec.rb
532
520
  - spec/span_spec.rb
533
521
  - spec/stamp_spec.rb
534
- - spec/stream_spec.rb
535
522
  - spec/stroke_styles_spec.rb
536
523
  - spec/table_spec.rb
537
524
  - spec/text_at_spec.rb