wkhtmltopdf-binary 0.12.4 → 0.12.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ea9cf8675037b3077a829304ac8b90de603e8f84
4
- data.tar.gz: 9dc4311b764a1f5c81cc27ff921e417c42e40b84
2
+ SHA256:
3
+ metadata.gz: 8844ae08780f6c097410d1401ec6f528bb9750594dc10d3ff2d7f6ab936fef6e
4
+ data.tar.gz: cf93a01e7ab28b9cd74b7b56865b0c716fc09f580a334f68f39be0046e87b459
5
5
  SHA512:
6
- metadata.gz: 056b8ec2ed138bf6cc5278522b0b617f60bb3d3b093bb207bee7d7a9c1947e164f5f3578da5a66d1c2a0ffb9eb6bcfcbdc7fc28444bf80a88e2f0818959b40c8
7
- data.tar.gz: bcc845f6d1785d92080e10a174e276b9310414c59dd5641c03fd3f133f68c7c81b86e1385f727b1227ea5af5ed81b36ca7dd8d40d2c606b79a8473967d140c9e
6
+ metadata.gz: 2770523ec0fa8e3f72dad317d3e3c1c395eb5748c0726176d9d4fe7b251feedc12f226cf73613d7f6e200e2e22acc5f437cd8e5da77d89133b52214c609a6e04
7
+ data.tar.gz: 3cca26962f709bcb0ab9df347cff0b56e6f78b6d7a0b78b702bec2a81da6cf8dc6947d94d41aefe0a0b796235ebeb03cafbd8d59017122e8ca19b231aefd77ea
data/bin/wkhtmltopdf CHANGED
@@ -8,14 +8,43 @@
8
8
  # of the License at http://www.apache.org/licenses/LICENSE-2.0
9
9
 
10
10
  require 'rbconfig'
11
+ require 'zlib'
11
12
 
12
13
  suffix = case RbConfig::CONFIG['host_os']
13
- when /linux/
14
- (RbConfig::CONFIG['host_cpu'] == 'x86_64') ? 'linux_amd64' : 'linux_x86'
15
- when /darwin/
16
- 'darwin_x86'
17
- else
18
- raise "Invalid platform. Must be running on linux or intel-based Mac OS."
14
+ when /linux/
15
+ os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
16
+
17
+ if os.start_with?('elementary') || os.start_with?('linuxmint')
18
+ os = 'ubuntu_18.04'
19
+ end
20
+
21
+ # CentOS 6 doesn't have `/etc/os-release`.
22
+ if (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6')) ||
23
+ os.start_with?('amzn_')
24
+ os = 'centos_6'
25
+ end
26
+
27
+ architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
28
+
29
+ "#{os}_#{architecture}"
30
+ when /darwin/
31
+ RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'macos_cocoa' : 'macos_carbon'
32
+ else
33
+ 'unknown'
34
+ end
35
+
36
+ binary = "#{__FILE__}_#{suffix}"
37
+
38
+ if File.exist?("#{binary}.gz") && !File.exist?(binary)
39
+ File.open binary, 'wb', 0o755 do |file|
40
+ Zlib::GzipReader.open("#{binary}.gz") { |gzip| file << gzip.read }
41
+ end
42
+ end
43
+
44
+ unless File.exist? binary
45
+ raise 'Invalid platform, must be running on Ubuntu 14.04/16.04/18.04 ' \
46
+ 'CentOS 6/7/8, Debian 8/9/10, or intel-based macOS ' \
47
+ "(missing binary: #{binary})."
19
48
  end
20
49
 
21
- system *$*.unshift("#{__FILE__}_#{suffix}")
50
+ exec *$*.unshift(binary)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wkhtmltopdf-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4
4
+ version: 0.12.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zakir Durumeric
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2020-02-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description:
14
28
  email: zakird@gmail.com
15
29
  executables:
@@ -19,9 +33,25 @@ extra_rdoc_files: []
19
33
  files:
20
34
  - bin/wkhtmltopdf
21
35
  - bin/wkhtmltopdf-binary.rb
22
- - bin/wkhtmltopdf_darwin_x86
23
- - bin/wkhtmltopdf_linux_amd64
24
- - bin/wkhtmltopdf_linux_x86
36
+ - bin/wkhtmltopdf_centos_6_amd64.gz
37
+ - bin/wkhtmltopdf_centos_6_i386.gz
38
+ - bin/wkhtmltopdf_centos_7_amd64.gz
39
+ - bin/wkhtmltopdf_centos_7_i386.gz
40
+ - bin/wkhtmltopdf_centos_8_amd64.gz
41
+ - bin/wkhtmltopdf_debian_10_amd64.gz
42
+ - bin/wkhtmltopdf_debian_10_i386.gz
43
+ - bin/wkhtmltopdf_debian_8_amd64.gz
44
+ - bin/wkhtmltopdf_debian_8_i386.gz
45
+ - bin/wkhtmltopdf_debian_9_amd64.gz
46
+ - bin/wkhtmltopdf_debian_9_i386.gz
47
+ - bin/wkhtmltopdf_macos_carbon.gz
48
+ - bin/wkhtmltopdf_macos_cocoa.gz
49
+ - bin/wkhtmltopdf_ubuntu_14.04_amd64.gz
50
+ - bin/wkhtmltopdf_ubuntu_14.04_i386.gz
51
+ - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
52
+ - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
53
+ - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
54
+ - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
25
55
  homepage:
26
56
  licenses:
27
57
  - Apache-2.0
@@ -41,8 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
71
  - !ruby/object:Gem::Version
42
72
  version: '0'
43
73
  requirements: []
44
- rubyforge_project:
45
- rubygems_version: 2.6.10
74
+ rubygems_version: 3.0.6
46
75
  signing_key:
47
76
  specification_version: 4
48
77
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
Binary file
Binary file
Binary file