dependabot-common 0.98.42 → 0.98.43
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22887ffbf044ddfbcb0ce034b3388690e32a197bed5de1242a41028f57604582
|
4
|
+
data.tar.gz: 62a46e53168ce9e06fc577110f88b3bf82fbca70095b506c49eec09606c3a484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd3aee9c6b7dc849896cd132feacb2ccfecaf8736e01ba09329eaf890d658b008608d89c599605f1d73495e7e49ade0d64511a6bc9a9f10722691367775ad5ca
|
7
|
+
data.tar.gz: c822607dc2afa37c468d2ad0c42cb8e898250603185b4333541ad4d53fd876f21e4d4c39797e4b6e5fc8bd253f204a3b54280d81c6a498bd2838bbe68e948417
|
@@ -113,9 +113,12 @@ module Dependabot
|
|
113
113
|
releases.reject do |release|
|
114
114
|
cleaned_tag = release.tag_name.gsub(/^[^0-9]*/, "")
|
115
115
|
cleaned_name = release.name&.gsub(/^[^0-9]*/, "")
|
116
|
+
dot_count = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
|
117
|
+
map { |nm| nm.chars.count(".") }.max
|
116
118
|
|
117
119
|
tag_version = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
|
118
120
|
select { |nm| version_class.correct?(nm) }.
|
121
|
+
select { |nm| nm.chars.count(".") == dot_count }.
|
119
122
|
map { |nm| version_class.new(nm) }.max
|
120
123
|
|
121
124
|
next conservative unless tag_version
|
@@ -132,9 +135,12 @@ module Dependabot
|
|
132
135
|
releases.reject do |release|
|
133
136
|
cleaned_tag = release.tag_name.gsub(/^[^0-9]*/, "")
|
134
137
|
cleaned_name = release.name&.gsub(/^[^0-9]*/, "")
|
138
|
+
dot_count = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
|
139
|
+
map { |nm| nm.chars.count(".") }.max
|
135
140
|
|
136
141
|
tag_version = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
|
137
142
|
select { |nm| version_class.correct?(nm) }.
|
143
|
+
select { |nm| nm.chars.count(".") == dot_count }.
|
138
144
|
map { |nm| version_class.new(nm) }.min
|
139
145
|
|
140
146
|
next conservative unless tag_version
|
data/lib/dependabot/version.rb
CHANGED