pdfmonkey 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +3 -3
- data/README.md +3 -3
- data/lib/pdfmonkey/adapter.rb +1 -1
- data/lib/pdfmonkey/configuration.rb +2 -0
- data/lib/pdfmonkey/version.rb +1 -1
- data/pdfmonkey.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 981628ac067f138aaf0a098ddf561f7537b3838df84d1c7b3410583b5e66fa35
|
4
|
+
data.tar.gz: 168ab9c7819b220d2e26eac8910993d7e62db504ecdae8806d0081962f60754b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df5b9ac944318e0e47ba81cbd6aafe865e6eb00117e8646a5ea0f0068808fb24d8f3f6145beb2f7f87d9a3223b3d760f3c7d63dc42c04a5ca7498e24777b358
|
7
|
+
data.tar.gz: 0aee89379452faa4b588c258d54d7b44fb702c14d2ed6fe2efdb478fbe8dd58b6ce5a167bb93de1704fa49c51fff656e9e68a8f3b87184106c88f207425d9259
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pdfmonkey (0.
|
4
|
+
pdfmonkey (0.6.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -60,7 +60,7 @@ PLATFORMS
|
|
60
60
|
ruby
|
61
61
|
|
62
62
|
DEPENDENCIES
|
63
|
-
bundler (~>
|
63
|
+
bundler (~> 2.2)
|
64
64
|
coveralls (~> 0.8)
|
65
65
|
pdfmonkey!
|
66
66
|
rake (~> 13.0)
|
@@ -68,4 +68,4 @@ DEPENDENCIES
|
|
68
68
|
rubocop (~> 0.60.0)
|
69
69
|
|
70
70
|
BUNDLED WITH
|
71
|
-
|
71
|
+
2.2.30
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ Once your App is created in the [PDFMonkey Dashboard](https://dashboard.pdfmonke
|
|
50
50
|
If your want to wait for a Document’s generation before continuing with your workflow, use the `generate!` method, it will request a document generation and wait for it to succeed or fail before giving you any answer.
|
51
51
|
|
52
52
|
```ruby
|
53
|
-
|
53
|
+
template_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
|
54
54
|
data = { name: 'John Doe' }
|
55
55
|
|
56
56
|
document = Pdfmonkey::Document.generate!(template_id, data)
|
@@ -72,7 +72,7 @@ PDFMonkey was created with an asynchronous workflow in mind. It provides webhook
|
|
72
72
|
To leverage this behavior and continue working while your Document is generated, use the `generate` method:
|
73
73
|
|
74
74
|
```ruby
|
75
|
-
|
75
|
+
template_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
|
76
76
|
data = { name: 'John Doe' }
|
77
77
|
|
78
78
|
document = Pdfmonkey::Document.generate(template_id, data)
|
@@ -133,7 +133,7 @@ In case of error, be it an HTTP layer error or an API error, `document.status` w
|
|
133
133
|
```ruby
|
134
134
|
# Using an unknown template
|
135
135
|
|
136
|
-
|
136
|
+
template_id = 'unknown'
|
137
137
|
data = { name: 'John Doe' }
|
138
138
|
|
139
139
|
document = Pdfmonkey::Document.generate(template_id, data)
|
data/lib/pdfmonkey/adapter.rb
CHANGED
@@ -5,11 +5,13 @@ module Pdfmonkey
|
|
5
5
|
attr_accessor :host
|
6
6
|
attr_accessor :namespace
|
7
7
|
attr_accessor :private_key
|
8
|
+
attr_accessor :user_agent
|
8
9
|
|
9
10
|
def initialize
|
10
11
|
@host = 'https://api.pdfmonkey.io'
|
11
12
|
@namespace = 'api/v1'
|
12
13
|
@private_key = ENV['PDFMONKEY_PRIVATE_KEY']
|
14
|
+
@user_agent = 'Ruby'
|
13
15
|
end
|
14
16
|
end
|
15
17
|
|
data/lib/pdfmonkey/version.rb
CHANGED
data/pdfmonkey.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_development_dependency 'bundler', '~>
|
25
|
+
spec.add_development_dependency 'bundler', '~> 2.2'
|
26
26
|
spec.add_development_dependency 'coveralls', '~> 0.8'
|
27
27
|
spec.add_development_dependency 'rake', '~> 13.0'
|
28
28
|
spec.add_development_dependency 'rspec', '~> 3.8'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfmonkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Courtois
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.2'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: coveralls
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|