wicked_pdf 0.10.0 → 0.10.2
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.
- checksums.yaml +4 -4
- data/lib/wicked_pdf.rb +1 -1
- data/lib/wicked_pdf/version.rb +1 -1
- data/test/unit/wicked_pdf_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41040ae8bc94e95e177f1b1a4c84232e45b5eb6b
|
|
4
|
+
data.tar.gz: 04a72a2aabb318708b6e3c691e349df3524160a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba7dded6264c5122179c27ca5195cf32836beefbe5768bf2471884281b4f524fece1d128cb6a72c991176c7525ae7ed4e6eada261d5f5b20634f5f05ec3708d3
|
|
7
|
+
data.tar.gz: 90a90533caf7543c88f4b444da0fb2b4c8d7bdd33ea26f7bae134785cc079b6b6c8157bc13aebb52df70c1da6c0d1a8e3f32ce4d128cf22a9b9163c120cad6ae
|
data/lib/wicked_pdf.rb
CHANGED
|
@@ -184,7 +184,7 @@ class WickedPdf
|
|
|
184
184
|
return '' if arg.blank?
|
|
185
185
|
r = '--cover '
|
|
186
186
|
# Filesystem path or URL - hand off to wkhtmltopdf
|
|
187
|
-
if
|
|
187
|
+
if argument.is_a?(Pathname) || (arg[0,4] == 'http')
|
|
188
188
|
r + arg
|
|
189
189
|
else # HTML content
|
|
190
190
|
@hf_tempfiles ||= []
|
data/lib/wicked_pdf/version.rb
CHANGED
|
@@ -133,7 +133,7 @@ class WickedPdfTest < ActiveSupport::TestCase
|
|
|
133
133
|
wp = WickedPdf.new
|
|
134
134
|
pathname = Rails.root.join('app','views','pdf','file.html')
|
|
135
135
|
assert_equal '--cover http://example.org', wp.get_parsed_options(:cover => 'http://example.org').strip, 'URL'
|
|
136
|
-
assert_equal "--cover #{pathname.to_s}", wp.get_parsed_options(:cover => pathname).strip, 'Pathname
|
|
136
|
+
assert_equal "--cover #{pathname.to_s}", wp.get_parsed_options(:cover => pathname).strip, 'Pathname'
|
|
137
137
|
assert_match /--cover .+wicked_cover_pdf.+\.html/, wp.get_parsed_options(:cover => '<html><body>HELLO</body></html>').strip, 'HTML'
|
|
138
138
|
end
|
|
139
139
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wicked_pdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miles Z. Sterrett
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|