pdfmonkey 0.7.0 → 0.8.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 +4 -0
- data/Gemfile.lock +30 -28
- data/lib/pdfmonkey/adapter.rb +6 -1
- data/lib/pdfmonkey/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b013f0822a5527e71c4cdc59db5db57db55f99a211385794edee27cc7d80136
|
4
|
+
data.tar.gz: 2bd5e46799f7f211bfc113108c5a6bdcf8e6149c9d8584f7c7af907f168348cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be01b68099f078ab891f171abcdb8ad4f87db248235fe4cc1a93d5fc382a99dc097e9d72d06a3dc687be399ddd58713d01d1467fbc3c255e6ddcececc39aa517
|
7
|
+
data.tar.gz: d4f5cab8cebf933b09860df3b60829bd3b4d8a43cb316c5058125881ac46f85b5ed84cde22ed9766df71e659d84d0521df1201fa7b1dd9d55181c0122ce641b7
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pdfmonkey (0.
|
4
|
+
pdfmonkey (0.8.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
ast (2.4.
|
10
|
-
coveralls (0.8.
|
9
|
+
ast (2.4.2)
|
10
|
+
coveralls (0.8.23)
|
11
11
|
json (>= 1.8, < 3)
|
12
12
|
simplecov (~> 0.16.1)
|
13
13
|
term-ansicolor (~> 1.3)
|
14
|
-
thor (
|
14
|
+
thor (>= 0.19.4, < 2.0)
|
15
15
|
tins (~> 1.6)
|
16
|
-
diff-lcs (1.
|
17
|
-
docile (1.
|
18
|
-
jaro_winkler (1.5.
|
19
|
-
json (2.
|
20
|
-
parallel (1.
|
21
|
-
parser (
|
22
|
-
ast (~> 2.4.
|
23
|
-
powerpack (0.1.
|
16
|
+
diff-lcs (1.4.4)
|
17
|
+
docile (1.4.0)
|
18
|
+
jaro_winkler (1.5.4)
|
19
|
+
json (2.6.1)
|
20
|
+
parallel (1.21.0)
|
21
|
+
parser (3.0.2.0)
|
22
|
+
ast (~> 2.4.1)
|
23
|
+
powerpack (0.1.3)
|
24
24
|
rainbow (3.0.0)
|
25
|
-
rake (13.0.
|
26
|
-
rspec (3.
|
27
|
-
rspec-core (~> 3.
|
28
|
-
rspec-expectations (~> 3.
|
29
|
-
rspec-mocks (~> 3.
|
30
|
-
rspec-core (3.
|
31
|
-
rspec-support (~> 3.
|
32
|
-
rspec-expectations (3.
|
25
|
+
rake (13.0.6)
|
26
|
+
rspec (3.10.0)
|
27
|
+
rspec-core (~> 3.10.0)
|
28
|
+
rspec-expectations (~> 3.10.0)
|
29
|
+
rspec-mocks (~> 3.10.0)
|
30
|
+
rspec-core (3.10.1)
|
31
|
+
rspec-support (~> 3.10.0)
|
32
|
+
rspec-expectations (3.10.1)
|
33
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
-
rspec-support (~> 3.
|
35
|
-
rspec-mocks (3.
|
34
|
+
rspec-support (~> 3.10.0)
|
35
|
+
rspec-mocks (3.10.2)
|
36
36
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
-
rspec-support (~> 3.
|
38
|
-
rspec-support (3.
|
37
|
+
rspec-support (~> 3.10.0)
|
38
|
+
rspec-support (3.10.3)
|
39
39
|
rubocop (0.60.0)
|
40
40
|
jaro_winkler (~> 1.5.1)
|
41
41
|
parallel (~> 1.10)
|
@@ -44,16 +44,18 @@ GEM
|
|
44
44
|
rainbow (>= 2.2.2, < 4.0)
|
45
45
|
ruby-progressbar (~> 1.7)
|
46
46
|
unicode-display_width (~> 1.4.0)
|
47
|
-
ruby-progressbar (1.
|
47
|
+
ruby-progressbar (1.11.0)
|
48
48
|
simplecov (0.16.1)
|
49
49
|
docile (~> 1.1)
|
50
50
|
json (>= 1.8, < 3)
|
51
51
|
simplecov-html (~> 0.10.0)
|
52
52
|
simplecov-html (0.10.2)
|
53
|
-
|
53
|
+
sync (0.5.0)
|
54
|
+
term-ansicolor (1.7.1)
|
54
55
|
tins (~> 1.0)
|
55
|
-
thor (
|
56
|
-
tins (1.
|
56
|
+
thor (1.1.0)
|
57
|
+
tins (1.29.1)
|
58
|
+
sync
|
57
59
|
unicode-display_width (1.4.1)
|
58
60
|
|
59
61
|
PLATFORMS
|
data/lib/pdfmonkey/adapter.rb
CHANGED
@@ -41,7 +41,12 @@ module Pdfmonkey
|
|
41
41
|
|
42
42
|
private def extract_errors(response)
|
43
43
|
payload = JSON.parse(response.body)
|
44
|
-
errors =
|
44
|
+
errors =
|
45
|
+
if payload['error']
|
46
|
+
[payload['error']]
|
47
|
+
else
|
48
|
+
payload['errors'].to_a.map { |error| error['detail'] }
|
49
|
+
end
|
45
50
|
|
46
51
|
{ errors: errors, status: 'error' }
|
47
52
|
end
|
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.8.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: 2021-11-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|