prawn-labels 0.11.3.0 → 0.11.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,13 +1,21 @@
1
- # Prawn/Labels: A simple helper to generate labels for Prawn PDFs
1
+ # Prawn/Labels: A simple label generator for Prawn PDFs
2
2
 
3
- Prawn/Labels takes the guess work out of generating labels using Prawn ~> 0.11.1
3
+ Prawn/Labels takes the guess work out of generating labels using Prawn >= 0.12.0
4
4
 
5
5
  ## Install
6
6
 
7
+ Using RubyGems
8
+
7
9
  ```bash
8
10
  $ gem install prawn-labels
9
11
  ```
10
12
 
13
+ Using Bundler
14
+
15
+ ```ruby
16
+ gem "prawn-labels"
17
+ ```
18
+
11
19
  ## Usage
12
20
 
13
21
  We've tried to make generating labels as simple as possible with Prawn::Labels.
data/Rakefile CHANGED
@@ -1,9 +1,8 @@
1
1
  require "rubygems"
2
-
3
- require 'rake'
4
- require "rake/gempackagetask"
2
+ require "rubygems/package_task"
5
3
 
6
4
  spec = Gem::Specification.load "prawn-labels.gemspec"
7
- Rake::GemPackageTask.new(spec) do |pkg|
8
5
 
9
- end
6
+ Gem::PackageTask.new(spec) do |pkg|
7
+
8
+ end
data/lib/prawn/types.yaml CHANGED
@@ -16,14 +16,14 @@ Avery7160:
16
16
  row_gutter: 0
17
17
  # Avery 5160 family
18
18
  Avery5160:
19
- paper_size: A4
19
+ paper_size: LETTER
20
20
  top_margin: 36
21
21
  bottom_margin: 36
22
22
  left_margin: 15.822
23
23
  right_margin: 15.822
24
24
  columns: 3
25
25
  rows: 10
26
- column_gutter: 10
26
+ column_gutter: 15
27
27
  row_gutter: 0
28
28
  # Standard #10 envelope
29
29
  Envelope10:
data/prawn-labels.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- PRAWN_LABELS_VERSION = "0.11.3.0"
1
+ PRAWN_LABELS_VERSION = "0.11.4.0"
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "prawn-labels"
metadata CHANGED
@@ -1,64 +1,52 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: prawn-labels
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 11
8
- - 3
9
- - 0
10
- version: 0.11.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.11.4.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jordan Byron
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-05-18 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-01-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: prawn
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- - 12
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.12.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- description: " Prawn/Labels takes the guess work out of generating labels using Prawn\n"
37
- email:
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.12.0
30
+ description: ! ' Prawn/Labels takes the guess work out of generating labels using
31
+ Prawn
32
+
33
+ '
34
+ email:
38
35
  - jordan.byron@gmail.com
39
36
  executables: []
40
-
41
37
  extensions: []
42
-
43
- extra_rdoc_files:
38
+ extra_rdoc_files:
44
39
  - README.md
45
40
  - LICENSE
46
41
  - COPYING
47
- files:
42
+ files:
48
43
  - examples/custom_label.rb
49
44
  - examples/custom_label.yml
50
- - examples/custom_labels_1.pdf
51
- - examples/custom_labels_2.pdf
52
- - examples/envelope_labels.pdf
53
45
  - examples/envelope_labels.rb
54
46
  - examples/example_helper.rb
55
- - examples/hello_labels.pdf
56
47
  - examples/hello_labels.rb
57
- - examples/horiz_and_vert_labels.pdf
58
48
  - examples/horiz_and_vert_labels.rb
59
- - examples/image_labels.pdf
60
49
  - examples/image_labels.rb
61
- - examples/shrink_to_fit.pdf
62
50
  - examples/shrink_to_fit.rb
63
51
  - lib/prawn/labels.rb
64
52
  - lib/prawn/types.yaml
@@ -67,45 +55,33 @@ files:
67
55
  - README.md
68
56
  - LICENSE
69
57
  - COPYING
70
- has_rdoc: true
71
58
  homepage: http://github.com/jordanbyron/prawn-labels
72
59
  licenses: []
73
-
74
60
  post_install_message:
75
- rdoc_options:
61
+ rdoc_options:
76
62
  - --title
77
63
  - Prawn/Labels Documentation
78
64
  - --main
79
65
  - README.md
80
66
  - -q
81
- require_paths:
67
+ require_paths:
82
68
  - lib
83
- required_ruby_version: !ruby/object:Gem::Requirement
69
+ required_ruby_version: !ruby/object:Gem::Requirement
84
70
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 1
90
- - 8
91
- - 7
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
92
74
  version: 1.8.7
93
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
76
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- segments:
99
- - 1
100
- - 3
101
- - 6
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
102
80
  version: 1.3.6
103
81
  requirements: []
104
-
105
82
  rubyforge_project: prawn-labels
106
- rubygems_version: 1.3.7
83
+ rubygems_version: 1.8.24
107
84
  signing_key:
108
85
  specification_version: 3
109
86
  summary: Make labels using Prawn
110
87
  test_files: []
111
-
@@ -1,329 +0,0 @@
1
- %PDF-1.3
2
- %����
3
- 1 0 obj
4
- << /Creator <feff0050007200610077006e>
5
- /Producer <feff0050007200610077006e>
6
- >>
7
- endobj
8
- 2 0 obj
9
- << /Type /Catalog
10
- /Pages 3 0 R
11
- >>
12
- endobj
13
- 3 0 obj
14
- << /Type /Pages
15
- /Count 2
16
- /Kids [5 0 R 8 0 R]
17
- >>
18
- endobj
19
- 4 0 obj
20
- << /Length 1668
21
- >>
22
- stream
23
- q
24
-
25
- BT
26
- 20.551 796.704 Td
27
- /F1.0 12 Tf
28
- [<4a6f7264616e>] TJ
29
- ET
30
-
31
-
32
- BT
33
- 207.63933333333333 796.704 Td
34
- /F1.0 12 Tf
35
- [<436872> -15 <6973>] TJ
36
- ET
37
-
38
-
39
- BT
40
- 394.72766666666666 796.704 Td
41
- /F1.0 12 Tf
42
- [<4a6f6e>] TJ
43
- ET
44
-
45
-
46
- BT
47
- 20.551 696.039 Td
48
- /F1.0 12 Tf
49
- [<4d696b> 20 <65>] TJ
50
- ET
51
-
52
-
53
- BT
54
- 207.63933333333333 696.039 Td
55
- /F1.0 12 Tf
56
- [<4b> 40 <656c6c79>] TJ
57
- ET
58
-
59
-
60
- BT
61
- 394.72766666666666 696.039 Td
62
- /F1.0 12 Tf
63
- [<426f62>] TJ
64
- ET
65
-
66
-
67
- BT
68
- 20.551 595.374 Td
69
- /F1.0 12 Tf
70
- [<47726567>] TJ
71
- ET
72
-
73
-
74
- BT
75
- 207.63933333333333 595.374 Td
76
- /F1.0 12 Tf
77
- [<4a6f7264616e>] TJ
78
- ET
79
-
80
-
81
- BT
82
- 394.72766666666666 595.374 Td
83
- /F1.0 12 Tf
84
- [<436872> -15 <6973>] TJ
85
- ET
86
-
87
-
88
- BT
89
- 20.551 494.70899999999995 Td
90
- /F1.0 12 Tf
91
- [<4a6f6e>] TJ
92
- ET
93
-
94
-
95
- BT
96
- 207.63933333333333 494.70899999999995 Td
97
- /F1.0 12 Tf
98
- [<4d696b> 20 <65>] TJ
99
- ET
100
-
101
-
102
- BT
103
- 394.72766666666666 494.70899999999995 Td
104
- /F1.0 12 Tf
105
- [<4b> 40 <656c6c79>] TJ
106
- ET
107
-
108
-
109
- BT
110
- 20.551 394.044 Td
111
- /F1.0 12 Tf
112
- [<426f62>] TJ
113
- ET
114
-
115
-
116
- BT
117
- 207.63933333333333 394.044 Td
118
- /F1.0 12 Tf
119
- [<47726567>] TJ
120
- ET
121
-
122
-
123
- BT
124
- 394.72766666666666 394.044 Td
125
- /F1.0 12 Tf
126
- [<4a6f7264616e>] TJ
127
- ET
128
-
129
-
130
- BT
131
- 20.551 293.379 Td
132
- /F1.0 12 Tf
133
- [<436872> -15 <6973>] TJ
134
- ET
135
-
136
-
137
- BT
138
- 207.63933333333333 293.379 Td
139
- /F1.0 12 Tf
140
- [<4a6f6e>] TJ
141
- ET
142
-
143
-
144
- BT
145
- 394.72766666666666 293.379 Td
146
- /F1.0 12 Tf
147
- [<4d696b> 20 <65>] TJ
148
- ET
149
-
150
-
151
- BT
152
- 20.551 192.71399999999994 Td
153
- /F1.0 12 Tf
154
- [<4b> 40 <656c6c79>] TJ
155
- ET
156
-
157
-
158
- BT
159
- 207.63933333333333 192.71399999999994 Td
160
- /F1.0 12 Tf
161
- [<426f62>] TJ
162
- ET
163
-
164
-
165
- BT
166
- 394.72766666666666 192.71399999999994 Td
167
- /F1.0 12 Tf
168
- [<47726567>] TJ
169
- ET
170
-
171
-
172
- BT
173
- 20.551 92.04899999999996 Td
174
- /F1.0 12 Tf
175
- [<4a6f7264616e>] TJ
176
- ET
177
-
178
-
179
- BT
180
- 207.63933333333333 92.04899999999996 Td
181
- /F1.0 12 Tf
182
- [<436872> -15 <6973>] TJ
183
- ET
184
-
185
-
186
- BT
187
- 394.72766666666666 92.04899999999996 Td
188
- /F1.0 12 Tf
189
- [<4a6f6e>] TJ
190
- ET
191
-
192
- Q
193
-
194
- endstream
195
- endobj
196
- 5 0 obj
197
- << /Type /Page
198
- /Parent 3 0 R
199
- /MediaBox [0 0 595.28 841.89]
200
- /Contents 4 0 R
201
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
202
- /Font << /F1.0 6 0 R
203
- >>
204
- >>
205
- >>
206
- endobj
207
- 6 0 obj
208
- << /Type /Font
209
- /Subtype /Type1
210
- /BaseFont /Helvetica
211
- /Encoding /WinAnsiEncoding
212
- >>
213
- endobj
214
- 7 0 obj
215
- << /Length 739
216
- >>
217
- stream
218
- q
219
-
220
- BT
221
- 20.551 796.704 Td
222
- /F1.0 12 Tf
223
- [<4d696b> 20 <65>] TJ
224
- ET
225
-
226
-
227
- BT
228
- 207.63933333333333 796.704 Td
229
- /F1.0 12 Tf
230
- [<4b> 40 <656c6c79>] TJ
231
- ET
232
-
233
-
234
- BT
235
- 394.72766666666666 796.704 Td
236
- /F1.0 12 Tf
237
- [<426f62>] TJ
238
- ET
239
-
240
-
241
- BT
242
- 20.551 696.039 Td
243
- /F1.0 12 Tf
244
- [<47726567>] TJ
245
- ET
246
-
247
-
248
- BT
249
- 207.63933333333333 696.039 Td
250
- /F1.0 12 Tf
251
- [<4a6f7264616e>] TJ
252
- ET
253
-
254
-
255
- BT
256
- 394.72766666666666 696.039 Td
257
- /F1.0 12 Tf
258
- [<436872> -15 <6973>] TJ
259
- ET
260
-
261
-
262
- BT
263
- 20.551 595.374 Td
264
- /F1.0 12 Tf
265
- [<4a6f6e>] TJ
266
- ET
267
-
268
-
269
- BT
270
- 207.63933333333333 595.374 Td
271
- /F1.0 12 Tf
272
- [<4d696b> 20 <65>] TJ
273
- ET
274
-
275
-
276
- BT
277
- 394.72766666666666 595.374 Td
278
- /F1.0 12 Tf
279
- [<4b> 40 <656c6c79>] TJ
280
- ET
281
-
282
-
283
- BT
284
- 20.551 494.70899999999995 Td
285
- /F1.0 12 Tf
286
- [<426f62>] TJ
287
- ET
288
-
289
-
290
- BT
291
- 207.63933333333333 494.70899999999995 Td
292
- /F1.0 12 Tf
293
- [<47726567>] TJ
294
- ET
295
-
296
- Q
297
-
298
- endstream
299
- endobj
300
- 8 0 obj
301
- << /Type /Page
302
- /Parent 3 0 R
303
- /MediaBox [0 0 595.28 841.89]
304
- /Contents 7 0 R
305
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
306
- /Font << /F1.0 6 0 R
307
- >>
308
- >>
309
- >>
310
- endobj
311
- xref
312
- 0 9
313
- 0000000000 65535 f
314
- 0000000015 00000 n
315
- 0000000109 00000 n
316
- 0000000158 00000 n
317
- 0000000221 00000 n
318
- 0000001941 00000 n
319
- 0000002121 00000 n
320
- 0000002218 00000 n
321
- 0000003008 00000 n
322
- trailer
323
- << /Size 9
324
- /Root 2 0 R
325
- /Info 1 0 R
326
- >>
327
- startxref
328
- 3188
329
- %%EOF