Sha256: f5c12a87b240914b8f0493dd832646800175a8fa30d89100324e0d011bffa0b3

Contents?: true

Size: 299 Bytes

Versions: 15

Compression:

Stored size: 299 Bytes

Contents

require 'tempfile'

class WickedPdfTempfile < Tempfile
  # Replaces Tempfile's +make_tmpname+ with one that honors file extensions.
  def make_tmpname(basename, n)
    extension = File.extname(basename)
    sprintf("%s_%d_%d%s", File.basename(basename, extension), $$, n.to_i, extension)
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
wicked_pdf-0.9.3 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.9.2 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.9.1 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.9.0 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.8.0 lib/wicked_pdf_tempfile.rb
wicked_pdf_rails_2-0.7.9.1 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.9 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.8 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.7 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.6 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.5 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.4 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.3 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.2 lib/wicked_pdf_tempfile.rb
wicked_pdf-0.7.0 lib/wicked_pdf_tempfile.rb