README.md in pdfmonkey-0.8.0 vs README.md in pdfmonkey-0.8.1
- old
+ new
@@ -1,9 +1,8 @@
# PDFMonkey
-[![Build Status](https://travis-ci.com/pdfmonkey/pdfmonkey-ruby.svg?branch=master)](https://travis-ci.com/pdfmonkey/pdfmonkey-ruby)
-[![Coverage Status](https://coveralls.io/repos/github/pdfmonkey/pdfmonkey-ruby/badge.svg?branch=master)](https://coveralls.io/github/pdfmonkey/pdfmonkey-ruby?branch=master)
+[![CI](https://github.com/pdfmonkey/pdfmonkey-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/pdfmonkey/pdfmonkey-ruby/actions/workflows/ci.yml)
This gem is the quickest way to use the [PDFMonkey](https://www.pdfmonkey.io) API.
## Installation
@@ -57,11 +56,11 @@
document.status # => 'success'
document.download_url # => 'https://…'
```
-:warning: The download URL of a document is only valid **for 30 seconds**. Passed this delay, reload the document to obtain a new one:
+:warning: The download URL of a document is only valid **for 1 hour**. Passed this delay, reload the document to obtain a new one:
```ruby
document.reload!
```
@@ -138,9 +137,15 @@
document = Pdfmonkey::Document.generate(template_id, data)
document.status # => 'error'
document.errors # => ["Document template must exist"]
+
+# If your quota is depleted
+document = Pdfmonkey::Document.generate(template_id, data)
+
+document.status # => 'error'
+document.errors # => { "status" => ["You’ve reached your quota for th..."] }
# If the network is down
document = Pdfmonkey::Document.generate(template_id, data)
document.status # => 'error'