gitlab_quality-test_tooling 1.38.0 → 1.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3637a075d6d648d02c32ba655c94a1fcbe7eb4d6aa1c4cabf3387ea5b00b8af3
4
- data.tar.gz: ba6326ac31d8e7a558069ac6e195841e572ad9f8de772fa3281fd3c7f5c2bc3e
3
+ metadata.gz: 39af6264618a95cb389713ce1fa38e7386848626ec7491dc6f4d5f526728f6e8
4
+ data.tar.gz: a8264409db390f6a45628b82f60a25b8f4a8b6a0180724a9056f2be6c5638041
5
5
  SHA512:
6
- metadata.gz: 1bed8063e6e2e5504edcf23c88b05390c5ee2ed81651bc108ef28df1d1e70f4ab214fbdb84c0f8e645aaee36f36cfe181ae101a8a5bd9d8063e75bd9ae01e38e
7
- data.tar.gz: ebfadcceffe6327444fd2f614a29fc31c5116902c0113416ba3d40e3f750381cc5263c6b8a399b5eaaa1c3b96b12853e6467989d48c05116fabdd454db590d11
6
+ metadata.gz: 229f678831833845a88c115a422f4a831c77ce0805b0c5d1c9f8f55575441805de51f232c29e54081f3eea80bf3846152cf7826df3d211bc38827dcbd2dbdcf8
7
+ data.tar.gz: 8ef70e8ee6dfed9c6299cf39682856c9b75ca3e03a9bbccf17c3ce4fc29059e51730ee2bbe2751d8053819efe05032f8a7855aef6c37f65ebca05dc299010b38
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (1.38.0)
4
+ gitlab_quality-test_tooling (1.38.1)
5
5
  activesupport (>= 7.0, < 7.2)
6
6
  amatch (~> 0.4.1)
7
7
  fog-google (~> 1.24, >= 1.24.1)
@@ -8,6 +8,7 @@ module GitlabQuality
8
8
  BLOCKING_METADATA = ", :blocking%{suffix}"
9
9
  BRANCH_PREFIX = 'blocking-promotion'
10
10
 
11
+ MAX_LINE_LENGTH = 120
11
12
  class << self
12
13
  # Creates the merge requests for promoting E2E tests to :blocking
13
14
  #
@@ -137,6 +138,17 @@ module GitlabQuality
137
138
  line[line.rindex(' ')] = format(BLOCKING_METADATA, suffix: ' ')
138
139
  end
139
140
 
141
+ check_line_length(line)
142
+ end
143
+ end
144
+
145
+ # Add new line character and indentation if line length is greater than MAX_LINE_LENGTH
146
+ #
147
+ # @return [String]
148
+ def check_line_length(line)
149
+ if line.length > MAX_LINE_LENGTH
150
+ line.gsub(' :blocking', "\n#{context.indentation(line)}:blocking")
151
+ else
140
152
  line
141
153
  end
142
154
  end
@@ -304,7 +304,7 @@ module GitlabQuality
304
304
  (dry_run ? GitlabQuality::TestTooling::Slack::PostToSlackDry : GitlabQuality::TestTooling::Slack::PostToSlack).new(**slack_options).invoke!
305
305
  end
306
306
 
307
- # Provide indentaiton based on the given line
307
+ # Provide indentation based on the given line
308
308
  #
309
309
  # @param[String] line the line to use for indentation
310
310
  # @return[String] indentation
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "1.38.0"
5
+ VERSION = "1.38.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_quality-test_tooling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.38.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control