From 7aa26e06598e639e2ddd9cbedc17f714bd16f07d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:25:14 +0000 Subject: [PATCH 1/2] Bump rubocop from 1.69.2 to 1.70.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.69.2 to 1.70.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.69.2...v1.70.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index f0ce27914..8fb8d3f60 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -661,7 +661,7 @@ GEM rspec rss (0.3.1) rexml - rubocop (1.69.2) + rubocop (1.70.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) From d440cf8b9b3275ecbc59e216198a88ae125dd120 Mon Sep 17 00:00:00 2001 From: Denny <2025@denny.me> Date: Fri, 10 Jan 2025 21:07:51 +0000 Subject: [PATCH 2/2] Fix new rubocop warning around array.include --- .../public/controllers/concerns/shinycms/admin/with_posts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb b/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb index e93d1df57..c6673db82 100644 --- a/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb +++ b/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb @@ -30,7 +30,7 @@ def enforce_change_author_capability_for_update( category ) # Return true if the page we're on might need a WYSIWYG HTML editor def with_html_editor? - action_name == 'new' || action_name == 'edit' + %w[ new edit ].include? action_name end end end