wkhtmltopdf-binpath 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 +7 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +22 -0
- data/README.md +40 -0
- data/Rakefile +9 -0
- data/lib/version.rb +3 -0
- data/lib/wkhtmltopdf_binary.rb +18 -0
- data/libexec/wkhtmltopdf-darwin-x86 +0 -0
- data/libexec/wkhtmltopdf-linux-x86 +0 -0
- data/libexec/wkhtmltopdf-linux-x86_64 +0 -0
- data/wkhtmltopdf-binary.gemspec +20 -0
- metadata +96 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a70586ca31fa3eb9a5a4d3f387c6c78ee5638d0d
|
4
|
+
data.tar.gz: 67330f784c864b0fb43caf44bd094eb7545b585d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c7bc0dc815e2b8d5c421d0dd5a06e4f126ff76178a77cd647cc03321bcfce600c175e57bf9d84946642f856efd0ca216a194e87497f8ef8fd7384311e37fdc3e
|
7
|
+
data.tar.gz: 11c9f99207c3514d490e10a961d6cb02b7c240bc6b61225b2181c1397714282f8cdec3725a08ddcea5b78402a978f89b5c18f52fa3c4111323ead2f8595a1bbe
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
wkhtmltopdf-binpath (0.12.2.1.pre.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
minitest (5.8.3)
|
10
|
+
rake (10.4.2)
|
11
|
+
|
12
|
+
PLATFORMS
|
13
|
+
ruby
|
14
|
+
|
15
|
+
DEPENDENCIES
|
16
|
+
bundler (~> 1.5)
|
17
|
+
minitest
|
18
|
+
rake
|
19
|
+
wkhtmltopdf-binpath!
|
20
|
+
|
21
|
+
BUNDLED WITH
|
22
|
+
1.11.2
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
[](https://travis-ci.org/mezuka/wkhtmltopdf-binary)
|
2
|
+
|
3
|
+
This gems provides binaries for `wkhtmltopdf` library Qt patched version due to the
|
4
|
+
issue that official repositories contain only WebKit version that requires X server run.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Insert the following into your `Gemfile`:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'wkhtmltopdf-binpath'
|
12
|
+
```
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
|
16
|
+
In order to use it with `pdfkit` gem (for example) configure it in the following way:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'wkhtmltopdf_binary'
|
20
|
+
|
21
|
+
PDFKit.configure do |config|
|
22
|
+
config.wkhtmltopdf = WkhtmltopdfBinary.path
|
23
|
+
end
|
24
|
+
|
25
|
+
```
|
26
|
+
|
27
|
+
## Motivation
|
28
|
+
|
29
|
+
There are a lot of the same gems on [GitHub](https://github.com/search?utf8=%E2%9C%93&q=wkhtmltopdf_binary).
|
30
|
+
Why did we create one more?
|
31
|
+
|
32
|
+
- First of all, this one contains the latest working binaries for all popular operating systems.
|
33
|
+
- Secondly, it doesn't do any magic like others do. If you want to know where the suitable version of binary `wkhtmltopdf` file
|
34
|
+
for your operating system in current project just refer to the method `WkhtmltopdfBinary.path`.
|
35
|
+
- It doesn't break usage the installed `wkhtmltopdf` into your system. What means that it doesn't change executables `bundler`'s paths.
|
36
|
+
- And the last one point that it has tests.
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/lib/version.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
class WkhtmltopdfBinary
|
2
|
+
def self.path
|
3
|
+
@path ||= begin
|
4
|
+
cpu, os = RUBY_PLATFORM.split('-', 2)
|
5
|
+
os = case os
|
6
|
+
when /linux/
|
7
|
+
'linux'
|
8
|
+
when /darwin/
|
9
|
+
'darwin'
|
10
|
+
else
|
11
|
+
fail 'Invalid platform. Must be running linux or intel-based Mac OS.'
|
12
|
+
end
|
13
|
+
folder = File.join(File.dirname(__FILE__), '..', 'libexec')
|
14
|
+
cpu = 'x86' if cpu != 'x86' && !File.file?(File.join(folder, "wkhtmltopdf-#{os}-#{cpu}"))
|
15
|
+
File.expand_path(File.join(folder, "wkhtmltopdf-#{os}-#{cpu}"))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'lib', 'version')
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.platform = Gem::Platform::RUBY
|
5
|
+
s.name = 'wkhtmltopdf-binpath'
|
6
|
+
s.licenses = ['MIT']
|
7
|
+
s.description = 'Provides binaries for WKHTMLTOPDF project in an easily accessible package.'
|
8
|
+
s.homepage = 'https://github.com/mezuka/wkhtmltopdf-binary'
|
9
|
+
s.email = 'mezuka@mezuka.com'
|
10
|
+
s.version = WkhtmltopdfBinary::VERSION
|
11
|
+
s.summary = 'Provides binaries for WKHTMLTOPDF.'
|
12
|
+
s.authors = ['Mezuka LLC']
|
13
|
+
s.required_ruby_version = '>= 1.8.7'
|
14
|
+
s.required_rubygems_version = ">= 1.3.6"
|
15
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
+
|
17
|
+
s.add_development_dependency 'bundler', '~> 1.5'
|
18
|
+
s.add_development_dependency 'rake'
|
19
|
+
s.add_development_dependency 'minitest'
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wkhtmltopdf-binpath
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mezuka LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
56
|
+
email: mezuka@mezuka.com
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- ".travis.yml"
|
62
|
+
- Gemfile
|
63
|
+
- Gemfile.lock
|
64
|
+
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- lib/version.rb
|
67
|
+
- lib/wkhtmltopdf_binary.rb
|
68
|
+
- libexec/wkhtmltopdf-darwin-x86
|
69
|
+
- libexec/wkhtmltopdf-linux-x86
|
70
|
+
- libexec/wkhtmltopdf-linux-x86_64
|
71
|
+
- wkhtmltopdf-binary.gemspec
|
72
|
+
homepage: https://github.com/mezuka/wkhtmltopdf-binary
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.8.7
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.3.6
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project:
|
92
|
+
rubygems_version: 2.5.1
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: Provides binaries for WKHTMLTOPDF.
|
96
|
+
test_files: []
|