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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e3a3403ab1a990afe5d3a7ef306b21c03bfba1d49cd5c668a9700dd0e9bc882
4
- data.tar.gz: f8db2ef91cc4335ded29af594b690614d58c1228e066d231e0d39626ee73c41f
3
+ metadata.gz: 7b013f0822a5527e71c4cdc59db5db57db55f99a211385794edee27cc7d80136
4
+ data.tar.gz: 2bd5e46799f7f211bfc113108c5a6bdcf8e6149c9d8584f7c7af907f168348cb
5
5
  SHA512:
6
- metadata.gz: 165b35b6d11bcf094b9bd95a24a642c19e5b74a8988c03368c77bfca8feddfffff0435eb19e80e0f13aa155790eaf2168d240f58954c4b9406369647a849f185
7
- data.tar.gz: ab2b6ba2f1218bd8ffa636fbe89c7f9eea3996740c6fc5a4ec1e8fb2d00dcbbb3b090fd8e74e180c8d39755d6cd22c1b76677128a81c1566c1c0e7694db93d28
6
+ metadata.gz: be01b68099f078ab891f171abcdb8ad4f87db248235fe4cc1a93d5fc382a99dc097e9d72d06a3dc687be399ddd58713d01d1467fbc3c255e6ddcececc39aa517
7
+ data.tar.gz: d4f5cab8cebf933b09860df3b60829bd3b4d8a43cb316c5058125881ac46f85b5ed84cde22ed9766df71e659d84d0521df1201fa7b1dd9d55181c0122ce641b7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ * Adding support for single error responses
6
+
3
7
  ## 0.7.0
4
8
 
5
9
  * Updating bundler to v2.2
data/Gemfile.lock CHANGED
@@ -1,41 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pdfmonkey (0.7.0)
4
+ pdfmonkey (0.8.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.0)
10
- coveralls (0.8.22)
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 (~> 0.19.4)
14
+ thor (>= 0.19.4, < 2.0)
15
15
  tins (~> 1.6)
16
- diff-lcs (1.3)
17
- docile (1.3.1)
18
- jaro_winkler (1.5.2)
19
- json (2.3.1)
20
- parallel (1.12.1)
21
- parser (2.5.3.0)
22
- ast (~> 2.4.0)
23
- powerpack (0.1.2)
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.1)
26
- rspec (3.8.0)
27
- rspec-core (~> 3.8.0)
28
- rspec-expectations (~> 3.8.0)
29
- rspec-mocks (~> 3.8.0)
30
- rspec-core (3.8.0)
31
- rspec-support (~> 3.8.0)
32
- rspec-expectations (3.8.2)
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.8.0)
35
- rspec-mocks (3.8.0)
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.8.0)
38
- rspec-support (3.8.0)
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.10.0)
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
- term-ansicolor (1.7.0)
53
+ sync (0.5.0)
54
+ term-ansicolor (1.7.1)
54
55
  tins (~> 1.0)
55
- thor (0.19.4)
56
- tins (1.20.2)
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
@@ -41,7 +41,12 @@ module Pdfmonkey
41
41
 
42
42
  private def extract_errors(response)
43
43
  payload = JSON.parse(response.body)
44
- errors = payload['errors'].to_a.map { |error| error['detail'] }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pdfmonkey
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
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.7.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-02 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler