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 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.3
1
+ 1.0.0
@@ -1,10 +1,26 @@
1
- # config/initializers/pdfkit.rb
2
- require 'pdfkit'
3
- PDFKit.configure do |config|
4
- config.wkhtmltopdf = File.expand_path "../../bin/wkhtmltopdf-linux-amd64", __FILE__
5
- # config.default_options = {
6
- # :page_size => 'Legal',
7
- # :print_media_type => true
8
- # }
9
- # config.root_url = "http://localhost" # Use only if your external hostname is unavailable on the server.
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
@@ -4,25 +4,25 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{wkhtmltopdf-heroku}
8
- s.version = "0.1.3"
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 = [%q{Brad Phelan}]
12
- s.date = %q{2011-09-26}
13
- s.description = %q{wkhtmltopdf binaries heroku}
14
- s.email = %q{bradphelan@xtargets.com}
15
- s.executables = [%q{wkhtmltopdf-linux-amd64}]
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.rdoc"
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.rdoc",
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 = %q{http://github.com/bradphelan/wkhtmltopdf-heroku}
35
- s.licenses = [%q{MIT}]
36
- s.require_paths = [%q{lib}]
37
- s.rubygems_version = %q{1.8.8}
38
- s.summary = %q{wkhtmltopdf binaries for heroku}
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.1.3
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: 2011-09-26 00:00:00 Z
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.rdoc
67
+ - README.mdown
68
68
  files:
69
69
  - .document
70
70
  - Gemfile
71
71
  - Gemfile.lock
72
72
  - LICENSE.txt
73
- - README.rdoc
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: 2304882480733269810
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.8
107
+ rubygems_version: 1.8.15
108
108
  signing_key:
109
109
  specification_version: 3
110
110
  summary: wkhtmltopdf binaries for heroku
data/README.rdoc DELETED
@@ -1,9 +0,0 @@
1
- = wkhtmltopdf-heroku
2
-
3
- Binaries for wkhtmltopdf for OSX and Heroku
4
-
5
- == Copyright
6
-
7
- Copyright (c) 2011 Brad Phelan. See LICENSE.txt for
8
- further details.
9
-