dependabot-terraform 0.265.0 → 0.266.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: 9726259cc3c197dd368b88f145b5c4f6fb084f3430a18828c61987b05ce972c7
4
- data.tar.gz: 8e282f6b46c6093d9115210873f3af0b0891e1b4fcdf861d09a0401e1af5d4e6
3
+ metadata.gz: abf9cafa6ae869558f0b5700c9a9c47406eec7873dd720d76197c3e3ad307179
4
+ data.tar.gz: 336efa63bfa6a722205c1ffc21025415392b03d98b8553c3b8349e21ac4142c1
5
5
  SHA512:
6
- metadata.gz: 68424612e3b4c3f134bf3a2c9a82948d2a08111d4475d84e409b3610821bd3dec4ac65ac346a4793531b1cbfaa3cc20f2db79dfaebafd55120506adbd748f029
7
- data.tar.gz: b0e0f89f97264f53faa1e929255fbba9152ec5ee8e733289bda85f98e0f13e5761ac8dd38f36c72199887aa8151a7c66c4df181049912a5e6e8c7b5a92f154f8
6
+ metadata.gz: d8db0843bc2787eeab08d8c01f77007edba8410436cad6f908fe6e29ef04a7106217ce37da84b4fcc2bfc824c33518fda249ec1343759529dac78c38282b49a1
7
+ data.tar.gz: e534f1100235e60bdeb43629c8cb3b2ef753cbd019114600856a580ef613e63de5a548a1337533059fa7fb783b99a0751733f98e53025845f53be113851f3d39
@@ -19,6 +19,9 @@ module Dependabot
19
19
  sig { override.params(version: VersionParameter).void }
20
20
  def initialize(version)
21
21
  @version_string = T.let(version.to_s, String)
22
+ version = Version.remove_leading_v(version)
23
+ version = Version.remove_backport(version)
24
+
22
25
  super
23
26
  end
24
27
 
@@ -31,6 +34,30 @@ module Dependabot
31
34
  def to_s
32
35
  @version_string
33
36
  end
37
+
38
+ sig { override.params(version: VersionParameter).returns(T::Boolean) }
39
+ def self.correct?(version)
40
+ version = Version.remove_leading_v(version)
41
+ version = Version.remove_backport(version)
42
+
43
+ return false if version.to_s.strip.empty?
44
+
45
+ super
46
+ end
47
+
48
+ sig { params(version: VersionParameter).returns(VersionParameter) }
49
+ def self.remove_leading_v(version)
50
+ return version.gsub(/^v/, "") if version.is_a?(String)
51
+
52
+ version
53
+ end
54
+
55
+ sig { params(version: VersionParameter).returns(VersionParameter) }
56
+ def self.remove_backport(version)
57
+ return version.split("+").first if version.is_a?(String) && version.include?("+")
58
+
59
+ version
60
+ end
34
61
  end
35
62
  end
36
63
  end
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.265.0
4
+ version: 0.266.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-07-18 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.265.0
19
+ version: 0.266.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.265.0
26
+ version: 0.266.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.63.2
117
+ version: 1.65.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.63.2
124
+ version: 1.65.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -260,7 +260,7 @@ licenses:
260
260
  - MIT
261
261
  metadata:
262
262
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
263
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.265.0
263
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.266.0
264
264
  post_install_message:
265
265
  rdoc_options: []
266
266
  require_paths: