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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e2ffc50ae502ee314327f4c1374d78823e24295
4
- data.tar.gz: f6e10aec82199686cdda8d7520592399d397d514
3
+ metadata.gz: 41040ae8bc94e95e177f1b1a4c84232e45b5eb6b
4
+ data.tar.gz: 04a72a2aabb318708b6e3c691e349df3524160a9
5
5
  SHA512:
6
- metadata.gz: 58eb4cbd575c2bad0fad91e7a024f5fa25ce8701d4cb025837aa4296a68bacc8298baa8363a73b87809eeaa14ca9fcaff7d0400b2e4dfea183f2425461c59db3
7
- data.tar.gz: 67927c005ad9f26ebff235a56ae35c8af72517a23481c108538d65067348b96d2ceb734194dd9b1c4b7af48a8d4574afb48a45b8e9d41e5c2666ffccb584c676
6
+ metadata.gz: ba7dded6264c5122179c27ca5195cf32836beefbe5768bf2471884281b4f524fece1d128cb6a72c991176c7525ae7ed4e6eada261d5f5b20634f5f05ec3708d3
7
+ data.tar.gz: 90a90533caf7543c88f4b444da0fb2b4c8d7bdd33ea26f7bae134785cc079b6b6c8157bc13aebb52df70c1da6c0d1a8e3f32ce4d128cf22a9b9163c120cad6ae
@@ -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 arg.include?(Rails.root.to_s) || (arg[0,4] == 'http')
187
+ if argument.is_a?(Pathname) || (arg[0,4] == 'http')
188
188
  r + arg
189
189
  else # HTML content
190
190
  @hf_tempfiles ||= []
@@ -1,3 +1,3 @@
1
1
  class WickedPdf
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.2'
3
3
  end
@@ -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 in Rails.root'
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails