From 705a9c98c313eaa31c4f0eaffc1ee214af44343c Mon Sep 17 00:00:00 2001 From: Hakanai Date: Tue, 7 Feb 2023 09:44:35 +1100 Subject: [PATCH 1/2] Updating .travis.yml to build against all current active Ruby versions --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 479afa0..5256a95 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: ruby rvm: - - "2.0.0" - - "2.1.0" + - "2.7.0" + - "3.0.0" + - "3.1.0" + - "3.2.0" script: "bundle exec rake" From 892eddf1533c7b57d9592dd6e1f8353f83c42f83 Mon Sep 17 00:00:00 2001 From: Hakanai Date: Tue, 7 Feb 2023 10:10:09 +1100 Subject: [PATCH 2/2] Fixing the call ruby 3 is complaining about --- lib/cane/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cane/file.rb b/lib/cane/file.rb index 5922aa6..6077ee1 100644 --- a/lib/cane/file.rb +++ b/lib/cane/file.rb @@ -19,7 +19,7 @@ def open(path) end def exists?(path) - ::File.exists?(path) + ::File.exist?(path) end def case_insensitive_glob(glob)