finalist-wkhtmltopdf 0.9.9
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.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/README.md +21 -0
- data/bin/wkhtmltopdf +19 -0
- data/bin/wkhtmltopdf_darwin_386 +0 -0
- data/bin/wkhtmltopdf_linux_386 +0 -0
- data/bin/wkhtmltopdf_linux_amd64 +0 -0
- data/finalist-wkhtmltopdf.gemspec +22 -0
- data/lib/finalist-wkhtmltopdf.rb +7 -0
- data/lib/finalist-wkhtmltopdf/version.rb +5 -0
- data/rakefile +2 -0
- metadata +61 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Finalist::Wkhtmltopdf
|
|
2
|
+
|
|
3
|
+
Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add this line to your application's Gemfile:
|
|
8
|
+
|
|
9
|
+
gem 'finalist-wkhtmltopdf'
|
|
10
|
+
|
|
11
|
+
And then execute:
|
|
12
|
+
|
|
13
|
+
$ bundle
|
|
14
|
+
|
|
15
|
+
Or install it yourself as:
|
|
16
|
+
|
|
17
|
+
$ gem install finalist-wkhtmltopdf
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Run `wkhtml2pdf` to see the options.
|
data/bin/wkhtmltopdf
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
executable = case RUBY_PLATFORM
|
|
4
|
+
when /64.*linux/
|
|
5
|
+
'wkhtmltopdf_linux_amd64'
|
|
6
|
+
when /linux/
|
|
7
|
+
'wkhtmltopdf_linux_386'
|
|
8
|
+
when /darwin/
|
|
9
|
+
'wkhtmltopdf_darwin_386'
|
|
10
|
+
else
|
|
11
|
+
raise "Invalid platform. Must be running linux or intel-based Mac OS."
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
arguments = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
|
|
15
|
+
|
|
16
|
+
executable = File.join(File.dirname(__FILE__), executable)
|
|
17
|
+
r = system(executable + " " + arguments.join(" "))
|
|
18
|
+
|
|
19
|
+
exit r ? 0 : 1
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
require File.expand_path('../lib/finalist-wkhtmltopdf/version', __FILE__)
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |gem|
|
|
5
|
+
|
|
6
|
+
gem.authors = ['Research Information Systems, The University of Iowa']
|
|
7
|
+
gem.email = ['vpr-ris-developers@iowa.uiowa.edu', 'mcollas@aconex.com']
|
|
8
|
+
gem.description = %q{Provides binaries for WKHTMLTOPDF project in an easily accessible package.}
|
|
9
|
+
gem.summary = %q{Provides binaries for WKHTMLTOPDF project in an easily accessible package.}
|
|
10
|
+
gem.homepage = "http://code.google.com/p/wkhtmltopdf/"
|
|
11
|
+
|
|
12
|
+
gem.name = "finalist-wkhtmltopdf"
|
|
13
|
+
|
|
14
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
15
|
+
gem.files = `git ls-files`.split("\n")
|
|
16
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
17
|
+
gem.require_paths = ["lib"]
|
|
18
|
+
|
|
19
|
+
gem.version = Finalist::Wkhtmltopdf::VERSION
|
|
20
|
+
|
|
21
|
+
gem.bindir = 'bin'
|
|
22
|
+
end
|
data/rakefile
ADDED
metadata
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: finalist-wkhtmltopdf
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.9.9
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Research Information Systems, The University of Iowa
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2012-03-08 00:00:00.000000000 Z
|
|
13
|
+
dependencies: []
|
|
14
|
+
description: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
|
15
|
+
email:
|
|
16
|
+
- vpr-ris-developers@iowa.uiowa.edu
|
|
17
|
+
- mcollas@aconex.com
|
|
18
|
+
executables:
|
|
19
|
+
- wkhtmltopdf
|
|
20
|
+
- wkhtmltopdf_darwin_386
|
|
21
|
+
- wkhtmltopdf_linux_386
|
|
22
|
+
- wkhtmltopdf_linux_amd64
|
|
23
|
+
extensions: []
|
|
24
|
+
extra_rdoc_files: []
|
|
25
|
+
files:
|
|
26
|
+
- .gitignore
|
|
27
|
+
- Gemfile
|
|
28
|
+
- README.md
|
|
29
|
+
- bin/wkhtmltopdf
|
|
30
|
+
- bin/wkhtmltopdf_darwin_386
|
|
31
|
+
- bin/wkhtmltopdf_linux_386
|
|
32
|
+
- bin/wkhtmltopdf_linux_amd64
|
|
33
|
+
- finalist-wkhtmltopdf.gemspec
|
|
34
|
+
- lib/finalist-wkhtmltopdf.rb
|
|
35
|
+
- lib/finalist-wkhtmltopdf/version.rb
|
|
36
|
+
- rakefile
|
|
37
|
+
homepage: http://code.google.com/p/wkhtmltopdf/
|
|
38
|
+
licenses: []
|
|
39
|
+
post_install_message:
|
|
40
|
+
rdoc_options: []
|
|
41
|
+
require_paths:
|
|
42
|
+
- lib
|
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
|
+
none: false
|
|
45
|
+
requirements:
|
|
46
|
+
- - ! '>='
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
|
+
none: false
|
|
51
|
+
requirements:
|
|
52
|
+
- - ! '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
requirements: []
|
|
56
|
+
rubyforge_project:
|
|
57
|
+
rubygems_version: 1.8.15
|
|
58
|
+
signing_key:
|
|
59
|
+
specification_version: 3
|
|
60
|
+
summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
|
61
|
+
test_files: []
|