wkhtmltopdf-heroku 0.1.3 → 1.0.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.
- data/README.mdown +10 -0
- data/VERSION +1 -1
- data/lib/wkhtmltopdf-heroku.rb +25 -9
- data/wkhtmltopdf-heroku.gemspec +14 -14
- metadata +6 -6
- data/README.rdoc +0 -9
data/README.mdown
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# wkhtmltopdf-heroku
|
|
2
|
+
|
|
3
|
+
Provides a [wkhtmltopdf](http://code.google.com/p/wkhtmltopdf/) binary for [Heroku](http://www.heroku.com/).
|
|
4
|
+
|
|
5
|
+
Preconfigures [pdfkit](https://rubygems.org/gems/pdfkit), [wicked_pdf](https://rubygems.org/gems/wicked_pdf) and [wisepdf](http://rubygems.org/gems/wisepdf) to use this binary if they are loaded.
|
|
6
|
+
|
|
7
|
+
## Copyright
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2011 Brad Phelan. See LICENSE.txt for further details.
|
|
10
|
+
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
1.0.0
|
data/lib/wkhtmltopdf-heroku.rb
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
WKHTMLTOPDF_PATH = File.expand_path "../../bin/wkhtmltopdf-linux-amd64", __FILE__
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
require 'pdfkit'
|
|
5
|
+
|
|
6
|
+
PDFKit.configure do |config|
|
|
7
|
+
config.wkhtmltopdf = WKHTMLTOPDF_PATH
|
|
8
|
+
end
|
|
9
|
+
rescue LoadError
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
begin
|
|
13
|
+
require 'wicked_pdf'
|
|
14
|
+
|
|
15
|
+
WickedPdf.config[:exe_path] = WKHTMLTOPDF_PATH
|
|
16
|
+
rescue LoadError
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
begin
|
|
20
|
+
require 'wisepdf'
|
|
21
|
+
|
|
22
|
+
Wisepdf::Configuration.configure do |config|
|
|
23
|
+
config.wkhtmltopdf = WKHTMLTOPDF_PATH
|
|
24
|
+
end
|
|
25
|
+
rescue LoadError
|
|
10
26
|
end
|
data/wkhtmltopdf-heroku.gemspec
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
|
-
s.name =
|
|
8
|
-
s.version = "0.
|
|
7
|
+
s.name = "wkhtmltopdf-heroku"
|
|
8
|
+
s.version = "1.0.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
-
s.authors = [
|
|
12
|
-
s.date =
|
|
13
|
-
s.description =
|
|
14
|
-
s.email =
|
|
15
|
-
s.executables = [
|
|
11
|
+
s.authors = ["Brad Phelan"]
|
|
12
|
+
s.date = "2012-05-27"
|
|
13
|
+
s.description = "wkhtmltopdf binaries heroku"
|
|
14
|
+
s.email = "bradphelan@xtargets.com"
|
|
15
|
+
s.executables = ["wkhtmltopdf-linux-amd64"]
|
|
16
16
|
s.extra_rdoc_files = [
|
|
17
17
|
"LICENSE.txt",
|
|
18
|
-
"README.
|
|
18
|
+
"README.mdown"
|
|
19
19
|
]
|
|
20
20
|
s.files = [
|
|
21
21
|
".document",
|
|
22
22
|
"Gemfile",
|
|
23
23
|
"Gemfile.lock",
|
|
24
24
|
"LICENSE.txt",
|
|
25
|
-
"README.
|
|
25
|
+
"README.mdown",
|
|
26
26
|
"Rakefile",
|
|
27
27
|
"VERSION",
|
|
28
28
|
"bin/wkhtmltopdf-linux-amd64",
|
|
@@ -31,11 +31,11 @@ Gem::Specification.new do |s|
|
|
|
31
31
|
"test/test_wkhtmltopdf_heroku_and_osx_binaries.rb",
|
|
32
32
|
"wkhtmltopdf-heroku.gemspec"
|
|
33
33
|
]
|
|
34
|
-
s.homepage =
|
|
35
|
-
s.licenses = [
|
|
36
|
-
s.require_paths = [
|
|
37
|
-
s.rubygems_version =
|
|
38
|
-
s.summary =
|
|
34
|
+
s.homepage = "http://github.com/bradphelan/wkhtmltopdf-heroku"
|
|
35
|
+
s.licenses = ["MIT"]
|
|
36
|
+
s.require_paths = ["lib"]
|
|
37
|
+
s.rubygems_version = "1.8.15"
|
|
38
|
+
s.summary = "wkhtmltopdf binaries for heroku"
|
|
39
39
|
|
|
40
40
|
if s.respond_to? :specification_version then
|
|
41
41
|
s.specification_version = 3
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: wkhtmltopdf-heroku
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 1.0.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Brad Phelan
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date:
|
|
13
|
+
date: 2012-05-27 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: shoulda
|
|
@@ -64,13 +64,13 @@ extensions: []
|
|
|
64
64
|
|
|
65
65
|
extra_rdoc_files:
|
|
66
66
|
- LICENSE.txt
|
|
67
|
-
- README.
|
|
67
|
+
- README.mdown
|
|
68
68
|
files:
|
|
69
69
|
- .document
|
|
70
70
|
- Gemfile
|
|
71
71
|
- Gemfile.lock
|
|
72
72
|
- LICENSE.txt
|
|
73
|
-
- README.
|
|
73
|
+
- README.mdown
|
|
74
74
|
- Rakefile
|
|
75
75
|
- VERSION
|
|
76
76
|
- bin/wkhtmltopdf-linux-amd64
|
|
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
91
91
|
requirements:
|
|
92
92
|
- - ">="
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
|
-
hash:
|
|
94
|
+
hash: -3645932189113747653
|
|
95
95
|
segments:
|
|
96
96
|
- 0
|
|
97
97
|
version: "0"
|
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
104
|
requirements: []
|
|
105
105
|
|
|
106
106
|
rubyforge_project:
|
|
107
|
-
rubygems_version: 1.8.
|
|
107
|
+
rubygems_version: 1.8.15
|
|
108
108
|
signing_key:
|
|
109
109
|
specification_version: 3
|
|
110
110
|
summary: wkhtmltopdf binaries for heroku
|