From 46bc64dce808fe4f2ef251151e8b7aa63791a52d Mon Sep 17 00:00:00 2001 From: Rasmus Kjellberg <2277443+kjellberg@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:47:39 +0200 Subject: [PATCH] chore: support from ruby 3.1 --- .rubocop.yml | 2 +- lib/kiqr/framework.rb | 4 ++-- test/dummy/bin/setup | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 98b9752..ac5ee16 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 3.3.0 + TargetRubyVersion: 3.1 # Omakase Ruby styling for Rails inherit_gem: { rubocop-rails-omakase: rubocop.yml } diff --git a/lib/kiqr/framework.rb b/lib/kiqr/framework.rb index c9582fa..bbf4d22 100644 --- a/lib/kiqr/framework.rb +++ b/lib/kiqr/framework.rb @@ -16,8 +16,8 @@ module Framework private # Set a flash message with a translation key - def kiqr_flash_message(type, message, **) - flash[type] = I18n.t("kiqr.flash_messages.#{message}", **) + def kiqr_flash_message(type, message, args) + flash[type] = I18n.t("kiqr.flash_messages.#{message}", args) end # Automatically include account_id in all URL options if it is already present in the params. diff --git a/test/dummy/bin/setup b/test/dummy/bin/setup index 3ec5486..ff6cc2c 100755 --- a/test/dummy/bin/setup +++ b/test/dummy/bin/setup @@ -4,8 +4,8 @@ require "fileutils" # path to your application root. APP_ROOT = File.expand_path("..", __dir__) -def system!(*) - system(*, exception: true) +def system!(command) + system(command, exception: true) end FileUtils.chdir APP_ROOT do