[前][次][番号順一覧][スレッド一覧]

ruby-changes:58299

From: aycabta <ko1@a...>
Date: Fri, 18 Oct 2019 03:05:20 +0900 (JST)
Subject: [ruby-changes:58299] 53c05a6cf4 (master): Remove freeze

https://git.ruby-lang.org/ruby.git/commit/?id=53c05a6cf4

From 53c05a6cf4bb1713d9db63b6e292644bead16da6 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Fri, 18 Oct 2019 02:29:13 +0900
Subject: Remove freeze


diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb
index 8832dca..b0f4d3d 100644
--- a/lib/reline/ansi.rb
+++ b/lib/reline/ansi.rb
@@ -7,7 +7,7 @@ class Reline::ANSI https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L7
     [27, 91, 51, 126] => :key_delete,     # Del
     [27, 91, 49, 126] => :ed_move_to_beg, # Home
     [27, 91, 52, 126] => :ed_move_to_end, # End
-  }.each_key(&:freeze).freeze
+  }
 
   @@input = STDIN
   def self.input=(val)
diff --git a/lib/reline/general_io.rb b/lib/reline/general_io.rb
index 47cab80..291c14c 100644
--- a/lib/reline/general_io.rb
+++ b/lib/reline/general_io.rb
@@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/reline/general_io.rb#L1
 require 'timeout'
 
 class Reline::GeneralIO
-  RAW_KEYSTROKE_CONFIG = {}.freeze
+  RAW_KEYSTROKE_CONFIG = {}
 
   @@buf = []
 
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index 18bbbfa..9c2baba 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -10,7 +10,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L10
     [224, 71] => :ed_move_to_beg,  # Home
     [224, 79] => :ed_move_to_end,  # End
     [  0, 41] => :ed_unassigned,   # input method on/off
-  }.each_key(&:freeze).freeze
+  }
 
   if defined? JRUBY_VERSION
     require 'win32api'
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]