pdfkit 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pdfkit might be problematic. Click here for more details.
- data/VERSION +1 -1
- data/lib/pdfkit/middleware.rb +1 -3
- data/lib/pdfkit/pdfkit.rb +1 -1
- data/pdfkit.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.6
|
data/lib/pdfkit/middleware.rb
CHANGED
@@ -42,9 +42,7 @@ class PDFKit
|
|
42
42
|
# Host with protocol
|
43
43
|
root = env['rack.url_scheme'] + "://" + env['HTTP_HOST'] + "/"
|
44
44
|
|
45
|
-
body.gsub
|
46
|
-
|
47
|
-
return body
|
45
|
+
body.gsub(/(href|src)=(['"])\/([^\"']*|[^"']*)['"]/,'\1=\2'+root+'\3\2')
|
48
46
|
end
|
49
47
|
|
50
48
|
def set_request_to_render_as_pdf(env)
|
data/lib/pdfkit/pdfkit.rb
CHANGED
data/pdfkit.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{pdfkit}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["jdpace"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-03}
|
13
13
|
s.default_executable = %q{pdfkit}
|
14
14
|
s.description = %q{Uses wkhtmltopdf to create PDFs using HTML}
|
15
15
|
s.email = %q{jared@codewordstudios.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 6
|
10
|
+
version: 0.4.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- jdpace
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-03 00:00:00 -05:00
|
19
19
|
default_executable: pdfkit
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|