Cloudrunpdf

The cloudrunpdf Ruby gem allows delegating the rendering of HTML to PDF to a dedicated Google Cloud Run container. This container should be based on the cloudpdf container image.

Installation

Add this line to your application's Gemfile:

gem 'cloudrunpdf'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install cloudrunpdf

Usage

See bin/smoketest for a concrete usage example.

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment. After making any changes, for quality assurance you can execute the rspec test suite by running bin/rspec. In addition, static analysis can be performed by running bin/rubocop.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.