Skip to content

Commit cbe8cd2

Browse files
committed
0.12.2 stable
0 parents  commit cbe8cd2

File tree

8 files changed

+60
-0
lines changed

8 files changed

+60
-0
lines changed

Rakefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'rubygems'
2+
require 'rake/packagetask'
3+
require 'rake/gempackagetask'
4+
5+
spec = Gem::Specification.new do |s|
6+
s.name = "wkhtmltopdf-binary"
7+
s.version = "0.12.2"
8+
s.author = "Research Information Systems, The University of Iowa"
9+
10+
s.platform = Gem::Platform::RUBY
11+
s.summary = "Provides binaries for WKHTMLTOPDF project in an easily accessible package."
12+
s.files = FileList["{bin,libexec,lib}/*"].to_a
13+
s.has_rdoc = false
14+
s.executables << "wkhtmltopdf"
15+
s.require_path = '.'
16+
end
17+
18+
Rake::GemPackageTask.new(spec) do |pkg|
19+
pkg.need_tar = true
20+
end

bin/wkhtmltopdf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
when /darwin/
9+
'darwin-x86'
10+
else
11+
raise "Invalid platform. Must be running linux or intel-based Mac OS."
12+
end
13+
14+
args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
15+
cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltopdf-#{arch}"
16+
17+
exec "#{cmd} #{args.join(' ')}"

lib/wkhtmltopdf-binary.rb

Whitespace-only changes.

libexec/.DS_Store

6 KB
Binary file not shown.

libexec/wkhtmltopdf-darwin-x86

44.2 MB
Binary file not shown.

libexec/wkhtmltopdf-linux-amd64

36.6 MB
Binary file not shown.

libexec/wkhtmltopdf-linux-x86

37.4 MB
Binary file not shown.

wkhtmltopdf-binary.gemspec

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Gem::Specification.new do |s|
2+
s.platform = Gem::Platform::RUBY
3+
s.name = 'wkhtmltopdf-binary'
4+
s.version = '0.12.2'
5+
s.summary = 'Provides binaries for WKHTMLTOPDF project in an easily accessible package.'
6+
s.description = ''
7+
8+
s.required_ruby_version = '>= 1.8.7'
9+
s.required_rubygems_version = ">= 1.3.6"
10+
11+
s.author = '- Research Information Systems, The University of Iowa'
12+
s.homepage = ''
13+
14+
15+
s.bindir = 'bin'
16+
s.executables = %w(wkhtmltopdf)
17+
18+
s.files = %w(
19+
lib/wkhtmltopdf-binary.rb bin/wkhtmltopdf
20+
libexec/wkhtmltopdf-darwin-x86
21+
libexec/wkhtmltopdf-linux-amd64
22+
libexec/wkhtmltopdf-linux-x86)
23+
end

0 commit comments

Comments
 (0)