dependabot-python 0.115.0 → 0.115.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: 5391f453b4f22b129cf4d625c2a5a759cc20f0e03e3494c664b3291781f2e255
4
- data.tar.gz: 8e6e530752e7c62615e2f810e4ad9217fcfa817f39262079c4b0480cf08597e3
3
+ metadata.gz: cb982007a260dcdfee50dd82f75dd69441b12df47181823f8b41309f416edd3e
4
+ data.tar.gz: f067865c63978fd267311e8a039f7802ce93f49bd011a96fbe1d3e7013f79fef
5
5
  SHA512:
6
- metadata.gz: 46b8cce6bdff0848355a0ea7891d79668aecfb10a694dc9a4e43ada0d91488d1574d66523d0f4bae10c1ae67e3cdcbc75f32b165d2ce18ff1a5f8d7a058189ec
7
- data.tar.gz: ce0d34c65527b5df252139e34c26b69600f986004daf8e4b786d5c3bc617db34d260b50b9a575b1fb78b9c649e3803b6eccc79c7274b8cc956658833ccde7674
6
+ metadata.gz: 5c4aded7bd61ba15f09ff2b2e51a12889533f8eb8d1338be4adc9bba828e0964f6b73426650819ff24767608d923e794cbd38f3a7a2e16512709d43fdb097367
7
+ data.tar.gz: 3de5ce7c8043c594f4e29dc3fc69e52d766ab168d205068c6a66b7f33955a10c34c121751f28fa47a60b71d13ff5ea80c935f1c286147168350bd5d21fc44421
@@ -5,6 +5,7 @@ require "dependabot/metadata_finders"
5
5
  require "dependabot/metadata_finders/base"
6
6
  require "dependabot/shared_helpers"
7
7
  require "dependabot/python/authed_url_builder"
8
+ require "dependabot/python/name_normaliser"
8
9
 
9
10
  module Dependabot
10
11
  module Python
@@ -52,7 +53,7 @@ module Dependabot
52
53
  # dependency name
53
54
  match_url = potential_source_urls.find do |url|
54
55
  repo = Source.from_url(url).repo
55
- repo.downcase.end_with?(dependency.name)
56
+ repo.downcase.end_with?(normalised_dependency_name)
56
57
  end
57
58
 
58
59
  return match_url if match_url
@@ -69,7 +70,7 @@ module Dependabot
69
70
  )
70
71
  next unless response.status == 200
71
72
 
72
- response.body.include?(dependency.name)
73
+ response.body.include?(normalised_dependency_name)
73
74
  end
74
75
  end
75
76
 
@@ -83,7 +84,7 @@ module Dependabot
83
84
 
84
85
  match_url = potential_source_urls.find do |url|
85
86
  repo = Source.from_url(url).repo
86
- repo.downcase.end_with?(dependency.name)
87
+ repo.downcase.end_with?(normalised_dependency_name)
87
88
  end
88
89
 
89
90
  return match_url if match_url
@@ -98,7 +99,7 @@ module Dependabot
98
99
  )
99
100
  next unless response.status == 200
100
101
 
101
- response.body.include?(dependency.name)
102
+ response.body.include?(normalised_dependency_name)
102
103
  end
103
104
  end
104
105
 
@@ -167,9 +168,14 @@ module Dependabot
167
168
  map { |c| AuthedUrlBuilder.authed_url(credential: c) }
168
169
 
169
170
  (credential_urls + [MAIN_PYPI_URL]).map do |base_url|
170
- base_url.gsub(%r{/$}, "") + "/#{dependency.name}/json"
171
+ base_url.gsub(%r{/$}, "") + "/#{normalised_dependency_name}/json"
171
172
  end
172
173
  end
174
+
175
+ # Strip [extras] from name (dependency_name[extra_dep,other_extra])
176
+ def normalised_dependency_name
177
+ NameNormaliser.normalise(dependency.name)
178
+ end
173
179
  end
174
180
  end
175
181
  end
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.115.0
4
+ version: 0.115.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-12-18 00:00:00.000000000 Z
11
+ date: 2019-12-19 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.115.0
19
+ version: 0.115.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.115.0
26
+ version: 0.115.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.77.0
117
+ version: 0.78.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.77.0
124
+ version: 0.78.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement