dependabot-nuget 0.171.1 → 0.171.5
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: fcb7e04504a229bceb48ff3b971d8b8f51746a3c836df302658300ec247c5519
|
4
|
+
data.tar.gz: 836d4d5c445c7c7cb610f191af989859e40ff7022614d2e495cbba93be9d2e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d28ccd4d5d2f5bf1c916c78f97922b7a16e0e1f0b15db62a7213c1875146da76f0bda0137c84d750af03a89254a840244960ceceaa70bdbdfa6f60c730f654
|
7
|
+
data.tar.gz: bc2f79a67867fe24e90d50a2ce44e4b6a6a0f771aee0316a9efed6d7827b4f6d7254b0427429022935f672459ca15c498cf59dcc21cc537f247bd116f718293c
|
@@ -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.5
|
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-07 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.5
|
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.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|