wkhtmltox-rails 0.12.4.rc.pre.1 → 0.12.4

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: 314554d4c9cc3f472b1910f127731aa5278b12a8
4
- data.tar.gz: bb0bb7cc1224faf81ba7bae4ea00ced336c4cede
3
+ metadata.gz: d56600e517774f27b76d5972d9cec96d9b433283
4
+ data.tar.gz: d9c5996c829fe0f4b71dc4661c83b120e2de001d
5
5
  SHA512:
6
- metadata.gz: d42bdc3abb814dcafdb35cbeb58528765f93b091524edc32419fd2d99a8812cdf072c8a24d0d070a822dcebe8bb3de9af86b5d93d1975393f47b42ac81b036d8
7
- data.tar.gz: 63db42dbfa2a8565a0481d091ab64661b40c7b37be6e6ecc6daf952dd8a3d93205dd8432e2872fb3385e25e21b3c1fd76c77bbaa7e916ef276fdfd53a419c546
6
+ metadata.gz: 8cf991a713c73ef280c17d0f314db4f360cae55a42945a778e9412b6a2b13b15f5c7edf14763347c75b00f75e315ab594fe0da664f084c38182f584da888485e
7
+ data.tar.gz: 801f9c565df497034766622058fb15539cd1cdd7513539b740ea13cc3f6bd65411d158b73646111f9b94af4013635e9a8c0725d6be6ab49f9eed6adfb4aedffd
data/bin/wkhtmltoimage CHANGED
@@ -1,6 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ arch = case RUBY_PLATFORM
4
+ when /64.*linux/
5
+ 'linux_amd64'
6
+ when /darwin/
7
+ 'darwin_x86_64'
8
+ else
9
+ raise "Invalid platform. Must be running linux or intel-based Mac OS."
10
+ end
11
+
3
12
  args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
4
- cmd = File.expand_path "#{File.dirname(__FILE__)}/../exec/wkhtmltoimage-#{WkhtmltoxRails.arch}"
13
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltoimage-#{arch}"
5
14
 
6
15
  exec "#{cmd} #{args.join(' ')}"
data/bin/wkhtmltopdf CHANGED
@@ -1,6 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ arch = case RUBY_PLATFORM
4
+ when /64.*linux/
5
+ 'linux_amd64'
6
+ when /darwin/
7
+ 'darwin_x86_64'
8
+ else
9
+ raise "Invalid platform. Must be running linux or intel-based Mac OS."
10
+ end
11
+
3
12
  args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
4
- cmd = File.expand_path "#{File.dirname(__FILE__)}/../exec/wkhtmltopdf-#{WkhtmltoxRails.arch}"
13
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltopdf-#{arch}"
5
14
 
6
15
  exec "#{cmd} #{args.join(' ')}"
@@ -1,12 +1,3 @@
1
1
  module WkhtmltoxRails
2
- def self.arch
3
- case RUBY_PLATFORM
4
- when /64.*linux/
5
- 'linux_amd64'
6
- when /darwin/
7
- 'darwin_x86_64'
8
- else
9
- raise "Invalid platform. Must be running linux or intel-based Mac OS."
10
- end
11
- end
2
+
12
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wkhtmltox-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4.rc.pre.1
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - github.com/pallymore