dependabot-nuget 0.175.0 → 0.178.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: f34aa006e4dd65b96eb76f51ea552550a2e10c3ebac4d2b053060c107d0bd151
4
- data.tar.gz: e719e940f8345b7c39d94cc6e0c3a73ba1924140b0ea079535bcb4a6513a8224
3
+ metadata.gz: 4826d277b24af7a5cb9ef78e4092b0e743fc8b283860b101bcf033343fc4f3c6
4
+ data.tar.gz: 611e1c48bffb25ff2b7c6b809a05d18c441e4fcec572536a3e613e4361d61e7d
5
5
  SHA512:
6
- metadata.gz: 69ed83c4a080c92b28d90dd76bf22d3fca948d32342087e25a9019c4326d19ad404ec6931c9a1e522ac260df45675de44a64f6a26787b80aecd0f8f4f4e0afcf
7
- data.tar.gz: ff83d1324dcd9d0f3870138cc9d03618ef4868c9f2a0b3e46e924a8474e271aefeba9ed36ad64a7980e56f7aa667f21c68af9d4b3ce3a1b825361faa6f4fd5d1
6
+ metadata.gz: 8677987b3158e0ec8b136f0d186faa1808da2bb78d4a38a4251d9bd45041d8806ed87d17bfa01e8f883553ad300a6708f8c871c55ed2ef67e100e5effdc66395
7
+ data.tar.gz: 7562e8209b3521826bd2841a4849c5d6fb31514d4e3aacab73acbbb3f714744d8432ab40110925628c0b5a2643dbb1648680494d35b5ffc2726b4f88733aebf5
@@ -88,6 +88,8 @@ module Dependabot
88
88
  end
89
89
 
90
90
  def convert_wildcard_req(req_string)
91
+ return ">= 0-a" if req_string == "*-*"
92
+
91
93
  return ">= 0" if req_string.start_with?("*")
92
94
 
93
95
  defined_part = req_string.split("*").first
@@ -59,7 +59,7 @@ module Dependabot
59
59
  end
60
60
  if search_url
61
61
  details[:search_url] =
62
- search_url + "?q=#{dependency.name.downcase}&prerelease=true"
62
+ search_url + "?q=#{dependency.name.downcase}&prerelease=true&semVerLevel=2.0.0"
63
63
  end
64
64
  details
65
65
  rescue JSON::ParserError
@@ -196,8 +196,8 @@ module Dependabot
196
196
  repository_url: DEFAULT_REPOSITORY_URL,
197
197
  versions_url: "https://api.nuget.org/v3-flatcontainer/"\
198
198
  "#{dependency.name.downcase}/index.json",
199
- search_url: "https://api-v2v3search-0.nuget.org/query"\
200
- "?q=#{dependency.name.downcase}&prerelease=true",
199
+ search_url: "https://azuresearch-usnc.nuget.org/query"\
200
+ "?q=#{dependency.name.downcase}&prerelease=true&semVerLevel=2.0.0",
201
201
  auth_header: {},
202
202
  repository_type: "v3"
203
203
  }
@@ -58,6 +58,8 @@ module Dependabot
58
58
  end
59
59
 
60
60
  def update_wildcard_requirement(req_string)
61
+ return req_string if req_string == "*-*"
62
+
61
63
  return req_string if req_string == "*"
62
64
 
63
65
  precision = req_string.split("*").first.split(/\.|\-/).count
@@ -172,6 +172,7 @@ module Dependabot
172
172
 
173
173
  dependency.requirements.any? do |req|
174
174
  reqs = parse_requirement_string(req.fetch(:requirement) || "")
175
+ return true if reqs.any? { |r| r == "*-*" }
175
176
  next unless reqs.any? { |r| r.include?("-") }
176
177
 
177
178
  requirement_class.
@@ -329,7 +330,7 @@ module Dependabot
329
330
  # For large JSON files we sometimes need a little longer than for
330
331
  # other languages. For example, see:
331
332
  # https://dotnet.myget.org/F/aspnetcore-dev/api/v3/query?
332
- # q=microsoft.aspnetcore.mvc&prerelease=true
333
+ # q=microsoft.aspnetcore.mvc&prerelease=true&semVerLevel=2.0.0
333
334
  {
334
335
  connect_timeout: 30,
335
336
  write_timeout: 30,
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.175.0
4
+ version: 0.178.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-02-25 00:00:00.000000000 Z
11
+ date: 2022-03-10 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.175.0
19
+ version: 0.178.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.175.0
26
+ version: 0.178.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement