dependabot-terraform 0.265.0 → 0.267.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: 62a91f9b85e8cc81dd3d94bfb86d6b260fe56c274f26ead6a1a4c678ba378af7
4
+ data.tar.gz: 2cee8a2dcaf9d7a5d8ec492ad68cc05dea72baa6d12d1c92ac45067b877e050c
5
5
  SHA512:
6
- metadata.gz: 68424612e3b4c3f134bf3a2c9a82948d2a08111d4475d84e409b3610821bd3dec4ac65ac346a4793531b1cbfaa3cc20f2db79dfaebafd55120506adbd748f029
7
- data.tar.gz: b0e0f89f97264f53faa1e929255fbba9152ec5ee8e733289bda85f98e0f13e5761ac8dd38f36c72199887aa8151a7c66c4df181049912a5e6e8c7b5a92f154f8
6
+ metadata.gz: 79ad9009afbda29b20a54b5ae03044320ed88fc3fe97e06349aa0591fbaaecc45638b651d16ca7a2797d9c30cf645fbb08f0452c15615d67035d5cf1862c4411
7
+ data.tar.gz: 0ac7d95c328fdabc405b63b6d0085eb9f28aae8bf687f2b61bbb37c7a216d0b9d8e4a8f1c6d284c25a0fd5609b2a59112aada3837414a5b8c531df395bb26f8d
@@ -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.267.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-25 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.267.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.267.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.267.0
264
264
  post_install_message:
265
265
  rdoc_options: []
266
266
  require_paths: