From 79b00d1d841b6f82bd77eb9789bf28b94a9a15d7 Mon Sep 17 00:00:00 2001 From: meatball <69751659+meatball133@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:59:29 +0100 Subject: [PATCH] Bump rubocop version and add missing actions checkout --- .github/workflows/generator-tests.yml | 5 ++-- Gemfile | 2 +- Gemfile.lock | 31 +++++++++++----------- exercises/practice/acronym/acronym_test.rb | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/generator-tests.yml b/.github/workflows/generator-tests.yml index a31e681dfa..ab1f872d43 100644 --- a/.github/workflows/generator-tests.yml +++ b/.github/workflows/generator-tests.yml @@ -9,9 +9,10 @@ on: jobs: test-generator-templates: - name: Test Generator + name: Check Generator Templates runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Set up Ruby uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 with: @@ -20,7 +21,7 @@ jobs: - name: Verify templates run: ruby ./bin/generate --verify test-generator: - name: Check Generator Templates + name: Test Generator runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 diff --git a/Gemfile b/Gemfile index 22c884c38e..15e36a15a5 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gem 'base64' gem 'minitest' gem 'rake' gem 'mocha', require: false -gem 'rubocop', '~> 1.50.0', require: false +gem 'rubocop', '~> 1.68.0', require: false gem 'rubocop-minitest', require: false gem 'rubocop-rake', require: false gem 'simplecov', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 39da4effde..2ef48e4318 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,34 +2,34 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) - citrus (3.0.2) base64 (0.2.0) + citrus (3.0.2) docile (1.4.0) - json (2.7.2) + json (2.8.1) + language_server-protocol (3.17.0.3) minitest (5.22.3) mocha (2.1.0) ruby2_keywords (>= 0.0.5) - parallel (1.24.0) - parser (3.3.0.5) + parallel (1.26.3) + parser (3.3.6.0) ast (~> 2.4.1) racc racc (1.7.3) rainbow (3.1.1) rake (13.2.1) - regexp_parser (2.9.0) - rexml (3.3.9) - rubocop (1.50.2) + regexp_parser (2.9.2) + rubocop (1.68.0) json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.0.0) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.31.2) - parser (>= 3.3.0.4) + rubocop-ast (1.34.1) + parser (>= 3.3.1.0) rubocop-minitest (0.34.5) rubocop (>= 1.39, < 2.0) rubocop-ast (>= 1.30.0, < 2.0) @@ -43,11 +43,10 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - strscan (3.1.0) toml-rb (3.0.1) citrus (~> 3.0, > 3.0) racc (~> 1.7) - unicode-display_width (2.5.0) + unicode-display_width (2.6.0) PLATFORMS ruby @@ -58,7 +57,7 @@ DEPENDENCIES mocha racc rake - rubocop (~> 1.50.0) + rubocop (~> 1.68.0) rubocop-minitest rubocop-rake simplecov diff --git a/exercises/practice/acronym/acronym_test.rb b/exercises/practice/acronym/acronym_test.rb index 2acf62c9bb..15c65a69b6 100644 --- a/exercises/practice/acronym/acronym_test.rb +++ b/exercises/practice/acronym/acronym_test.rb @@ -30,7 +30,7 @@ def test_punctuation_without_whitespace def test_very_long_abbreviation skip assert_equal 'ROTFLSHTMDCOALM', - Acronym.abbreviate('Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me') + Acronym.abbreviate('Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me') end def test_consecutive_delimiters