dependabot-docker 0.94.8 → 0.94.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/docker/update_checker.rb +24 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13e409eeba36e4d42b318143216136e675ee1cd62c2e0de874dd07a0c620e373
|
4
|
+
data.tar.gz: 70774b2acef5376b1c4ca59917f1c880a78b6b1566b5e54fccc81572dfd92643
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c123caad2ea723176abb21a4bd76710be7fdb85df697c5ca34134e1a6441f1361e22f6e6d16cc1ada11a74f698099b776e7cfc9639c5b086435a595814ea75b
|
7
|
+
data.tar.gz: 32206ce2b84aed0fd426ec06dac8389a91c91d3ed0da57776fb999b96b7c93f12d179d00c8b825203a20862b13c076e28dee4dd7fe3d28c9b5c9297e03019d29
|
@@ -13,11 +13,18 @@ module Dependabot
|
|
13
13
|
class UpdateChecker < Dependabot::UpdateCheckers::Base
|
14
14
|
VERSION_REGEX = /(?<version>[0-9]+(?:\.[a-zA-Z0-9]+)*)/.freeze
|
15
15
|
VERSION_WITH_SUFFIX =
|
16
|
-
/^#{VERSION_REGEX}(?<
|
16
|
+
/^#{VERSION_REGEX}(?<suffix>-[a-z0-9.\-]+)?$/.freeze
|
17
17
|
VERSION_WITH_PREFIX =
|
18
|
-
/^(?<
|
18
|
+
/^(?<prefix>[a-z0-9.\-]+-)?#{VERSION_REGEX}$/.freeze
|
19
|
+
VERSION_WITH_PREFIX_AND_SUFFIX =
|
20
|
+
/^(?<prefix>[a-z\-]+-)?#{VERSION_REGEX}(?<suffix>-[a-z\-]+)?$/.
|
21
|
+
freeze
|
19
22
|
NAME_WITH_VERSION =
|
20
|
-
|
23
|
+
/
|
24
|
+
#{VERSION_WITH_PREFIX}|
|
25
|
+
#{VERSION_WITH_SUFFIX}|
|
26
|
+
#{VERSION_WITH_PREFIX_AND_SUFFIX}
|
27
|
+
/x.freeze
|
21
28
|
|
22
29
|
def latest_version
|
23
30
|
@latest_version ||= fetch_latest_version
|
@@ -121,11 +128,13 @@ module Dependabot
|
|
121
128
|
end
|
122
129
|
|
123
130
|
def comparable_tags_from_registry
|
124
|
-
|
131
|
+
original_prefix = prefix_of(dependency.version)
|
132
|
+
original_suffix = suffix_of(dependency.version)
|
125
133
|
|
126
134
|
tags_from_registry.
|
127
135
|
select { |tag| tag.match?(NAME_WITH_VERSION) }.
|
128
|
-
select { |tag|
|
136
|
+
select { |tag| prefix_of(tag) == original_prefix }.
|
137
|
+
select { |tag| suffix_of(tag) == original_suffix }.
|
129
138
|
reject { |tag| commit_sha_suffix?(tag) }
|
130
139
|
end
|
131
140
|
|
@@ -165,9 +174,10 @@ module Dependabot
|
|
165
174
|
return false unless numeric_version_from(tag)
|
166
175
|
return true if tag == numeric_version_from(tag)
|
167
176
|
|
168
|
-
# .NET tags are suffixed with -sdk
|
169
|
-
|
170
|
-
|
177
|
+
# .NET tags are suffixed with -sdk
|
178
|
+
return true if tag == numeric_version_from(tag) + "-sdk"
|
179
|
+
|
180
|
+
tag == "jdk-" + numeric_version_from(tag)
|
171
181
|
end
|
172
182
|
|
173
183
|
def updated_digest
|
@@ -220,8 +230,12 @@ module Dependabot
|
|
220
230
|
[RestClient::Exceptions::Timeout, DockerRegistry2::NotFound]
|
221
231
|
end
|
222
232
|
|
223
|
-
def
|
224
|
-
tag.match(NAME_WITH_VERSION).named_captures.fetch("
|
233
|
+
def prefix_of(tag)
|
234
|
+
tag.match(NAME_WITH_VERSION).named_captures.fetch("prefix")
|
235
|
+
end
|
236
|
+
|
237
|
+
def suffix_of(tag)
|
238
|
+
tag.match(NAME_WITH_VERSION).named_captures.fetch("suffix")
|
225
239
|
end
|
226
240
|
|
227
241
|
def prerelease?(tag)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.94.
|
4
|
+
version: 0.94.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.94.
|
19
|
+
version: 0.94.9
|
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.94.
|
26
|
+
version: 0.94.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|