diff options
Diffstat (limited to 'dev-ruby/irb')
-rw-r--r-- | dev-ruby/irb/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/irb/files/irb-1.14.1-test-encoding.patch | 70 |
2 files changed, 0 insertions, 71 deletions
diff --git a/dev-ruby/irb/Manifest b/dev-ruby/irb/Manifest index 405f804b14cc..7392d4e53426 100644 --- a/dev-ruby/irb/Manifest +++ b/dev-ruby/irb/Manifest @@ -1,4 +1,3 @@ -AUX irb-1.14.1-test-encoding.patch 2823 BLAKE2B 5eb5d5ae6b21c454b2481e9de9c6e2bfff410bbf222dc0dc7808390d1d8e4d354c8c2a26f8013daaef242f7113436dafceffa47a1f19ac091f9382885341c9c9 SHA512 56b91787340d4b6818b24bc2222e35fcdaac86de15d59e3eb1b13f509d88730a2b37bdc54432436b2ca9bbc2c67c94d609b6c75d8826374d9ed37326b41a18dc DIST irb-1.11.1.tar.gz 128341 BLAKE2B ec2ebfd31b7d784668ed043d32b86bc0f77481b250170911332f4b9810f0ee5245ec65aac4d2fa4fc94f49c5d3fa59dd7c3a709f712d9f7f4c1ed6ddd7f0e2b3 SHA512 6b8eaf41410d43f4ab47961b56ce054f93e134e5cba51a08294baaa6de149a209e243a9cf649091f3176adfd0c22943fe222b61b0ab1215e0822d7007c154f17 DIST irb-1.13.2.tar.gz 139168 BLAKE2B 7dee24a02ad251e92c667c09a14af1e630bcd514c76290d146182c149cc083a394317ab7a1c46b6e0c34b84983e318d3e59b4ae74c63a17ce03d2677183135e0 SHA512 7d1e4c67ee5b43d37869ad37ec4cf356efe62d51f8a2205144c9d02a1157d23223a1453fef9016d85786c98445f11ff905eafef2f3dcdcf3432df75476076b57 DIST irb-1.14.3.tar.gz 143455 BLAKE2B 2535287ff64b3d8f9cede57a033c4de91c96c6acc43bc464fdf106ba18d19758d74c63f85523adf725a488a538de05233d404c2975dd872c7dfc6c43ec589265 SHA512 c2a6235d2a50bb27ef4405cfb42cd1c1189c7d2b7d3a837331628206492e4e4b9d8af6d61b3b367bced3c5d9f16b16cb97f7273c3f982b4ecf0f3ea25f1bd39d diff --git a/dev-ruby/irb/files/irb-1.14.1-test-encoding.patch b/dev-ruby/irb/files/irb-1.14.1-test-encoding.patch deleted file mode 100644 index 4347a5b554ba..000000000000 --- a/dev-ruby/irb/files/irb-1.14.1-test-encoding.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 7f385bc19badd2100b76e8b2404be5be46306bf6 Mon Sep 17 00:00:00 2001 -From: Go <monkeywzr@gmail.com> -Date: Sun, 20 Oct 2024 15:18:04 +0900 -Subject: [PATCH] Improve history test's encoding setting (#1022) - -* improve history test's encoding setting - -* fix missing locale error for ci and refactoring ---- - test/irb/test_history.rb | 17 +++++++++-------- - 1 file changed, 9 insertions(+), 8 deletions(-) - -diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb -index 791eef1ac..15c16ed89 100644 ---- a/test/irb/test_history.rb -+++ b/test/irb/test_history.rb -@@ -10,17 +10,20 @@ - module TestIRB - class HistoryTest < TestCase - def setup -+ @conf_backup = IRB.conf.dup - @original_verbose, $VERBOSE = $VERBOSE, nil - @tmpdir = Dir.mktmpdir("test_irb_history_") - setup_envs(home: @tmpdir) -- @backup_default_external = Encoding.default_external -+ IRB.conf[:LC_MESSAGES] = IRB::Locale.new -+ save_encodings - IRB.instance_variable_set(:@existing_rc_name_generators, nil) - end - - def teardown -+ IRB.conf.replace(@conf_backup) - IRB.instance_variable_set(:@existing_rc_name_generators, nil) - teardown_envs -- Encoding.default_external = @backup_default_external -+ restore_encodings - $VERBOSE = @original_verbose - FileUtils.rm_rf(@tmpdir) - end -@@ -146,7 +149,6 @@ def test_history_concurrent_use_readline - end - - def test_history_concurrent_use_not_present -- IRB.conf[:LC_MESSAGES] = IRB::Locale.new - IRB.conf[:SAVE_HISTORY] = 1 - io = TestInputMethodWithRelineHistory.new - io.class::HISTORY.clear -@@ -163,9 +165,9 @@ def test_history_concurrent_use_not_present - - def test_history_different_encodings - IRB.conf[:SAVE_HISTORY] = 2 -- Encoding.default_external = Encoding::US_ASCII -- locale = IRB::Locale.new("en_US.ASCII") -- assert_history(<<~EXPECTED_HISTORY.encode(Encoding::US_ASCII), <<~INITIAL_HISTORY.encode(Encoding::UTF_8), <<~INPUT, locale: locale) -+ IRB.conf[:LC_MESSAGES] = IRB::Locale.new("en_US.ASCII") -+ IRB.__send__(:set_encoding, Encoding::US_ASCII.name, override: false) -+ assert_history(<<~EXPECTED_HISTORY.encode(Encoding::US_ASCII), <<~INITIAL_HISTORY.encode(Encoding::UTF_8), <<~INPUT) - ???? - exit - EXPECTED_HISTORY -@@ -234,8 +236,7 @@ def history_concurrent_use_for_input_method(input_method) - end - end - -- def assert_history(expected_history, initial_irb_history, input, input_method = TestInputMethodWithRelineHistory, locale: IRB::Locale.new) -- IRB.conf[:LC_MESSAGES] = locale -+ def assert_history(expected_history, initial_irb_history, input, input_method = TestInputMethodWithRelineHistory) - actual_history = nil - history_file = IRB.rc_file("_history") - ENV["HOME"] = @tmpdir |