dependabot-gradle 0.143.0 → 0.143.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/gradle/requirement.rb +9 -11
- data/lib/dependabot/gradle/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c0d2e25163c6308d5e9d0a87fb293243cfde92477e559a0823b1a6f573e9487
|
4
|
+
data.tar.gz: a86c4c15ea8f0faf615517ea648e2fc5490dbfeb9e90d9cac4774bb9715bc377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 782d5847ca17b05fef3a81e609b158809bfb7ada423c378cb8f3a218e30374949e5cb14bd44db99ce1c95c20319eed20ccc048bba5d968c369c68e4b57068b3b
|
7
|
+
data.tar.gz: e66afad1146dbe0c8b9108125fcbdb1b987d3fdddd56c8e629ae5b72a77db214984fb2aea9c83b20989fa6da141d75d76c9bafaa4479f8213df64569aa437897
|
@@ -33,14 +33,7 @@ module Dependabot
|
|
33
33
|
|
34
34
|
def initialize(*requirements)
|
35
35
|
requirements = requirements.flatten.flat_map do |req_string|
|
36
|
-
|
37
|
-
# PR ignore conditions
|
38
|
-
version_reqs = req_string.split(",").map(&:strip)
|
39
|
-
if version_reqs.all? { |s| Gem::Requirement::PATTERN.match?(s) }
|
40
|
-
version_reqs
|
41
|
-
else
|
42
|
-
convert_java_constraint_to_ruby_constraint(req_string)
|
43
|
-
end
|
36
|
+
convert_java_constraint_to_ruby_constraint(req_string)
|
44
37
|
end
|
45
38
|
|
46
39
|
super(requirements)
|
@@ -72,9 +65,14 @@ module Dependabot
|
|
72
65
|
raise "Can't convert multiple Java reqs to a single Ruby one"
|
73
66
|
end
|
74
67
|
|
75
|
-
|
76
|
-
|
77
|
-
|
68
|
+
# NOTE: Support ruby-style version requirements that are created from
|
69
|
+
# PR ignore conditions
|
70
|
+
version_reqs = req_string.split(",").map(&:strip)
|
71
|
+
if req_string.include?(",") && !version_reqs.all? { |s| PATTERN.match?(s) }
|
72
|
+
convert_java_range_to_ruby_range(req_string) if req_string.include?(",")
|
73
|
+
else
|
74
|
+
version_reqs.map { |r| convert_java_equals_req_to_ruby(r) }
|
75
|
+
end
|
78
76
|
end
|
79
77
|
|
80
78
|
def convert_java_range_to_ruby_range(req_string)
|
@@ -28,7 +28,7 @@ module Dependabot
|
|
28
28
|
VERSION_PATTERN =
|
29
29
|
"[0-9a-zA-Z]+"\
|
30
30
|
'(?>\.[0-9a-zA-Z]*)*'\
|
31
|
-
'([_
|
31
|
+
'([_\-\+][0-9A-Za-z_-]*(\.[0-9A-Za-z_-]*)*)?'
|
32
32
|
ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/.freeze
|
33
33
|
|
34
34
|
def self.correct?(version)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-gradle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.143.
|
4
|
+
version: 0.143.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.143.
|
19
|
+
version: 0.143.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.143.
|
26
|
+
version: 0.143.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dependabot-maven
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.143.
|
33
|
+
version: 0.143.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.143.
|
40
|
+
version: 0.143.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: byebug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|