dependabot-terraform 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: ef1fb5ec46d06e750f37584c93a517858dca4645d56caf0621e7493cb7ca9d77
4
- data.tar.gz: af0555c6af23914deaa3248f26cfc9c1198d00bf196a6703fe398f031feeffbe
3
+ metadata.gz: 296ec5b401cf6f0e649a20e85fb010c3d0bae32c8f65cd0afa2077192ce2f89d
4
+ data.tar.gz: e596e1d335efbbad163c1e8b24bf4e5822106be093d946247f136de0b41bddc5
5
5
  SHA512:
6
- metadata.gz: 06526fbda02b541ef7c767d9be8145c00774516c41b16ceaff02fcf73ed6464092e6b46aaa500253b83a55fd908ad7538ef859f9f5135acd0e9025bcc930c29f
7
- data.tar.gz: 14ce5345ae3205ad3c1ddab78acdc6c9304618cd54e0f5e846f6b8cfa6abd04413faed52c0ff2b23bf8a86fe5fe8f03f608171994f8f4f2fe101e3a7341f4fca
6
+ metadata.gz: 5a459139a27afc3f10a5dd0fb9371129c47b088809432ff5c1f041d406f7587d1e884344bbc0bca3df4c7b2bfa61ceeb3bbbab48b76b2600edbddd205fb9ed24
7
+ data.tar.gz: 9c843a13b500f2be006741913fc512d7c892fa2b979209ce462e8f4a374ed9ac3ddb3307bb5e6ce61591c96469ef2bf48bf0a60a7b69c94cf0fd974f045825ee
@@ -1,6 +1,7 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ require "sorbet-runtime"
4
5
  require "dependabot/file_fetchers"
5
6
  require "dependabot/file_fetchers/base"
6
7
  require "dependabot/terraform/file_selector"
@@ -8,6 +9,9 @@ require "dependabot/terraform/file_selector"
8
9
  module Dependabot
9
10
  module Terraform
10
11
  class FileFetcher < Dependabot::FileFetchers::Base
12
+ extend T::Sig
13
+ extend T::Helpers
14
+
11
15
  include FileSelector
12
16
 
13
17
  # https://www.terraform.io/docs/language/modules/sources.html#local-paths
@@ -21,8 +25,7 @@ module Dependabot
21
25
  "Repo must contain a Terraform configuration file."
22
26
  end
23
27
 
24
- private
25
-
28
+ sig { override.returns(T::Array[DependencyFile]) }
26
29
  def fetch_files
27
30
  fetched_files = []
28
31
  fetched_files += terraform_files
@@ -38,6 +41,8 @@ module Dependabot
38
41
  )
39
42
  end
40
43
 
44
+ private
45
+
41
46
  def terraform_files
42
47
  @terraform_files ||=
43
48
  repo_contents(raise_errors: false)
@@ -6,6 +6,7 @@ require "excon"
6
6
  require "nokogiri"
7
7
  require "open3"
8
8
  require "digest"
9
+ require "sorbet-runtime"
9
10
  require "dependabot/dependency"
10
11
  require "dependabot/file_parsers"
11
12
  require "dependabot/file_parsers/base"
@@ -18,6 +19,8 @@ require "dependabot/terraform/registry_client"
18
19
  module Dependabot
19
20
  module Terraform
20
21
  class FileParser < Dependabot::FileParsers::Base
22
+ extend T::Sig
23
+
21
24
  require "dependabot/file_parsers/base/dependency_set"
22
25
 
23
26
  include FileSelector
@@ -147,7 +150,7 @@ module Dependabot
147
150
  end
148
151
 
149
152
  def build_terragrunt_dependency(file, source)
150
- dep_name = Source.from_url(source[:url]) ? Source.from_url(source[:url]).repo : source[:url]
153
+ dep_name = Source.from_url(source[:url]) ? T.must(Source.from_url(source[:url])).repo : source[:url]
151
154
  version = version_from_ref(source[:ref])
152
155
 
153
156
  Dependency.new(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.236.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-10-26 00:00:00.000000000 Z
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.236.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.236.0
26
+ version: 0.238.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
@@ -217,7 +231,7 @@ licenses:
217
231
  - Nonstandard
218
232
  metadata:
219
233
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
220
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.236.0
234
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.238.0
221
235
  post_install_message:
222
236
  rdoc_options: []
223
237
  require_paths: