changelogs.md


studiosity/grover

Repository  -  API  -  Source

0.8.1

July 13, 2019

Breaking change

  • #23 Drop support for Ruby 2.2

Added

  • #25 Add support for capturing PNG/JPEG screenshots
  • #27 Add support for PNG/JPEG middleware requests
  • #28 Add support for viewport options (passed in to page.setViewport before the page is rendered)

0.7.4

July 9, 2019

Breaking change

  • #18 Use GROVER_NO_SANDBOX for disabling sandbox ([@koenhandekyn][])

0.7.3

May 23, 2019

Fixed

  • #14 Metadata options not included if source contained any line starting with http
  • #15 Add magic comment for freezing string literals

0.7.2

January 22, 2019

Fixed

  • Better handle null assignment of debug options

0.7.1

January 22, 2019

Added

  • #10 Ability to disable headless mode and open devtools via option parameters

0.6.2

September 20, 2018

Fixed

  • Removed memoization of path variable in middleware (on occasion a previous requests state was present)

0.6.1

September 20, 2018

Fixed

  • Use request interception instead of data URL for middleware/raw HTML conversions

Breaking change

  • The {{display_url}} header/footer hack was removed in favour of passing the URL via display_url option (for middleware/raw HTML only)

0.5.5

September 20, 2018

Fixed

  • Compare optional arguments with undefined instead of default presence check

0.5.4

September 20, 2018

Fixed

  • Moved Puppeteer timeout from launch to page goto

0.5.3

September 20, 2018

Added

  • Control of Puppeteer page timeout

0.5.2

September 20, 2018

Added

  • Control of Puppeteer page caching (default set to false)

0.5.1

September 15, 2018

Added

  • Support for front/back cover pages for middleware (combined with the original request PDF)

0.4.4

September 10, 2018

Fixed

  • Bug with options containing mixed symbol/string keys (and how they merge with the parsed meta options)

0.4.3

September 10, 2018

Added

  • Pass through flag to indicate to upstream middleware/app that Grover has interacted with the environment

0.4.2

September 9, 2018

Fixed

  • Problems parsing meta tag content (with inline html templates). Use Nokogiri instead of basic regexes
  • Bug where boolean/numeric type options were not passed through to PDF processor correctly (type cast)

0.4.1

September 8, 2018

Added

  • Ability to pass through options via meta tags (for use in middleware requests)

Fixed

  • Issue with pdf_reader on TravisCI parsing the headers/footers incorrectly (font size)

0.3.1

August 25, 2018

Added

  • Ability to configure media emulation
  • pdf_reader gem to better parse/test the output from Puppeteer
  • Instructions in README about issues with header/footer template and display of URL

Removed

  • activesupport dependency in favour of implementing strip_heredoc in utils class

0.3.0

August 24, 2018

Added

  • Case insensitive matching for PDF file extension in middleware
  • Spec tests for middleware and HTML preprocessor
  • Use rubocop-rspec to lint spec tests
  • Normalisation of PDF conversion options (so they match the expected format/case of Puppeteer)

Fixed

  • Lint issues raised by rubocop-rpsec

Changed

  • Moved PDF processor into Grover class to reduce unnecessary exposure of inner workings

0.2.2

August 23, 2018

Fixed

  • Bug introduced in middleware refactor

0.2.1

August 23, 2018

Added

  • HTML preprocessor to fix relative paths in source HTML

Fixed

  • Processor support for inline HTML (render via the URI rather than trying to setContent)

Changed

  • Minor refactor of middleware for readability

0.2.0

August 23, 2018

Added

  • Rack middleware for rendering upstream HTML as PDF (based heavily on PDFKit middleware)
  • Allow PDF processor to handle inline HTML

Fixed

  • Use Dir.pwd instead of file path for default root_path so that when loaded as a gem the path is the current pwd

Changed

  • Minor location refactor of Grover interface

0.1.2

August 22, 2018

Added

  • Allow root_path for Puppeteer to be passed through Grover initialiser

0.1.1

August 22, 2018

Fixed

  • Launch browser with sandbox disabled for CI tests

0.1.0

August 22, 2018

Added

  • First pass at PDF processor
  • Console script for expediting development

0.0.1

August 22, 2018

Added

  • Initial gem framework