wkhtmltopdf-binary 0.9.5.3 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,14 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
- if RUBY_PLATFORM =~ /linux/
4
- executable = 'wkhtmltopdf_linux_386'
5
- elsif RUBY_PLATFORM =~ /darwin/
3
+ require 'rbconfig'
4
+
5
+ if RbConfig::CONFIG['host_os'] =~ /linux/
6
+ executable = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'wkhtmltopdf_linux_x64' : 'wkhtmltopdf_linux_386'
7
+ elsif RbConfig::CONFIG['host_os'] =~ /darwin/
6
8
  executable = 'wkhtmltopdf_darwin_386'
7
9
  else
8
10
  raise "Invalid platform. Must be running linux or intel-based Mac OS."
9
11
  end
10
12
 
11
- arguments = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
12
-
13
13
  executable = File.join(File.dirname(__FILE__), executable)
14
- r = system(executable + " " + arguments.join(" "))
15
-
16
- exit r ? 0 : 1
14
+ system *$*.unshift(executable)
@@ -1,2 +0,0 @@
1
- # Having this file, which matches the name of the gem,
2
- # is required for the gem to be installed and called properly.
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,56 +1,50 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: wkhtmltopdf-binary
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.5.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.9
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
- - Research Information Systems, The University of Iowa
7
+ authors:
8
+ - Zakir Durumeric
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2011-05-06 00:00:00 -05:00
13
- default_executable:
12
+ date: 2012-06-19 00:00:00.000000000 Z
14
13
  dependencies: []
15
-
16
14
  description:
17
- email: vpr-ris-developers@iowa.uiowa.edu
18
- executables:
15
+ email: zakird@gmail.com
16
+ executables:
19
17
  - wkhtmltopdf
20
18
  extensions: []
21
-
22
19
  extra_rdoc_files: []
23
-
24
- files:
20
+ files:
25
21
  - bin/wkhtmltopdf
26
- - bin/wkhtmltopdf_linux_386
27
- - bin/wkhtmltopdf_darwin_386
28
22
  - bin/wkhtmltopdf-binary.rb
29
- has_rdoc: false
23
+ - bin/wkhtmltopdf_darwin_386
24
+ - bin/wkhtmltopdf_linux_386
25
+ - bin/wkhtmltopdf_linux_x64
30
26
  homepage:
27
+ licenses: []
31
28
  post_install_message:
32
29
  rdoc_options: []
33
-
34
- require_paths:
30
+ require_paths:
35
31
  - .
36
- required_ruby_version: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: "0"
41
- version:
42
- required_rubygems_version: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
47
- version:
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
48
44
  requirements: []
49
-
50
45
  rubyforge_project:
51
- rubygems_version: 1.3.1
46
+ rubygems_version: 1.8.24
52
47
  signing_key:
53
- specification_version: 2
48
+ specification_version: 3
54
49
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
55
50
  test_files: []
56
-