tilt-pdf 0.1.0 → 0.1.1

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: 417c8016b155b872083883cfe1ad4d2398cdf4d5
4
- data.tar.gz: 1f89a38c892af318dc4fe74ae494904c3a69390f
3
+ metadata.gz: 9aaba3ae3b58e23c9e7ff5845a85695432f5a80a
4
+ data.tar.gz: 74ef09fd5b5d42e78e02409fcfeff9e65b2e53d5
5
5
  SHA512:
6
- metadata.gz: d38f611ba62114a0a0ea785f76a67db742e8b8daad5aad12f1de531f06829a0c137e6f6ed076442e484e9bcb1a735cb81a3be3104ccfe72dc19a4605ba8c0c90
7
- data.tar.gz: da7cb5aa90eaace59ca76f6ae17117639cf869b782707c5b377191aaf14fd3cb84e2f4a26dbef5c6eaf871723a1880e36860cfcd413252ba828af0cddb91acf8
6
+ metadata.gz: 76aef20df947574fc46d70a44fd4521ff88f44c2f905daf0006e7e314521a8e1f35490c029b95bfabf10034b6ecd1875e2a11d38f6a57187644a47d8e854c30e
7
+ data.tar.gz: d9af9c3e0028031bb99c6620fb960210280a4c784e1ce5de05e9656444d748a9bdf69d856ad0ae676368b2a63623d8c8af4e5b74a9b170fd68b379bf9425bf03
@@ -1,6 +1,6 @@
1
1
  module Tilt
2
2
  module PDF
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
 
5
5
  end
6
6
  end
data/lib/tilt/pdf.rb CHANGED
@@ -1,25 +1,7 @@
1
1
  require 'pdfkit'
2
2
  require 'tilt'
3
3
  require 'tilt/template'
4
-
5
- PDFKit.configure do |config|
6
- config.wkhtmltopdf =
7
- '/Applications/wkhtmltopdf.app/Contents/MacOS/wkhtmltopdf'
8
- config.default_options = {
9
- page_size: 'A4',
10
- orientation: 'portrait',
11
- print_media_type: true,
12
- dpi: 600,
13
- margin_top: 0,
14
- margin_bottom: 0,
15
- margin_left: 0,
16
- margin_right: 0,
17
- header_spacing: 0,
18
- footer_spacing: 0,
19
- disable_smart_shrinking: true,
20
- zoom: 1.0,
21
- }
22
- end
4
+ require 'yaml'
23
5
 
24
6
  module Tilt
25
7
  class PDFTemplate < Template
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loic Nageleisen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-22 00:00:00.000000000 Z
11
+ date: 2013-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt