set_wkhtmltopdf-binary 0.9.9

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/wkhtmltopdf ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ arch = case RUBY_PLATFORM
4
+ when /64.*linux/
5
+ 'linux-amd64'
6
+ when /linux/
7
+ 'linux-x86'
8
+ when /darwin/
9
+ 'darwin-x86'
10
+ else
11
+ raise "Invalid platform. Must be running linux or intel-based Mac OS."
12
+ end
13
+
14
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
15
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltopdf-#{arch}"
16
+
17
+ exec "#{cmd} #{args.join(' ')}"
File without changes
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: set_wkhtmltopdf-binary
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.9
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - ! '- Research Information Systems, The University of Iowa'
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: ''
15
+ email: vpr-ris-developers@iowa.uiowa.edu,mcollas@aconex.com
16
+ executables:
17
+ - wkhtmltopdf
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/wkhtmltopdf-binary.rb
22
+ - bin/wkhtmltopdf
23
+ - libexec/wkhtmltopdf-darwin-x86
24
+ - libexec/wkhtmltopdf-linux-amd64
25
+ - libexec/wkhtmltopdf-linux-x86
26
+ homepage: ''
27
+ licenses: []
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.8.7
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 1.3.6
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 1.8.24
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
50
+ test_files: []