wkhtmltox 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +1 -0
- data/bin/wkhtmltoimage +15 -0
- data/bin/wkhtmltopdf +15 -0
- data/lib/wkhtmltox.rb +1 -0
- data/lib/wkhtmltox/version.rb +3 -0
- data/libexec/wkhtmltoimage-linux-amd64 +0 -0
- data/libexec/wkhtmltoimage-linux-x86 +0 -0
- data/libexec/wkhtmltopdf-linux-amd64 +0 -0
- data/libexec/wkhtmltopdf-linux-x86 +0 -0
- data/wkhtmltox.gemspec +23 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 30a33e7c655a006d41b5f6aca78a15244f46ed02
|
4
|
+
data.tar.gz: 1c716976fc2d5abde44500cb1f438164ebdc1544
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4d22aaf418f73d51bfc99f16cffce4b9d3531dbde71eac1a0575cf1a2d74877616445435cf621195e63d5f2bd23ca3eaf7919651e9988e57ff624ef4a62dddd0
|
7
|
+
data.tar.gz: a5758452447d88ec94ffb6810bb3fda79701d365123a45bfdbc470fc8534ef34dade8fdaac952a549a321ed275147a1176ad36c9f483faf96afe28e233191afe
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 glebtv
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Wkhtml
|
2
|
+
|
3
|
+
This is an update of code from https://github.com/insphire/wkhtmltopdf-binary
|
4
|
+
|
5
|
+
It also bunles wkhtmltoimage
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
gem 'wkhtmltox'
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install wkhtmltox
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( http://github.com/glebtv/wkhtmltox/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/wkhtmltoimage
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
arch = case RUBY_PLATFORM
|
4
|
+
when /64.*linux/
|
5
|
+
'linux-amd64'
|
6
|
+
when /linux/
|
7
|
+
'linux-x86'
|
8
|
+
else
|
9
|
+
raise "Invalid platform. Must be running linux or intel-based Mac OS."
|
10
|
+
end
|
11
|
+
|
12
|
+
args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
|
13
|
+
cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltoimage-#{arch}"
|
14
|
+
|
15
|
+
exec "#{cmd} #{args.join(' ')}"
|
data/bin/wkhtmltopdf
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
arch = case RUBY_PLATFORM
|
4
|
+
when /64.*linux/
|
5
|
+
'linux-amd64'
|
6
|
+
when /linux/
|
7
|
+
'linux-x86'
|
8
|
+
else
|
9
|
+
raise "Invalid platform. Must be running linux or intel-based Mac OS."
|
10
|
+
end
|
11
|
+
|
12
|
+
args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
|
13
|
+
cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltopdf-#{arch}"
|
14
|
+
|
15
|
+
exec "#{cmd} #{args.join(' ')}"
|
data/lib/wkhtmltox.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "wkhtmltox/version"
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/wkhtmltox.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'wkhtmltox/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "wkhtmltox"
|
8
|
+
spec.version = Wkhtmltox::VERSION
|
9
|
+
spec.authors = ["glebtv"]
|
10
|
+
spec.email = ["glebtv@gmail.com"]
|
11
|
+
spec.summary = "Binary wkhtmltopdf and wkhtmltoimage"
|
12
|
+
spec.description = ""
|
13
|
+
spec.homepage = "https://github.com/glebtv/wkhtmltox"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wkhtmltox
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.12.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- glebtv
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-11 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
|
+
description: ''
|
42
|
+
email:
|
43
|
+
- glebtv@gmail.com
|
44
|
+
executables:
|
45
|
+
- wkhtmltoimage
|
46
|
+
- wkhtmltopdf
|
47
|
+
extensions: []
|
48
|
+
extra_rdoc_files: []
|
49
|
+
files:
|
50
|
+
- .gitignore
|
51
|
+
- Gemfile
|
52
|
+
- LICENSE.txt
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- bin/wkhtmltoimage
|
56
|
+
- bin/wkhtmltopdf
|
57
|
+
- lib/wkhtmltox.rb
|
58
|
+
- lib/wkhtmltox/version.rb
|
59
|
+
- libexec/wkhtmltoimage-linux-amd64
|
60
|
+
- libexec/wkhtmltoimage-linux-x86
|
61
|
+
- libexec/wkhtmltopdf-linux-amd64
|
62
|
+
- libexec/wkhtmltopdf-linux-x86
|
63
|
+
- wkhtmltox.gemspec
|
64
|
+
homepage: https://github.com/glebtv/wkhtmltox
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.2.1
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: Binary wkhtmltopdf and wkhtmltoimage
|
88
|
+
test_files: []
|