dependabot-composer 0.95.61 → 0.95.62

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: 85649e1bc00372b3931be5a71142abba24958edc496833e7ad953d493eddfdf4
4
- data.tar.gz: db4db8f10a43b9da06652b44af14a97f8e4d237adf8ca1ca8576eaad21f5aa61
3
+ metadata.gz: 9f9592340d02f8be041b7820521b3205a7a8526601897c61098d8556e17635d7
4
+ data.tar.gz: 34802a0ed584f3e1904d78f4e1ef8576d296b358144ab6ea7d2ebd050fe91e1a
5
5
  SHA512:
6
- metadata.gz: 8693f007c010d1df9174fc0596c5bf16c05aab620c09a1ecde63c37825f1f0a5b75b114d021a3335d4e1ae9daec48fdf2ff71b73566139883fedbd30aa6b2866
7
- data.tar.gz: 22c0220ee710d187f439783d90afb6792d53ae67693cc1e775e5b9f3cdec7a4ab3561e5a11267612ad4c626473785989252a908b2ba13bda9017d643c1066c53
6
+ metadata.gz: 6442218203a2f4ad80ea4b7a90474a14bd9123e286d783ccc37dd6c53791e3a4e7086a710817bd9332ccf706eb0b9eb3465e62423e9b0f762c4fa5f8807577e4
7
+ data.tar.gz: a7c4d13965fb8880b249ddcee803040c85ef02e7b87fd7ee27cd836a5c292adcca88c7cd687f9a808721b8f5605029ce8a14965f0742934b73c015c255680894
@@ -34,6 +34,9 @@ module Dependabot
34
34
  updated_content
35
35
  end
36
36
  rescue SharedHelpers::HelperSubprocessFailed => error
37
+ retry_count ||= 0
38
+ retry_count += 1
39
+ retry if transitory_failure?(error) && retry_count <= 1
37
40
  handle_composer_errors(error)
38
41
  end
39
42
 
@@ -70,6 +73,10 @@ module Dependabot
70
73
  ).updated_manifest_content
71
74
  end
72
75
 
76
+ def transitory_failure?(error)
77
+ error.message.include?("Content-Length mismatch")
78
+ end
79
+
73
80
  # rubocop:disable Metrics/PerceivedComplexity
74
81
  # rubocop:disable Metrics/AbcSize
75
82
  # rubocop:disable Metrics/CyclomaticComplexity
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.95.61
4
+ version: 0.95.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-23 00:00:00.000000000 Z
11
+ date: 2019-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.95.61
19
+ version: 0.95.62
20
20
  type: :runtime
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: 0.95.61
26
+ version: 0.95.62
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement