tomoya ishida
tomoya ishida
### Motivation / Background In IRB's pull request https://github.com/ruby/irb/pull/907, IRB's behavior with `ENV['TERM']=dumb` will change. After the change, some test in `railties/test/application/console_test.rb` will fail like this. ``` Failure: FullStackConsoleTest#test_console_respects_user_defined_prompt_mode [test/application/console_test.rb:124]:...
## Description When `IRB.conf[:USE_SINGLELINE] = true` is set in `.irbrc`, debug command raises error. ``` From: a.rb @ line 4 : 1: def foo 2: end 3: => 4: binding.irb...
## Description When you run irb in root directory and tries to autocomplete require_relative path, IRB hangs. IRB tries to search every directory in your system. In my environment, it...
## Description Prepare these directory and files ``` $ mkdir foo $ echo binding.irb > foo/foobar.rb $ echo "require'./foo/foobar.rb'" > main.rb ``` Then execute `ruby main.rb` ``` $ ruby main.rb...
## Description Combination with heredoc and `\`, heredoc content can be placed between symbol beginning `:` and symbol content. ```ruby
## Description Running IRB in multiple thread won't work now. ```ruby Thread.new do sleep 2 binding.irb end binding.irb ``` If it can, debugging multithread program might be easier. ## PoC...
When GMP is not available, division of bignum is not efficient. This pull request implements Newton-Raphson division. https://en.wikipedia.org/wiki/Division_algorithm#Newton%E2%80%93Raphson_division This pull request also improves `Integer#to_s` and `Intger.sqrt` for large bignum because...
Prism accepts these codes ```ruby # syntax error, unexpected **arg (SyntaxError) a in (**) # syntax error, unexpected **arg, expecting ']' (SyntaxError) a in [**] ```
Prism accepts these codes ```ruby + ..a .. # (+..a).. a + ..b .. # (a + ..b).. a if ..b .. # (a if ..b).. def f = ..a...