wkhtmltopdf-binary 0.1.2

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/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
+
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf-binary
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Research Information Systems, The University of Iowa
8
+ autorequire: name
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-01-25 00:00:00 -06:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: vpr-ris-developers@iowa.uiowa.edu
18
+ executables:
19
+ - wkhtmltopdf
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - bin/test.rb
26
+ - bin/wkhtmltopdf
27
+ - bin/wkhtmltopdf_darwin_386
28
+ - bin/wkhtmltopdf_linux_386
29
+ has_rdoc: true
30
+ homepage:
31
+ licenses: []
32
+
33
+ post_install_message:
34
+ rdoc_options: []
35
+
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: "0"
43
+ version:
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: "0"
49
+ version:
50
+ requirements: []
51
+
52
+ rubyforge_project:
53
+ rubygems_version: 1.3.5
54
+ signing_key:
55
+ specification_version: 3
56
+ summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
57
+ test_files: []
58
+