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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.mdown +4 -13
- data/lib/tilt/pdf/version.rb +1 -1
- metadata +2 -3
- data/lib/tilt/pdf/rails.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd0f01c0c7d58ad15dacba7ccd36e1644e5b18b4
|
4
|
+
data.tar.gz: 77da5c9f5e585a3ef49d852f889fd1485693fd0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3490c1969e87b8ba34a2c2171b5b16235f57fcecbf96ca017da0ff546a8e6e13f65a0a8a187c59f870e0f969328fdab99773da4c1d42769dbca2ee9dfcac760b
|
7
|
+
data.tar.gz: 3c1a1a2a31f6baadfc01525bf8fc31ca72517cdaa57a2687857d4325aba1dac1a994786be2dc853bbf68c85f2302b16b57d1507780d0e43222769a5f1f08c359
|
data/Gemfile.lock
CHANGED
data/README.mdown
CHANGED
@@ -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
|
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
|
-
|
88
|
-
|
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)
|
data/lib/tilt/pdf/version.rb
CHANGED
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.
|
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-
|
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
|
data/lib/tilt/pdf/rails.rb
DELETED
@@ -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
|