pdfmonkey 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/lib/pdfmonkey/document.rb +5 -1
- data/lib/pdfmonkey/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f949266c25fee699e6a0a3bde90256f2240e0b866a873034f54b9e31b7e6fa88
|
4
|
+
data.tar.gz: dde8fa07bba2aa84869fd8945183b9cc82eb9b6439054eca030e541503a7e7e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef0addfc109cb571ac602b3acf2c783afd61013114e424133c6144c9f375741056421db9ccdaf8a536b6aa87a5257deca76c0152b32892add868a7c57a55752
|
7
|
+
data.tar.gz: 55a890ebe8f847c8cbc0e483d55dcc72a1f7f355cb7a4b3ec66f3488376199887cf0f55ec29894880af2f77f81c2044fda67b7f66909b1d2ac73673719a39648
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/pdfmonkey/document.rb
CHANGED
@@ -32,7 +32,7 @@ module Pdfmonkey
|
|
32
32
|
|
33
33
|
def self.generate!(document_template_id, payload)
|
34
34
|
document = generate(document_template_id, payload)
|
35
|
-
document.reload! until
|
35
|
+
document.reload! until document.done?
|
36
36
|
document
|
37
37
|
end
|
38
38
|
|
@@ -51,6 +51,10 @@ module Pdfmonkey
|
|
51
51
|
update(attributes)
|
52
52
|
end
|
53
53
|
|
54
|
+
def done?
|
55
|
+
COMPLETE_STATUSES.include?(status)
|
56
|
+
end
|
57
|
+
|
54
58
|
def reload!
|
55
59
|
attributes = adapter.call(:get, self)
|
56
60
|
update(attributes)
|
data/lib/pdfmonkey/version.rb
CHANGED
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.3.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: 2019-
|
11
|
+
date: 2019-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -125,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
|
129
|
-
rubygems_version: 2.7.6
|
128
|
+
rubygems_version: 3.0.4
|
130
129
|
signing_key:
|
131
130
|
specification_version: 4
|
132
131
|
summary: Connect to the PDFMonkey API
|