Permalink
Browse files

The WKHTMLTOPDF_PATH variable is caching to the darwin file on heroku

  • Loading branch information...
1 parent 5eaa619 commit c1da0739ae48ed6c121f400972dfd6a3d9376cf7 Jason Kotchoff committed May 14, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 VERSION
  2. +3 −3 lib/wkhtmltopdf-osx.rb
  3. +1 −1 wkhtmltopdf-osx.gemspec
View
@@ -1 +1 @@
-0.2.1
+0.2.2
View
@@ -2,18 +2,18 @@
on_heroku = !ENV.keys.select{|k| k.starts_with?("HEROKU")}.empty?
executable = on_heroku ? "wkhtmltopdf-linux-amd64" : "wkhtmltopdf-darwin"
-WKHTMLTOPDF_PATH = File.expand_path "../../bin/#{executable}", __FILE__
+wkhtmltopdf_path = File.expand_path "../../bin/#{executable}", __FILE__
begin
require 'pdfkit'
PDFKit.configure do |config|
- config.wkhtmltopdf = WKHTMLTOPDF_PATH
+ config.wkhtmltopdf = wkhtmltopdf_path
end
rescue LoadError
end
begin
require 'wicked_pdf'
- WickedPdf.config[:exe_path] = WKHTMLTOPDF_PATH
+ WickedPdf.config[:exe_path] = wkhtmltopdf_path
rescue LoadError
end
View
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{wkhtmltopdf-osx}
- s.version = "0.2.1"
+ s.version = "0.2.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Brad Phelan}]

0 comments on commit c1da073

Please sign in to comment.