dependabot-nuget 0.236.0 → 0.237.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: 7aefa443941f4d0d0ef21fe0d1378243669f27ca62dd32731fb0881120ffeea5
4
- data.tar.gz: 5b8a246fc596421b5a44949a669038a2f209cad056a79e55a8310c3157b301f1
3
+ metadata.gz: d633bba8c781dee126f8f39e1646bf6fa77624c4154f599c379a7a2597ca2ab5
4
+ data.tar.gz: 1b6363c64e9ec7d3d9b44d3c5eb62a4065bbfe57da21e48e95a2b45a7ecd7c3e
5
5
  SHA512:
6
- metadata.gz: 669395354dfa0e41d0d6e71ee23f8003eb092bbb8946595fa86453e8210363c2d14460dcaa348804fefd4445533024275792124e54a32de52d19ed39d4ce8f01
7
- data.tar.gz: e9e6716d91819085aea460e7ade8b02bf88cabf3e5710bb1f6438d4a1974e5f1cc31f9e4a6e642705a5fa80d9782af7cb074f5f2cfc67b61d8bcfd2ec99001f8
6
+ metadata.gz: fbf7eb348c2a69d39eb4058efa0c68da4bfd8cac52646fa6230ed9dcc4efbe1c5ac216f03d67249b8fc48fe542790cac2e6b360e7725f7d2f8f7edb023d2cb4d
7
+ data.tar.gz: 9f96e9f0a24581bed453c8c16246d01c5f284e52e1972614be5b0dadea10c8de2351ec06d37c59872066bf07ea0e5605c0549437b53c883d1ebebf9689525ec8
@@ -4,10 +4,14 @@
4
4
  require "dependabot/file_fetchers"
5
5
  require "dependabot/file_fetchers/base"
6
6
  require "set"
7
+ require "sorbet-runtime"
7
8
 
8
9
  module Dependabot
9
10
  module Nuget
10
11
  class FileFetcher < Dependabot::FileFetchers::Base
12
+ extend T::Sig
13
+ extend T::Helpers
14
+
11
15
  require_relative "file_fetcher/import_paths_finder"
12
16
  require_relative "file_fetcher/sln_project_paths_finder"
13
17
 
@@ -23,8 +27,7 @@ module Dependabot
23
27
  "Repo must contain a .(cs|vb|fs)proj file or a packages.config."
24
28
  end
25
29
 
26
- private
27
-
30
+ sig { override.returns(T::Array[DependencyFile]) }
28
31
  def fetch_files
29
32
  fetched_files = []
30
33
  fetched_files += project_files
@@ -51,6 +54,8 @@ module Dependabot
51
54
  fetched_files
52
55
  end
53
56
 
57
+ private
58
+
54
59
  def project_files
55
60
  @project_files ||=
56
61
  begin
@@ -52,16 +52,16 @@ module Dependabot
52
52
 
53
53
  def packages_config_files
54
54
  dependency_files.select do |f|
55
- f.name.split("/").last.casecmp("packages.config").zero?
55
+ T.must(T.must(f.name.split("/").last).casecmp("packages.config")).zero?
56
56
  end
57
57
  end
58
58
 
59
59
  def global_json
60
- dependency_files.find { |f| f.name.casecmp("global.json").zero? }
60
+ dependency_files.find { |f| T.must(f.name.casecmp("global.json")).zero? }
61
61
  end
62
62
 
63
63
  def dotnet_tools_json
64
- dependency_files.find { |f| f.name.casecmp(".config/dotnet-tools.json").zero? }
64
+ dependency_files.find { |f| T.must(f.name.casecmp(".config/dotnet-tools.json")).zero? }
65
65
  end
66
66
 
67
67
  def check_required_files
@@ -2,6 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "nokogiri"
5
+ require "sorbet-runtime"
5
6
  require "dependabot/metadata_finders"
6
7
  require "dependabot/metadata_finders/base"
7
8
  require "dependabot/registry_client"
@@ -9,6 +10,8 @@ require "dependabot/registry_client"
9
10
  module Dependabot
10
11
  module Nuget
11
12
  class MetadataFinder < Dependabot::MetadataFinders::Base
13
+ extend T::Sig
14
+
12
15
  private
13
16
 
14
17
  def look_up_source
@@ -102,7 +105,7 @@ module Dependabot
102
105
  end
103
106
 
104
107
  github_urls.find do |url|
105
- repo = Source.from_url(url).repo
108
+ repo = T.must(Source.from_url(url)).repo
106
109
  repo.downcase.end_with?(dependency.name.downcase)
107
110
  end
108
111
  end
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.236.0
4
+ version: 0.237.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-26 00:00:00.000000000 Z
11
+ date: 2023-11-21 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.236.0
19
+ version: 0.237.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.236.0
26
+ version: 0.237.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +94,34 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-sorbet
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.9.2
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.9.2
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rubocop
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 1.56.0
117
+ version: 1.57.2
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: 1.56.0
124
+ version: 1.57.2
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rubocop-performance
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -227,7 +241,7 @@ licenses:
227
241
  - Nonstandard
228
242
  metadata:
229
243
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
230
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.236.0
244
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.237.0
231
245
  post_install_message:
232
246
  rdoc_options: []
233
247
  require_paths: