tilt-pdf 0.9.0 → 0.10.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: 247b71fd7cda93fc8cdceb16c353970f65e797b1
4
- data.tar.gz: a807223ca174825f593c1f4054ea5acee03595bd
3
+ metadata.gz: fd0f01c0c7d58ad15dacba7ccd36e1644e5b18b4
4
+ data.tar.gz: 77da5c9f5e585a3ef49d852f889fd1485693fd0d
5
5
  SHA512:
6
- metadata.gz: afcd08e875fe00d859c62de97dcc73ebb2ca84d9f9d884a8d11ad0237f6961b490f0d7eedaa6f8fe1d3aaef5801e1241c50e67af52108f830d7460a783197abb
7
- data.tar.gz: 68ae18b4493492f9e79b5aee73aab29c2b8f3d48859d75f95e9aa86a1848f45548b161a3200506b998b49aeaded6388ee7f109cadbb532cee7d63ab8ee52b129
6
+ metadata.gz: 3490c1969e87b8ba34a2c2171b5b16235f57fcecbf96ca017da0ff546a8e6e13f65a0a8a187c59f870e0f969328fdab99773da4c1d42769dbca2ee9dfcac760b
7
+ data.tar.gz: 3c1a1a2a31f6baadfc01525bf8fc31ca72517cdaa57a2687857d4325aba1dac1a994786be2dc853bbf68c85f2302b16b57d1507780d0e43222769a5f1f08c359
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tilt-pdf (0.1.2)
4
+ tilt-pdf (0.10.0)
5
5
  pdfkit (~> 0.5.4)
6
6
  tilt (~> 1.4.1)
7
7
 
@@ -29,8 +29,8 @@ A `foo` template is currently threefold:
29
29
  document.
30
30
  - `foo.css`: this stylesheet can be written in any template language you need
31
31
  (such as Sass or Less), and the Tilt template resolution system via extension
32
- chaining will apply. Tilt will *not* pass the block to be yielded to this
33
- template.
32
+ chaining will apply. Tilt will pass the block to be yielded to this
33
+ template, so you'd rather not `yield` if you fancy using `.css.erb`.
34
34
 
35
35
  The three files must currently be stored in the *same* directory.
36
36
 
@@ -84,14 +84,5 @@ as based from the rpdf file.
84
84
 
85
85
  ## Rails and ActionView integration
86
86
 
87
- Require `tilt/pdf/rails` if you want to set up and register `tilt-pdf` as an
88
- ActionView template handler. You can do it in an initializer, or straight from
89
- the Gemfile:
90
-
91
- ```ruby
92
- gem 'tilt-pdf', require: 'tilt/pdf/rails'
93
- ```
94
-
95
- Put your three template files *together* in the relevant `app/views/foo` view
96
- directory, or use absolute paths using application/engine root. Work is in
97
- progress to enable better integration with Rails file layout.
87
+ Starting with 0.10, this functionality has been split into its own gem. Use
88
+ [Tilt::PDF::Rails](https://github.com/lloeki/tilt-pdf-rails)
@@ -1,5 +1,5 @@
1
1
  module Tilt
2
2
  module PDF
3
- VERSION = '0.9.0'
3
+ VERSION = '0.10.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tilt-pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loic Nageleisen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-21 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
@@ -167,7 +167,6 @@ files:
167
167
  - bin/rpdf
168
168
  - lib/tilt-pdf.rb
169
169
  - lib/tilt/pdf.rb
170
- - lib/tilt/pdf/rails.rb
171
170
  - lib/tilt/pdf/version.rb
172
171
  - tilt-pdf.gemspec
173
172
  homepage: http://github.com/lloeki/tilt-pdf
@@ -1,24 +0,0 @@
1
- require 'tilt-pdf'
2
-
3
- module ActionView
4
- class Template
5
- module Handlers
6
- class PDFTemplate
7
- class_attribute :default_format
8
- self.default_format = :pdf
9
-
10
- def call(template)
11
- "Tilt.new('#{template.identifier}').render(self)"
12
- end
13
- end
14
- end
15
-
16
- register_template_handler :rpdf, Handlers::PDFTemplate.new
17
- end
18
- end
19
-
20
- module Tilt::PDFTemplate::Rails
21
- class Railtie < ::Rails::Railtie
22
- config.app_generators.template_engine :rpdf
23
- end
24
- end