prawn_plus 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -10
- data/lib/prawn_plus/identity.rb +3 -2
- data/lib/prawn_plus/railtie.rb +1 -0
- data/lib/prawn_plus/template_handlers/prawn.rb +2 -5
- data/lib/tasks/rspec.rake +6 -0
- data/lib/tasks/rubocop.rake +6 -0
- metadata +51 -30
- checksums.yaml.gz.sig +0 -2
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d2edaf6139bf7727568e03fb3afa2b0e33ed60
|
4
|
+
data.tar.gz: 7a1ae9cef36091c8e55dd65a55d193ed0b863fdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e4c445f1e7a1792080e9813572c3dbf65a4813cff2d14b7289edd1a1cc4f806d93d8db68f7d2429755ff34a4762394972caa391555d4c4be0672d80183bc18
|
7
|
+
data.tar.gz: 5da35631b16b22c0e04cc9cc2fb4af29248cef739ac833f2d028da6610486d45dc249afce8f6bebeae8a917b3ef42b3498593102aeed70e4ad6751d607531964
|
data/README.md
CHANGED
@@ -1,11 +1,31 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
[](http://badge.fury.io/rb/prawn_plus)
|
4
|
+
[](https://codeclimate.com/github/bkuhlmann/prawn_plus)
|
5
|
+
[](https://codeclimate.com/github/bkuhlmann/prawn_plus)
|
6
|
+
[](https://gemnasium.com/bkuhlmann/prawn_plus)
|
7
|
+
[](https://travis-ci.org/bkuhlmann/prawn_plus)
|
8
|
+
[](https://www.patreon.com/bkuhlmann)
|
9
|
+
|
10
|
+
<!-- Tocer[start]: Auto-generated, don't remove. -->
|
11
|
+
|
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
|
+
|
28
|
+
<!-- Tocer[finish]: Auto-generated, don't remove. -->
|
9
29
|
|
10
30
|
# Features
|
11
31
|
|
@@ -15,7 +35,7 @@
|
|
15
35
|
|
16
36
|
# Requirements
|
17
37
|
|
18
|
-
0. [MRI 2.x.x](
|
38
|
+
0. [MRI 2.x.x](https://www.ruby-lang.org).
|
19
39
|
0. [Ruby on Rails 4.x.x](http://rubyonrails.org).
|
20
40
|
0. [Prawn](https://github.com/prawnpdf/prawn).
|
21
41
|
|
@@ -106,7 +126,7 @@ That's it!
|
|
106
126
|
|
107
127
|
To test, run:
|
108
128
|
|
109
|
-
bundle exec
|
129
|
+
bundle exec rake
|
110
130
|
|
111
131
|
# Versioning
|
112
132
|
|
data/lib/prawn_plus/identity.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
module PrawnPlus
|
2
|
+
# Gem identity information.
|
2
3
|
module Identity
|
3
4
|
def self.name
|
4
5
|
"prawn_plus"
|
@@ -9,11 +10,11 @@ module PrawnPlus
|
|
9
10
|
end
|
10
11
|
|
11
12
|
def self.version
|
12
|
-
"6.
|
13
|
+
"6.3.0"
|
13
14
|
end
|
14
15
|
|
15
16
|
def self.label_version
|
16
|
-
|
17
|
+
"#{label} #{version}"
|
17
18
|
end
|
18
19
|
end
|
19
20
|
end
|
data/lib/prawn_plus/railtie.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
module PrawnPlus
|
2
2
|
module TemplateHandlers
|
3
|
+
# Renderer for a Prawn template. Assumes the template will reference a _pdf_ (a.k.a. Prawn:Document) instance.
|
3
4
|
class Prawn
|
4
|
-
|
5
|
-
# _pdf_ (a.k.a. Prawn:Document) instance.
|
6
|
-
# * +template+ - Required. The template to render to a PDF.
|
7
|
-
# * +options+ - Optional. The template options. Default: {}.
|
8
|
-
def call template, options = {}
|
5
|
+
def call template
|
9
6
|
"pdf = ::Prawn::Document.new;" + template.source + ";pdf.render;"
|
10
7
|
end
|
11
8
|
end
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prawn_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
-
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
-
aW8wHhcNMTUwNzA1MTQ1MzExWhcNMTYwNzA0MTQ1MzExWjBBMQ8wDQYDVQQDDAZi
|
16
|
-
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
-
GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzhOVcvLGBCceM
|
18
|
-
PppVpJLUKsnskWzc1VqBXmv30feKNw+MOxMQaDsIP421qwqGO/2JHY60Kuobssk+
|
19
|
-
8/wqZkVFF/FFKxoQjuhlhc+VWLm8jWgXd4N1kwO2yytscQTzxc5qXarwA+36fqVH
|
20
|
-
RhBAHhjka+HdBI+6o3CXRHJoC47iav+QpR7u/wYl3gNq6MJO3MmTKqHegEDLjRN0
|
21
|
-
FJAr3bRAwq03ZtTuAVA2bdKLGThehe1RRRtJHJ/PHpmL2c203/GTXYtG6C8ILZIp
|
22
|
-
ZroTqQ8yglCJ+3hSOmodZqSAQ0Rj7GJgtuNH81qlSrHu5sTvoZjGmEqSIhvsSJ80
|
23
|
-
wKoPdZnFAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
24
|
-
BBSUnF478a5lB4xuOBiktJdMJv6JmDAfBgNVHREEGDAWgRRicm9va2VAYWxjaGVt
|
25
|
-
aXN0cy5pbzAfBgNVHRIEGDAWgRRicm9va2VAYWxjaGVtaXN0cy5pbzANBgkqhkiG
|
26
|
-
9w0BAQUFAAOCAQEAT7KtBXWsq1KA7NOSMeFEDeSvhrgdLwCG/37pIu0rjvx9iAW4
|
27
|
-
gncxV0MccqIUtaF+lekjlXkIO+rXAVjvdha23KtpFTW90dYXp4NLPnPlSdyvYzJy
|
28
|
-
FIAaWGvujOT8xEu4umd45q5aepE8li4bR071i5Z7F0trKNVYYrxjQFmH5SSKYRT/
|
29
|
-
fXtICtAh1de3z3SOSK58IMPwjuoApYBxiqlmx0Uhla7mrzCE5+NmLPit3hLH6JFK
|
30
|
-
aSif+qBc6oHD7EQWPF5cZkzkIURuwNwPBngZGxIKaMAgRhjGFXzUMAaq++r59cS9
|
31
|
-
xTfQ4k6fglKEgpnLAXiKdo2c8Ym+X4rIKFfedQ==
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2015-07-05 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: rails
|
@@ -88,6 +66,20 @@ dependencies:
|
|
88
66
|
- - "~>"
|
89
67
|
- !ruby/object:Gem::Version
|
90
68
|
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: gemsmith
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
91
83
|
- !ruby/object:Gem::Dependency
|
92
84
|
name: sqlite3
|
93
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,7 +123,7 @@ dependencies:
|
|
131
123
|
- !ruby/object:Gem::Version
|
132
124
|
version: '0'
|
133
125
|
- !ruby/object:Gem::Dependency
|
134
|
-
name: pry-
|
126
|
+
name: pry-remote
|
135
127
|
requirement: !ruby/object:Gem::Requirement
|
136
128
|
requirements:
|
137
129
|
- - ">="
|
@@ -145,7 +137,7 @@ dependencies:
|
|
145
137
|
- !ruby/object:Gem::Version
|
146
138
|
version: '0'
|
147
139
|
- !ruby/object:Gem::Dependency
|
148
|
-
name: pry-
|
140
|
+
name: pry-state
|
149
141
|
requirement: !ruby/object:Gem::Requirement
|
150
142
|
requirements:
|
151
143
|
- - ">="
|
@@ -172,6 +164,20 @@ dependencies:
|
|
172
164
|
- - ">="
|
173
165
|
- !ruby/object:Gem::Version
|
174
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: pry-stack_explorer
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
175
181
|
- !ruby/object:Gem::Dependency
|
176
182
|
name: rspec-rails
|
177
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -256,6 +262,20 @@ dependencies:
|
|
256
262
|
- - ">="
|
257
263
|
- !ruby/object:Gem::Version
|
258
264
|
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: rubocop
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
259
279
|
- !ruby/object:Gem::Dependency
|
260
280
|
name: codeclimate-test-reporter
|
261
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,8 +290,7 @@ dependencies:
|
|
270
290
|
- - ">="
|
271
291
|
- !ruby/object:Gem::Version
|
272
292
|
version: '0'
|
273
|
-
description: Enhances default Prawn PDF functionality
|
274
|
-
handling/rendering).
|
293
|
+
description: Enhances default Prawn PDF functionality.
|
275
294
|
email:
|
276
295
|
- brooke@alchemists.io
|
277
296
|
executables: []
|
@@ -286,6 +305,8 @@ files:
|
|
286
305
|
- lib/prawn_plus/identity.rb
|
287
306
|
- lib/prawn_plus/railtie.rb
|
288
307
|
- lib/prawn_plus/template_handlers/prawn.rb
|
308
|
+
- lib/tasks/rspec.rake
|
309
|
+
- lib/tasks/rubocop.rake
|
289
310
|
homepage: https://github.com/bkuhlmann/prawn_plus
|
290
311
|
licenses:
|
291
312
|
- MIT
|
@@ -306,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
327
|
version: '0'
|
307
328
|
requirements: []
|
308
329
|
rubyforge_project:
|
309
|
-
rubygems_version: 2.
|
330
|
+
rubygems_version: 2.5.0
|
310
331
|
signing_key:
|
311
332
|
specification_version: 4
|
312
333
|
summary: Enhances default Prawn PDF functionality.
|
checksums.yaml.gz.sig
DELETED
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED