dependabot-git_submodules 0.235.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: eac5fe4601df685d52993156061fd1f0a7e33033f9aff743ccb6c48deff45937
4
- data.tar.gz: 1d3fd6cae1a731ce1a252abb5c02e2ff5de2496864eb8db5302e9d8c6512c64e
3
+ metadata.gz: ea4cb7fdb70f3f1c61204df28931cd46eadee800a1f8dc1891b11a3a60516c65
4
+ data.tar.gz: 5b80bb0d86e84cf2970879db973795e270c7d4a0ffab65818e14b8cb3e9823b2
5
5
  SHA512:
6
- metadata.gz: 49e166575e93e57cfe2665f370fee10b919a52d0ab932af43946c15face08539bce6855d0aabad8314ae712d7ae951db4f1c8e082bc7db350fdc009d55a4c5dc
7
- data.tar.gz: ab0f2e052794d5527d6cac1e71d56da582bd8ca001677c5bec0a04b76a8a2972a7ced013ffc7c0163b08037d662a2ee5fb76ace9f1d156a3f66bbcff6812664e
6
+ metadata.gz: 5739cd3e2b19182457c8e105ea9114b30d71b08b6a80e2c5c1f3e4d9b43f339058bd6bc0d5827729e3cbf5de011fc7be2d950395ecb5f7ea73201f0b07b7ae62
7
+ data.tar.gz: fc3d9d08db26f9a7b3a80855abff8c8712b68f8542ce3de26e2dfd29848d84ea5fb2d9e8da3670f7835bd69301de0f64690e7433e136948d4e03884dad209f32
@@ -2,6 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "parseconfig"
5
+ require "sorbet-runtime"
5
6
  require "dependabot/file_fetchers"
6
7
  require "dependabot/file_fetchers/base"
7
8
  require "dependabot/shared_helpers"
@@ -9,6 +10,9 @@ require "dependabot/shared_helpers"
9
10
  module Dependabot
10
11
  module GitSubmodules
11
12
  class FileFetcher < Dependabot::FileFetchers::Base
13
+ extend T::Sig
14
+ extend T::Helpers
15
+
12
16
  def self.required_files_in?(filenames)
13
17
  filenames.include?(".gitmodules")
14
18
  end
@@ -17,8 +21,7 @@ module Dependabot
17
21
  "Repo must contain a .gitmodules file."
18
22
  end
19
23
 
20
- private
21
-
24
+ sig { override.returns(T::Array[DependencyFile]) }
22
25
  def fetch_files
23
26
  fetched_files = []
24
27
  fetched_files << gitmodules_file
@@ -26,6 +29,8 @@ module Dependabot
26
29
  fetched_files
27
30
  end
28
31
 
32
+ private
33
+
29
34
  def gitmodules_file
30
35
  @gitmodules_file ||= fetch_file_from_host(".gitmodules")
31
36
  end
@@ -54,7 +59,7 @@ module Dependabot
54
59
  fetch_github_submodule_commit(path)
55
60
  when "gitlab"
56
61
  tmp_path = path.gsub(%r{^/*}, "")
57
- gitlab_client.get_file(repo, tmp_path, commit).blob_id
62
+ T.unsafe(gitlab_client).get_file(repo, tmp_path, commit).blob_id
58
63
  when "azure"
59
64
  azure_client.fetch_file_contents(commit, path)
60
65
  else raise "Unsupported provider '#{source.provider}'."
@@ -73,7 +78,7 @@ module Dependabot
73
78
  end
74
79
 
75
80
  def fetch_github_submodule_commit(path)
76
- content = github_client.contents(
81
+ content = T.unsafe(github_client).contents(
77
82
  repo,
78
83
  path: path,
79
84
  ref: commit
@@ -5,6 +5,7 @@ require "dependabot/update_checkers"
5
5
  require "dependabot/update_checkers/base"
6
6
  require "dependabot/git_submodules/version"
7
7
  require "dependabot/git_commit_checker"
8
+ require "dependabot/git_submodules/requirement"
8
9
 
9
10
  module Dependabot
10
11
  module GitSubmodules
@@ -1,4 +1,4 @@
1
- # typed: true
1
+ # typed: strong
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/version"
@@ -1,4 +1,4 @@
1
- # typed: true
1
+ # typed: strong
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # These all need to be required so the various classes can be registered in a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-git_submodules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.235.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-19 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.235.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.235.0
26
+ version: 0.237.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: parseconfig
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,20 +114,34 @@ dependencies:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: '1.3'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec-sorbet
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 1.9.2
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 1.9.2
117
131
  - !ruby/object:Gem::Dependency
118
132
  name: rubocop
119
133
  requirement: !ruby/object:Gem::Requirement
120
134
  requirements:
121
135
  - - "~>"
122
136
  - !ruby/object:Gem::Version
123
- version: 1.56.0
137
+ version: 1.57.2
124
138
  type: :development
125
139
  prerelease: false
126
140
  version_requirements: !ruby/object:Gem::Requirement
127
141
  requirements:
128
142
  - - "~>"
129
143
  - !ruby/object:Gem::Version
130
- version: 1.56.0
144
+ version: 1.57.2
131
145
  - !ruby/object:Gem::Dependency
132
146
  name: rubocop-performance
133
147
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +247,7 @@ licenses:
233
247
  - Nonstandard
234
248
  metadata:
235
249
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
236
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.235.0
250
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.237.0
237
251
  post_install_message:
238
252
  rdoc_options: []
239
253
  require_paths: