diff --git a/Gemfile b/Gemfile index 7a7950b399..7bca0c1013 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,9 @@ gem "rake-compiler" gem "test-unit" platforms :mri, :mswin, :mingw, :x64_mingw do - gem "ffi" + if RUBY_VERSION >= '3.0.0' + gem "ffi" + end gem "parser" gem "ruby_memcheck" gem "ruby_parser"