prawn_plus 6.2.0 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 610cd9c7169d8a885e18f608e8a49eff619897be
4
- data.tar.gz: 790ed0bd1f127815cd55f64a2a33ea4ae2d78f07
3
+ metadata.gz: d7d2edaf6139bf7727568e03fb3afa2b0e33ed60
4
+ data.tar.gz: 7a1ae9cef36091c8e55dd65a55d193ed0b863fdc
5
5
  SHA512:
6
- metadata.gz: 5a3836bf4926828720f5c11097556265d93b4a85e3fc0c491d542500992f1e52319ee52267ceea6a5da62d76d633ad3a6f28531aeb235c474fcd48181a21e5b9
7
- data.tar.gz: 4472a0a716126f6c5743b315a566b7af2c8e9b96341d2fc1e0588ab2c7ed7f92f4df226076dfe5076e70d55dc1eef1d445ac9923e7e6a97ca5a6b3cf8c0ad477
6
+ metadata.gz: 75e4c445f1e7a1792080e9813572c3dbf65a4813cff2d14b7289edd1a1cc4f806d93d8db68f7d2429755ff34a4762394972caa391555d4c4be0672d80183bc18
7
+ data.tar.gz: 5da35631b16b22c0e04cc9cc2fb4af29248cef739ac833f2d028da6610486d45dc249afce8f6bebeae8a917b3ef42b3498593102aeed70e4ad6751d607531964
data/README.md CHANGED
@@ -1,11 +1,31 @@
1
- # Overview
2
-
3
- [![Gem Version](https://badge.fury.io/rb/prawn_plus.png)](http://badge.fury.io/rb/prawn_plus)
4
- [![Code Climate GPA](https://codeclimate.com/github/bkuhlmann/prawn_plus.png)](https://codeclimate.com/github/bkuhlmann/prawn_plus)
5
- [![Code Climate Coverage](https://codeclimate.com/github/bkuhlmann/prawn_plus/coverage.png)](https://codeclimate.com/github/bkuhlmann/prawn_plus)
6
- [![Gemnasium Status](https://gemnasium.com/bkuhlmann/prawn_plus.png)](https://gemnasium.com/bkuhlmann/prawn_plus)
7
- [![Travis CI Status](https://secure.travis-ci.org/bkuhlmann/prawn_plus.png)](http://travis-ci.org/bkuhlmann/prawn_plus)
8
- [![Gittip](http://img.shields.io/gittip/bkuhlmann.svg)](https://www.gittip.com/bkuhlmann)
1
+ # Prawn+
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/prawn_plus.svg)](http://badge.fury.io/rb/prawn_plus)
4
+ [![Code Climate GPA](https://codeclimate.com/github/bkuhlmann/prawn_plus.svg)](https://codeclimate.com/github/bkuhlmann/prawn_plus)
5
+ [![Code Climate Coverage](https://codeclimate.com/github/bkuhlmann/prawn_plus/coverage.svg)](https://codeclimate.com/github/bkuhlmann/prawn_plus)
6
+ [![Gemnasium Status](https://gemnasium.com/bkuhlmann/prawn_plus.svg)](https://gemnasium.com/bkuhlmann/prawn_plus)
7
+ [![Travis CI Status](https://secure.travis-ci.org/bkuhlmann/prawn_plus.svg)](https://travis-ci.org/bkuhlmann/prawn_plus)
8
+ [![Patreon](https://img.shields.io/badge/patreon-donate-brightgreen.svg)](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](http://www.ruby-lang.org).
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 rspec spec
129
+ bundle exec rake
110
130
 
111
131
  # Versioning
112
132
 
@@ -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.2.0"
13
+ "6.3.0"
13
14
  end
14
15
 
15
16
  def self.label_version
16
- [label, version].join " "
17
+ "#{label} #{version}"
17
18
  end
18
19
  end
19
20
  end
@@ -1,4 +1,5 @@
1
1
  module PrawnPlus
2
+ # The Rails hook.
2
3
  class Railtie < Rails::Railtie
3
4
  initializer "prawn_plus.initialize" do
4
5
  Mime::Type.register("application/pdf", :pdf) unless Mime::Type.lookup_by_extension :pdf
@@ -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
- # Renders a Prawn template. It is assumed that the template will reference a
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
@@ -0,0 +1,6 @@
1
+ begin
2
+ require "rspec/core/rake_task"
3
+ RSpec::Core::RakeTask.new(:spec)
4
+ rescue LoadError => error
5
+ puts error.message
6
+ end
@@ -0,0 +1,6 @@
1
+ begin
2
+ require "rubocop/rake_task"
3
+ RuboCop::RakeTask.new
4
+ rescue LoadError => error
5
+ puts error.message
6
+ 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.2.0
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
8
  autorequire:
9
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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-stack_explorer
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-remote
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 (which includes PDF template
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.4.8
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
@@ -1,2 +0,0 @@
1
- ����"�uS��!���͑~��zD� �fl��Wx5�'�SА��ΰg��S��ݳ��N�LjO��:iip�<(�F��b�*��Z�b �F�b��6x-��Ԟ֙��~�b��'�}�hV5�� ���X��p���r�t݀����,$���w���g�Ҥ�u��v��R�d�"�0g��2�+K|sq?��6�b�W苖��G�Җd!*4
2
- �T�_�e�n V�T�/S=h�aD<�JǧdV-��6��]͟�2��?8�
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- � {����#*ؕ��(۶*���h[� �J�G|�� {v�3h�P�q,�Ϸ~#|�9g�1M�4m�TA�������ˣg��~�w�jg�����6���!d��
2
- �hg�cI~X����P�/����I�uE+�NG�nm�&�Jp鷲��t���"�vNnF�������*�å�=�F���O��.�뇠+ۯ��ߋdn��`�B#:�rC���"�O��`� ^K� }v3ߘ򐀧K��OL ۲�E �y��3<5Rq