ajb-wkhtmltopdf-binary 0.0.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: 42146ddd8d8a43e30d01ff2f1b309e6ab17439e7
4
+ data.tar.gz: a44feb99daa7da92724183fef6131ad8f3efc5a2
5
+ SHA512:
6
+ metadata.gz: 923b448008b3b2e0b52d22b69b3624e494ee0351d27aeca9cc4b53e1ae76785f15548fbefcb65c7fd26a1a3c8ee0ccea23756e9deffab620e8db81ff808d2c49
7
+ data.tar.gz: c7ba0813e9be027e38c83ffb86931e64df3a5c0926b163d95f12fbadd98e7c239d94e3868ec441d5eb9a173fa611d75bd70cfb50b12c311258c4070cb8cc9a00
data/bin/wkhtmltopdf ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ###
4
+ # wkhtmltopdf_binary_gem Copyright 2013 The University of Iowa
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
+ # use this file except in compliance with the License. You may obtain a copy
8
+ # of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ require 'rbconfig'
11
+
12
+ if RbConfig::CONFIG['host_os'] =~ /linux/
13
+ executable = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'wkhtmltopdf_linux_amd64' : 'wkhtmltopdf_linux_x86'
14
+ elsif RbConfig::CONFIG['host_os'] =~ /darwin/
15
+ executable = 'wkhtmltopdf_darwin_x86'
16
+ else
17
+ raise "Invalid platform. Must be running linux or intel-based Mac OS."
18
+ end
19
+
20
+ executable = File.join(File.dirname(__FILE__), executable)
21
+ system *$*.unshift(executable)
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ajb-wkhtmltopdf-binary
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Zakir Durumeric
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: zakird@gmail.com
15
+ executables:
16
+ - wkhtmltopdf
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/wkhtmltopdf
21
+ - bin/wkhtmltopdf_darwin_x86
22
+ - bin/wkhtmltopdf_linux_amd64
23
+ homepage:
24
+ licenses: []
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - "."
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.2.2
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
46
+ test_files: []
47
+ has_rdoc: false