wkhtmltopdf-installer 0.12.4.2 → 0.12.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/Makefile.linux +4 -3
- data/ext/Makefile.macos +2 -2
- data/ext/extconf.rb +8 -9
- data/lib/wkhtmltopdf_installer/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61f3fcd482279bd4f7f61753bc81398ccb24591d
|
4
|
+
data.tar.gz: 7adf937d5f19a8037c89bf2bbc1687b97e12e233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f96f99e646c3c94628c7e1cbf742509c8d52f7628305e33d60da90ae26913b5593b63989d24ff879779f97b270bc2798f60c454b1ed6806a0d6844aeda927666
|
7
|
+
data.tar.gz: 39b28b2df27ae2c3643671c7ad8ed875c54e3d38ea6ab3cba390c7cf1d8994ead4345b9c7dad63585f2f74ecfbac30c87a7cc46517e869fea7cba14798eb2a47
|
data/ext/Makefile.linux
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
DOWNLOADED = wkhtmltox.
|
2
|
-
BINARY = $(TMPDIR)/
|
1
|
+
DOWNLOADED = $(TMPDIR)/wkhtmltox.deb
|
2
|
+
BINARY = $(TMPDIR)/usr/local/bin/wkhtmltopdf
|
3
3
|
|
4
4
|
unpack: tmp $(DOWNLOADED)
|
5
|
-
|
5
|
+
cd $(TMPDIR) && ar -x $(DOWNLOADED) && tar -xf data.tar.xz
|
6
|
+
|
data/ext/Makefile.macos
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
DOWNLOADED = wkhtmltox.pkg
|
1
|
+
DOWNLOADED = $(TMPDIR)/wkhtmltox.pkg
|
2
2
|
BINARY = $(TMPDIR)/bin/wkhtmltopdf
|
3
3
|
|
4
4
|
pkg_content = $(TMPDIR)/content
|
5
5
|
payload = $(pkg_content)/Payload
|
6
|
-
app_tar_xz = $(TMPDIR)/usr/local/share/wkhtmltox-installer/
|
6
|
+
app_tar_xz = $(TMPDIR)/usr/local/share/wkhtmltox-installer/wkhtmltox.tar.gz
|
7
7
|
|
8
8
|
unpack: tmp $(DOWNLOADED)
|
9
9
|
/usr/sbin/pkgutil --expand $(DOWNLOADED) $(pkg_content)
|
data/ext/extconf.rb
CHANGED
@@ -6,18 +6,18 @@ require_relative '../lib/wkhtmltopdf_installer'
|
|
6
6
|
def probe
|
7
7
|
@probe ||= case RUBY_PLATFORM
|
8
8
|
when /x86_64-darwin.*/
|
9
|
-
OpenStruct.new(script: 'macos', platform: '
|
9
|
+
OpenStruct.new(script: 'macos', platform: 'macos_cocoa', ext: 'pkg')
|
10
10
|
when /x86_64-linux/
|
11
|
-
OpenStruct.new(script: 'linux', platform: '
|
11
|
+
OpenStruct.new(script: 'linux', platform: 'linux_amd64', ext: 'deb')
|
12
12
|
when /i[3456]86-linux/
|
13
|
-
OpenStruct.new(script: 'linux', platform: '
|
13
|
+
OpenStruct.new(script: 'linux', platform: 'linux_i386', ext: 'deb')
|
14
14
|
else
|
15
15
|
raise NotImplementedError "Unsupported ruby platform #{RUBY_PLATFORM}"
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
def version
|
20
|
-
WkhtmltopdfInstaller::
|
20
|
+
WkhtmltopdfInstaller::GEM_VERSION
|
21
21
|
end
|
22
22
|
|
23
23
|
def makefile_dir
|
@@ -25,13 +25,12 @@ def makefile_dir
|
|
25
25
|
end
|
26
26
|
|
27
27
|
# Some examples:
|
28
|
-
# "https://github.com/
|
29
|
-
# "https://github.com/
|
30
|
-
# "https://github.com/
|
28
|
+
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.5.2/wkhtmltox-0.12.5.2-linux_amd64.deb"
|
29
|
+
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.5.2/wkhtmltox-0.12.5.2-linux_i386.deb"
|
30
|
+
# "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.5.2/wkhtmltox-0.12.5.2-macos_cocoa.pkg"
|
31
31
|
|
32
32
|
def package_url
|
33
|
-
|
34
|
-
"https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/#{version}/wkhtmltox-#{version}_#{probe.platform}.#{probe.ext}"
|
33
|
+
"https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/#{version}/wkhtmltox-#{version}-#{probe.platform}.#{probe.ext}"
|
35
34
|
end
|
36
35
|
|
37
36
|
# The main Makefile contains settings only. The actual work is done by os-specific Makefile.xxxxx files
|