ruby-changes:60692
From: Hiroshi <ko1@a...>
Date: Wed, 8 Apr 2020 15:57:17 +0900 (JST)
Subject: [ruby-changes:60692] 0c131fb7ff (master): [ruby/net-ftp] Guard with under the Ruby 2.6
https://git.ruby-lang.org/ruby.git/commit/?id=0c131fb7ff From 0c131fb7ff0b927d8d7bf5824dcb19ed2efc926d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 26 Mar 2020 19:24:41 +0900 Subject: [ruby/net-ftp] Guard with under the Ruby 2.6 https://github.com/ruby/net-ftp/commit/bed4bc31db diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb index 3f86d16..affe300 100644 --- a/test/net/ftp/test_ftp.rb +++ b/test/net/ftp/test_ftp.rb @@ -2274,7 +2274,7 @@ EOF https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L2274 begin ftp = Net::FTP.new ftp.resume = resume - ftp.read_timeout = RubyVM::MJIT.enabled? ? 5 : 0.2 # use large timeout for --jit-wait + ftp.read_timeout = (defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?) ? 5 : 0.2 # use large timeout for --jit-wait ftp.connect(SERVER_ADDR, server.port) ftp.login assert_match(/\AUSER /, commands.shift) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/