From 08945a10a13f0eaa23dfc88bd29c5b27af4407b2 Mon Sep 17 00:00:00 2001 From: Matt Schouten Date: Thu, 9 Sep 2021 16:30:31 -0500 Subject: [PATCH] Add support for Ruby 3 --- src/about_iteration.rb | 2 +- src/about_strings.rb | 2 +- src/neo.rb | 2 +- src/path_to_enlightenment.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/about_iteration.rb b/src/about_iteration.rb index 2a595dd..47d19d4 100644 --- a/src/about_iteration.rb +++ b/src/about_iteration.rb @@ -14,7 +14,7 @@ class AboutIteration < Neo::Koan end end - in_ruby_version("1.9", "2") do + in_ruby_version("1.9", "2", "3") do def as_name(name) name.to_sym end diff --git a/src/about_strings.rb b/src/about_strings.rb index c74bef2..cf4cc69 100644 --- a/src/about_strings.rb +++ b/src/about_strings.rb @@ -159,7 +159,7 @@ EOS end end - in_ruby_version("1.9", "2") do + in_ruby_version("1.9", "2", "3") do def test_in_modern_ruby_single_characters_are_represented_by_strings assert_equal __('a'), ?a assert_equal __(false), ?a == 97 diff --git a/src/neo.rb b/src/neo.rb index e156dfd..af6c882 100644 --- a/src/neo.rb +++ b/src/neo.rb @@ -70,7 +70,7 @@ class Object end end - in_ruby_version("1.9", "2") do + in_ruby_version("1.9", "2", "3") do public :method_missing end end diff --git a/src/path_to_enlightenment.rb b/src/path_to_enlightenment.rb index 9e8ccbe..7b7d793 100644 --- a/src/path_to_enlightenment.rb +++ b/src/path_to_enlightenment.rb @@ -12,7 +12,7 @@ require 'about_strings' require 'about_symbols' require 'about_regular_expressions' require 'about_methods' -in_ruby_version("2") do +in_ruby_version("2", "3") do require 'about_keyword_arguments' end require 'about_constants'