dependabot-nuget 0.171.3 → 0.171.4
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: dad78c706d0d7ceb6d33a2678052d25c738444e2abb2c6de6db7d50283e635c5
|
4
|
+
data.tar.gz: c507c696c583c162376215e7f2a2cb115de4bf45dc8cb7a631a9754a6ca2ac95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4818aae1ac3e47203099d8ac94b519678cbe61bc7135d0217e38765d2453d48f0a1607f7523dc767ac82e6a88c8e8c3c2ed3aa3ae2ee9b83eb2768f175b4d117
|
7
|
+
data.tar.gz: de81321941fe505c299d3a17ab3b0876a5862d5b8ec1d0f166e40ed44f80c3c955832b5e249d8ab0df3eca97478d0dbe4fdaa2992181e05153132754502e031b
|
@@ -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.171.
|
4
|
+
version: 0.171.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-27 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.171.
|
19
|
+
version: 0.171.4
|
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.171.
|
26
|
+
version: 0.171.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|