dependabot-nuget 0.213.0 → 0.215.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: 3b1cc8bf358bc7e02d077263e60b1e9d9239de4201af196ad3c7d85772ad8954
|
4
|
+
data.tar.gz: 0ddd9ba9e6afc9c0a4dda0fa76422c4d910369a1872efaaa6f43cf17e90220d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b333d767fe6fbec4380ec3df8e58a38258d34d3eb2ed661af37f1445179b053b83f265b2c0203795e809675b2c4b469872f0463a39ceb5d4fde39752b22dd199
|
7
|
+
data.tar.gz: b07046484d62ee7c097d1a011c70fbd659ef8ff07fc5858cd1aae867e3c21595a9b7a8c10656194290ba9ebfd696c0c02c2d5d985751b0e5dd0b059b79322ce7
|
@@ -8,8 +8,8 @@ module Dependabot
|
|
8
8
|
class FileUpdater
|
9
9
|
class PackagesConfigDeclarationFinder
|
10
10
|
DECLARATION_REGEX =
|
11
|
-
%r{<package
|
12
|
-
<package
|
11
|
+
%r{<package\s[^>]*?/>|
|
12
|
+
<package\s[^>]*?[^/]>.*?</package>}mx
|
13
13
|
|
14
14
|
attr_reader :dependency_name, :declaring_requirement,
|
15
15
|
:packages_config
|
@@ -88,10 +88,10 @@ module Dependabot
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def filter_lower_versions(possible_versions)
|
91
|
-
return possible_versions unless dependency.
|
91
|
+
return possible_versions unless dependency.numeric_version
|
92
92
|
|
93
93
|
possible_versions.select do |v|
|
94
|
-
v.fetch(:version) >
|
94
|
+
v.fetch(:version) > dependency.numeric_version
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
@@ -162,11 +162,9 @@ module Dependabot
|
|
162
162
|
|
163
163
|
# rubocop:disable Metrics/PerceivedComplexity
|
164
164
|
def related_to_current_pre?(version)
|
165
|
-
current_version = dependency.
|
166
|
-
if current_version &&
|
167
|
-
|
168
|
-
version_class.new(current_version).prerelease? &&
|
169
|
-
version_class.new(current_version).release == version.release
|
165
|
+
current_version = dependency.numeric_version
|
166
|
+
if current_version&.prerelease? &&
|
167
|
+
current_version&.release == version.release
|
170
168
|
return true
|
171
169
|
end
|
172
170
|
|
@@ -20,9 +20,8 @@ module Dependabot
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def initialize(version)
|
23
|
-
|
24
|
-
|
25
|
-
version = version.to_s.split("+").first if version.to_s.include?("+")
|
23
|
+
version = version.to_s.split("+").first || ""
|
24
|
+
@version_string = version
|
26
25
|
|
27
26
|
super
|
28
27
|
end
|
@@ -43,30 +42,24 @@ module Dependabot
|
|
43
42
|
end
|
44
43
|
|
45
44
|
def compare_release(other)
|
46
|
-
release_str = @version_string.split("-").first
|
47
|
-
other_release_str = other.to_s.split("-").first
|
45
|
+
release_str = @version_string.split("-").first || ""
|
46
|
+
other_release_str = other.to_s.split("-").first || ""
|
48
47
|
|
49
48
|
Gem::Version.new(release_str).<=>(Gem::Version.new(other_release_str))
|
50
49
|
end
|
51
50
|
|
52
51
|
# rubocop:disable Metrics/PerceivedComplexity
|
53
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
54
|
-
# rubocop:disable Metrics/AbcSize
|
55
52
|
def compare_prerelease_part(other)
|
56
|
-
release_str = @version_string.split("-").first
|
53
|
+
release_str = @version_string.split("-").first || ""
|
57
54
|
prerelease_string = @version_string.
|
58
55
|
sub(release_str, "").
|
59
|
-
sub("-", "")
|
60
|
-
split("+").
|
61
|
-
first
|
56
|
+
sub("-", "")
|
62
57
|
prerelease_string = nil if prerelease_string == ""
|
63
58
|
|
64
|
-
other_release_str = other.to_s.split("-").first
|
59
|
+
other_release_str = other.to_s.split("-").first || ""
|
65
60
|
other_prerelease_string = other.to_s.
|
66
61
|
sub(other_release_str, "").
|
67
|
-
sub("-", "")
|
68
|
-
split("+").
|
69
|
-
first
|
62
|
+
sub("-", "")
|
70
63
|
other_prerelease_string = nil if other_prerelease_string == ""
|
71
64
|
|
72
65
|
return -1 if prerelease_string && !other_prerelease_string
|
@@ -86,10 +79,7 @@ module Dependabot
|
|
86
79
|
|
87
80
|
0
|
88
81
|
end
|
89
|
-
|
90
82
|
# rubocop:enable Metrics/PerceivedComplexity
|
91
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
92
|
-
# rubocop:enable Metrics/AbcSize
|
93
83
|
|
94
84
|
def compare_dot_separated_part(lhs, rhs)
|
95
85
|
return -1 if lhs.nil?
|
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.215.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-12-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.
|
19
|
+
version: 0.215.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.215.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 4.0.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 4.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.39.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.39.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|