wkhtmltopdf 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/test.rb +1 -0
- data/bin/wkhtmltopdf +13 -0
- metadata +6 -5
- data/lib/wkhtmltopdf.rb +0 -13
data/bin/test.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
puts $*
|
data/bin/wkhtmltopdf
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
if RUBY_PLATFORM =~ /linux/
|
4
|
+
executable = 'wkhtmltopdf_linux_386'
|
5
|
+
elsif RUBY_PLATFORM =~ /darwin/
|
6
|
+
executable = 'wkhtmltopdf_darwin_386'
|
7
|
+
else
|
8
|
+
raise "Invalid platform. Must be running linux or intel-based Mac OS."
|
9
|
+
end
|
10
|
+
|
11
|
+
executable = File.join(File.dirname(__FILE__), executable)
|
12
|
+
system(executable + " " + $*.join(" "))
|
13
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wkhtmltopdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Research Information Systems, The University of Iowa
|
@@ -9,22 +9,23 @@ autorequire: name
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-25 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description:
|
17
17
|
email: vpr-ris-developers@iowa.uiowa.edu
|
18
|
-
executables:
|
19
|
-
|
18
|
+
executables:
|
19
|
+
- wkhtmltopdf
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
|
24
24
|
files:
|
25
|
+
- bin/test.rb
|
26
|
+
- bin/wkhtmltopdf
|
25
27
|
- bin/wkhtmltopdf_darwin_386
|
26
28
|
- bin/wkhtmltopdf_linux_386
|
27
|
-
- lib/wkhtmltopdf.rb
|
28
29
|
has_rdoc: true
|
29
30
|
homepage:
|
30
31
|
licenses: []
|
data/lib/wkhtmltopdf.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
module WKHTMLTOPDF
|
2
|
-
def self.get_binary_path
|
3
|
-
if RUBY_PLATFORM =~ /linux/
|
4
|
-
executable = 'wkhtmltopdf_linux_386'
|
5
|
-
elsif RUBY_PLATFORM =~ /darwin/
|
6
|
-
executable = 'wkhtmltopdf_darwin_386'
|
7
|
-
else
|
8
|
-
raise "Invalid platform. Must be running linux or intel-based Mac OS."
|
9
|
-
end
|
10
|
-
bin_path = File.join(File.dirname(File.dirname( __FILE__)), 'bin')
|
11
|
-
return File.join(bin_path, executable)
|
12
|
-
end
|
13
|
-
end
|