From 6d5fffc789d41b357a03e899d8d5c7841a597fd9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 03:07:58 +0000 Subject: [PATCH] Bump rubocop-shopify from 2.14.0 to 2.15.1 Bumps [rubocop-shopify](https://github.com/Shopify/ruby-style-guide) from 2.14.0 to 2.15.1. - [Release notes](https://github.com/Shopify/ruby-style-guide/releases) - [Commits](https://github.com/Shopify/ruby-style-guide/compare/v2.14.0...v2.15.1) --- updated-dependencies: - dependency-name: rubocop-shopify dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- lib/cli/ui/ansi.rb | 2 +- lib/cli/ui/frame/frame_style.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index db3172f2..4b4ed62c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -55,7 +55,7 @@ GEM parser (>= 3.2.1.0) rubocop-rake (0.6.0) rubocop (~> 1.0) - rubocop-shopify (2.14.0) + rubocop-shopify (2.15.1) rubocop (~> 1.51) rubocop-sorbet (0.7.7) rubocop (>= 0.90.0) diff --git a/lib/cli/ui/ansi.rb b/lib/cli/ui/ansi.rb index aca41314..6a2afd94 100644 --- a/lib/cli/ui/ansi.rb +++ b/lib/cli/ui/ansi.rb @@ -45,7 +45,7 @@ def printing_width(str) # sig { params(str: String).returns(String) } def strip_codes(str) - str.gsub(/\x1b\[[\d;]+[A-z]|\r/, '') + str.gsub(/\x1b\[[\d;]+[A-Za-z]|\r/, '') end # Returns an ANSI control sequence diff --git a/lib/cli/ui/frame/frame_style.rb b/lib/cli/ui/frame/frame_style.rb index db0b952f..f77bf960 100644 --- a/lib/cli/ui/frame/frame_style.rb +++ b/lib/cli/ui/frame/frame_style.rb @@ -106,8 +106,8 @@ def initialize(name) sig { returns(String) } def message keys = FrameStyle::MAP.keys.map(&:inspect).join(', ') - "invalid frame style: #{@name.inspect}" \ - ' -- must be one of CLI::UI::Frame::FrameStyle::MAP ' \ + "invalid frame style: #{@name.inspect} " \ + '-- must be one of CLI::UI::Frame::FrameStyle::MAP ' \ "(#{keys})" end end