| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
As the result order of `DidYouMean::SpellChecker#correct` is
undefined, keep the order of the original candidates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recent monitor.rb has performance problem because of interrupt
handlers. 'Monitor#synchronize' is frequently used primitive
so the performance of this method is important.
This patch rewrite 'monitor.rb' with 'monitor.so' (C-extension)
and make it faster. See [Feature #16255] for details.
Monitor class objects are normal object which include MonitorMixin.
This patch introduce a Monitor class which is implemented on C
and MonitorMixin uses Monitor object as re-entrant (recursive)
Mutex. This technique improve performance because we don't need
to care atomicity and we don't need accesses to instance variables
any more on Monitor class.
|
| |
|
| |
|
|
|
|
| |
Instead of building messages separately.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
```
require 'optparse'
OptionParser.new do |opts|
opts.on("-f", "--foo", "foo") {|v| }
opts.on("-b", "--bar", "bar") {|v| }
opts.on("-c", "--baz", "baz") {|v| }
end.parse!
```
```
$ ruby test.rb --baa
Traceback (most recent call last):
test.rb:7:in `<main>': invalid option: --baa (OptionParser::InvalidOption)
Did you mean? baz
bar
```
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The function getwch() returns some key sequences which start from 0 or 0xE0
with a following key code. Alt+` that is on/off key for input methods gives 0
and 41 so Reline was always ignoring 0 and following keys but numeric keypad
keys give 0 and following actual keys. This commit changes the behavior to be
ignoring only the 0 and 41 sequence.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
My previous fix in d0ed935d5bf8c3fce9800742a36e44fb7f63dda4 was
not correct, as pointed out by cremno on GitHub.
This simplifies things by just using Kernel#to_s. Also switch to
bind_call(obj) instead of bind(obj).call for better performance.
|
|
|
|
|
|
|
|
|
| |
This rescues some exceptions that could happen with a closed or
shutdown DRb socket. This can prevent the server from
exiting if an client socket is closed directly after it is
accepted.
Fixes [Bug #8039]
|
|
|
|
|
|
|
|
|
|
|
| |
This makes it so that client instances that call a method on a
server-side object that raise a subclass of Exception are handled
similarly to those that raise a subclass of StandardError.
Only reraise exceptions that we are fairly sure we don't want to
rescue.
Fixes [Bug #5618]
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
https://github.com/ruby/ruby/commit/f94202fcc228d0348ca050a7b18a8f8a538a7305#commitcomment-35505076
Co-Authored-By: Ary Borenszweig <asterite@gmail.com>
|
|
|
|
| |
https://github.com/rubygems/rubygems/commit/a7a673ce22
|
| |
|
| |
|
|
|
| |
[Bug #16250]
|
| |
|
|
|
|
| |
maintained at thread scope.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Handle BasicObject in drb
Also fix a bug in rescue clause of any_to_s because sprintf
does not handle the %l modifier.
Fixes [Bug #7833]
* Do not send a reply to the client if there is a connection error
This allows for normal TCP shutdown (fin-ack-fin-ack instead of
fin-ack-push-rst).
Patch from pierre@mouraf.org (Pierre-Alexandre Meyer).
Fixes [Bug #2339]
* Detect fork and do not reuse forked connections in drb
This associates each DRbConn with a pid, and if the pid changes,
it closes any DRbConns in the pool with a pid that no longer
matches. This fixes DRb servers from sending messages intended
for one client to another client after forking.
Fixes [Bug #2718]
Fixes [Bug #14471]
|
| |
|
| |
|
| |
|
|
|
|
| |
When reading Binding#irb, the file of the calling source is reflected in __FILE__ and __dir__.
|
|
|
|
|
|
|
|
|
| |
For BasicObject, bind the Kernel respond_to? instance method to the
object and call it instead of calling the method directly.
Also, use bind_call(recv, ...) for better performance.
Fixes [Bug #16127]
|
|
|
|
| |
https://github.com/rubygems/rubygems/commit/1de8f39ac4
|
|
|
| |
as the file is not executable anyway.
|
| |
|
|
|
|
| |
Fixes [Bug #11275]
|
| |
|
| |
|
|
|
|
| |
It's fixed for JRuby dedicatedly.
|
|
|
|
| |
https://github.com/rubygems/rubygems/commit/bde88f00a1
|
|
|
|
| |
https://github.com/rubygems/rubygems/commit/05146bb2fd
|
|
|
|
|
|
|
|
| |
The arity of this method has been -1 since the import, so the
option has been passed always, even if Zlib::GzipReader#initialize
does not take the option. Actually it takes the option since 1.9.
https://github.com/rubygems/rubygems/commit/2fcde0f4e0
|
|
|
|
|
|
|
|
| |
This is a follow up to d9d4a28f1cdd05a0e8dabb36d747d40bbcc30f16.
The commit prevented CRLR, but did not address an isolated CR or an
isolated LF.
Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
|
|
|
|
|
| |
Create the substrings necessary parts only, instead of cutting the
rest of the buffer. Also removed a useless, probable typo, regexp.
|
|
|
|
|
|
|
|
| |
The verbose mode warning has been present for almost 10 years.
If we ever plan to remove these methods, we should make the warning
a regular deprecation warning so that people are aware.
Implements [Feature #15961]
|
|
|
|
|
|
| |
Patch from Matthew Kerwin.
Fixes [Bug #14358]
|