wkhtmltox-rails 0.12.4.rc.pre.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 314554d4c9cc3f472b1910f127731aa5278b12a8
4
+ data.tar.gz: bb0bb7cc1224faf81ba7bae4ea00ced336c4cede
5
+ SHA512:
6
+ metadata.gz: d42bdc3abb814dcafdb35cbeb58528765f93b091524edc32419fd2d99a8812cdf072c8a24d0d070a822dcebe8bb3de9af86b5d93d1975393f47b42ac81b036d8
7
+ data.tar.gz: 63db42dbfa2a8565a0481d091ab64661b40c7b37be6e6ecc6daf952dd8a3d93205dd8432e2872fb3385e25e21b3c1fd76c77bbaa7e916ef276fdfd53a419c546
data/bin/wkhtmltoimage ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
4
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../exec/wkhtmltoimage-#{WkhtmltoxRails.arch}"
5
+
6
+ exec "#{cmd} #{args.join(' ')}"
data/bin/wkhtmltopdf ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
4
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../exec/wkhtmltopdf-#{WkhtmltoxRails.arch}"
5
+
6
+ exec "#{cmd} #{args.join(' ')}"
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,12 @@
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
12
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltox-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.4.rc.pre.1
5
+ platform: ruby
6
+ authors:
7
+ - github.com/pallymore
8
+ - github.com/terraplane
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-12-01 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Includes wkthmltopdf binaires for Macos and Ubuntu 14 (both 64bit)
15
+ email: mail@example.com
16
+ executables:
17
+ - wkhtmltopdf
18
+ - wkhtmltoimage
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - bin/wkhtmltoimage
23
+ - bin/wkhtmltopdf
24
+ - exec/wkhtmltoimage_darwin_x86_64
25
+ - exec/wkhtmltoimage_linux_amd64
26
+ - exec/wkhtmltopdf_darwin_x86_64
27
+ - exec/wkhtmltopdf_linux_amd64
28
+ - lib/wkhtmltox_rails.rb
29
+ homepage: https://github.com/terraplane/wkhtmltox-rails
30
+ licenses:
31
+ - MIT
32
+ metadata: {}
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 1.8.7
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.3.6
47
+ requirements: []
48
+ rubyforge_project:
49
+ rubygems_version: 2.5.1
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
53
+ - forked from pallymore/wkhtmltopdf-binary-edge
54
+ test_files: []