wkhtmltopdf-binary-ng 0.12.6.6

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: aff3eccbacee3e2a9cb61434993022d530120a4617d85cb74a67814eeb3b7701
4
+ data.tar.gz: eae080167dd72244e7100816e7e11ec522aa826d0cd82fd555f1ed161a93c880
5
+ SHA512:
6
+ metadata.gz: 41169fdc0e39b4287268f11b4039320d50a216750bc054ce6a87ee06df9f0fc2f30a0dbe51dcbfcaf9cc8282cfb7f4e85fca937bb202bde46625e1bbfdb85c21
7
+ data.tar.gz: 9920a47dc2562c827dc60d23db18bdfc961eec40db083f5b863f7af9d30749b235f157462fd8d414c99d7603ca2ad6510b778c914a1e1f3512724b163e27b756
data/bin/wkhtmltopdf ADDED
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ###
4
+ # wkhtmltopdf_binary_gem Copyright 2013 The University of Iowa
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
+ # use this file except in compliance with the License. You may obtain a copy
8
+ # of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ require 'rbconfig'
11
+ require 'zlib'
12
+
13
+ def architecture
14
+ case RbConfig::CONFIG['host_cpu']
15
+ when *%w[arm64 aarch64 arch64]
16
+ 'arm64'
17
+ when 'x86_64'
18
+ 'amd64'
19
+ else
20
+ 'i386'
21
+ end
22
+ end
23
+
24
+ suffix = case RbConfig::CONFIG['host_os']
25
+ when /linux/
26
+ os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
27
+
28
+ os = 'ubuntu_16.04' if os.start_with?('ubuntu_16.') ||
29
+ os.start_with?('ubuntu_17.') ||
30
+ os.start_with?('linuxmint_18.')
31
+
32
+ os = 'ubuntu_18.04' if os.start_with?('ubuntu_18.') ||
33
+ os.start_with?('ubuntu_19.') ||
34
+ os.start_with?('elementary') ||
35
+ os.start_with?('linuxmint_19.') ||
36
+ os.start_with?('pop') ||
37
+ os.start_with?('zorin')
38
+
39
+ os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
40
+ os.start_with?('ubuntu_21.') ||
41
+ os.start_with?('linuxmint_20.')
42
+
43
+ os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
44
+ os.start_with?('linuxmint_21.')
45
+
46
+ os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
47
+ (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
48
+
49
+ os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
50
+ os.start_with?('rhel_7.')
51
+
52
+ os = 'centos_8' if os.start_with?('rocky_8') || os.start_with?('rhel_8.')
53
+
54
+ os_based_on_debian_9 = os.start_with?('debian_9') ||
55
+ os.start_with?('deepin')
56
+ os = 'debian_9' if os_based_on_debian_9
57
+
58
+ os = 'debian_10' if !os_based_on_debian_9 && os.start_with?('debian_10')
59
+
60
+ os = 'debian_11' if !os_based_on_debian_9 && os.start_with?('debian_11')
61
+
62
+ os = 'debian_12' if !os_based_on_debian_9 && os.start_with?('debian_12')
63
+
64
+ os = 'archlinux' if os.start_with?('arch_') ||
65
+ os.start_with?('manjaro_')
66
+
67
+ "#{os}_#{architecture}"
68
+ when /darwin/
69
+ 'macos_cocoa'
70
+ else
71
+ 'unknown'
72
+ end
73
+
74
+ suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
75
+
76
+ binary = "#{__FILE__}_#{suffix}"
77
+
78
+ if File.exist?("#{binary}.gz") && !File.exist?(binary)
79
+ File.open binary, 'wb', 0o755 do |file|
80
+ Zlib::GzipReader.open("#{binary}.gz") { |gzip| file << gzip.read }
81
+ end
82
+ end
83
+
84
+ unless File.exist? binary
85
+ raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, ' \
86
+ 'CentOS 6/7/8, Debian 9/10/11/12, Archlinux amd64, Debian 9/10/11/12 arm64, or Intel-based Cocoa macOS ' \
87
+ "(missing binary: #{binary})."
88
+ end
89
+
90
+ exec *$*.unshift(binary)
File without changes
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf-binary-ng
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.6.6
5
+ platform: ruby
6
+ authors:
7
+ - Matthias Van Woensel
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-12-08 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'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email: matthias@vanwoensel.info
43
+ executables:
44
+ - wkhtmltopdf
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - bin/wkhtmltopdf
49
+ - bin/wkhtmltopdf-binary.rb
50
+ - bin/wkhtmltopdf_archlinux_amd64.gz
51
+ - bin/wkhtmltopdf_centos_6_amd64.gz
52
+ - bin/wkhtmltopdf_centos_6_i386.gz
53
+ - bin/wkhtmltopdf_centos_7_amd64.gz
54
+ - bin/wkhtmltopdf_centos_7_i386.gz
55
+ - bin/wkhtmltopdf_centos_8_amd64.gz
56
+ - bin/wkhtmltopdf_debian_10_amd64.gz
57
+ - bin/wkhtmltopdf_debian_10_arm64.gz
58
+ - bin/wkhtmltopdf_debian_10_i386.gz
59
+ - bin/wkhtmltopdf_debian_11_amd64.gz
60
+ - bin/wkhtmltopdf_debian_11_arm64.gz
61
+ - bin/wkhtmltopdf_debian_11_i386.gz
62
+ - bin/wkhtmltopdf_debian_12_amd64.gz
63
+ - bin/wkhtmltopdf_debian_12_arm64
64
+ - bin/wkhtmltopdf_debian_12_arm64.gz
65
+ - bin/wkhtmltopdf_debian_12_i386.gz
66
+ - bin/wkhtmltopdf_debian_9_amd64.gz
67
+ - bin/wkhtmltopdf_debian_9_arm64.gz
68
+ - bin/wkhtmltopdf_debian_9_i386.gz
69
+ - bin/wkhtmltopdf_macos_cocoa.gz
70
+ - bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
71
+ - bin/wkhtmltopdf_ubuntu_16.04_i386.gz
72
+ - bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
73
+ - bin/wkhtmltopdf_ubuntu_18.04_i386.gz
74
+ - bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
75
+ - bin/wkhtmltopdf_ubuntu_22.04_amd64.gz
76
+ homepage:
77
+ licenses:
78
+ - Apache-2.0
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - "."
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubygems_version: 3.3.5
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
99
+ test_files: []