From e55edcf938c2650c5b706eccda69421a5518d0ae Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 27 May 2020 12:34:22 +0200 Subject: [PATCH] Test against Ruby 2.7 --- .travis.yml | 17 ++++++++++++----- Gemfile.lock | 2 +- lib/responders/flash_responder.rb | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 772b68c..0f55914 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,10 @@ sudo: false cache: bundler language: ruby rvm: - - 2.4.6 - - 2.5.5 - - 2.6.3 + - '2.4' + - '2.5' + - '2.6' + - '2.7' - ruby-head gemfile: - Gemfile @@ -15,10 +16,16 @@ gemfile: - gemfiles/Gemfile-rails.5.0.x matrix: exclude: - - rvm: 2.4.6 + - rvm: '2.4' gemfile: gemfiles/Gemfile-rails.6.0.x - - rvm: 2.4.6 + - rvm: '2.4' gemfile: gemfiles/Gemfile-rails.head + - rvm: '2.7' + gemfile: gemfiles/Gemfile-rails.5.0.x + - rvm: '2.7' + gemfile: gemfiles/Gemfile-rails.5.1.x + - rvm: '2.7' + gemfile: gemfiles/Gemfile-rails.5.2.x allow_failures: - rvm: ruby-head - gemfile: gemfiles/Gemfile-rails.head diff --git a/Gemfile.lock b/Gemfile.lock index 575d2ee..da10b20 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -98,4 +98,4 @@ DEPENDENCIES rubocop-performance BUNDLED WITH - 1.17.3 + 2.1.4 diff --git a/lib/responders/flash_responder.rb b/lib/responders/flash_responder.rb index 6039c29..107a51c 100644 --- a/lib/responders/flash_responder.rb +++ b/lib/responders/flash_responder.rb @@ -128,7 +128,7 @@ def set_flash_message! return if controller.flash[status].present? options = mount_i18n_options(status) - message = Responders::FlashResponder.helper.t options[:default].shift, options + message = Responders::FlashResponder.helper.t options[:default].shift, **options set_flash(status, message) end