wkhtmltopdf-osx 0.1.0 → 0.1.1
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/VERSION +1 -1
- data/lib/wkhtmltopdf-osx.rb +10 -0
- data/wkhtmltopdf-osx.gemspec +3 -4
- metadata +3 -5
- data/bin/wkhtmltopdf +0 -15
- data/lib/wkhtmltopdf_heroku_and_osx_binaries.rb +0 -0
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# config/initializers/pdfkit.rb
|
|
2
|
+
require 'pdfkit'
|
|
3
|
+
PDFKit.configure do |config|
|
|
4
|
+
config.wkhtmltopdf = File.expand_path "../../bin/wkhtmltopdf-darwin", __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.
|
|
10
|
+
end
|
data/wkhtmltopdf-osx.gemspec
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{wkhtmltopdf-osx}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = [%q{Brad Phelan}]
|
|
12
12
|
s.date = %q{2011-09-26}
|
|
13
13
|
s.description = %q{wkhtmltopdf binaries for OSX(darwin)}
|
|
14
14
|
s.email = %q{bradphelan@xtargets.com}
|
|
15
|
-
s.executables = [%q{wkhtmltopdf
|
|
15
|
+
s.executables = [%q{wkhtmltopdf-darwin}]
|
|
16
16
|
s.extra_rdoc_files = [
|
|
17
17
|
"LICENSE.txt",
|
|
18
18
|
"README.rdoc"
|
|
@@ -25,9 +25,8 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
"README.rdoc",
|
|
26
26
|
"Rakefile",
|
|
27
27
|
"VERSION",
|
|
28
|
-
"bin/wkhtmltopdf",
|
|
29
28
|
"bin/wkhtmltopdf-darwin",
|
|
30
|
-
"lib/
|
|
29
|
+
"lib/wkhtmltopdf-osx.rb",
|
|
31
30
|
"test/helper.rb",
|
|
32
31
|
"test/test_wkhtmltopdf_heroku_and_osx_binaries.rb",
|
|
33
32
|
"wkhtmltopdf-osx.gemspec"
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: wkhtmltopdf-osx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Brad Phelan
|
|
@@ -59,7 +59,6 @@ dependencies:
|
|
|
59
59
|
description: wkhtmltopdf binaries for OSX(darwin)
|
|
60
60
|
email: bradphelan@xtargets.com
|
|
61
61
|
executables:
|
|
62
|
-
- wkhtmltopdf
|
|
63
62
|
- wkhtmltopdf-darwin
|
|
64
63
|
extensions: []
|
|
65
64
|
|
|
@@ -74,9 +73,8 @@ files:
|
|
|
74
73
|
- README.rdoc
|
|
75
74
|
- Rakefile
|
|
76
75
|
- VERSION
|
|
77
|
-
- bin/wkhtmltopdf
|
|
78
76
|
- bin/wkhtmltopdf-darwin
|
|
79
|
-
- lib/
|
|
77
|
+
- lib/wkhtmltopdf-osx.rb
|
|
80
78
|
- test/helper.rb
|
|
81
79
|
- test/test_wkhtmltopdf_heroku_and_osx_binaries.rb
|
|
82
80
|
- wkhtmltopdf-osx.gemspec
|
|
@@ -93,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
93
91
|
requirements:
|
|
94
92
|
- - ">="
|
|
95
93
|
- !ruby/object:Gem::Version
|
|
96
|
-
hash:
|
|
94
|
+
hash: 4170392259079278748
|
|
97
95
|
segments:
|
|
98
96
|
- 0
|
|
99
97
|
version: "0"
|
data/bin/wkhtmltopdf
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/ruby
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if RUBY_PLATFORM =~ /darwin/
|
|
5
|
-
executable = 'wkhtmltopdf-darwin'
|
|
6
|
-
else
|
|
7
|
-
raise "Invalid platform. Must be running OSX(darwin)"
|
|
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
|
|
File without changes
|