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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69d18bdfab313e109039db4fd60c885ad35d6698
4
- data.tar.gz: 4ff777332bb91e649b3722b0168c0de49f540786
3
+ metadata.gz: 61f3fcd482279bd4f7f61753bc81398ccb24591d
4
+ data.tar.gz: 7adf937d5f19a8037c89bf2bbc1687b97e12e233
5
5
  SHA512:
6
- metadata.gz: 3dddec21bbf437b4aabedc791df495e3d30b5a19226e7ea28bbd81537ac41b882c6ef693f91f8f17f12edc2ebd63ebf5532aa34077a97f02406a4c998e4f30d6
7
- data.tar.gz: 15fee36423a83f6bd2795729127d335b34ef160e9d9ae682a7c59f43464bf34e77b8ae9d4e5eb492bdd305555b8e46d147d5c30a3fad17885cdcea3660f32790
6
+ metadata.gz: f96f99e646c3c94628c7e1cbf742509c8d52f7628305e33d60da90ae26913b5593b63989d24ff879779f97b270bc2798f60c454b1ed6806a0d6844aeda927666
7
+ data.tar.gz: 39b28b2df27ae2c3643671c7ad8ed875c54e3d38ea6ab3cba390c7cf1d8994ead4345b9c7dad63585f2f74ecfbac30c87a7cc46517e869fea7cba14798eb2a47
@@ -1,5 +1,6 @@
1
- DOWNLOADED = wkhtmltox.tar.xz
2
- BINARY = $(TMPDIR)/wkhtmltox/bin/wkhtmltopdf
1
+ DOWNLOADED = $(TMPDIR)/wkhtmltox.deb
2
+ BINARY = $(TMPDIR)/usr/local/bin/wkhtmltopdf
3
3
 
4
4
  unpack: tmp $(DOWNLOADED)
5
- tar -C $(TMPDIR) -xf $(DOWNLOADED)
5
+ cd $(TMPDIR) && ar -x $(DOWNLOADED) && tar -xf data.tar.xz
6
+
@@ -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/app.tar.xz
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)
@@ -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: 'osx-cocoa-x86-64', ext: 'pkg')
9
+ OpenStruct.new(script: 'macos', platform: 'macos_cocoa', ext: 'pkg')
10
10
  when /x86_64-linux/
11
- OpenStruct.new(script: 'linux', platform: 'linux-generic-amd64', ext: 'tar.xz')
11
+ OpenStruct.new(script: 'linux', platform: 'linux_amd64', ext: 'deb')
12
12
  when /i[3456]86-linux/
13
- OpenStruct.new(script: 'linux', platform: 'linux-generic-i386', ext: 'tar.xz')
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::VERSION
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/wkhtmltopdf/wkhtmltopdf/releases/download/#{version}/wkhtmltox-#{version}_osx-cocoa-x86-64.pkg"
29
- # "https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/#{version}/wkhtmltox-#{version}_linux-generic-amd64.tar.xz"
30
- # "https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/#{version}/wkhtmltox-#{version}_linux-generic-i386.tar.xz"
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
- # major_version = version.gsub(/^(\d+\.\d+).*$/, '\1')
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
@@ -1,5 +1,5 @@
1
1
  module WkhtmltopdfInstaller
2
- VERSION = '0.12.4'.freeze
3
- RELEASE_ITERATION = 2
2
+ VERSION = '0.12.5'.freeze
3
+ RELEASE_ITERATION = 3
4
4
  GEM_VERSION = "#{VERSION}.#{RELEASE_ITERATION}"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wkhtmltopdf-installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4.2
4
+ version: 0.12.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Yartsev