Support :except option in middleware.
Drop TODO talking about adding 64bit support --install-wkhtmltopdf.
The :except option in the middleware specification accepts the same kind of parameters as the :only option. A possible usecase is to use direct PDF rendering using prawn or another library for specific views but use PDFKit for all other pages.
The install-wkhtmltopdf command has been dropped. It therefore doesn't make sense to keep this TODO.
…ke sure we are keeping up with the times.
…erge differences. Deeper bundler detection to avoid issues with gems that are only partialy including the bundler environment and do not have a Gemfile.
gsub error on body in translate_paths --> gsub called for #<Array...>
PDFKit cannot find the wkhtmltopdf binary file in the gem wkhtmltopdf-binary when using Bundler
provided by a vendored wkhtmltopdf-binary gem or the like.
Some typo fixes
…"). otherwise the method of to_pdf will gets truncated since pdf is a binary stream, I got this problem in Ruby 1.8.6 and Rails 1.2.3.
…ST'] in PDFKit::Middleware#translate_paths.
Meta tag detection used rexml. While this gives all the power of parsing and working with XML, it is very strict on the input it accepts. On bad markup it simply throw the towel and gave up on parsing. As the detection of meta tags should not depend on bad (html) markup much later in the file, the parsing is now ported to using Regular Expression.
This fixes a bug when using PDFKit with WEBrick for testing. The Middleware instance seems to be reused and starts rendering every request as PDF. Even if the path does not include .pdf.