divided-wkhtmltopdf 0.1
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 +7 -0
- data/bin/wkhtmltopdf +39 -0
- data/bin/wkhtmltopdf-binary.rb +0 -0
- data/bin/wkhtmltopdf_debian_10_amd64.gz +0 -0
- data/bin/wkhtmltopdf_macos_cocoa.gz +0 -0
- metadata +75 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2fc3a968ea1ace1ed13c087a6d7796bebf2bdcb8ba0f344a5980b30528d72c9c
|
|
4
|
+
data.tar.gz: b25ee64d46b74eb07e1e23d81f542f1ec66fcf846d2400f6988c5ea1f1e7dbe0
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 057423cf722ab4fbca08c41fba2f20c32b4b405e5b00d27e78d484d3f41b6b8ced369f7b54ee23c1b78d5776bf399e2879b43d2743cd2860a05cf6df5c2ceb18
|
|
7
|
+
data.tar.gz: 9e534661722dec8726f25756bf997a7bccbe2dc5cbe210de346b728d1639bc35c37eba065b83e0bcbf00e11ed0eda51e09ed63eced1d2644801d4b171e8c1d39
|
data/bin/wkhtmltopdf
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# frozen_string_literal: true
|
|
4
|
+
|
|
5
|
+
###
|
|
6
|
+
# wkhtmltopdf_binary_gem Copyright 2013 The University of Iowa
|
|
7
|
+
#
|
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
9
|
+
# use this file except in compliance with the License. You may obtain a copy
|
|
10
|
+
# of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
require 'rbconfig'
|
|
13
|
+
require 'zlib'
|
|
14
|
+
|
|
15
|
+
suffix = case RbConfig::CONFIG['host_os']
|
|
16
|
+
when /linux/
|
|
17
|
+
'debian_10_amd64'
|
|
18
|
+
when /darwin/
|
|
19
|
+
'macos_cocoa'
|
|
20
|
+
else
|
|
21
|
+
'unknown'
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
|
|
25
|
+
|
|
26
|
+
binary = "#{__FILE__}_#{suffix}"
|
|
27
|
+
|
|
28
|
+
if File.exist?("#{binary}.gz") && !File.exist?(binary)
|
|
29
|
+
File.open binary, 'wb', 0o755 do |file|
|
|
30
|
+
Zlib::GzipReader.open("#{binary}.gz") { |gzip| file << gzip.read }
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
unless File.exist? binary
|
|
35
|
+
raise 'Invalid platform, must be running on Debian 10, or macOS' \
|
|
36
|
+
"(missing binary: #{binary})."
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
exec *$*.unshift(binary)
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
metadata
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: divided-wkhtmltopdf
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '0.1'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Kirill Korbut
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2023-05-04 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: korbyt.kirill@gmail.com
|
|
43
|
+
executables:
|
|
44
|
+
- wkhtmltopdf
|
|
45
|
+
extensions: []
|
|
46
|
+
extra_rdoc_files: []
|
|
47
|
+
files:
|
|
48
|
+
- bin/wkhtmltopdf
|
|
49
|
+
- bin/wkhtmltopdf-binary.rb
|
|
50
|
+
- bin/wkhtmltopdf_debian_10_amd64.gz
|
|
51
|
+
- bin/wkhtmltopdf_macos_cocoa.gz
|
|
52
|
+
homepage:
|
|
53
|
+
licenses:
|
|
54
|
+
- Apache-2.0
|
|
55
|
+
metadata: {}
|
|
56
|
+
post_install_message:
|
|
57
|
+
rdoc_options: []
|
|
58
|
+
require_paths:
|
|
59
|
+
- "."
|
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
61
|
+
requirements:
|
|
62
|
+
- - ">="
|
|
63
|
+
- !ruby/object:Gem::Version
|
|
64
|
+
version: 1.8.7
|
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
requirements: []
|
|
71
|
+
rubygems_version: 3.3.3
|
|
72
|
+
signing_key:
|
|
73
|
+
specification_version: 4
|
|
74
|
+
summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
|
75
|
+
test_files: []
|