wkhtmltopdf-installer 0.12.5.3 → 0.12.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ext/extconf.rb +17 -13
- data/lib/wkhtmltopdf_installer/version.rb +7 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 25cf824df75db7116b557a3f40c598c348d8e88a3f8dfb9d57b17d3de7d7eb33
|
4
|
+
data.tar.gz: 3026e78c746cbd3ef2121b4a896bc47de8bef90e9f5b90bb7b6fa7a543e30e8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4791acdaaba2d2cc961a1eaa66bf371a487e1ad5bdd083ee076456b5ba497a207c99e2c589f2c0209d08011904a905cf0ab03d08155d527a76231370154eda
|
7
|
+
data.tar.gz: 1948f2e2290378d34c10ce8d5a82a591235a0508098e86993f41ee0248065c2b0c95d00ab900dea15f29349534f8d2478d78098853b5dac462a8f74f458885e5
|
data/ext/extconf.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'mkmf'
|
2
4
|
require 'tmpdir'
|
3
5
|
require 'ostruct'
|
@@ -5,19 +7,21 @@ require_relative '../lib/wkhtmltopdf_installer'
|
|
5
7
|
|
6
8
|
def probe
|
7
9
|
@probe ||= case RUBY_PLATFORM
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
when /darwin.*/ # both M1 ARM and x86 are supported for macos
|
11
|
+
OpenStruct.new(script: 'macos', platform: 'macos_cocoa', ext: 'pkg')
|
12
|
+
when /x86_64-linux/
|
13
|
+
OpenStruct.new(script: 'linux', platform: 'linux_amd64', ext: 'deb')
|
14
|
+
when /aarch64-linux/
|
15
|
+
OpenStruct.new(script: 'linux', platform: 'linux_arm64', ext: 'deb')
|
16
|
+
when /i[3456]86-linux/
|
17
|
+
OpenStruct.new(script: 'linux', platform: 'linux_i386', ext: 'deb')
|
18
|
+
else
|
19
|
+
raise NotImplementedError, "Unsupported ruby platform #{RUBY_PLATFORM}"
|
16
20
|
end
|
17
21
|
end
|
18
22
|
|
19
23
|
def version
|
20
|
-
WkhtmltopdfInstaller::
|
24
|
+
WkhtmltopdfInstaller::BINARIES_VERSION
|
21
25
|
end
|
22
26
|
|
23
27
|
def makefile_dir
|
@@ -25,12 +29,12 @@ def makefile_dir
|
|
25
29
|
end
|
26
30
|
|
27
31
|
# Some examples:
|
28
|
-
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.
|
29
|
-
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.
|
30
|
-
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.
|
32
|
+
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.linux_amd64.deb"
|
33
|
+
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.linux_i386.deb"
|
34
|
+
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.macos_cocoa.pkg"
|
31
35
|
|
32
36
|
def package_url
|
33
|
-
"https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/#{version}/wkhtmltox-#{version}
|
37
|
+
"https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/#{version}/wkhtmltox-#{version}.#{probe.platform}.#{probe.ext}"
|
34
38
|
end
|
35
39
|
|
36
40
|
# The main Makefile contains settings only. The actual work is done by os-specific Makefile.xxxxx files
|
@@ -1,5 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module WkhtmltopdfInstaller
|
2
|
-
VERSION
|
4
|
+
# VERSION corresponds to wkhtmltopdf's version
|
5
|
+
VERSION = '0.12.6'
|
3
6
|
RELEASE_ITERATION = 3
|
4
7
|
GEM_VERSION = "#{VERSION}.#{RELEASE_ITERATION}"
|
8
|
+
|
9
|
+
# This is a version of binaries from https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases
|
10
|
+
BINARIES_VERSION = "0.12.6-1"
|
5
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wkhtmltopdf-installer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Yartsev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Downloads wkhtmltopdf binary during 'Building native extension...' phase
|
14
14
|
email: vovayartsev@gmail.com
|
@@ -44,8 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
|
-
|
48
|
-
rubygems_version: 2.6.10
|
47
|
+
rubygems_version: 3.0.3
|
49
48
|
signing_key:
|
50
49
|
specification_version: 4
|
51
50
|
summary: Light-weight cross-platform wkhtmltopdf binary installer
|