<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/irb/test_init.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/irb] Change default completor from regexp to auto, try</title>
<updated>2024-10-06T11:10:12+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-10-06T11:10:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=98620f6c5246d27fed440b8d61cdb31cd915eafa'/>
<id>98620f6c5246d27fed440b8d61cdb31cd915eafa</id>
<content type='text'>
TypeCompletor and fallback to RegexpCompletor.
(https://github.com/ruby/irb/pull/1010)

https://github.com/ruby/irb/commit/bb6a99d815
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TypeCompletor and fallback to RegexpCompletor.
(https://github.com/ruby/irb/pull/1010)

https://github.com/ruby/irb/commit/bb6a99d815
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Clear ENV["XDG_CONFIG_HOME"] to avoid loading</title>
<updated>2024-07-18T10:56:19+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-07-18T10:56:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c304bf13b55a30b9982f9c9e6187f5b56fc731b0'/>
<id>c304bf13b55a30b9982f9c9e6187f5b56fc731b0</id>
<content type='text'>
user-defined irbrc in TestIRB::ConfigValidationTest
(https://github.com/ruby/irb/pull/982)

https://github.com/ruby/irb/commit/632da0ff29
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
user-defined irbrc in TestIRB::ConfigValidationTest
(https://github.com/ruby/irb/pull/982)

https://github.com/ruby/irb/commit/632da0ff29
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Cleanup irbrc generator cache always at teardown</title>
<updated>2024-06-12T07:48:03+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-06-12T07:47:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c56d0adfa67667189635f9053ad0a36ae1fa62a4'/>
<id>c56d0adfa67667189635f9053ad0a36ae1fa62a4</id>
<content type='text'>
(https://github.com/ruby/irb/pull/968)

https://github.com/ruby/irb/commit/905184ff9c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/968)

https://github.com/ruby/irb/commit/905184ff9c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Clean up tmpdir</title>
<updated>2024-05-12T04:53:51+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-05-12T04:47:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4edd9b072c4382a901f7317c2c0c9e143554b709'/>
<id>4edd9b072c4382a901f7317c2c0c9e143554b709</id>
<content type='text'>
https://github.com/ruby/irb/commit/7d60349499
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/7d60349499
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Add a new initialization step to validate IRB.conf's</title>
<updated>2024-05-10T11:40:58+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2024-05-10T11:40:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c68bb2408829ffdac2465f38a1d040b7f1e1c6aa'/>
<id>c68bb2408829ffdac2465f38a1d040b7f1e1c6aa</id>
<content type='text'>
values
(https://github.com/ruby/irb/pull/953)

Currently, users can only find out that they have set a wrong value
for IRB configs when the value is used, with opaque error messages like
"comparison of Integer with true failed (TypeError)".

This commit adds a new initialization step to validate the values of
some IRB configs, so that users can find out about the wrong values
during the initialization of IRB.

https://github.com/ruby/irb/commit/af8ef2948b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
values
(https://github.com/ruby/irb/pull/953)

Currently, users can only find out that they have set a wrong value
for IRB configs when the value is used, with opaque error messages like
"comparison of Integer with true failed (TypeError)".

This commit adds a new initialization step to validate the values of
some IRB configs, so that users can find out about the wrong values
during the initialization of IRB.

https://github.com/ruby/irb/commit/af8ef2948b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Fix irb_history saved to current directory</title>
<updated>2024-03-16T15:20:03+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-03-16T15:19:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bda5b099375d91274a5314aad2608f8e5b37e891'/>
<id>bda5b099375d91274a5314aad2608f8e5b37e891</id>
<content type='text'>
(https://github.com/ruby/irb/pull/901)

* Always save irb_history in HOME or XDG_CONFIG_HOME

Also split irbrc search logic from irb_history search logic as a refactor

* Remove IRB.conf[:RC_NAME_GENERATOR] because it's not configurable

This conf is used to specify which irbrc to load. Need to configure before irbrc is loaded, so it's actually not configurable.
This conf is also used for history file search, but it is configurable by conf[:HISTORY_FILE].

* remove rc_file_test because it is tested with rc_files, remove useless test setup

* Make internal irbrc searching method private

https://github.com/ruby/irb/commit/11d03a6ff7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/901)

* Always save irb_history in HOME or XDG_CONFIG_HOME

Also split irbrc search logic from irb_history search logic as a refactor

* Remove IRB.conf[:RC_NAME_GENERATOR] because it's not configurable

This conf is used to specify which irbrc to load. Need to configure before irbrc is loaded, so it's actually not configurable.
This conf is also used for history file search, but it is configurable by conf[:HISTORY_FILE].

* remove rc_file_test because it is tested with rc_files, remove useless test setup

* Make internal irbrc searching method private

https://github.com/ruby/irb/commit/11d03a6ff7
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Add the ability to fetch and load multiple irb files.</title>
<updated>2024-03-05T16:07:45+00:00</updated>
<author>
<name>Haroon Ahmed</name>
<email>haroon.ahmed25@gmail.com</email>
</author>
<published>2024-03-05T16:07:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8f6113a91e6786aaf131942b35ab5b7465f756a0'/>
<id>8f6113a91e6786aaf131942b35ab5b7465f756a0</id>
<content type='text'>
(https://github.com/ruby/irb/pull/859)

This allows hierarchy when loading rc files for example both files below
are loaded;

project/.irbrc
~/.irbrc

https://github.com/ruby/irb/commit/b53ebc6655

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/859)

This allows hierarchy when loading rc files for example both files below
are loaded;

project/.irbrc
~/.irbrc

https://github.com/ruby/irb/commit/b53ebc6655

Co-authored-by: Stan Lo &lt;stan001212@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Fix usage of tracer gem and add tests</title>
<updated>2024-02-06T16:46:50+00:00</updated>
<author>
<name>Nuno Silva</name>
<email>nunosilva800@gmail.com</email>
</author>
<published>2024-02-06T16:46:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=300dee1fe8275b7444007b418323544b571f585c'/>
<id>300dee1fe8275b7444007b418323544b571f585c</id>
<content type='text'>
(https://github.com/ruby/irb/pull/857)

The new tests are skipped when ruby below 3.1, as it was a default gem on it, and in a version we do not support.

This also move definition of `use_tracer` to module Context instead of monkey patch.

https://github.com/ruby/irb/commit/08834fbd5f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/857)

The new tests are skipped when ruby below 3.1, as it was a default gem on it, and in a version we do not support.

This also move definition of `use_tracer` to module Context instead of monkey patch.

https://github.com/ruby/irb/commit/08834fbd5f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] test_recovery_sigint: Ensure precondition is met</title>
<updated>2024-01-01T10:58:35+00:00</updated>
<author>
<name>Sorah Fukumori</name>
<email>her@sorah.jp</email>
</author>
<published>2024-01-01T10:58:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cd411778159618dd926614e0acd52ac5549a9408'/>
<id>cd411778159618dd926614e0acd52ac5549a9408</id>
<content type='text'>
(https://github.com/ruby/irb/pull/829)

* test_recovery_sigint: Ensure precondition is met

test_recovery_sigint depends on its process has SIG_DEF sigaction for
SIGINT. When its parent process set SIG_IGN which inherits to children,
then this test fails. This patch ensures this precondition met
regardless of inherited sigaction from its parent.

* Add test for restoration of other SIGINT handlers

Add another variant of test_recovery_sigint to ensure IRB to preserve
existing SIGINT handler other than SIG_DEF.

https://github.com/ruby/irb/commit/77ee59d026
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/829)

* test_recovery_sigint: Ensure precondition is met

test_recovery_sigint depends on its process has SIG_DEF sigaction for
SIGINT. When its parent process set SIG_IGN which inherits to children,
then this test fails. This patch ensures this precondition met
regardless of inherited sigaction from its parent.

* Add test for restoration of other SIGINT handlers

Add another variant of test_recovery_sigint to ensure IRB to preserve
existing SIGINT handler other than SIG_DEF.

https://github.com/ruby/irb/commit/77ee59d026
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Warn users about errors in loading RC files</title>
<updated>2023-12-20T10:11:01+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2023-12-18T14:36:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2793a30b69177e7c7bbf124ccfca7b4f4216ca84'/>
<id>2793a30b69177e7c7bbf124ccfca7b4f4216ca84</id>
<content type='text'>
(https://github.com/ruby/irb/pull/817)

1. Because `IRB.rc_file` always generates an rc file name, even if the
   file doesn't exist, we should check the file exists before trying to
   load it.
2. If any type of errors occur while loading the rc file, we should
   warn the user about it.

https://github.com/ruby/irb/commit/37ffdc6b19
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/817)

1. Because `IRB.rc_file` always generates an rc file name, even if the
   file doesn't exist, we should check the file exists before trying to
   load it.
2. If any type of errors occur while loading the rc file, we should
   warn the user about it.

https://github.com/ruby/irb/commit/37ffdc6b19
</pre>
</div>
</content>
</entry>
</feed>
