wkhtmltopdf-installer 0.12.5.3 → 0.12.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61f3fcd482279bd4f7f61753bc81398ccb24591d
4
- data.tar.gz: 7adf937d5f19a8037c89bf2bbc1687b97e12e233
3
+ metadata.gz: 178279b019c8dc96f99326c315c1830208ab3857
4
+ data.tar.gz: 7946b1d75ffdb50e8d1db84ae5b8958921b66fe8
5
5
  SHA512:
6
- metadata.gz: f96f99e646c3c94628c7e1cbf742509c8d52f7628305e33d60da90ae26913b5593b63989d24ff879779f97b270bc2798f60c454b1ed6806a0d6844aeda927666
7
- data.tar.gz: 39b28b2df27ae2c3643671c7ad8ed875c54e3d38ea6ab3cba390c7cf1d8994ead4345b9c7dad63585f2f74ecfbac30c87a7cc46517e869fea7cba14798eb2a47
6
+ metadata.gz: 37a50612b94ca216e2afcc4e62af42b80783168ef262477b347d4b176f38ca67b84df3c0512e7c7569349165752be2c3d14a714a4379314b0095d426c3f2af40
7
+ data.tar.gz: 37d21554f457de8ce6856a4c2d49a52f7967d7c58d4ca96c01fcbb1c1f6282fb5a5400dec85084057aaf073d9e7c871630f99a1904c564963c9da5b3041d84ef
@@ -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,19 @@ require_relative '../lib/wkhtmltopdf_installer'
5
7
 
6
8
  def probe
7
9
  @probe ||= case RUBY_PLATFORM
8
- when /x86_64-darwin.*/
9
- OpenStruct.new(script: 'macos', platform: 'macos_cocoa', ext: 'pkg')
10
- when /x86_64-linux/
11
- OpenStruct.new(script: 'linux', platform: 'linux_amd64', ext: 'deb')
12
- when /i[3456]86-linux/
13
- OpenStruct.new(script: 'linux', platform: 'linux_i386', ext: 'deb')
14
- else
15
- raise NotImplementedError "Unsupported ruby platform #{RUBY_PLATFORM}"
10
+ when /x86_64-darwin.*/
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 /i[3456]86-linux/
15
+ OpenStruct.new(script: 'linux', platform: 'linux_i386', ext: 'deb')
16
+ else
17
+ raise NotImplementedError "Unsupported ruby platform #{RUBY_PLATFORM}"
16
18
  end
17
19
  end
18
20
 
19
21
  def version
20
- WkhtmltopdfInstaller::GEM_VERSION
22
+ WkhtmltopdfInstaller::BINARIES_VERSION
21
23
  end
22
24
 
23
25
  def makefile_dir
@@ -25,22 +27,22 @@ def makefile_dir
25
27
  end
26
28
 
27
29
  # Some examples:
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"
30
+ # "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.linux_amd64.deb"
31
+ # "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.linux_i386.deb"
32
+ # "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.macos_cocoa.pkg"
31
33
 
32
34
  def package_url
33
- "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/#{version}/wkhtmltox-#{version}-#{probe.platform}.#{probe.ext}"
35
+ "https://github.com/vovayartsev/wkhtmltopdf-installer-ruby/releases/download/#{version}/wkhtmltox-#{version}.#{probe.platform}.#{probe.ext}"
34
36
  end
35
37
 
36
38
  # The main Makefile contains settings only. The actual work is done by os-specific Makefile.xxxxx files
37
- File.write "#{makefile_dir}/Makefile", <<-EOF
38
- URL = #{package_url}
39
- LIBEXEC = #{WkhtmltopdfInstaller.libexec_dir}
40
- TARGET = #{WkhtmltopdfInstaller.wkhtmltopdf_path}
41
- TMPDIR = #{Dir.mktmpdir}
42
- all: unpack
43
- install: copy clean
44
- include Makefile.#{probe.script}
45
- include Makefile.common
39
+ File.write "#{makefile_dir}/Makefile", <<~EOF
40
+ URL = #{package_url}
41
+ LIBEXEC = #{WkhtmltopdfInstaller.libexec_dir}
42
+ TARGET = #{WkhtmltopdfInstaller.wkhtmltopdf_path}
43
+ TMPDIR = #{Dir.mktmpdir}
44
+ all: unpack
45
+ install: copy clean
46
+ include Makefile.#{probe.script}
47
+ include Makefile.common
46
48
  EOF
@@ -1,5 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module WkhtmltopdfInstaller
2
- VERSION = '0.12.5'.freeze
3
- RELEASE_ITERATION = 3
4
+ # VERSION corresponds to wkhtmltopdf's version
5
+ VERSION = '0.12.6'
6
+ RELEASE_ITERATION = 1
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.5.3
4
+ version: 0.12.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Yartsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
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
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  version: '0'
46
46
  requirements: []
47
47
  rubyforge_project:
48
- rubygems_version: 2.6.10
48
+ rubygems_version: 2.6.14.4
49
49
  signing_key:
50
50
  specification_version: 4
51
51
  summary: Light-weight cross-platform wkhtmltopdf binary installer