Age | Commit message (Collapse) | Author |
|
Notes:
Merged: https://github.com/ruby/ruby/pull/4586
|
|
```
$ ./local/bin/ruby -e '1.time {}'
-e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)
1.time {}
^^^^^
Did you mean? times
```
https://bugs.ruby-lang.org/issues/17930
Notes:
Merged: https://github.com/ruby/ruby/pull/4586
|
|
Previously, did_you_mean used `msg.end_with?(suggestion)` to check if
its suggestion is already added.
I'm now creating a gem that also modifies Exception's message. This
breaks did_you_mean's duplication check.
This change makes the check use String#include? instead of end_with?.
https://github.com/ruby/did_you_mean/commit/b35e030549
|
|
Previously, DidYouMean::Correctable#original_message did
`method(:to_s).super_method.call` to call the original to_s method by
skipping Correctable#to_s.
I'm now creating a gem that prepends another to_s method to NameError,
which confuses the hack. An immediate solution is to replace it with
`method(:to_s).super_method.super_method.call` to skip the two methods.
But it is too ad-hoc.
This changeset uses more extensible approach and allow a prepended
module to declare that they should be skipped by defining a constant
named `SKIP_TO_S_FOR_SUPER_LOOKUP`.
https://github.com/ruby/did_you_mean/commit/8352c154e3
|
|
https://github.com/ruby/did_you_mean/commit/fbe5aaaae8
|
|
https://github.com/ruby/did_you_mean/commit/3f69171813
|
|
|
|
https://github.com/ruby/irb/pull/249 actually slowed down how `code` is
concatenated. The original way of creating `code` is faster.
[before]
user system total real
2.420137 0.005364 2.425501 ( 2.426264)
[after]
user system total real
1.000221 0.007454 1.007675 ( 1.008295)
Theoretically, this implementation might skip lines that don't appear in
Ripper tokens, but this assumes such lines don't impact whether the code
passes compilation or not. At least normal blank lines seem to have an
`on_ignored_nl` token anyway though.
https://github.com/ruby/irb/commit/27dd2867cd
|
|
https://github.com/ruby/irb/commit/2b79e9ad21
|
|
https://github.com/ruby/reline/commit/010b28dfe9
|
|
https://github.com/ruby/reline/commit/de94746393
|
|
|
|
I don't think we need this monkey patch anymore, so lets remove it!
https://github.com/ruby/racc/commit/464485e912
|
|
https://github.com/ruby/racc/commit/fe3183b1ff
|
|
https://github.com/ruby/racc/commit/5af1a42a3b
|
|
https://github.com/ruby/racc/commit/d66cd12166
|
|
It is unclear why this was implemented, I assume
it was for performance back in 2006.
However today, this compression defeats bytecode caching
entirely and end up being counter productive.
https://github.com/ruby/racc/commit/ae3703c1d0
|
|
|
|
|
|
https://github.com/ruby/rdoc/commit/f6cca9bd2f
|
|
https://github.com/ruby/irb/commit/fdd5c0a71e
|
|
|
|
|
|
Allow usage of more detailed args when setting stackprof callback.
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
https://github.com/ruby/irb/commit/c9d101f450
|
|
https://github.com/ruby/reline/commit/5917e3a337
|
|
https://github.com/ruby/reline/commit/301ed11bec
|
|
https://github.com/ruby/reline/commit/acd8f8efbb
|
|
https://github.com/ruby/reline/commit/bb6ea232c2
|
|
https://github.com/ruby/reline/commit/24a2489b62
|
|
https://github.com/ruby/reline/commit/69beca2863
|
|
https://github.com/ruby/reline/commit/4b74c3d83a
|
|
https://github.com/ruby/reline/commit/af6f6ed088
|
|
https://github.com/ruby/reline/commit/4a3e308163
|
|
https://github.com/ruby/reline/commit/1e287d10cc
|
|
https://github.com/ruby/reline/commit/74a7ffaa2f
|
|
https://github.com/ruby/reline/commit/8daa392ba6
|
|
This fixes an error when output is redirected:
```
$ run_ruby -rreline -e '$stderr.puts Reline::Unicode.calculate_width("\u221a").inspect' </dev/null >/dev/null
/home/jeremy/tmp/ruby/lib/reline/ansi.rb:189:in `raw': Operation not supported by device (Errno::ENODEV)
```
The @@encoding -> defined?(@@encoding) changes is necessary because
without that part of the commit, the following error would be raised
by the above command:
```
/home/jeremy/tmp/reline/lib/reline/general_io.rb:10:in `encoding': uninitialized class variable @@encoding in Reline::GeneralIO (NameError)
```
Problem reported and initial patch for Windows provided by
Richard Sharman.
I tested this only on OpenBSD, but hopefully it works for other
operating systems.
Fixes [Bug #17493]
https://github.com/ruby/reline/commit/c001971bb3
|
|
To fix Reline::TestRendering#test_binding_for_vi_movement_mode.
https://github.com/ruby/reline/commit/0df3d2a1dc
|
|
In Japan, so many programmers used EUC-JP to write text files that contain
Japanese. Many .inputrc files which contain EUC-JP are still being copied and
used. This commit supports the whole encoding of what user set including UTF-8.
ref. https://github.com/ruby/reline/pull/280
https://github.com/ruby/reline/commit/0b45022e16
|
|
This needs https://github.com/aycabta/yamatanooroti/pull/19, which is released
by yamatanooroti gem 0.0.7, to test with yamatanooroti.
https://github.com/ruby/reline/commit/06c1f45da1
|
|
character values
This change ensures we use `Reline::IOGate`'s `encoding` when converting
characters from their integer values.
This fixes an issue that may occur if you have UTF characters in your
`.inputrc`, but your default encoding isn't set.
For example:
```
> 127864.ord.chr
RangeError: 127864 out of char range
from (pry):1:in `chr'
> Reline::IOGate.encoding
=> #<Encoding:UTF-8>
> 127864.ord.chr(Reline::IOGate.encoding)
=> "🍸"
```
https://github.com/ruby/reline/commit/cf372fc0fc
|
|
https://github.com/ruby/irb/commit/75aa8d159b
|
|
Mitigate the security risk:
https://devcraft.io/2021/01/07/universal-deserialisation-gadget-for-ruby-2-x-3-x.html
https://github.com/ruby/net-protocol/commit/a9970437e8
|
|
https://github.com/ruby/ostruct/commit/8534f69e4e
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/4572
|
|
https://github.com/ruby/ostruct/commit/bb253be3e9
|
|
Notes:
Merged-By: marcandre <github@marc-andre.ca>
|
|
https://github.com/ruby/rdoc/commit/ebe185c877
|
|
https://github.com/ruby/net-protocol/commit/97c4b68528
|
|
https://github.com/rubygems/rubygems/commit/aa390a3500
|