From 16f5d63bad783ac202a0533249f06deab436aded Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 3 Feb 2020 01:18:50 +0900 Subject: [PATCH] [ruby/irb] Use 0.step instead of (..0).each for Ruby 2.5 https://github.com/ruby/irb/commit/5d628ca40e --- lib/irb/easter-egg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/easter-egg.rb b/lib/irb/easter-egg.rb index 10468bcd92..64869d85fa 100644 --- a/lib/irb/easter-egg.rb +++ b/lib/irb/easter-egg.rb @@ -116,7 +116,7 @@ module IRB end ruby_model = RubyModel.new print "\e[?1049h" - (0..).each do |i| + 0.step do |i| # TODO (0..).each needs Ruby 2.6 or later buff = canvas.draw do ruby_model.render_frame(i) do |p1, p2| canvas.line(p1, p2)