wkhtmltopdf-binary 0.12.5.4 → 0.12.6.5

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
2
  SHA256:
3
- metadata.gz: 8844ae08780f6c097410d1401ec6f528bb9750594dc10d3ff2d7f6ab936fef6e
4
- data.tar.gz: cf93a01e7ab28b9cd74b7b56865b0c716fc09f580a334f68f39be0046e87b459
3
+ metadata.gz: 442c23c8cb055c2b6f1ff09a8d43c21a6c10ec99cfad877e17d9b435c85b8b6a
4
+ data.tar.gz: 58285d30e2f93fd6cb35c2b06f4dc8e04b40826eb8c8d9011cf705724386b578
5
5
  SHA512:
6
- metadata.gz: 2770523ec0fa8e3f72dad317d3e3c1c395eb5748c0726176d9d4fe7b251feedc12f226cf73613d7f6e200e2e22acc5f437cd8e5da77d89133b52214c609a6e04
7
- data.tar.gz: 3cca26962f709bcb0ab9df347cff0b56e6f78b6d7a0b78b702bec2a81da6cf8dc6947d94d41aefe0a0b796235ebeb03cafbd8d59017122e8ca19b231aefd77ea
6
+ metadata.gz: 866ec6029b8f2f4f26591a6ff59d06788b3cdcf0684092b22854def5cecf77a6bb4ce2ae42f8fea843cdbed69cb50508a78192e71ecd8c90633a868abcb61414
7
+ data.tar.gz: fc474dcd0ea90061a6e352b7bfa454df8992bdefb2d4c40f08741d680f858d303b727d1e7d937ec350e56373bc433443d5108274beda65fcd897431c605ab40d
@@ -14,25 +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')
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')
21
+ os = 'ubuntu_18.04' if os_based_on_ubuntu_18_04
22
+
23
+ os_based_on_ubuntu_20_04 = os.start_with?('ubuntu_20.')
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')
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
26
40
 
27
41
  architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
28
42
 
29
43
  "#{os}_#{architecture}"
30
44
  when /darwin/
31
- RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'macos_cocoa' : 'macos_carbon'
45
+ 'macos_cocoa'
32
46
  else
33
47
  'unknown'
34
48
  end
35
49
 
50
+ suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
51
+
36
52
  binary = "#{__FILE__}_#{suffix}"
37
53
 
38
54
  if File.exist?("#{binary}.gz") && !File.exist?(binary)
@@ -42,8 +58,8 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
42
58
  end
43
59
 
44
60
  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 ' \
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 ' \
47
63
  "(missing binary: #{binary})."
48
64
  end
49
65
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wkhtmltopdf-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.5.4
4
+ version: 0.12.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zakir Durumeric
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-09 00:00:00.000000000 Z
11
+ date: 2020-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description:
27
+ description:
28
28
  email: zakird@gmail.com
29
29
  executables:
30
30
  - wkhtmltopdf
@@ -33,6 +33,7 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - bin/wkhtmltopdf
35
35
  - bin/wkhtmltopdf-binary.rb
36
+ - bin/wkhtmltopdf_archlinux_amd64.gz
36
37
  - bin/wkhtmltopdf_centos_6_amd64.gz
37
38
  - bin/wkhtmltopdf_centos_6_i386.gz
38
39
  - bin/wkhtmltopdf_centos_7_amd64.gz
@@ -40,23 +41,19 @@ files:
40
41
  - bin/wkhtmltopdf_centos_8_amd64.gz
41
42
  - bin/wkhtmltopdf_debian_10_amd64.gz
42
43
  - bin/wkhtmltopdf_debian_10_i386.gz
43
- - bin/wkhtmltopdf_debian_8_amd64.gz
44
- - bin/wkhtmltopdf_debian_8_i386.gz
45
44
  - bin/wkhtmltopdf_debian_9_amd64.gz
46
45
  - bin/wkhtmltopdf_debian_9_i386.gz
47
- - bin/wkhtmltopdf_macos_carbon.gz
48
46
  - bin/wkhtmltopdf_macos_cocoa.gz
49
- - bin/wkhtmltopdf_ubuntu_14.04_amd64.gz
50
- - bin/wkhtmltopdf_ubuntu_14.04_i386.gz
51
47
  - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
52
48
  - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
53
49
  - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
54
50
  - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
55
- homepage:
51
+ - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
52
+ homepage:
56
53
  licenses:
57
54
  - Apache-2.0
58
55
  metadata: {}
59
- post_install_message:
56
+ post_install_message:
60
57
  rdoc_options: []
61
58
  require_paths:
62
59
  - "."
@@ -71,8 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
68
  - !ruby/object:Gem::Version
72
69
  version: '0'
73
70
  requirements: []
74
- rubygems_version: 3.0.6
75
- signing_key:
71
+ rubygems_version: 3.0.3
72
+ signing_key:
76
73
  specification_version: 4
77
74
  summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
78
75
  test_files: []