parallel588-wkhtmltopdf-binary 0.12.6 → 0.12.6.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 315f53869180a5573be03560befca1425c8db484dc06ab7d34a5c082677a0936
4
- data.tar.gz: 353d21e744253a6380f5e4a3ca7605a8386843658e2c40fe96b830daac3f7955
3
+ metadata.gz: 9d6b37ff25a9e204a55d7954427b0c4611c7ae5f40ea64ad194dee2310e70a7f
4
+ data.tar.gz: f1b6a1f09a54a00b264dc805a8e1363da5f4e2a2dc0475bd72da19d3f48ff455
5
5
  SHA512:
6
- metadata.gz: f9384979c387daa3cb7094b198783026ef308e67bdcd38235b89077fc1240abdab5754ff0134297e54bedc7c4e239c709331069631c43306ce40d5ea43aa1593
7
- data.tar.gz: fec033eb7d9a433b0e4450f8715f9f4eab80996e48affe1bdf59d49de9d41019f8bbad8b3ac7cbda04569176ebd4cd55ac63db023765c96327386e34da03adcd
6
+ metadata.gz: d4305ce1b3eb598cdc4926885d0c7cafc09eb34ae170786737617d136cc28250c85a1df92a566c2ff7de40e77ecbfef80f0f183de9c685c664b1cef97ef5d477
7
+ data.tar.gz: 0d044b61772a1d6d1e174ce0e3a79184509a18ee115fc0b80326bdd21da367c18a76d05ab937b455945571400a6a2f46137962c09e27b1ca3973635a4f14f552
data/bin/wkhtmltopdf CHANGED
@@ -14,28 +14,41 @@ suffix = case RbConfig::CONFIG['host_os']
14
14
  when /linux/
15
15
  os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
16
16
 
17
- if os.start_with?('elementary') || os.start_with?('linuxmint') || os.start_with?('pop')
18
- os = 'ubuntu_18.04'
19
- end
17
+ os_based_on_ubuntu_16_04 = os.start_with?('ubuntu_16.') || os.start_with?('ubuntu_17.')
18
+ os = 'ubuntu_16.04' if os_based_on_ubuntu_16_04
20
19
 
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
20
+ os_based_on_ubuntu_18_04 = os.start_with?('ubuntu_18.') || os.start_with?('ubuntu_19.') || os.start_with?('elementary') || os.start_with?('linuxmint') || os.start_with?('pop') || os.start_with?('zorin')
21
+ os = 'ubuntu_18.04' if os_based_on_ubuntu_18_04
26
22
 
27
- # Deepin fallback
28
- os = 'debian_9' if /deepin/.match?(os)
23
+ os_based_on_ubuntu_20_04 = os.start_with?('ubuntu_20.') || os.start_with?('ubuntu_21.')
24
+ os = 'ubuntu_20.04' if os_based_on_ubuntu_20_04
25
+
26
+ os_based_on_centos_6 = (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6')) || (os.start_with?('amzn_') && !os.start_with?('amzn_2'))
27
+ os = 'centos_6' if os_based_on_centos_6
28
+
29
+ os_based_on_centos_7 = os.start_with?('amzn_2') || os.start_with?('rhel_7.')
30
+ os = 'centos_7' if os_based_on_centos_7
31
+
32
+ os_based_on_debian_9 = (/(debian_9|deepin)/ =~ os)
33
+ os = 'debian_9' if os_based_on_debian_9
34
+
35
+ os_based_on_debian = !os_based_on_debian_9 && os.start_with?('debian')
36
+ os = 'debian_10' if os_based_on_debian
37
+
38
+ os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')
39
+ os = 'archlinux' if os_based_on_archlinux
29
40
 
30
41
  architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
31
42
 
32
43
  "#{os}_#{architecture}"
33
44
  when /darwin/
34
- RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'macos_cocoa' : 'macos_carbon'
45
+ 'macos_cocoa'
35
46
  else
36
47
  'unknown'
37
48
  end
38
49
 
50
+ suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
51
+
39
52
  binary = "#{__FILE__}_#{suffix}"
40
53
 
41
54
  if File.exist?("#{binary}.gz") && !File.exist?(binary)
@@ -45,8 +58,8 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
45
58
  end
46
59
 
47
60
  unless File.exist? binary
48
- raise 'Invalid platform, must be running on Ubuntu 14.04/16.04/18.04/20.04 ' \
49
- 'CentOS 6/7/8, Debian 8/9/10, or intel-based macOS ' \
61
+ raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 ' \
62
+ 'CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa macOS ' \
50
63
  "(missing binary: #{binary})."
51
64
  end
52
65
 
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel588-wkhtmltopdf-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.6
4
+ version: 0.12.6.5
5
5
  platform: ruby
6
6
  authors:
7
- - Maxim Pechnikov
7
+ - Maksim Pechnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-08 00:00:00.000000000 Z
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -25,8 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description:
28
- email:
29
- - parallel588@gmail.com
28
+ email: parallel588@gmail.com
30
29
  executables:
31
30
  - wkhtmltopdf
32
31
  extensions: []
@@ -34,15 +33,12 @@ extra_rdoc_files: []
34
33
  files:
35
34
  - bin/wkhtmltopdf
36
35
  - bin/wkhtmltopdf-binary.rb
37
- - bin/wkhtmltopdf_ubuntu_14.04_amd64.gz
38
- - bin/wkhtmltopdf_ubuntu_14.04_i386.gz
39
- - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
40
- - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
41
36
  - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
42
37
  - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
43
38
  - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
44
39
  homepage:
45
- licenses: []
40
+ licenses:
41
+ - Apache-2.0
46
42
  metadata: {}
47
43
  post_install_message:
48
44
  rdoc_options: []
@@ -59,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
55
  - !ruby/object:Gem::Version
60
56
  version: '0'
61
57
  requirements: []
62
- rubygems_version: 3.0.8
58
+ rubygems_version: 3.1.6
63
59
  signing_key:
64
60
  specification_version: 4
65
61
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
Binary file
Binary file
Binary file
Binary file