dependabot-terraform 0.125.0 → 0.125.1

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: c5a0aecb6ecc2a8c22ba75ca6616226695cf348e92881b15203675e993b8fcb4
4
- data.tar.gz: e1bf1b4d7add7d9b281f381a23769182ae42bc370b22e756d8e7bf2714e36027
3
+ metadata.gz: bed8b5cddadaa3530a7f589eb88bdbe55f5205cbe4bc241d2676c0ae4178f076
4
+ data.tar.gz: 1c5fbd78bb8504e85b16c53f59e8004f4988bccd043c0efca31eb0c69de2cbd5
5
5
  SHA512:
6
- metadata.gz: 8f1e2504b69eb2b9d17be691095246cd6d810f5d798cbc2dbfbe9ece019460f8987aae7c13cb1c1e1d7b5e906e7b77904b4aa313292002a5a4b631d09c152021
7
- data.tar.gz: b732f4883b1512a78bd041e053f2627bc4af536e1292f96e569228a37a1300121d7a14a60c7be855d7494e26214947d17af8a84858515d1f49eea77675629ed5
6
+ metadata.gz: d5b18a248735560a8251600dac1e4d94e66a930d868b287db4c903d054fe31631b85198c7eff4cc85867579066399921bf60f790bf98c0c4ede37a39146fa403
7
+ data.tar.gz: 0ff753b59c484dd917f16a24bea83ff78dd0fb3489d1518423fc0a01cd0aa7cffdcdfce2cd603bceffe321e8eb900991ca525612d3a35f9c75f99876b3c130d9
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.125.0
4
+ version: 0.125.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.125.0
19
+ version: 0.125.1
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.125.0
26
+ version: 0.125.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement