wkhtmltopdf-binary 0.12.5 → 0.12.6

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: 03e03fbca433474d72f037c299f65d937726ecf0fff94b2cd09c308d4133cd33
4
- data.tar.gz: 78ccbadf39f2a0752307f49f19f594b2dbe5bb8c04b126545417a479a96f70d8
3
+ metadata.gz: 9136890b342bdf929fef2ac2597db22f059356df1a69c21948b8350f8ee1be75
4
+ data.tar.gz: 447244dc7477c7654b8fc60282448dce2fc6d0e3b9487cc787ab329ff9238b2f
5
5
  SHA512:
6
- metadata.gz: '053098c9f5d10439fb77e966141768e5f86d4ca097293af0760813264dec67d15de57e543eb926c714975025f419287ac8b87dd84fb72ffbacf15e21f8d46e5c'
7
- data.tar.gz: '06358c2b3444585ebbeecb4d05604b84599ba976baebafd51789b1062cd43e9dcccf161ff008e5ac65a3778f1f2ac2264c0aea98384a4e86b6102228468364c6'
6
+ metadata.gz: 2e46d531ac16f2c1cf9eecfd630b935f8bfa55679cbf80e0f506394ee470f0bbfad85badbd89797db768ae9c004f6d5e7f860c6fd0f25c8cecb64c9d1fb96380
7
+ data.tar.gz: c3dec361e0f3bc67aedf5a190ac947abc730672a89320cc60045d061c7378c978f5152cc1a7af2d0317cc18a094eab94d7772d9e187fdbfd9fc5b4b962543825
@@ -14,16 +14,24 @@ 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
20
+
17
21
  # CentOS 6 doesn't have `/etc/os-release`.
18
- if os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6')
22
+ if (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6')) ||
23
+ os.start_with?('amzn_')
19
24
  os = 'centos_6'
20
25
  end
21
26
 
27
+ # Deepin fallback
28
+ os = 'debian_9' if /deepin/.match?(os)
29
+
22
30
  architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
23
31
 
24
32
  "#{os}_#{architecture}"
25
33
  when /darwin/
26
- RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'macos_cocoa' : 'macos_carbon'
34
+ 'macos_cocoa'
27
35
  else
28
36
  'unknown'
29
37
  end
@@ -37,9 +45,9 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
37
45
  end
38
46
 
39
47
  unless File.exist? binary
40
- raise 'Invalid platform, must be running on Ubuntu 14.04/16.04/18.04 ' \
41
- 'CentOS 6/7, Debian 8/9, or intel-based macOS ' \
48
+ raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 ' \
49
+ 'CentOS 6/7/8, Debian 9/10, or intel-based Cocoa macOS ' \
42
50
  "(missing binary: #{binary})."
43
51
  end
44
52
 
45
- system *$*.unshift(binary)
53
+ exec *$*.unshift(binary)
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
+ version: 0.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zakir Durumeric
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-01 00:00:00.000000000 Z
11
+ date: 2020-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -37,14 +37,12 @@ files:
37
37
  - bin/wkhtmltopdf_centos_6_i386.gz
38
38
  - bin/wkhtmltopdf_centos_7_amd64.gz
39
39
  - bin/wkhtmltopdf_centos_7_i386.gz
40
- - bin/wkhtmltopdf_debian_8_amd64.gz
41
- - bin/wkhtmltopdf_debian_8_i386.gz
40
+ - bin/wkhtmltopdf_centos_8_amd64.gz
41
+ - bin/wkhtmltopdf_debian_10_amd64.gz
42
+ - bin/wkhtmltopdf_debian_10_i386.gz
42
43
  - bin/wkhtmltopdf_debian_9_amd64.gz
43
44
  - bin/wkhtmltopdf_debian_9_i386.gz
44
- - bin/wkhtmltopdf_macos_carbon.gz
45
45
  - bin/wkhtmltopdf_macos_cocoa.gz
46
- - bin/wkhtmltopdf_ubuntu_14.04_amd64.gz
47
- - bin/wkhtmltopdf_ubuntu_14.04_i386.gz
48
46
  - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
49
47
  - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
50
48
  - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz