dependabot-python 0.107.0 → 0.107.1

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: 3949657ba338776693c177660d1c9794608a8be5853a81ff63c5f73cb2114a63
4
- data.tar.gz: de161c467ddacbde31b0bdca8644d43840fd481becdfb0f354ae56ccf7f0294e
3
+ metadata.gz: 8e85208579dbb1f60f668896b276bfba4bf0314540c2c50f4dd1fd1b344fc1dd
4
+ data.tar.gz: a8cffc0a4b41719b69e460a54cc1898bb5decb258977d2df7ba2c2725539fbd3
5
5
  SHA512:
6
- metadata.gz: f06b4cadc682b7626db359f0ea150bb6590f194205b801de2db530d4e0a628cc20c15969a2f647328a37cd1238dcb93fc585a6f2a807d7787e4bd3c1f290c44a
7
- data.tar.gz: b5dde5bc1ae70c6d6b582ea2b967d516359ac1409607c8fef4049035ed985641aac4fa76fc8d3db4471dcf3bd8467fe3b3e64b22d8482c3dfd12b813c3f4421c
6
+ metadata.gz: 64697025d74739f14ff83ddec4e95650069e5a9f8d5480dafafe0f734b2bc129fc3c4ebd7d6341228a3c754d7950922bc2784df64b06d30c055af365515e5f5b
7
+ data.tar.gz: c49ae140110a1ab3efafb089848a96aaffa7bd33d7060a04a3c4a64a0c2d4e40d1ebec1b553c56e6d02762c0702ed6459c287d466c6b0f0664fdf210c900f0af
@@ -20,6 +20,10 @@ module Dependabot
20
20
  class UpdateChecker
21
21
  # This class does version resolution for pyproject.toml files.
22
22
  class PoetryVersionResolver
23
+ GIT_REFERENCE_NOT_FOUND_REGEX =
24
+ /'git'.*pypoetry-git-(?<name>.+?).{8}','checkout','(?<tag>.+?)'/.
25
+ freeze
26
+
23
27
  attr_reader :dependency, :dependency_files, :credentials
24
28
 
25
29
  def initialize(dependency:, dependency_files:, credentials:)
@@ -100,6 +104,13 @@ module Dependabot
100
104
  end
101
105
 
102
106
  def handle_poetry_errors(error)
107
+ if error.message.gsub(/\s/, "").match?(GIT_REFERENCE_NOT_FOUND_REGEX)
108
+ message = error.message.gsub(/\s/, "")
109
+ name = message.match(GIT_REFERENCE_NOT_FOUND_REGEX).
110
+ named_captures.fetch("name")
111
+ raise GitDependencyReferenceNotFound, name
112
+ end
113
+
103
114
  raise unless error.message.include?("SolverProblemError") ||
104
115
  error.message.include?("PackageNotFound")
105
116
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.107.0
4
+ version: 0.107.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-12 00:00:00.000000000 Z
11
+ date: 2019-05-13 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.107.0
19
+ version: 0.107.1
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.107.0
26
+ version: 0.107.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.68.0
103
+ version: 0.69.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.68.0
110
+ version: 0.69.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vcr
113
113
  requirement: !ruby/object:Gem::Requirement