dependabot-terraform 0.124.6 → 0.125.2
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: 5696d3e68f872214b825a8bdccf3eba9d1f6e70c984bb9bef7f4fde7ac80fe65
|
4
|
+
data.tar.gz: 45883f96adab9bc7b76bdb44ead6f2e431c1f69986261d7022b3a51c9e7e69dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38d6349c21e618e7d470fd905a805631f0f82058cfcb8d9c792aa3bc10b54073d926a74b435a882ec52ef7dfe0baebd525061f77c41288d2594fe4c70043c666
|
7
|
+
data.tar.gz: f5b7a8c6756a4fe8f22f5a205abd682f3c70879d6edb0506befb54b8700039f50ade9f64525b1cfad229db601615f7c29ffbe25a033c034cfe875d383a0e0681
|
@@ -134,9 +134,7 @@ module Dependabot
|
|
134
134
|
|
135
135
|
def git_source_details_from(source_string)
|
136
136
|
git_url = source_string.strip.gsub(/^git::/, "")
|
137
|
-
unless git_url.start_with?("git@") || git_url.include?("://")
|
138
|
-
git_url = "https://" + git_url
|
139
|
-
end
|
137
|
+
git_url = "https://" + git_url unless git_url.start_with?("git@") || git_url.include?("://")
|
140
138
|
|
141
139
|
bare_uri =
|
142
140
|
if git_url.include?("git@")
|
@@ -181,9 +179,7 @@ module Dependabot
|
|
181
179
|
**SharedHelpers.excon_defaults
|
182
180
|
)
|
183
181
|
|
184
|
-
if response.headers["X-Terraform-Get"]
|
185
|
-
return response.headers["X-Terraform-Get"]
|
186
|
-
end
|
182
|
+
return response.headers["X-Terraform-Get"] if response.headers["X-Terraform-Get"]
|
187
183
|
|
188
184
|
doc = Nokogiri::XML(response.body)
|
189
185
|
doc.css("meta").find do |tag|
|
@@ -201,9 +197,7 @@ module Dependabot
|
|
201
197
|
return :mercurial if source_string.start_with?("hg::")
|
202
198
|
return :s3 if source_string.start_with?("s3::")
|
203
199
|
|
204
|
-
if source_string.split("/").first.include?("::")
|
205
|
-
raise "Unknown src: #{source_string}"
|
206
|
-
end
|
200
|
+
raise "Unknown src: #{source_string}" if source_string.split("/").first.include?("::")
|
207
201
|
|
208
202
|
return :registry unless source_string.start_with?("http")
|
209
203
|
|
@@ -55,9 +55,7 @@ module Dependabot
|
|
55
55
|
**SharedHelpers.excon_defaults
|
56
56
|
)
|
57
57
|
|
58
|
-
unless response.status == 200
|
59
|
-
raise "Response from registry was #{response.status}"
|
60
|
-
end
|
58
|
+
raise "Response from registry was #{response.status}" unless response.status == 200
|
61
59
|
|
62
60
|
source_url = JSON.parse(response.body).fetch("source")
|
63
61
|
Source.from_url(source_url) if source_url
|
@@ -63,9 +63,7 @@ module Dependabot
|
|
63
63
|
def latest_version_for_registry_dependency
|
64
64
|
return unless registry_dependency?
|
65
65
|
|
66
|
-
if @latest_version_for_registry_dependency
|
67
|
-
return @latest_version_for_registry_dependency
|
68
|
-
end
|
66
|
+
return @latest_version_for_registry_dependency if @latest_version_for_registry_dependency
|
69
67
|
|
70
68
|
versions = all_registry_versions
|
71
69
|
versions.reject!(&:prerelease?) unless wants_prerelease?
|
@@ -90,9 +88,7 @@ module Dependabot
|
|
90
88
|
**SharedHelpers.excon_defaults
|
91
89
|
)
|
92
90
|
|
93
|
-
unless response.status == 200
|
94
|
-
raise "Response from registry was #{response.status}"
|
95
|
-
end
|
91
|
+
raise "Response from registry was #{response.status}" unless response.status == 200
|
96
92
|
|
97
93
|
JSON.parse(response.body).
|
98
94
|
fetch("modules").first.fetch("versions").
|
@@ -117,9 +113,7 @@ module Dependabot
|
|
117
113
|
# (since there's no lockfile to update the version in). We still
|
118
114
|
# return the latest commit for the given branch, in order to keep
|
119
115
|
# this method consistent
|
120
|
-
unless git_commit_checker.pinned?
|
121
|
-
return git_commit_checker.head_commit_for_current_branch
|
122
|
-
end
|
116
|
+
return git_commit_checker.head_commit_for_current_branch unless git_commit_checker.pinned?
|
123
117
|
|
124
118
|
# If the dependency is pinned to a tag that looks like a version then
|
125
119
|
# we want to update that tag. Because we don't have a lockfile, the
|
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.
|
4
|
+
version: 0.125.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-11 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.125.2
|
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.125.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|