pdfkit-heroku 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/Rakefile +1 -0
- data/init.rb +12 -0
- data/lib/pdfkit_heroku.rb +3 -0
- data/lib/pdfkit_heroku/version.rb +3 -0
- data/pdfkit-heroku.gemspec +23 -0
- data/vendor/bin/wkhtmltopdf-amd64 +0 -0
- data/vendor/bin/wkhtmltopdf-i386 +0 -0
- metadata +68 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 jdpace
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/init.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
PDFKit.configure do |config|
|
2
|
+
if RUBY_PLATFORM =~ /64-linux/
|
3
|
+
wkhtmltopdf_executable = 'wkhtmltopdf-amd64'
|
4
|
+
elsif RUBY_PLATFORM =~ /86-linux/
|
5
|
+
wkhtmltopdf_executable = 'wkhtmltopdf-i386'
|
6
|
+
else
|
7
|
+
raise "Unsupported. Must be running linux or intel-based Mac OS."
|
8
|
+
end
|
9
|
+
if wkhtmltopdf_executable
|
10
|
+
config.wkhtmltopdf = File.join(File.dirname(__FILE__),'vendor', 'bin', wkhtmltopdf_executable).to_s
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "pdfkit_heroku/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "pdfkit-heroku"
|
7
|
+
s.version = PDFKitHeroku::VERSION
|
8
|
+
s.authors = ["E-Max"]
|
9
|
+
s.email = ["max@studentify.nl"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{PDFKit extension for heroku}
|
12
|
+
s.description = %q{Keeps necessary library for PDFKit. Simplifies integration
|
13
|
+
process with Heroku a bit}
|
14
|
+
|
15
|
+
s.rubyforge_project = "pdfkit-heroku"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_dependency "pdfkit"
|
23
|
+
end
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pdfkit-heroku
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- E-Max
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-15 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: pdfkit
|
16
|
+
requirement: &85121140 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *85121140
|
25
|
+
description: ! 'Keeps necessary library for PDFKit. Simplifies integration
|
26
|
+
|
27
|
+
process with Heroku a bit'
|
28
|
+
email:
|
29
|
+
- max@studentify.nl
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- Gemfile
|
36
|
+
- LICENSE
|
37
|
+
- Rakefile
|
38
|
+
- init.rb
|
39
|
+
- lib/pdfkit_heroku.rb
|
40
|
+
- lib/pdfkit_heroku/version.rb
|
41
|
+
- pdfkit-heroku.gemspec
|
42
|
+
- vendor/bin/wkhtmltopdf-amd64
|
43
|
+
- vendor/bin/wkhtmltopdf-i386
|
44
|
+
homepage: ''
|
45
|
+
licenses: []
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project: pdfkit-heroku
|
64
|
+
rubygems_version: 1.8.10
|
65
|
+
signing_key:
|
66
|
+
specification_version: 3
|
67
|
+
summary: PDFKit extension for heroku
|
68
|
+
test_files: []
|