aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Update ERB docszverok2019-10-261-8/+21
| | | | | * Actualize Notes about other templating engines; * Document #location= method.
* Make `(#methodname)` a link with --hyperlink-all optionaycabta2019-10-261-1/+1
|
* Make `(#methodname)` a linkNobuyoshi Nakada2019-10-261-1/+1
|
* [ruby/forwardable] Use Gemfile instead of ↵Hiroshi SHIBATA2019-10-261-3/+0
| | | | | | Gem::Specification#add_development_dependency. https://github.com/ruby/forwardable/commit/1e7123a81b
* [ruby/forwardable] Remove string allocation in def_{instance,single}_delegatorsJeremy Evans2019-10-261-2/+2
| | | | https://github.com/ruby/forwardable/commit/1a994c90e1
* [ruby/forwardable] Make def_{instance,single}_delegators skip :__send__ and ↵Jeremy Evans2019-10-261-6/+4
| | | | | | | | | | | :__id__ Previously, __send__ and __id__ were skipped if provided as strings, but not skipped if provided as symbols. Fixes Ruby Bug 8855. https://github.com/ruby/forwardable/commit/2e61c8c66c
* [ruby/forwardable] Update spec.filesHiroshi SHIBATA2019-10-261-1/+1
| | | | https://github.com/ruby/forwardable/commit/1b6991e589
* [ruby/forwardable] Extracted VERSION constant for gemspecHiroshi SHIBATA2019-10-263-6/+8
| | | | https://github.com/ruby/forwardable/commit/387758d45a
* Rename old var name with new nameaycabta2019-10-251-1/+1
|
* [ruby/tracer] Use Gemfile instead of ↵Hiroshi SHIBATA2019-10-251-3/+0
| | | | | | Gem::Specification#add_development_dependency. https://github.com/ruby/tracer/commit/9df7d7937b
* Remove unsused output_method argumentJeremy Evans2019-10-242-9/+3
| | | | Fixes Ruby Bug 9876.
* [ruby/webrick] Don't check tainting in access log escapingJeremy Evans2019-10-241-5/+3
| | | | | | | Only untaint result on Ruby <2.7, as taint support is deprecated in Ruby 2.7+ and no longer has an effect. https://github.com/ruby/webrick/commit/4c430f9410
* [ruby/webrick] Support literal IPv6 addresses in X-Forwarded-HostJeremy Evans2019-10-241-1/+6
| | | | https://github.com/ruby/webrick/commit/6b6990ec81
* [ruby/webrick] Remove the squishing of whitespace in header valuesJeremy Evans2019-10-241-4/+1
| | | | | | | | | | While the stripping of header values is required by RFC 2616 4.2 and RFC 7230 3.2.4, the squishing is not and can break things, such as when one header contains an HMAC of another header. Fixes Ruby Bug 7021. https://github.com/ruby/webrick/commit/8b96088a86
* [ruby/webrick] bump version to 1.5.0Hiroshi SHIBATA2019-10-241-1/+1
| | | | https://github.com/ruby/webrick/commit/00c281caa7
* [ruby/webrick] Remove Webrick::HTTPResponse#to_sJeremy Evans2019-10-241-6/+0
| | | | | | | It is currently broken, and even if it worked, it can cause problems when debugging. See Ruby Bug 10715. https://github.com/ruby/webrick/commit/575dea8656
* Revert "Fixed the require path for e2mmap version file."Hiroshi SHIBATA2019-10-241-1/+1
| | | | This reverts commit ff953a003e03f5f070112ececefab4c07ff4cb0e.
* Fixed the require path for e2mmap version file.Hiroshi SHIBATA2019-10-241-1/+1
|
* Treat only left alt key as meta-key on Windowsaycabta2019-10-241-2/+3
| | | | | | On German keyboard, right alt key acts as like shift key. Ex. right-alt-8 is just "[". This input doesn't have meta-key statement.
* Support forced enter insertion by Ctrl+Enter on Windowsaycabta2019-10-241-2/+5
|
* Suppress duplicated "require 'reline'"aycabta2019-10-231-1/+1
|
* Fix indent...aycabta2019-10-231-1/+1
|
* Fallback to TCP in resolv if UDP bind raises EACCESJeremy Evans2019-10-211-2/+7
| | | | | | Original patch from Andy Grimm. Fixes [Bug #10747]
* Make suggestions order stable [Bug #16263]Nobuyoshi Nakada2019-10-211-1/+1
| | | | | As the result order of `DidYouMean::SpellChecker#correct` is undefined, keep the order of the original candidates.
* make monitor.so for performance. (#2576)Koichi Sasada2019-10-201-323/+0
| | | | | | | | | | | | | | | 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.
* Support DidYouMean by AmbiguousOption tooNobuyoshi Nakada2019-10-181-2/+3
|
* Defer adding additional info until getting the message of an errorNobuyoshi Nakada2019-10-181-13/+20
|
* Use DidYouMean.formatterNobuyoshi Nakada2019-10-181-1/+1
| | | | Instead of building messages separately.
* lib/optparse.rb: Show a did_you_mean hint for unknown optionYusuke Endoh2019-10-181-2/+16
| | | | | | | | | | | | | | | | | | | | ``` 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 ```
* Fix warning of generated parser for nested moduleSeiei Miyagi2019-10-171-1/+1
|
* Treat key sequences from getwch() that start from 0 or 0xE0 correctlyaycabta2019-10-181-0/+6
|
* Add numeric keypad key sequences on Windowsaycabta2019-10-181-0/+7
|
* Remove freezeaycabta2019-10-183-3/+3
|
* Ignore the input method key sequence from getwch() correctlyaycabta2019-10-181-1/+2
| | | | | | | | 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.
* Insert multiline incremental search result correctlyaycabta2019-10-181-3/+18
|
* Remove unused variableaycabta2019-10-171-1/+0
|
* Refactor prompt generation logicaycabta2019-10-171-34/+17
|
* Use `\&` instead of `\1` with captureKazuhiro NISHIYAMA2019-10-171-1/+1
|
* Fix DRbServer#any_to_sJeremy Evans2019-10-161-8/+2
| | | | | | | | 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.
* Do not raise an exception on a closed DRb socketJeremy Evans2019-10-161-0/+2
| | | | | | | | | 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]
* Handle subclasses of Exception in drbJeremy Evans2019-10-161-1/+3
| | | | | | | | | | | 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]
* Calculate prompt width correctlyaycabta2019-10-171-7/+9
|
* Collect multiline prompt logic into a methodaycabta2019-10-171-35/+17
|
* Support multiline history in incremental searchaycabta2019-10-161-3/+17
|
* Support backspace in incremental searchaycabta2019-10-161-1/+1
|
* C-r is incremental history search in vi insert modeaycabta2019-10-161-1/+1
|
* Fixed the key to delete [Bug #16250]Nobuyoshi Nakada2019-10-151-1/+1
| | | | | | https://github.com/ruby/ruby/commit/f94202fcc228d0348ca050a7b18a8f8a538a7305#commitcomment-35505076 Co-Authored-By: Ary Borenszweig <asterite@gmail.com>
* [rubygems/rubygems] Bump version to 3.1.0.pre2Hiroshi SHIBATA2019-10-151-1/+1
| | | | https://github.com/rubygems/rubygems/commit/a7a673ce22
* Use compare_by_identity hash [Bug #16250]Nobuyoshi Nakada2019-10-151-3/+3
|
* Simplify circular reference check of IRB::ColorTakashi Kokubun2019-10-141-16/+14
|