Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-26 18:10:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-26 18:10:20 +0300
commitaad3ac9e5e59d47e389ff387e9fc2ae3a008de33 (patch)
tree42ab9daf2c541be5fe58798d7ea0d86b190c2df8 /lib/gitlab/ci/ansi2html.rb
parente5e0589e097991ca671a348de81331240e85719d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/ansi2html.rb')
-rw-r--r--lib/gitlab/ci/ansi2html.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/ci/ansi2html.rb b/lib/gitlab/ci/ansi2html.rb
index 1fac00337a3..97988d8aa13 100644
--- a/lib/gitlab/ci/ansi2html.rb
+++ b/lib/gitlab/ci/ansi2html.rb
@@ -30,6 +30,8 @@ module Gitlab
Converter.new.convert(ansi, state)
end
+ Result = Struct.new(:html, :state, :append, :truncated, :offset, :size, :total, keyword_init: true) # rubocop:disable Lint/StructNewOverride
+
class Converter
def on_0(_)
reset
@@ -278,9 +280,7 @@ module Gitlab
close_open_tags
- # TODO: replace OpenStruct with a better type
- # https://gitlab.com/gitlab-org/gitlab/issues/34305
- OpenStruct.new(
+ Ansi2html::Result.new(
html: @out.force_encoding(Encoding.default_external),
state: state,
append: append,