dependabot-nuget 0.171.2 → 0.172.0
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: c8f8569b677b58320d47845a2c08937cf46dd14207c8e49f617d9440ef894254
|
4
|
+
data.tar.gz: dad0480173affc9609086c42f6292b79cce084ae02c8f259ec47738687598c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0376a55c74c8caff1d85635963da01259940e6bb22b823fdf470112aefeb28540c0c4afd238f3bd2958bb44d672b836d0d9395ca7225a87a67fc8fb5d88c3f3
|
7
|
+
data.tar.gz: 18a5187a7c7afb27552fce757d87b4d4934ad7132d08de2a345e5f97c2bd6aeae9cf4ddd17156a06a6cfdba42a92a887412685b8ca5243203d57598f53890447
|
@@ -33,7 +33,7 @@ module Dependabot
|
|
33
33
|
requirements: [{
|
34
34
|
requirement: dependency_version(dependency_node),
|
35
35
|
file: packages_config.name,
|
36
|
-
groups: [],
|
36
|
+
groups: [dependency_type(dependency_node)],
|
37
37
|
source: nil
|
38
38
|
}]
|
39
39
|
)
|
@@ -57,6 +57,12 @@ module Dependabot
|
|
57
57
|
dependency_node.attribute("version")&.value&.strip ||
|
58
58
|
dependency_node.at_xpath("./version")&.content&.strip
|
59
59
|
end
|
60
|
+
|
61
|
+
def dependency_type(dependency_node)
|
62
|
+
val = dependency_node.attribute("developmentDependency")&.value&.strip ||
|
63
|
+
dependency_node.at_xpath("./developmentDependency")&.content&.strip
|
64
|
+
val.to_s.downcase == "true" ? "devDependencies" : "dependencies"
|
65
|
+
end
|
60
66
|
end
|
61
67
|
end
|
62
68
|
end
|
@@ -39,10 +39,12 @@ module Dependabot
|
|
39
39
|
req = dependency_requirement(dependency_node, project_file)
|
40
40
|
version = dependency_version(dependency_node, project_file)
|
41
41
|
prop_name = req_property_name(dependency_node)
|
42
|
+
is_dev = dependency_node.name == "DevelopmentDependency"
|
42
43
|
|
43
|
-
dependency = build_dependency(name, req, version, prop_name, project_file)
|
44
|
+
dependency = build_dependency(name, req, version, prop_name, project_file, dev: is_dev)
|
44
45
|
dependency_set << dependency if dependency
|
45
46
|
end
|
47
|
+
|
46
48
|
# Look for SDK references; see:
|
47
49
|
# https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-use-project-sdk
|
48
50
|
add_sdk_references(doc, dependency_set, project_file)
|
@@ -109,7 +111,7 @@ module Dependabot
|
|
109
111
|
end
|
110
112
|
end
|
111
113
|
|
112
|
-
def build_dependency(name, req, version, prop_name, project_file)
|
114
|
+
def build_dependency(name, req, version, prop_name, project_file, dev: false)
|
113
115
|
return unless name
|
114
116
|
|
115
117
|
# Exclude any dependencies specified using interpolation
|
@@ -118,7 +120,7 @@ module Dependabot
|
|
118
120
|
requirement = {
|
119
121
|
requirement: req,
|
120
122
|
file: project_file.name,
|
121
|
-
groups: [],
|
123
|
+
groups: [dev ? "devDependencies" : "dependencies"],
|
122
124
|
source: nil
|
123
125
|
}
|
124
126
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-nuget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.172.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.172.0
|
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.
|
26
|
+
version: 0.172.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|