dependabot-common 0.326.0 → 0.327.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dependabot/dependency_file.rb +12 -2
- data/lib/dependabot.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: 79a4252f6734f8bd1ff7e005d0ad1feb8454d67adc9aa606378e508db270da78
|
4
|
+
data.tar.gz: 312d95b14c8207368b6e3014ccbbc721260f15de2f7b8243ef80656aacd89df9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c1ac6235b527e8ca14df68b2d01a3518e86e7b4e85354c2009807ffa18d51380bac92232ea27dd116e0c1abdc0cfbd724b9eb3459989899df92618fdf92a768
|
7
|
+
data.tar.gz: 11ecbdf6ced6cecfc4fd9db8634037ecb7edcd2bba930a05b108b41a49920b97cee8834d1c6905b8e1c1526ef42e620f81591f1f794038280d1a5340be59e90e
|
@@ -28,6 +28,14 @@ module Dependabot
|
|
28
28
|
sig { returns(T::Boolean) }
|
29
29
|
attr_accessor :vendored_file
|
30
30
|
|
31
|
+
# Dependency file priority is used to determine which files are relevant when generating a dependency graph for the
|
32
|
+
# project - only the highest priority files will be graphed for each directory.
|
33
|
+
#
|
34
|
+
# This allows us to default to treating all dependency files as relevant unless the ecosystem's file parser tells
|
35
|
+
# us otherwise, for example indicating that a Gemfile.lock fully supersedes its peered Gemfile.
|
36
|
+
sig { returns(Integer) }
|
37
|
+
attr_accessor :priority
|
38
|
+
|
31
39
|
sig { returns(T.nilable(String)) }
|
32
40
|
attr_accessor :symlink_target
|
33
41
|
|
@@ -78,14 +86,15 @@ module Dependabot
|
|
78
86
|
content_encoding: String,
|
79
87
|
deleted: T::Boolean,
|
80
88
|
operation: String,
|
81
|
-
mode: T.nilable(String)
|
89
|
+
mode: T.nilable(String),
|
90
|
+
priority: Integer
|
82
91
|
)
|
83
92
|
.void
|
84
93
|
end
|
85
94
|
def initialize(name:, content:, directory: "/", type: "file",
|
86
95
|
support_file: false, vendored_file: false, symlink_target: nil,
|
87
96
|
content_encoding: ContentEncoding::UTF_8, deleted: false,
|
88
|
-
operation: Operation::UPDATE, mode: nil)
|
97
|
+
operation: Operation::UPDATE, mode: nil, priority: 0)
|
89
98
|
@name = name
|
90
99
|
@content = content
|
91
100
|
@directory = T.let(clean_directory(directory), String)
|
@@ -96,6 +105,7 @@ module Dependabot
|
|
96
105
|
@operation = operation
|
97
106
|
@mode = mode
|
98
107
|
@dependencies = T.let(Set.new, T::Set[T.untyped])
|
108
|
+
@priority = priority
|
99
109
|
raise ArgumentError, "Invalid Git mode: #{mode}" if mode && !VALID_MODES.include?(mode)
|
100
110
|
|
101
111
|
# Make deleted override the operation. Deleted is kept when operation
|
data/lib/dependabot.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.327.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -625,7 +625,7 @@ licenses:
|
|
625
625
|
- MIT
|
626
626
|
metadata:
|
627
627
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
628
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
628
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.327.0
|
629
629
|
rdoc_options: []
|
630
630
|
require_paths:
|
631
631
|
- lib
|