wkhtmltopdf-heroku 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.2
Binary file
@@ -0,0 +1,9 @@
1
+ # config/initializers/pdfkit.rb
2
+ PDFKit.configure do |config|
3
+ config.wkhtmltopdf = File.expand_path "../../bin/wkhtmltopdf-linux-amd64", __FILE__
4
+ # config.default_options = {
5
+ # :page_size => 'Legal',
6
+ # :print_media_type => true
7
+ # }
8
+ # config.root_url = "http://localhost" # Use only if your external hostname is unavailable on the server.
9
+ end
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.0
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brad Phelan
@@ -59,8 +59,7 @@ dependencies:
59
59
  description: wkhtmltopdf binaries heroku
60
60
  email: bradphelan@xtargets.com
61
61
  executables:
62
- - wkhtmltopdf
63
- - wkhtmltopdf-darwin
62
+ - wkhtmltopdf-linux-amd64
64
63
  extensions: []
65
64
 
66
65
  extra_rdoc_files:
@@ -74,12 +73,10 @@ files:
74
73
  - README.rdoc
75
74
  - Rakefile
76
75
  - VERSION
77
- - bin/wkhtmltopdf
78
- - bin/wkhtmltopdf-darwin
79
- - lib/wkhtmltopdf_heroku_and_osx_binaries.rb
76
+ - bin/wkhtmltopdf-linux-amd64
77
+ - lib/wkhtmltopdf-heroku.rb
80
78
  - test/helper.rb
81
79
  - test/test_wkhtmltopdf_heroku_and_osx_binaries.rb
82
- - wkhtmltopdf-heroku.gemspec
83
80
  homepage: http://github.com/bradphelan/wkhtmltopdf-heroku
84
81
  licenses:
85
82
  - MIT
@@ -93,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
90
  requirements:
94
91
  - - ">="
95
92
  - !ruby/object:Gem::Version
96
- hash: 15281286880839588
93
+ hash: 2547012441275929136
97
94
  segments:
98
95
  - 0
99
96
  version: "0"
data/bin/wkhtmltopdf DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/ruby
2
-
3
-
4
- if RUBY_PLATFORM =~ /x86_64-linux/
5
- executable = 'wkhtmltopdf-linux-amd64'
6
- elsif RUBY_PLATFORM =~ /darwin/
7
- raise "Invalid platform. Must be running linux amd x64"
8
- end
9
-
10
- arguments = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
11
-
12
- executable = File.join(File.dirname(__FILE__), executable)
13
- r = system(executable + " " + arguments.join(" "))
14
-
15
- exit r ? 0 : 1
Binary file
File without changes
@@ -1,62 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{wkhtmltopdf-heroku}
8
- s.version = "0.1.0"
9
-
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}, %q{wkhtmltopdf-darwin}]
16
- s.extra_rdoc_files = [
17
- "LICENSE.txt",
18
- "README.rdoc"
19
- ]
20
- s.files = [
21
- ".document",
22
- "Gemfile",
23
- "Gemfile.lock",
24
- "LICENSE.txt",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "bin/wkhtmltopdf",
29
- "bin/wkhtmltopdf-darwin",
30
- "lib/wkhtmltopdf_heroku_and_osx_binaries.rb",
31
- "test/helper.rb",
32
- "test/test_wkhtmltopdf_heroku_and_osx_binaries.rb",
33
- "wkhtmltopdf-heroku.gemspec"
34
- ]
35
- s.homepage = %q{http://github.com/bradphelan/wkhtmltopdf-heroku}
36
- s.licenses = [%q{MIT}]
37
- s.require_paths = [%q{lib}]
38
- s.rubygems_version = %q{1.8.8}
39
- s.summary = %q{wkhtmltopdf binaries for heroku}
40
-
41
- if s.respond_to? :specification_version then
42
- s.specification_version = 3
43
-
44
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
- s.add_development_dependency(%q<shoulda>, [">= 0"])
46
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
47
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
48
- s.add_development_dependency(%q<rcov>, [">= 0"])
49
- else
50
- s.add_dependency(%q<shoulda>, [">= 0"])
51
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
52
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
53
- s.add_dependency(%q<rcov>, [">= 0"])
54
- end
55
- else
56
- s.add_dependency(%q<shoulda>, [">= 0"])
57
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
58
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
59
- s.add_dependency(%q<rcov>, [">= 0"])
60
- end
61
- end
62
-