prawn_plus 7.3.0 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.md +29 -29
- data/lib/prawn_plus/identity.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +52 -16
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94fc4ed8e377091d433311a4d7f8be9277338556
|
4
|
+
data.tar.gz: 2cbfda12c107659e131133f74cfb084ab9999ba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bed5f4c9f772d051b9330e307e32b4d712cb167a5151b231c77a332aef588419ffdc5d849d496f66c340c1d7bb58476c00e128f44354ce3bfb257d77871dd664
|
7
|
+
data.tar.gz: a8f6c1105ee4e68c3e703e8d1c8b58f0ed9ced39b46b90a05f828e8f4fe18411a1feb5ffb6699797a70c576cefcb0e54ac577dd377355df90e28261b07e50c90
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data/README.md
CHANGED
@@ -4,42 +4,42 @@
|
|
4
4
|
[![Code Climate GPA](https://codeclimate.com/github/bkuhlmann/prawn_plus.svg)](https://codeclimate.com/github/bkuhlmann/prawn_plus)
|
5
5
|
[![Code Climate Coverage](https://codeclimate.com/github/bkuhlmann/prawn_plus/coverage.svg)](https://codeclimate.com/github/bkuhlmann/prawn_plus)
|
6
6
|
[![Gemnasium Status](https://gemnasium.com/bkuhlmann/prawn_plus.svg)](https://gemnasium.com/bkuhlmann/prawn_plus)
|
7
|
-
[![
|
7
|
+
[![Circle CI Status](https://circleci.com/gh/bkuhlmann/prawn_plus.svg?style=svg)](https://circleci.com/gh/bkuhlmann/prawn_plus)
|
8
8
|
[![Patreon](https://img.shields.io/badge/patreon-donate-brightgreen.svg)](https://www.patreon.com/bkuhlmann)
|
9
9
|
|
10
10
|
<!-- Tocer[start]: Auto-generated, don't remove. -->
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
- [Features](#features)
|
15
|
-
- [Requirements](#requirements)
|
16
|
-
- [Setup](#setup)
|
17
|
-
- [Usage](#usage)
|
18
|
-
|
19
|
-
|
20
|
-
- [Tests](#tests)
|
21
|
-
- [Versioning](#versioning)
|
22
|
-
- [Code of Conduct](#code-of-conduct)
|
23
|
-
- [Contributions](#contributions)
|
24
|
-
- [License](#license)
|
25
|
-
- [History](#history)
|
26
|
-
- [Credits](#credits)
|
12
|
+
## Table of Contents
|
13
|
+
|
14
|
+
- [Features](#features)
|
15
|
+
- [Requirements](#requirements)
|
16
|
+
- [Setup](#setup)
|
17
|
+
- [Usage](#usage)
|
18
|
+
- [Views](#views)
|
19
|
+
- [Controllers](#controllers)
|
20
|
+
- [Tests](#tests)
|
21
|
+
- [Versioning](#versioning)
|
22
|
+
- [Code of Conduct](#code-of-conduct)
|
23
|
+
- [Contributions](#contributions)
|
24
|
+
- [License](#license)
|
25
|
+
- [History](#history)
|
26
|
+
- [Credits](#credits)
|
27
27
|
|
28
28
|
<!-- Tocer[finish]: Auto-generated, don't remove. -->
|
29
29
|
|
30
|
-
|
30
|
+
## Features
|
31
31
|
|
32
32
|
- Loads the [Prawn](https://github.com/prawnpdf/prawn) gem by default (no Gemfile entry necessary).
|
33
33
|
- Registers PDF as a MIME type.
|
34
34
|
- Registers a template handler for rendering ".prawn" template view files.
|
35
35
|
|
36
|
-
|
36
|
+
## Requirements
|
37
37
|
|
38
38
|
0. [Ruby 2.4.x](https://www.ruby-lang.org).
|
39
39
|
0. [Ruby on Rails 5.x.x](http://rubyonrails.org).
|
40
40
|
0. [Prawn](https://github.com/prawnpdf/prawn).
|
41
41
|
|
42
|
-
|
42
|
+
## Setup
|
43
43
|
|
44
44
|
For a secure install, type the following from the command line (recommended):
|
45
45
|
|
@@ -58,9 +58,9 @@ Add the following to your Gemfile:
|
|
58
58
|
|
59
59
|
gem "prawn_plus"
|
60
60
|
|
61
|
-
|
61
|
+
## Usage
|
62
62
|
|
63
|
-
|
63
|
+
### Views
|
64
64
|
|
65
65
|
Within your views you can craft Prawn templates using Ruby code. For example, assuming there are
|
66
66
|
document resources, then the following structure might exist:
|
@@ -110,7 +110,7 @@ You could also render a more complex PDF with tabular information, for example:
|
|
110
110
|
*NOTE: The `pdf` object must always be referenced when making using of the Prawn syntax - it is
|
111
111
|
initialized for you as a Prawn::Document instance.*
|
112
112
|
|
113
|
-
|
113
|
+
### Controllers
|
114
114
|
|
115
115
|
Within your controller, only the `respond_to` method is required. Example:
|
116
116
|
|
@@ -123,13 +123,13 @@ Within your controller, only the `respond_to` method is required. Example:
|
|
123
123
|
|
124
124
|
That's it!
|
125
125
|
|
126
|
-
|
126
|
+
## Tests
|
127
127
|
|
128
128
|
To test, run:
|
129
129
|
|
130
130
|
bundle exec rake
|
131
131
|
|
132
|
-
|
132
|
+
## Versioning
|
133
133
|
|
134
134
|
Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
|
135
135
|
|
@@ -137,26 +137,26 @@ Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
|
|
137
137
|
- Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
|
138
138
|
- Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
|
139
139
|
|
140
|
-
|
140
|
+
## Code of Conduct
|
141
141
|
|
142
142
|
Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By
|
143
143
|
participating in this project you agree to abide by its terms.
|
144
144
|
|
145
|
-
|
145
|
+
## Contributions
|
146
146
|
|
147
147
|
Read [CONTRIBUTING](CONTRIBUTING.md) for details.
|
148
148
|
|
149
|
-
|
149
|
+
## License
|
150
150
|
|
151
151
|
Copyright (c) 2012 [Alchemists](https://www.alchemists.io).
|
152
152
|
Read [LICENSE](LICENSE.md) for details.
|
153
153
|
|
154
|
-
|
154
|
+
## History
|
155
155
|
|
156
156
|
Read [CHANGES](CHANGES.md) for details.
|
157
157
|
Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).
|
158
158
|
|
159
|
-
|
159
|
+
## Credits
|
160
160
|
|
161
161
|
Developed by [Brooke Kuhlmann](https://www.alchemists.io) at
|
162
162
|
[Alchemists](https://www.alchemists.io).
|
data/lib/prawn_plus/identity.rb
CHANGED
data.tar.gz.sig
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prawn_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
+
aW8wHhcNMTYxMDE5MTY0NDEzWhcNMTcxMDE5MTY0NDEzWjBBMQ8wDQYDVQQDDAZi
|
16
|
+
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
+
GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgryPL4/IbWDcL
|
18
|
+
fnqpnoJALqj+ega7hSsvvD8sac57HPNLeKcOmSafFiQLAnTmmE132ZlFc8kyZRVn
|
19
|
+
zmqSESowO5jd+ggFuy1ySqQJXhwgik04KedKRUjpIDZePrjw+M5UJT1qzKCKL2xI
|
20
|
+
nx5cOKP1fSWJ1RRu8JhaDeSloGtYMdw2c28wnKPNIsWDood4xhbLcY9IqeISft2e
|
21
|
+
oTAHTHandHbvt24X3/n67ceNjLBbsVZPXCC1C8C8ccjHjA4Tm2uiFoDwThMcPggg
|
22
|
+
90H6fh0vLFcNAobdPEchbge8tWtfmMPz2+C4yklANn81GA+ANsBS1uwx6mxJoMQU
|
23
|
+
BNVp0aLvAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
24
|
+
BBRS85Rn1BaqeIONByw4t46DMDMzHDAfBgNVHREEGDAWgRRicm9va2VAYWxjaGVt
|
25
|
+
aXN0cy5pbzAfBgNVHRIEGDAWgRRicm9va2VAYWxjaGVtaXN0cy5pbzANBgkqhkiG
|
26
|
+
9w0BAQUFAAOCAQEAZMb57Y4wdpbX8XxTukEO7VC1pndccUsxdbziGsAOiuHET3Aq
|
27
|
+
ygLvrfdYrN88/w+qxncW5bxbO3a6UGkuhIFUPM8zRSE/rh6bCcJljTJrExVt42eV
|
28
|
+
aYCb7WJNsx3eNXHn3uQodq3tD+lmNJzz2bFeT3smGSKEnALBjqorO/2mpDh4FJ3S
|
29
|
+
4CcDYsJ1ywep8LDJDBBGdKz9moL+axryzpeTpgTT/fFYFzRzWrURPyDvPOikh9TX
|
30
|
+
n/LUZ1dKhIHzfKx1B4+TEIefArObGfkLIDM8+Dq1RX7TF1k81Men7iu4MgE9bYBn
|
31
|
+
3dE+xI3FdB5gWcdWxdtgRCmWjtXeYYyb4z6NQQ==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2017-06-25 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: rails
|
@@ -72,28 +94,28 @@ dependencies:
|
|
72
94
|
requirements:
|
73
95
|
- - "~>"
|
74
96
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
97
|
+
version: '0.21'
|
76
98
|
type: :development
|
77
99
|
prerelease: false
|
78
100
|
version_requirements: !ruby/object:Gem::Requirement
|
79
101
|
requirements:
|
80
102
|
- - "~>"
|
81
103
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
104
|
+
version: '0.21'
|
83
105
|
- !ruby/object:Gem::Dependency
|
84
106
|
name: gemsmith
|
85
107
|
requirement: !ruby/object:Gem::Requirement
|
86
108
|
requirements:
|
87
109
|
- - "~>"
|
88
110
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
111
|
+
version: '10.0'
|
90
112
|
type: :development
|
91
113
|
prerelease: false
|
92
114
|
version_requirements: !ruby/object:Gem::Requirement
|
93
115
|
requirements:
|
94
116
|
- - "~>"
|
95
117
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
118
|
+
version: '10.0'
|
97
119
|
- !ruby/object:Gem::Dependency
|
98
120
|
name: sqlite3
|
99
121
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,14 +220,14 @@ dependencies:
|
|
198
220
|
requirements:
|
199
221
|
- - "~>"
|
200
222
|
- !ruby/object:Gem::Version
|
201
|
-
version: '1.
|
223
|
+
version: '1.8'
|
202
224
|
type: :development
|
203
225
|
prerelease: false
|
204
226
|
version_requirements: !ruby/object:Gem::Requirement
|
205
227
|
requirements:
|
206
228
|
- - "~>"
|
207
229
|
- !ruby/object:Gem::Version
|
208
|
-
version: '1.
|
230
|
+
version: '1.8'
|
209
231
|
- !ruby/object:Gem::Dependency
|
210
232
|
name: rspec-rails
|
211
233
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,14 +248,14 @@ dependencies:
|
|
226
248
|
requirements:
|
227
249
|
- - "~>"
|
228
250
|
- !ruby/object:Gem::Version
|
229
|
-
version: '2.
|
251
|
+
version: '2.14'
|
230
252
|
type: :development
|
231
253
|
prerelease: false
|
232
254
|
version_requirements: !ruby/object:Gem::Requirement
|
233
255
|
requirements:
|
234
256
|
- - "~>"
|
235
257
|
- !ruby/object:Gem::Version
|
236
|
-
version: '2.
|
258
|
+
version: '2.14'
|
237
259
|
- !ruby/object:Gem::Dependency
|
238
260
|
name: guard-rspec
|
239
261
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,34 +270,48 @@ dependencies:
|
|
248
270
|
- - "~>"
|
249
271
|
- !ruby/object:Gem::Version
|
250
272
|
version: '4.7'
|
273
|
+
- !ruby/object:Gem::Dependency
|
274
|
+
name: git-cop
|
275
|
+
requirement: !ruby/object:Gem::Requirement
|
276
|
+
requirements:
|
277
|
+
- - "~>"
|
278
|
+
- !ruby/object:Gem::Version
|
279
|
+
version: '1.1'
|
280
|
+
type: :development
|
281
|
+
prerelease: false
|
282
|
+
version_requirements: !ruby/object:Gem::Requirement
|
283
|
+
requirements:
|
284
|
+
- - "~>"
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
version: '1.1'
|
251
287
|
- !ruby/object:Gem::Dependency
|
252
288
|
name: reek
|
253
289
|
requirement: !ruby/object:Gem::Requirement
|
254
290
|
requirements:
|
255
291
|
- - "~>"
|
256
292
|
- !ruby/object:Gem::Version
|
257
|
-
version: '4.
|
293
|
+
version: '4.7'
|
258
294
|
type: :development
|
259
295
|
prerelease: false
|
260
296
|
version_requirements: !ruby/object:Gem::Requirement
|
261
297
|
requirements:
|
262
298
|
- - "~>"
|
263
299
|
- !ruby/object:Gem::Version
|
264
|
-
version: '4.
|
300
|
+
version: '4.7'
|
265
301
|
- !ruby/object:Gem::Dependency
|
266
302
|
name: rubocop
|
267
303
|
requirement: !ruby/object:Gem::Requirement
|
268
304
|
requirements:
|
269
305
|
- - "~>"
|
270
306
|
- !ruby/object:Gem::Version
|
271
|
-
version: '0.
|
307
|
+
version: '0.49'
|
272
308
|
type: :development
|
273
309
|
prerelease: false
|
274
310
|
version_requirements: !ruby/object:Gem::Requirement
|
275
311
|
requirements:
|
276
312
|
- - "~>"
|
277
313
|
- !ruby/object:Gem::Version
|
278
|
-
version: '0.
|
314
|
+
version: '0.49'
|
279
315
|
- !ruby/object:Gem::Dependency
|
280
316
|
name: codeclimate-test-reporter
|
281
317
|
requirement: !ruby/object:Gem::Requirement
|
@@ -325,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
325
361
|
version: '0'
|
326
362
|
requirements: []
|
327
363
|
rubyforge_project:
|
328
|
-
rubygems_version: 2.6.
|
364
|
+
rubygems_version: 2.6.12
|
329
365
|
signing_key:
|
330
366
|
specification_version: 4
|
331
367
|
summary: Enhances default Prawn PDF functionality.
|
metadata.gz.sig
ADDED
Binary file
|