dependabot-common 0.117.10 → 0.117.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/errors.rb +4 -1
- data/lib/dependabot/git_commit_checker.rb +18 -9
- data/lib/dependabot/update_checkers/base.rb +5 -3
- data/lib/dependabot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9bf01da8e85f311c5f744d9fccec69f131a2bc551bdff723bdb88765ad5f4bb
|
4
|
+
data.tar.gz: 43dda42e7d00f2fe38a615d5a43ac348db776aa8d4ffa2b1bb7b5cb4eda89b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648649bb88adb63afd732801a7701fbc93ae2193a5ff60cf3f6435f04cd5d52c95f7023ff576ea4f3d6d4a5f0f30c9291934867fdff47a036df7460b4a79afc2
|
7
|
+
data.tar.gz: dc88d883d3f19d9c8e0fde81913abf884438fa4d9ecea31a0e1d8c000e3a6fcfd6c7073ec86fb0bf8b0d47f5a86c4be047a55421f989daba1463385fdae5c379
|
data/lib/dependabot/errors.rb
CHANGED
@@ -25,7 +25,7 @@ module Dependabot
|
|
25
25
|
class OutOfMemory < DependabotError; end
|
26
26
|
|
27
27
|
#####################
|
28
|
-
# Repo
|
28
|
+
# Repo level errors #
|
29
29
|
#####################
|
30
30
|
|
31
31
|
class BranchNotFound < DependabotError
|
@@ -191,4 +191,7 @@ module Dependabot
|
|
191
191
|
super(msg)
|
192
192
|
end
|
193
193
|
end
|
194
|
+
|
195
|
+
# Raised by UpdateChecker if all candidate updates are ignored
|
196
|
+
class AllVersionsIgnored < DependabotError; end
|
194
197
|
end
|
@@ -21,11 +21,13 @@ module Dependabot
|
|
21
21
|
)$
|
22
22
|
/ix.freeze
|
23
23
|
|
24
|
-
def initialize(dependency:, credentials:,
|
24
|
+
def initialize(dependency:, credentials:,
|
25
|
+
ignored_versions: [], raise_on_ignored: false,
|
25
26
|
requirement_class: nil, version_class: nil)
|
26
27
|
@dependency = dependency
|
27
28
|
@credentials = credentials
|
28
29
|
@ignored_versions = ignored_versions
|
30
|
+
@raise_on_ignored = raise_on_ignored
|
29
31
|
@requirement_class = requirement_class
|
30
32
|
@version_class = version_class
|
31
33
|
end
|
@@ -85,15 +87,22 @@ module Dependabot
|
|
85
87
|
end
|
86
88
|
|
87
89
|
def local_tag_for_latest_version
|
88
|
-
|
90
|
+
tags =
|
89
91
|
local_tags.
|
90
|
-
select { |t| version_tag?(t.name) && matches_existing_prefix?(t.name) }
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
92
|
+
select { |t| version_tag?(t.name) && matches_existing_prefix?(t.name) }
|
93
|
+
filtered = tags.
|
94
|
+
reject { |t| tag_included_in_ignore_reqs?(t) }
|
95
|
+
if @raise_on_ignored && tags.any? && filtered.empty?
|
96
|
+
raise Dependabot::AllVersionsIgnored
|
97
|
+
end
|
98
|
+
|
99
|
+
tag = filtered.
|
100
|
+
reject { |t| tag_is_prerelease?(t) && !wants_prerelease? }.
|
101
|
+
max_by do |t|
|
102
|
+
version = t.name.match(VERSION_REGEX).named_captures.
|
103
|
+
fetch("version")
|
104
|
+
version_class.new(version)
|
105
|
+
end
|
97
106
|
|
98
107
|
return unless tag
|
99
108
|
|
@@ -8,17 +8,19 @@ module Dependabot
|
|
8
8
|
module UpdateCheckers
|
9
9
|
class Base
|
10
10
|
attr_reader :dependency, :dependency_files, :credentials,
|
11
|
-
:ignored_versions, :
|
12
|
-
:requirements_update_strategy
|
11
|
+
:ignored_versions, :raise_on_ignored,
|
12
|
+
:security_advisories, :requirements_update_strategy
|
13
13
|
|
14
14
|
def initialize(dependency:, dependency_files:, credentials:,
|
15
|
-
ignored_versions: [],
|
15
|
+
ignored_versions: [], raise_on_ignored: false,
|
16
|
+
security_advisories: [],
|
16
17
|
requirements_update_strategy: nil)
|
17
18
|
@dependency = dependency
|
18
19
|
@dependency_files = dependency_files
|
19
20
|
@credentials = credentials
|
20
21
|
@requirements_update_strategy = requirements_update_strategy
|
21
22
|
@ignored_versions = ignored_versions
|
23
|
+
@raise_on_ignored = raise_on_ignored
|
22
24
|
@security_advisories = security_advisories
|
23
25
|
end
|
24
26
|
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.117.
|
4
|
+
version: 0.117.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-codecommit
|