wkhtmltopdf-binary-macos-stretch 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8f950cb8a06904851b29b7e53c4f1f8e8fce3288e2daf36322d64a6609192fc2
4
+ data.tar.gz: d2b8d1e8537ca6b19b9a83afd973cad1ab3243701a041b8f4a3526a168b83d55
5
+ SHA512:
6
+ metadata.gz: 87fba761e83fe20402ae93500bffab8c2aad4244e685892162d4e916839d4c3d6aeb55902a4755361da738b46c3513a213f7e7e80332b73e0d9d388e3d020eda
7
+ data.tar.gz: 9c96ce870c8cf6f1d96164998c5bd4196ddf6cbdf6c81decc4971515c1cb462cd0184888cc8ca3c3f5c581aa69bc142f2203ab8fda27ced4e6b1d7b887e1c6ed
@@ -0,0 +1,39 @@
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
+ suffix = case RbConfig::CONFIG['host_os']
14
+ when /linux/
15
+ os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
16
+
17
+ architecture = 'amd64' if RbConfig::CONFIG['host_cpu'] == 'x86_64'
18
+
19
+ "#{os}_#{architecture}"
20
+ when /darwin/
21
+ 'macos_cocoa' if RbConfig::CONFIG['host_cpu'] == 'x86_64'
22
+ else
23
+ 'unknown'
24
+ end
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 9 or intel-based macOS' \
36
+ "(missing binary: #{binary})."
37
+ end
38
+
39
+ system *$*.unshift(binary)
File without changes
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf-binary-macos-stretch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.5
5
+ platform: ruby
6
+ authors:
7
+ - Zakir Durumeric
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-07-18 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
+ description:
28
+ email: zakird@gmail.com
29
+ executables:
30
+ - wkhtmltopdf
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - bin/wkhtmltopdf
35
+ - bin/wkhtmltopdf-binary.rb
36
+ - bin/wkhtmltopdf_debian_9_amd64.gz
37
+ - bin/wkhtmltopdf_macos_cocoa.gz
38
+ homepage:
39
+ licenses:
40
+ - Apache-2.0
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - "."
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubygems_version: 3.0.4
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: Provides binaries (macos and stretch) for WKHTMLTOPDF project in an easily
61
+ accessible package
62
+ test_files: []