Skip to content

Commit

Permalink
Add Ruby 2.7.3 and 3.0.1 to the test matrix (#969)
Browse files Browse the repository at this point in the history
* Add Ruby 2.7.3 and 3.0.1 to the test matrix

* Bring compatibility with Ruby 3 explicit keyword arguments

Signed-off-by: Rémy Coutable <remy@rymai.me>
  • Loading branch information
rymai committed May 13, 2021
1 parent 40e5a39 commit a5a0d83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ rvm:
- 2.4.9
- 2.5.7
- 2.6.5
- jruby-9.1.17.0
- 2.7.3
- 3.0.1
- jruby-9.2.8.0
- rbx-3.107
matrix:
allow_failures:
- rvm: rbx-3.107

jdk:
- openjdk8

env:
global:
- JRUBY_OPTS="--debug"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ platforms :rbx do
gem "psych"
gem "racc"
gem "rubinius-coverage"
gem "rubysl", "~> 2.0"
# gem "rubysl", "~> 2.0"
end
2 changes: 1 addition & 1 deletion lib/guard/plugin_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def initialize_plugin(options)
klass.new(options.delete(:watchers), options)
else
begin
klass.new(options)
klass.new(**options)
rescue ArgumentError => e
fail "Failed to call #{klass}.new(options): #{e}"
end
Expand Down

0 comments on commit a5a0d83

Please sign in to comment.