wkhtmltopdf-binary 0.12.6.2 → 0.12.6.3

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: ac12b7190586aa6bf9aee87cc26c9458c8093f6ea85b625f7ada71131b9ed89f
4
- data.tar.gz: d1b718cd22fbd2394d2b8477577007175b7bb8c75f9bedfc355c9222b576e1bf
3
+ metadata.gz: 2f9ce49d355e331a8b271bc9f6e02c4c483def60f4ea7e75334a1fd1208ca5df
4
+ data.tar.gz: 777a4df024ab9af85ce523a9b0167c493916d02a9d831b840d24c6c086a7472b
5
5
  SHA512:
6
- metadata.gz: 89fb6b3b0123539565ba5a1e1bc53582d2a04d5a5258eb4f110826bb490d0137a2f0a7d93bac2f2e279e31a5573d554ba0f5af8117b827c021e06c5020d96fb3
7
- data.tar.gz: 2538ab4e943b9386417619f0fd4c42c7d17ebfc0458a1d5561f817f1f9e9a332a743c97e97c5c7b19ec9b25393bf60e623f3a5e9663182801278b1157081630f
6
+ metadata.gz: 2eb723694b5ea6bd87d4c293cd1f2a37ea71b47dbbfaa68e6d4ef509b03d4020b3528f45d4ceaaade014f48d65c57a7fa7256933bfafcfc316e477032c3f3f15
7
+ data.tar.gz: e2b703f0a1e080f704f4294b56530439fc7ca860ae2f1c8d0ba2afac0b293630cd8e1cf3354bb89fd6ba93f62d23ae4e4c16c69f3d24f92094da5f2083b21f12
@@ -32,6 +32,9 @@ suffix = case RbConfig::CONFIG['host_os']
32
32
  os_based_on_debian_9 = /deepin/.match?(os)
33
33
  os = 'debian_9' if os_based_on_debian_9
34
34
 
35
+ os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')
36
+ os = 'archlinux' if os_based_on_archlinux
37
+
35
38
  architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
36
39
 
37
40
  "#{os}_#{architecture}"
@@ -40,6 +43,8 @@ suffix = case RbConfig::CONFIG['host_os']
40
43
  else
41
44
  'unknown'
42
45
  end
46
+
47
+ suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
43
48
 
44
49
  binary = "#{__FILE__}_#{suffix}"
45
50
 
@@ -51,7 +56,7 @@ end
51
56
 
52
57
  unless File.exist? binary
53
58
  raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 ' \
54
- 'CentOS 6/7/8, Debian 9/10, or intel-based Cocoa macOS ' \
59
+ 'CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa macOS ' \
55
60
  "(missing binary: #{binary})."
56
61
  end
57
62
 
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.6.2
4
+ version: 0.12.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zakir Durumeric
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-29 00:00:00.000000000 Z
11
+ date: 2020-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -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