prawn 0.4.1 → 0.5.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/lib/prawn.rb +2 -72
  2. metadata +33 -224
  3. data/COPYING +0 -340
  4. data/LICENSE +0 -56
  5. data/README +0 -40
  6. data/Rakefile +0 -79
  7. data/data/encodings/win_ansi.txt +0 -29
  8. data/data/fonts/Action Man.dfont +0 -0
  9. data/data/fonts/Activa.ttf +0 -0
  10. data/data/fonts/Chalkboard.ttf +0 -0
  11. data/data/fonts/Courier-Bold.afm +0 -342
  12. data/data/fonts/Courier-BoldOblique.afm +0 -342
  13. data/data/fonts/Courier-Oblique.afm +0 -342
  14. data/data/fonts/Courier.afm +0 -342
  15. data/data/fonts/DejaVuSans.ttf +0 -0
  16. data/data/fonts/Dustismo_Roman.ttf +0 -0
  17. data/data/fonts/Helvetica-Bold.afm +0 -2827
  18. data/data/fonts/Helvetica-BoldOblique.afm +0 -2827
  19. data/data/fonts/Helvetica-Oblique.afm +0 -3051
  20. data/data/fonts/Helvetica.afm +0 -3051
  21. data/data/fonts/MustRead.html +0 -19
  22. data/data/fonts/Symbol.afm +0 -213
  23. data/data/fonts/Times-Bold.afm +0 -2588
  24. data/data/fonts/Times-BoldItalic.afm +0 -2384
  25. data/data/fonts/Times-Italic.afm +0 -2667
  26. data/data/fonts/Times-Roman.afm +0 -2419
  27. data/data/fonts/ZapfDingbats.afm +0 -225
  28. data/data/fonts/comicsans.ttf +0 -0
  29. data/data/fonts/gkai00mp.ttf +0 -0
  30. data/data/images/arrow.png +0 -0
  31. data/data/images/arrow2.png +0 -0
  32. data/data/images/barcode_issue.png +0 -0
  33. data/data/images/dice.alpha +0 -0
  34. data/data/images/dice.dat +0 -0
  35. data/data/images/dice.png +0 -0
  36. data/data/images/fractal.jpg +0 -0
  37. data/data/images/letterhead.jpg +0 -0
  38. data/data/images/page_white_text.alpha +0 -0
  39. data/data/images/page_white_text.dat +0 -0
  40. data/data/images/page_white_text.png +0 -0
  41. data/data/images/pigs.jpg +0 -0
  42. data/data/images/rails.dat +0 -0
  43. data/data/images/rails.png +0 -0
  44. data/data/images/ruport.png +0 -0
  45. data/data/images/ruport_data.dat +0 -0
  46. data/data/images/ruport_transparent.png +0 -0
  47. data/data/images/ruport_type0.png +0 -0
  48. data/data/images/stef.jpg +0 -0
  49. data/data/images/web-links.dat +0 -1
  50. data/data/images/web-links.png +0 -0
  51. data/data/shift_jis_text.txt +0 -1
  52. data/examples/bounding_box/bounding_boxes.rb +0 -44
  53. data/examples/bounding_box/lazy_bounding_boxes.rb +0 -28
  54. data/examples/bounding_box/padded_box.rb +0 -24
  55. data/examples/bounding_box/russian_boxes.rb +0 -37
  56. data/examples/general/background.rb +0 -20
  57. data/examples/general/canvas.rb +0 -16
  58. data/examples/general/measurement_units.rb +0 -52
  59. data/examples/general/multi_page_layout.rb +0 -17
  60. data/examples/general/page_geometry.rb +0 -32
  61. data/examples/graphics/basic_images.rb +0 -27
  62. data/examples/graphics/cmyk.rb +0 -13
  63. data/examples/graphics/curves.rb +0 -12
  64. data/examples/graphics/hexagon.rb +0 -14
  65. data/examples/graphics/image_fit.rb +0 -16
  66. data/examples/graphics/image_flow.rb +0 -38
  67. data/examples/graphics/image_position.rb +0 -18
  68. data/examples/graphics/line.rb +0 -33
  69. data/examples/graphics/png_types.rb +0 -23
  70. data/examples/graphics/polygons.rb +0 -17
  71. data/examples/graphics/remote_images.rb +0 -12
  72. data/examples/graphics/ruport_style_helpers.rb +0 -20
  73. data/examples/graphics/stroke_bounds.rb +0 -23
  74. data/examples/m17n/chinese_text_wrapping.rb +0 -20
  75. data/examples/m17n/euro.rb +0 -16
  76. data/examples/m17n/sjis.rb +0 -29
  77. data/examples/m17n/utf8.rb +0 -14
  78. data/examples/m17n/win_ansi_charset.rb +0 -55
  79. data/examples/text/alignment.rb +0 -19
  80. data/examples/text/dfont.rb +0 -49
  81. data/examples/text/family_based_styling.rb +0 -25
  82. data/examples/text/flowing_text_with_header_and_footer.rb +0 -37
  83. data/examples/text/font_calculations.rb +0 -92
  84. data/examples/text/font_size.rb +0 -34
  85. data/examples/text/kerning.rb +0 -31
  86. data/examples/text/simple_text.rb +0 -18
  87. data/examples/text/simple_text_ttf.rb +0 -18
  88. data/examples/text/span.rb +0 -30
  89. data/examples/text/text_box.rb +0 -26
  90. data/examples/text/text_flow.rb +0 -68
  91. data/lib/prawn/compatibility.rb +0 -38
  92. data/lib/prawn/document.rb +0 -309
  93. data/lib/prawn/document/annotations.rb +0 -63
  94. data/lib/prawn/document/bounding_box.rb +0 -368
  95. data/lib/prawn/document/destinations.rb +0 -81
  96. data/lib/prawn/document/internals.rb +0 -126
  97. data/lib/prawn/document/page_geometry.rb +0 -79
  98. data/lib/prawn/document/span.rb +0 -55
  99. data/lib/prawn/document/text.rb +0 -185
  100. data/lib/prawn/document/text/box.rb +0 -76
  101. data/lib/prawn/document/text/wrapping.rb +0 -59
  102. data/lib/prawn/encoding.rb +0 -121
  103. data/lib/prawn/errors.rb +0 -40
  104. data/lib/prawn/font.rb +0 -277
  105. data/lib/prawn/font/afm.rb +0 -202
  106. data/lib/prawn/font/dfont.rb +0 -31
  107. data/lib/prawn/font/ttf.rb +0 -326
  108. data/lib/prawn/graphics.rb +0 -257
  109. data/lib/prawn/graphics/color.rb +0 -140
  110. data/lib/prawn/images.rb +0 -339
  111. data/lib/prawn/images/jpg.rb +0 -45
  112. data/lib/prawn/images/png.rb +0 -199
  113. data/lib/prawn/literal_string.rb +0 -14
  114. data/lib/prawn/measurement_extensions.rb +0 -46
  115. data/lib/prawn/measurements.rb +0 -71
  116. data/lib/prawn/name_tree.rb +0 -165
  117. data/lib/prawn/pdf_object.rb +0 -73
  118. data/lib/prawn/reference.rb +0 -59
  119. data/spec/annotations_spec.rb +0 -90
  120. data/spec/bounding_box_spec.rb +0 -141
  121. data/spec/destinations_spec.rb +0 -15
  122. data/spec/document_spec.rb +0 -193
  123. data/spec/font_spec.rb +0 -234
  124. data/spec/graphics_spec.rb +0 -209
  125. data/spec/images_spec.rb +0 -68
  126. data/spec/jpg_spec.rb +0 -25
  127. data/spec/measurement_units_spec.rb +0 -23
  128. data/spec/name_tree_spec.rb +0 -103
  129. data/spec/pdf_object_spec.rb +0 -112
  130. data/spec/png_spec.rb +0 -196
  131. data/spec/reference_spec.rb +0 -42
  132. data/spec/spec_helper.rb +0 -23
  133. data/spec/text_spec.rb +0 -178
  134. data/vendor/pdf-inspector/README +0 -18
  135. data/vendor/pdf-inspector/lib/pdf/inspector.rb +0 -25
  136. data/vendor/pdf-inspector/lib/pdf/inspector/graphics.rb +0 -80
  137. data/vendor/pdf-inspector/lib/pdf/inspector/page.rb +0 -16
  138. data/vendor/pdf-inspector/lib/pdf/inspector/text.rb +0 -31
  139. data/vendor/pdf-inspector/lib/pdf/inspector/xobject.rb +0 -19
  140. data/vendor/ttfunk/data/fonts/DejaVuSans.ttf +0 -0
  141. data/vendor/ttfunk/data/fonts/comicsans.ttf +0 -0
  142. data/vendor/ttfunk/example.rb +0 -45
  143. data/vendor/ttfunk/lib/ttfunk.rb +0 -102
  144. data/vendor/ttfunk/lib/ttfunk/directory.rb +0 -17
  145. data/vendor/ttfunk/lib/ttfunk/encoding/mac_roman.rb +0 -88
  146. data/vendor/ttfunk/lib/ttfunk/encoding/windows_1252.rb +0 -69
  147. data/vendor/ttfunk/lib/ttfunk/reader.rb +0 -44
  148. data/vendor/ttfunk/lib/ttfunk/resource_file.rb +0 -78
  149. data/vendor/ttfunk/lib/ttfunk/subset.rb +0 -18
  150. data/vendor/ttfunk/lib/ttfunk/subset/base.rb +0 -141
  151. data/vendor/ttfunk/lib/ttfunk/subset/mac_roman.rb +0 -46
  152. data/vendor/ttfunk/lib/ttfunk/subset/unicode.rb +0 -48
  153. data/vendor/ttfunk/lib/ttfunk/subset/unicode_8bit.rb +0 -63
  154. data/vendor/ttfunk/lib/ttfunk/subset/windows_1252.rb +0 -51
  155. data/vendor/ttfunk/lib/ttfunk/subset_collection.rb +0 -72
  156. data/vendor/ttfunk/lib/ttfunk/table.rb +0 -46
  157. data/vendor/ttfunk/lib/ttfunk/table/cmap.rb +0 -34
  158. data/vendor/ttfunk/lib/ttfunk/table/cmap/format00.rb +0 -54
  159. data/vendor/ttfunk/lib/ttfunk/table/cmap/format04.rb +0 -126
  160. data/vendor/ttfunk/lib/ttfunk/table/cmap/subtable.rb +0 -79
  161. data/vendor/ttfunk/lib/ttfunk/table/glyf.rb +0 -64
  162. data/vendor/ttfunk/lib/ttfunk/table/glyf/compound.rb +0 -81
  163. data/vendor/ttfunk/lib/ttfunk/table/glyf/simple.rb +0 -37
  164. data/vendor/ttfunk/lib/ttfunk/table/head.rb +0 -44
  165. data/vendor/ttfunk/lib/ttfunk/table/hhea.rb +0 -41
  166. data/vendor/ttfunk/lib/ttfunk/table/hmtx.rb +0 -47
  167. data/vendor/ttfunk/lib/ttfunk/table/kern.rb +0 -79
  168. data/vendor/ttfunk/lib/ttfunk/table/kern/format0.rb +0 -62
  169. data/vendor/ttfunk/lib/ttfunk/table/loca.rb +0 -43
  170. data/vendor/ttfunk/lib/ttfunk/table/maxp.rb +0 -40
  171. data/vendor/ttfunk/lib/ttfunk/table/name.rb +0 -119
  172. data/vendor/ttfunk/lib/ttfunk/table/os2.rb +0 -78
  173. data/vendor/ttfunk/lib/ttfunk/table/post.rb +0 -91
  174. data/vendor/ttfunk/lib/ttfunk/table/post/format10.rb +0 -43
  175. data/vendor/ttfunk/lib/ttfunk/table/post/format20.rb +0 -35
  176. data/vendor/ttfunk/lib/ttfunk/table/post/format25.rb +0 -23
  177. data/vendor/ttfunk/lib/ttfunk/table/post/format30.rb +0 -17
  178. data/vendor/ttfunk/lib/ttfunk/table/post/format40.rb +0 -17
  179. data/vendor/ttfunk/lib/ttfunk/table/simple.rb +0 -14
data/lib/prawn.rb CHANGED
@@ -1,72 +1,2 @@
1
- # encoding: utf-8
2
-
3
- # prawn.rb : A library for PDF generation in Ruby
4
- #
5
- # Copyright April 2008, Gregory Brown. All Rights Reserved.
6
- #
7
- # This is free software. Please see the LICENSE and COPYING files for details.
8
-
9
- %w[ttfunk/lib].each do |dep|
10
- $LOAD_PATH.unshift(File.dirname(__FILE__) + "/../vendor/#{dep}")
11
- end
12
-
13
- require 'ttfunk'
14
-
15
- module Prawn
16
- file = __FILE__
17
- file = File.readlink(file) if File.symlink?(file)
18
- dir = File.dirname(file)
19
-
20
- # The base source directory for Prawn as installed on the system
21
- BASEDIR = File.expand_path(File.join(dir, '..'))
22
-
23
- VERSION = "0.4.1"
24
-
25
- extend self
26
-
27
- # Whe set to true, Prawn will verify hash options to ensure only valid keys
28
- # are used. Off by default.
29
- #
30
- attr_accessor :debug
31
-
32
- def verify_options(accepted,actual) #:nodoc:
33
- return unless debug || $DEBUG
34
- require "set"
35
- unless (act=Set[*actual.keys]).subset?(acc=Set[*accepted])
36
- raise Prawn::Errors::UnknownOption,
37
- "\nDetected unknown option(s): #{(act - acc).to_a.inspect}\n" <<
38
- "Accepted options are: #{accepted.inspect}"
39
- end
40
- yield if block_given?
41
- end
42
-
43
- module Configurable #:nodoc:
44
- def configuration(*args)
45
- @config ||= Marshal.load(Marshal.dump(default_configuration))
46
- if Hash === args[0]
47
- @config.update(args[0])
48
- elsif args.length > 1
49
- @config.values_at(*args)
50
- elsif args.length == 1
51
- @config[args[0]]
52
- else
53
- @config
54
- end
55
- end
56
-
57
- alias_method :C, :configuration
58
- end
59
- end
60
-
61
- require "prawn/compatibility"
62
- require "prawn/errors"
63
- require "prawn/pdf_object"
64
- require "prawn/graphics"
65
- require "prawn/images"
66
- require "prawn/images/jpg"
67
- require "prawn/images/png"
68
- require "prawn/document"
69
- require "prawn/reference"
70
- require "prawn/font"
71
- require "prawn/encoding"
72
- require "prawn/measurements"
1
+ require "rubygems"
2
+ require "prawn/core"
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.4.1
4
+ version: 0.5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
@@ -9,18 +9,38 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-24 00:00:00 -05:00
12
+ date: 2009-06-15 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: prawn-core
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 0.5.0
24
+ version:
15
25
  - !ruby/object:Gem::Dependency
16
26
  name: prawn-layout
17
27
  type: :runtime
18
28
  version_requirement:
19
29
  version_requirements: !ruby/object:Gem::Requirement
20
30
  requirements:
21
- - - ">="
31
+ - - ~>
22
32
  - !ruby/object:Gem::Version
23
- version: "0"
33
+ version: 0.2.0
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: prawn-format
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.2.0
24
44
  version:
25
45
  description: Prawn is a fast, tiny, and nimble PDF generator for Ruby
26
46
  email: " gregory.t.brown@gmail.com"
@@ -28,228 +48,17 @@ executables: []
28
48
 
29
49
  extensions: []
30
50
 
31
- extra_rdoc_files:
32
- - README
33
- - LICENSE
34
- - COPYING
51
+ extra_rdoc_files: []
52
+
35
53
  files:
36
- - examples/bounding_box
37
- - examples/bounding_box/bounding_boxes.rb
38
- - examples/bounding_box/lazy_bounding_boxes.rb
39
- - examples/bounding_box/padded_box.rb
40
- - examples/bounding_box/russian_boxes.rb
41
- - examples/general
42
- - examples/general/background.rb
43
- - examples/general/canvas.rb
44
- - examples/general/measurement_units.rb
45
- - examples/general/multi_page_layout.rb
46
- - examples/general/page_geometry.rb
47
- - examples/graphics
48
- - examples/graphics/basic_images.rb
49
- - examples/graphics/cmyk.rb
50
- - examples/graphics/curves.rb
51
- - examples/graphics/hexagon.rb
52
- - examples/graphics/image_fit.rb
53
- - examples/graphics/image_flow.rb
54
- - examples/graphics/image_position.rb
55
- - examples/graphics/line.rb
56
- - examples/graphics/png_types.rb
57
- - examples/graphics/polygons.rb
58
- - examples/graphics/remote_images.rb
59
- - examples/graphics/ruport_style_helpers.rb
60
- - examples/graphics/stroke_bounds.rb
61
- - examples/m17n
62
- - examples/m17n/chinese_text_wrapping.rb
63
- - examples/m17n/euro.rb
64
- - examples/m17n/sjis.rb
65
- - examples/m17n/utf8.rb
66
- - examples/m17n/win_ansi_charset.rb
67
- - examples/text
68
- - examples/text/alignment.rb
69
- - examples/text/dfont.rb
70
- - examples/text/family_based_styling.rb
71
- - examples/text/flowing_text_with_header_and_footer.rb
72
- - examples/text/font_calculations.rb
73
- - examples/text/font_size.rb
74
- - examples/text/kerning.rb
75
- - examples/text/simple_text.rb
76
- - examples/text/simple_text_ttf.rb
77
- - examples/text/span.rb
78
- - examples/text/text_box.rb
79
- - examples/text/text_flow.rb
80
- - lib/prawn
81
- - lib/prawn/compatibility.rb
82
- - lib/prawn/document
83
- - lib/prawn/document/annotations.rb
84
- - lib/prawn/document/bounding_box.rb
85
- - lib/prawn/document/destinations.rb
86
- - lib/prawn/document/internals.rb
87
- - lib/prawn/document/page_geometry.rb
88
- - lib/prawn/document/span.rb
89
- - lib/prawn/document/text
90
- - lib/prawn/document/text/box.rb
91
- - lib/prawn/document/text/wrapping.rb
92
- - lib/prawn/document/text.rb
93
- - lib/prawn/document.rb
94
- - lib/prawn/encoding.rb
95
- - lib/prawn/errors.rb
96
- - lib/prawn/font
97
- - lib/prawn/font/afm.rb
98
- - lib/prawn/font/dfont.rb
99
- - lib/prawn/font/ttf.rb
100
- - lib/prawn/font.rb
101
- - lib/prawn/graphics
102
- - lib/prawn/graphics/color.rb
103
- - lib/prawn/graphics.rb
104
- - lib/prawn/images
105
- - lib/prawn/images/jpg.rb
106
- - lib/prawn/images/png.rb
107
- - lib/prawn/images.rb
108
- - lib/prawn/literal_string.rb
109
- - lib/prawn/measurement_extensions.rb
110
- - lib/prawn/measurements.rb
111
- - lib/prawn/name_tree.rb
112
- - lib/prawn/pdf_object.rb
113
- - lib/prawn/reference.rb
114
54
  - lib/prawn.rb
115
- - spec/annotations_spec.rb
116
- - spec/bounding_box_spec.rb
117
- - spec/destinations_spec.rb
118
- - spec/document_spec.rb
119
- - spec/font_spec.rb
120
- - spec/graphics_spec.rb
121
- - spec/images_spec.rb
122
- - spec/jpg_spec.rb
123
- - spec/measurement_units_spec.rb
124
- - spec/name_tree_spec.rb
125
- - spec/pdf_object_spec.rb
126
- - spec/png_spec.rb
127
- - spec/reference_spec.rb
128
- - spec/spec_helper.rb
129
- - spec/text_spec.rb
130
- - vendor/pdf-inspector
131
- - vendor/pdf-inspector/lib
132
- - vendor/pdf-inspector/lib/pdf
133
- - vendor/pdf-inspector/lib/pdf/inspector
134
- - vendor/pdf-inspector/lib/pdf/inspector/graphics.rb
135
- - vendor/pdf-inspector/lib/pdf/inspector/page.rb
136
- - vendor/pdf-inspector/lib/pdf/inspector/text.rb
137
- - vendor/pdf-inspector/lib/pdf/inspector/xobject.rb
138
- - vendor/pdf-inspector/lib/pdf/inspector.rb
139
- - vendor/pdf-inspector/README
140
- - vendor/ttfunk
141
- - vendor/ttfunk/data
142
- - vendor/ttfunk/data/fonts
143
- - vendor/ttfunk/data/fonts/comicsans.ttf
144
- - vendor/ttfunk/data/fonts/DejaVuSans.ttf
145
- - vendor/ttfunk/example.rb
146
- - vendor/ttfunk/lib
147
- - vendor/ttfunk/lib/ttfunk
148
- - vendor/ttfunk/lib/ttfunk/directory.rb
149
- - vendor/ttfunk/lib/ttfunk/encoding
150
- - vendor/ttfunk/lib/ttfunk/encoding/mac_roman.rb
151
- - vendor/ttfunk/lib/ttfunk/encoding/windows_1252.rb
152
- - vendor/ttfunk/lib/ttfunk/reader.rb
153
- - vendor/ttfunk/lib/ttfunk/resource_file.rb
154
- - vendor/ttfunk/lib/ttfunk/subset
155
- - vendor/ttfunk/lib/ttfunk/subset/base.rb
156
- - vendor/ttfunk/lib/ttfunk/subset/mac_roman.rb
157
- - vendor/ttfunk/lib/ttfunk/subset/unicode.rb
158
- - vendor/ttfunk/lib/ttfunk/subset/unicode_8bit.rb
159
- - vendor/ttfunk/lib/ttfunk/subset/windows_1252.rb
160
- - vendor/ttfunk/lib/ttfunk/subset.rb
161
- - vendor/ttfunk/lib/ttfunk/subset_collection.rb
162
- - vendor/ttfunk/lib/ttfunk/table
163
- - vendor/ttfunk/lib/ttfunk/table/cmap
164
- - vendor/ttfunk/lib/ttfunk/table/cmap/format00.rb
165
- - vendor/ttfunk/lib/ttfunk/table/cmap/format04.rb
166
- - vendor/ttfunk/lib/ttfunk/table/cmap/subtable.rb
167
- - vendor/ttfunk/lib/ttfunk/table/cmap.rb
168
- - vendor/ttfunk/lib/ttfunk/table/glyf
169
- - vendor/ttfunk/lib/ttfunk/table/glyf/compound.rb
170
- - vendor/ttfunk/lib/ttfunk/table/glyf/simple.rb
171
- - vendor/ttfunk/lib/ttfunk/table/glyf.rb
172
- - vendor/ttfunk/lib/ttfunk/table/head.rb
173
- - vendor/ttfunk/lib/ttfunk/table/hhea.rb
174
- - vendor/ttfunk/lib/ttfunk/table/hmtx.rb
175
- - vendor/ttfunk/lib/ttfunk/table/kern
176
- - vendor/ttfunk/lib/ttfunk/table/kern/format0.rb
177
- - vendor/ttfunk/lib/ttfunk/table/kern.rb
178
- - vendor/ttfunk/lib/ttfunk/table/loca.rb
179
- - vendor/ttfunk/lib/ttfunk/table/maxp.rb
180
- - vendor/ttfunk/lib/ttfunk/table/name.rb
181
- - vendor/ttfunk/lib/ttfunk/table/os2.rb
182
- - vendor/ttfunk/lib/ttfunk/table/post
183
- - vendor/ttfunk/lib/ttfunk/table/post/format10.rb
184
- - vendor/ttfunk/lib/ttfunk/table/post/format20.rb
185
- - vendor/ttfunk/lib/ttfunk/table/post/format25.rb
186
- - vendor/ttfunk/lib/ttfunk/table/post/format30.rb
187
- - vendor/ttfunk/lib/ttfunk/table/post/format40.rb
188
- - vendor/ttfunk/lib/ttfunk/table/post.rb
189
- - vendor/ttfunk/lib/ttfunk/table/simple.rb
190
- - vendor/ttfunk/lib/ttfunk/table.rb
191
- - vendor/ttfunk/lib/ttfunk.rb
192
- - data/encodings
193
- - data/encodings/win_ansi.txt
194
- - data/fonts
195
- - data/fonts/Action Man.dfont
196
- - data/fonts/Activa.ttf
197
- - data/fonts/Chalkboard.ttf
198
- - data/fonts/comicsans.ttf
199
- - data/fonts/Courier-Bold.afm
200
- - data/fonts/Courier-BoldOblique.afm
201
- - data/fonts/Courier-Oblique.afm
202
- - data/fonts/Courier.afm
203
- - data/fonts/DejaVuSans.ttf
204
- - data/fonts/Dustismo_Roman.ttf
205
- - data/fonts/gkai00mp.ttf
206
- - data/fonts/Helvetica-Bold.afm
207
- - data/fonts/Helvetica-BoldOblique.afm
208
- - data/fonts/Helvetica-Oblique.afm
209
- - data/fonts/Helvetica.afm
210
- - data/fonts/MustRead.html
211
- - data/fonts/Symbol.afm
212
- - data/fonts/Times-Bold.afm
213
- - data/fonts/Times-BoldItalic.afm
214
- - data/fonts/Times-Italic.afm
215
- - data/fonts/Times-Roman.afm
216
- - data/fonts/ZapfDingbats.afm
217
- - data/images
218
- - data/images/arrow.png
219
- - data/images/arrow2.png
220
- - data/images/barcode_issue.png
221
- - data/images/dice.alpha
222
- - data/images/dice.dat
223
- - data/images/dice.png
224
- - data/images/fractal.jpg
225
- - data/images/letterhead.jpg
226
- - data/images/page_white_text.alpha
227
- - data/images/page_white_text.dat
228
- - data/images/page_white_text.png
229
- - data/images/pigs.jpg
230
- - data/images/rails.dat
231
- - data/images/rails.png
232
- - data/images/ruport.png
233
- - data/images/ruport_data.dat
234
- - data/images/ruport_transparent.png
235
- - data/images/ruport_type0.png
236
- - data/images/stef.jpg
237
- - data/images/web-links.dat
238
- - data/images/web-links.png
239
- - data/shift_jis_text.txt
240
- - Rakefile
241
- - README
242
- - LICENSE
243
- - COPYING
244
55
  has_rdoc: true
245
56
  homepage: http://prawn.majesticseacreature.com
246
- post_install_message:
247
- rdoc_options:
248
- - --title
249
- - Prawn Documentation
250
- - --main
251
- - README
252
- - -q
57
+ licenses: []
58
+
59
+ post_install_message: "\n Welcome to Prawn, the best pure-Ruby PDF solution ever!\n This is version 0.5 RC1\n \n Please note that you have downloaded a pre-release candidate gem,\n which has some bugs, ugly spots, other bad things in it. This gem is also\n not fully backwards compatible, and may break existing code.\n\n If you wish to revert until a stable release is ready, uninstall prawn 0.5.0,\n prawn-core 0.5.0, prawn-layout 0.2.0 and prawn-format 0.2.0\n\n For details on what has changed, see:\n http://prawn.majesticseacreature.com/notes/0.5\n\n If you have questions, contact us at:\n http://groups.google.com/group/prawn-ruby\n\n To submit a patch or report a bug: \n http://github.com/sandal/prawn\n\n Prawn is meant for experienced Ruby hackers, so if you are new to Ruby, you\n might want to wait until you've had some practice with the language before\n expecting Prawn to work for you. Things may change after 1.0, but for now\n if you're not ready to read source code and patch bugs or missing features \n yourself (with our help), Prawn might not be the right fit.\n\n But if you know what you're getting yourself into, enjoy!\n "
60
+ rdoc_options: []
61
+
253
62
  require_paths:
254
63
  - lib
255
64
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -267,9 +76,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
76
  requirements: []
268
77
 
269
78
  rubyforge_project: prawn
270
- rubygems_version: 1.3.1
79
+ rubygems_version: 1.3.4
271
80
  signing_key:
272
- specification_version: 2
81
+ specification_version: 3
273
82
  summary: A fast and nimble PDF generator for Ruby
274
83
  test_files: []
275
84
 
data/COPYING DELETED
@@ -1,340 +0,0 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 2, June 1991
3
-
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6
- Everyone is permitted to copy and distribute verbatim copies
7
- of this license document, but changing it is not allowed.
8
-
9
- Preamble
10
-
11
- The licenses for most software are designed to take away your
12
- freedom to share and change it. By contrast, the GNU General Public
13
- License is intended to guarantee your freedom to share and change free
14
- software--to make sure the software is free for all its users. This
15
- General Public License applies to most of the Free Software
16
- Foundation's software and to any other program whose authors commit to
17
- using it. (Some other Free Software Foundation software is covered by
18
- the GNU Library General Public License instead.) You can apply it to
19
- your programs, too.
20
-
21
- When we speak of free software, we are referring to freedom, not
22
- price. Our General Public Licenses are designed to make sure that you
23
- have the freedom to distribute copies of free software (and charge for
24
- this service if you wish), that you receive source code or can get it
25
- if you want it, that you can change the software or use pieces of it
26
- in new free programs; and that you know you can do these things.
27
-
28
- To protect your rights, we need to make restrictions that forbid
29
- anyone to deny you these rights or to ask you to surrender the rights.
30
- These restrictions translate to certain responsibilities for you if you
31
- distribute copies of the software, or if you modify it.
32
-
33
- For example, if you distribute copies of such a program, whether
34
- gratis or for a fee, you must give the recipients all the rights that
35
- you have. You must make sure that they, too, receive or can get the
36
- source code. And you must show them these terms so they know their
37
- rights.
38
-
39
- We protect your rights with two steps: (1) copyright the software, and
40
- (2) offer you this license which gives you legal permission to copy,
41
- distribute and/or modify the software.
42
-
43
- Also, for each author's protection and ours, we want to make certain
44
- that everyone understands that there is no warranty for this free
45
- software. If the software is modified by someone else and passed on, we
46
- want its recipients to know that what they have is not the original, so
47
- that any problems introduced by others will not reflect on the original
48
- authors' reputations.
49
-
50
- Finally, any free program is threatened constantly by software
51
- patents. We wish to avoid the danger that redistributors of a free
52
- program will individually obtain patent licenses, in effect making the
53
- program proprietary. To prevent this, we have made it clear that any
54
- patent must be licensed for everyone's free use or not licensed at all.
55
-
56
- The precise terms and conditions for copying, distribution and
57
- modification follow.
58
-
59
- GNU GENERAL PUBLIC LICENSE
60
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
-
62
- 0. This License applies to any program or other work which contains
63
- a notice placed by the copyright holder saying it may be distributed
64
- under the terms of this General Public License. The "Program", below,
65
- refers to any such program or work, and a "work based on the Program"
66
- means either the Program or any derivative work under copyright law:
67
- that is to say, a work containing the Program or a portion of it,
68
- either verbatim or with modifications and/or translated into another
69
- language. (Hereinafter, translation is included without limitation in
70
- the term "modification".) Each licensee is addressed as "you".
71
-
72
- Activities other than copying, distribution and modification are not
73
- covered by this License; they are outside its scope. The act of
74
- running the Program is not restricted, and the output from the Program
75
- is covered only if its contents constitute a work based on the
76
- Program (independent of having been made by running the Program).
77
- Whether that is true depends on what the Program does.
78
-
79
- 1. You may copy and distribute verbatim copies of the Program's
80
- source code as you receive it, in any medium, provided that you
81
- conspicuously and appropriately publish on each copy an appropriate
82
- copyright notice and disclaimer of warranty; keep intact all the
83
- notices that refer to this License and to the absence of any warranty;
84
- and give any other recipients of the Program a copy of this License
85
- along with the Program.
86
-
87
- You may charge a fee for the physical act of transferring a copy, and
88
- you may at your option offer warranty protection in exchange for a fee.
89
-
90
- 2. You may modify your copy or copies of the Program or any portion
91
- of it, thus forming a work based on the Program, and copy and
92
- distribute such modifications or work under the terms of Section 1
93
- above, provided that you also meet all of these conditions:
94
-
95
- a) You must cause the modified files to carry prominent notices
96
- stating that you changed the files and the date of any change.
97
-
98
- b) You must cause any work that you distribute or publish, that in
99
- whole or in part contains or is derived from the Program or any
100
- part thereof, to be licensed as a whole at no charge to all third
101
- parties under the terms of this License.
102
-
103
- c) If the modified program normally reads commands interactively
104
- when run, you must cause it, when started running for such
105
- interactive use in the most ordinary way, to print or display an
106
- announcement including an appropriate copyright notice and a
107
- notice that there is no warranty (or else, saying that you provide
108
- a warranty) and that users may redistribute the program under
109
- these conditions, and telling the user how to view a copy of this
110
- License. (Exception: if the Program itself is interactive but
111
- does not normally print such an announcement, your work based on
112
- the Program is not required to print an announcement.)
113
-
114
- These requirements apply to the modified work as a whole. If
115
- identifiable sections of that work are not derived from the Program,
116
- and can be reasonably considered independent and separate works in
117
- themselves, then this License, and its terms, do not apply to those
118
- sections when you distribute them as separate works. But when you
119
- distribute the same sections as part of a whole which is a work based
120
- on the Program, the distribution of the whole must be on the terms of
121
- this License, whose permissions for other licensees extend to the
122
- entire whole, and thus to each and every part regardless of who wrote it.
123
-
124
- Thus, it is not the intent of this section to claim rights or contest
125
- your rights to work written entirely by you; rather, the intent is to
126
- exercise the right to control the distribution of derivative or
127
- collective works based on the Program.
128
-
129
- In addition, mere aggregation of another work not based on the Program
130
- with the Program (or with a work based on the Program) on a volume of
131
- a storage or distribution medium does not bring the other work under
132
- the scope of this License.
133
-
134
- 3. You may copy and distribute the Program (or a work based on it,
135
- under Section 2) in object code or executable form under the terms of
136
- Sections 1 and 2 above provided that you also do one of the following:
137
-
138
- a) Accompany it with the complete corresponding machine-readable
139
- source code, which must be distributed under the terms of Sections
140
- 1 and 2 above on a medium customarily used for software interchange; or,
141
-
142
- b) Accompany it with a written offer, valid for at least three
143
- years, to give any third party, for a charge no more than your
144
- cost of physically performing source distribution, a complete
145
- machine-readable copy of the corresponding source code, to be
146
- distributed under the terms of Sections 1 and 2 above on a medium
147
- customarily used for software interchange; or,
148
-
149
- c) Accompany it with the information you received as to the offer
150
- to distribute corresponding source code. (This alternative is
151
- allowed only for noncommercial distribution and only if you
152
- received the program in object code or executable form with such
153
- an offer, in accord with Subsection b above.)
154
-
155
- The source code for a work means the preferred form of the work for
156
- making modifications to it. For an executable work, complete source
157
- code means all the source code for all modules it contains, plus any
158
- associated interface definition files, plus the scripts used to
159
- control compilation and installation of the executable. However, as a
160
- special exception, the source code distributed need not include
161
- anything that is normally distributed (in either source or binary
162
- form) with the major components (compiler, kernel, and so on) of the
163
- operating system on which the executable runs, unless that component
164
- itself accompanies the executable.
165
-
166
- If distribution of executable or object code is made by offering
167
- access to copy from a designated place, then offering equivalent
168
- access to copy the source code from the same place counts as
169
- distribution of the source code, even though third parties are not
170
- compelled to copy the source along with the object code.
171
-
172
- 4. You may not copy, modify, sublicense, or distribute the Program
173
- except as expressly provided under this License. Any attempt
174
- otherwise to copy, modify, sublicense or distribute the Program is
175
- void, and will automatically terminate your rights under this License.
176
- However, parties who have received copies, or rights, from you under
177
- this License will not have their licenses terminated so long as such
178
- parties remain in full compliance.
179
-
180
- 5. You are not required to accept this License, since you have not
181
- signed it. However, nothing else grants you permission to modify or
182
- distribute the Program or its derivative works. These actions are
183
- prohibited by law if you do not accept this License. Therefore, by
184
- modifying or distributing the Program (or any work based on the
185
- Program), you indicate your acceptance of this License to do so, and
186
- all its terms and conditions for copying, distributing or modifying
187
- the Program or works based on it.
188
-
189
- 6. Each time you redistribute the Program (or any work based on the
190
- Program), the recipient automatically receives a license from the
191
- original licensor to copy, distribute or modify the Program subject to
192
- these terms and conditions. You may not impose any further
193
- restrictions on the recipients' exercise of the rights granted herein.
194
- You are not responsible for enforcing compliance by third parties to
195
- this License.
196
-
197
- 7. If, as a consequence of a court judgment or allegation of patent
198
- infringement or for any other reason (not limited to patent issues),
199
- conditions are imposed on you (whether by court order, agreement or
200
- otherwise) that contradict the conditions of this License, they do not
201
- excuse you from the conditions of this License. If you cannot
202
- distribute so as to satisfy simultaneously your obligations under this
203
- License and any other pertinent obligations, then as a consequence you
204
- may not distribute the Program at all. For example, if a patent
205
- license would not permit royalty-free redistribution of the Program by
206
- all those who receive copies directly or indirectly through you, then
207
- the only way you could satisfy both it and this License would be to
208
- refrain entirely from distribution of the Program.
209
-
210
- If any portion of this section is held invalid or unenforceable under
211
- any particular circumstance, the balance of the section is intended to
212
- apply and the section as a whole is intended to apply in other
213
- circumstances.
214
-
215
- It is not the purpose of this section to induce you to infringe any
216
- patents or other property right claims or to contest validity of any
217
- such claims; this section has the sole purpose of protecting the
218
- integrity of the free software distribution system, which is
219
- implemented by public license practices. Many people have made
220
- generous contributions to the wide range of software distributed
221
- through that system in reliance on consistent application of that
222
- system; it is up to the author/donor to decide if he or she is willing
223
- to distribute software through any other system and a licensee cannot
224
- impose that choice.
225
-
226
- This section is intended to make thoroughly clear what is believed to
227
- be a consequence of the rest of this License.
228
-
229
- 8. If the distribution and/or use of the Program is restricted in
230
- certain countries either by patents or by copyrighted interfaces, the
231
- original copyright holder who places the Program under this License
232
- may add an explicit geographical distribution limitation excluding
233
- those countries, so that distribution is permitted only in or among
234
- countries not thus excluded. In such case, this License incorporates
235
- the limitation as if written in the body of this License.
236
-
237
- 9. The Free Software Foundation may publish revised and/or new versions
238
- of the General Public License from time to time. Such new versions will
239
- be similar in spirit to the present version, but may differ in detail to
240
- address new problems or concerns.
241
-
242
- Each version is given a distinguishing version number. If the Program
243
- specifies a version number of this License which applies to it and "any
244
- later version", you have the option of following the terms and conditions
245
- either of that version or of any later version published by the Free
246
- Software Foundation. If the Program does not specify a version number of
247
- this License, you may choose any version ever published by the Free Software
248
- Foundation.
249
-
250
- 10. If you wish to incorporate parts of the Program into other free
251
- programs whose distribution conditions are different, write to the author
252
- to ask for permission. For software which is copyrighted by the Free
253
- Software Foundation, write to the Free Software Foundation; we sometimes
254
- make exceptions for this. Our decision will be guided by the two goals
255
- of preserving the free status of all derivatives of our free software and
256
- of promoting the sharing and reuse of software generally.
257
-
258
- NO WARRANTY
259
-
260
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
- FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
- OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
- PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
- OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
- TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
- PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
- REPAIR OR CORRECTION.
269
-
270
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
- REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
- INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
- OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
- TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
- YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
- PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
- POSSIBILITY OF SUCH DAMAGES.
279
-
280
- END OF TERMS AND CONDITIONS
281
-
282
- How to Apply These Terms to Your New Programs
283
-
284
- If you develop a new program, and you want it to be of the greatest
285
- possible use to the public, the best way to achieve this is to make it
286
- free software which everyone can redistribute and change under these terms.
287
-
288
- To do so, attach the following notices to the program. It is safest
289
- to attach them to the start of each source file to most effectively
290
- convey the exclusion of warranty; and each file should have at least
291
- the "copyright" line and a pointer to where the full notice is found.
292
-
293
- <one line to give the program's name and a brief idea of what it does.>
294
- Copyright (C) <year> <name of author>
295
-
296
- This program is free software; you can redistribute it and/or modify
297
- it under the terms of the GNU General Public License as published by
298
- the Free Software Foundation; either version 2 of the License, or
299
- (at your option) any later version.
300
-
301
- This program is distributed in the hope that it will be useful,
302
- but WITHOUT ANY WARRANTY; without even the implied warranty of
303
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
- GNU General Public License for more details.
305
-
306
- You should have received a copy of the GNU General Public License
307
- along with this program; if not, write to the Free Software
308
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
309
-
310
-
311
- Also add information on how to contact you by electronic and paper mail.
312
-
313
- If the program is interactive, make it output a short notice like this
314
- when it starts in an interactive mode:
315
-
316
- Gnomovision version 69, Copyright (C) year name of author
317
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
- This is free software, and you are welcome to redistribute it
319
- under certain conditions; type `show c' for details.
320
-
321
- The hypothetical commands `show w' and `show c' should show the appropriate
322
- parts of the General Public License. Of course, the commands you use may
323
- be called something other than `show w' and `show c'; they could even be
324
- mouse-clicks or menu items--whatever suits your program.
325
-
326
- You should also get your employer (if you work as a programmer) or your
327
- school, if any, to sign a "copyright disclaimer" for the program, if
328
- necessary. Here is a sample; alter the names:
329
-
330
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
-
333
- <signature of Ty Coon>, 1 April 1989
334
- Ty Coon, President of Vice
335
-
336
- This General Public License does not permit incorporating your program into
337
- proprietary programs. If your program is a subroutine library, you may
338
- consider it more useful to permit linking proprietary applications with the
339
- library. If this is what you want to do, use the GNU Library General
340
- Public License instead of this License.