dependabot-git_submodules 0.236.0 → 0.238.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: f2b6164645f9b35fcd4ed19ef6f96c35f365fa46221dca76b83a2d6428ad0b2e
|
4
|
+
data.tar.gz: 394cbed56e5dc3aafff6f7de06b5319f05d6bab919f2222219490640ae2fc142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 675f97b2af2fcad94f99c4d204d2c0465a7e89d48265f668aa33b36f01325ca22b5eb92797b5b947db3d513be0358bb52d42a3b5db7da17e6f7fb3a4fbe67c34
|
7
|
+
data.tar.gz: ad657de64ffdbbb92b06c6671679845a237b7e28f9459b2dc741097a704898a5c791331b5888d97f152027c5ec1df871ccdd4dedc0a0f883351131af1b73ab5a
|
@@ -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
|
-
|
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
|
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.
|
4
|
+
version: 0.238.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-
|
11
|
+
date: 2023-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.238.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.238.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.
|
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.
|
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.
|
250
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.238.0
|
237
251
|
post_install_message:
|
238
252
|
rdoc_options: []
|
239
253
|
require_paths:
|