dependabot-python 0.99.5 → 0.99.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/python/requirement.rb +8 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4438b882aedc6d4ba8b1d5cd05e38b74f2c66b03699e62f2bda0273b1f013ece
|
4
|
+
data.tar.gz: d0444dfee433956356cf809fc836d61d47dda760e6131ceb6040ce0543c277a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c58b6c0ddb74222c7378597194010c420b4963e980ff968dd63d8c96fd116d8ca7a97d55869bd5a78b3996e2f52f85bec820db0e117cbce67c1b280d0c8ce5c
|
7
|
+
data.tar.gz: 2031d4621a71a3638e3d054e3aef4b0a46ddf1cc2c47c9600e495ab12522a21ebc1abfbc6bbb576a77bce5eff5a156256bd779ae677e6304193482cd385be594
|
@@ -118,12 +118,18 @@ module Dependabot
|
|
118
118
|
def convert_wildcard(req_string)
|
119
119
|
# Note: This isn't perfect. It replaces the "!= 1.0.*" case with
|
120
120
|
# "!= 1.0.0". There's no way to model this correctly in Ruby :'(
|
121
|
+
quoted_ops = OPS.keys.sort_by(&:length).reverse.
|
122
|
+
map { |k| Regexp.quote(k) }.join("|")
|
123
|
+
op = req_string.match(/\A\s*(#{quoted_ops})?/).
|
124
|
+
captures.first.to_s&.strip
|
125
|
+
exact_op = ["", "=", "==", "==="].include?(op)
|
126
|
+
|
121
127
|
req_string.
|
122
128
|
split(".").
|
123
129
|
first(req_string.split(".").index("*") + 1).
|
124
130
|
join(".").
|
125
|
-
tr("*", "0").
|
126
|
-
gsub(/^(?<!!)=*/, "~>")
|
131
|
+
tr("*", exact_op ? "0" : "a").
|
132
|
+
tap { |s| exact_op ? s.gsub!(/^(?<!!)=*/, "~>") : s }
|
127
133
|
end
|
128
134
|
end
|
129
135
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-python
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.99.
|
4
|
+
version: 0.99.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.99.
|
19
|
+
version: 0.99.6
|
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.99.
|
26
|
+
version: 0.99.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|