aycabta
935bb4c617
[ruby/reline] Add autocompletion on emacs mode by Tab / S-Tab
...
https://github.com/ruby/reline/commit/22d0b4e5d8
2021-08-30 02:37:23 +09:00
aycabta
11b825076b
[ruby/reline] Add config.autocompletion
...
https://github.com/ruby/reline/commit/3d918e4ccb
2021-08-30 02:37:23 +09:00
aycabta
60eb328d42
[ruby/irb] Version 1.3.8.pre.2
...
https://github.com/ruby/irb/commit/ff111173fd
2021-08-30 02:34:18 +09:00
aycabta
b35eff27dd
[ruby/irb] Update dependency, reline >= 0.2.8.pre.3
...
https://github.com/ruby/irb/commit/2f1d989d7c
2021-08-30 02:33:34 +09:00
aycabta
4750dfa6db
[ruby/irb] Update dependency to "reline >= 0.2.7.pre.2" for Reline.autocomplete=()
...
https://github.com/ruby/irb/commit/66178f34b9
2021-08-30 02:33:21 +09:00
aycabta
5f7c2291d6
[ruby/irb] Version 1.3.8.pre.1
...
https://github.com/ruby/irb/commit/9f82ae66fc
2021-08-29 20:33:21 +09:00
aycabta
8876710f2a
[ruby/reline] Version 0.2.8.pre.1
...
https://github.com/ruby/reline/commit/2668715509
2021-08-29 20:30:33 +09:00
aycabta
7857a1ab66
[ruby/reline] Make autocomplete dialog is registered first
...
https://github.com/ruby/reline/commit/d027dbe118
2021-08-29 20:30:33 +09:00
aycabta
535a1cc71c
[ruby/reline] Delete show doc dialog to move it to IRB
...
https://github.com/ruby/reline/commit/640102fe27
2021-08-29 20:30:33 +09:00
aycabta
74ba532883
[ruby/reline] Remove an unnecessary variable
...
https://github.com/ruby/reline/commit/3b8cc5ce0a
2021-08-29 20:30:33 +09:00
aycabta
3248c42592
[ruby/reline] Remove dialog_proc_list accessor of Reline
...
https://github.com/ruby/reline/commit/ac8fa84f4d
2021-08-29 20:30:33 +09:00
aycabta
32124de17e
[ruby/reline] Move constants of dialogs to under Reline
...
https://github.com/ruby/reline/commit/9100ea2934
2021-08-29 20:30:33 +09:00
aycabta
29586ec9f3
[ruby/reline] Use default dialog context to communicate others
...
https://github.com/ruby/reline/commit/5e67e6ffe0
2021-08-29 20:30:33 +09:00
aycabta
b023ef8594
[ruby/reline] Clear dialog by C-c
...
https://github.com/ruby/reline/commit/f66a079c85
2021-08-29 20:30:33 +09:00
aycabta
d41d41da38
[ruby/reline] Clear completion journey data when finished
...
https://github.com/ruby/reline/commit/03716a411e
2021-08-29 20:30:33 +09:00
aycabta
6273b9bb62
[ruby/reline] Use colored doc output with ANSI escape sequence
...
https://github.com/ruby/reline/commit/7d1c75b43f
2021-08-29 20:30:33 +09:00
aycabta
3d757ba1b6
[ruby/reline] Suppress crashes on nil
...
https://github.com/ruby/reline/commit/b5f62c366b
2021-08-29 20:30:33 +09:00
aycabta
acd15a39d2
[ruby/reline] Support custom bg color
...
https://github.com/ruby/reline/commit/cd0cbf53d5
2021-08-29 20:30:33 +09:00
aycabta
78f46e6576
[ruby/reline] Show method or class doc correctly
...
https://github.com/ruby/reline/commit/a505294f12
2021-08-29 20:30:33 +09:00
aycabta
7e8a627052
[ruby/reline] Implement doc display dialog in conjunction with autocomplete
...
https://github.com/ruby/reline/commit/e97bbc4ccf
2021-08-29 20:30:33 +09:00
aycabta
4cd344c958
[ruby/reline] Add the ability to handle context between dialogs
...
https://github.com/ruby/reline/commit/063d9c70d9
2021-08-29 20:30:33 +09:00
aycabta
8d4370b066
[ruby/reline] Support for multiple dialog rendering
...
https://github.com/ruby/reline/commit/f589fab718
2021-08-29 20:30:33 +09:00
aycabta
acffb0b068
[ruby/reline] Cut out the autocomplete callback
...
https://github.com/ruby/reline/commit/46aa2694da
2021-08-29 20:30:33 +09:00
aycabta
164e486225
[ruby/reline] Remove @dialog_updown and @dialog_contents_width
...
https://github.com/ruby/reline/commit/458cb8a9cc
2021-08-29 20:30:33 +09:00
aycabta
4b2b10707a
[ruby/reline] Implement dynamic selection of candidates
...
https://github.com/ruby/reline/commit/e46437df00
2021-08-29 20:30:33 +09:00
aycabta
8e463e3e73
[ruby/reline] Remove unnecessary condition
...
https://github.com/ruby/reline/commit/07e911ec8e
2021-08-29 20:30:33 +09:00
aycabta
fdc005e54e
[ruby/reline] Completion journey starts with one of candidates
...
First one is just original string.
https://github.com/ruby/reline/commit/ccb70cc240
2021-08-29 20:30:33 +09:00
aycabta
18c0814fe0
[ruby/reline] Fix typo
...
https://github.com/ruby/reline/commit/6370353c71
2021-08-29 20:30:33 +09:00
aycabta
475038a622
[ruby/reline] Move cursor correctly when current line is auto wrapped
...
https://github.com/ruby/reline/commit/14c8fade54
2021-08-29 20:30:33 +09:00
aycabta
ff43b0f2dd
[ruby/reline] Update dialog backup before clearing
...
https://github.com/ruby/reline/commit/a39e2c8813
2021-08-29 20:30:33 +09:00
aycabta
ca1a2d1f68
[ruby/reline] Show autocomplete correctly when starts from prev line
...
https://github.com/ruby/reline/commit/f31a76ff31
2021-08-29 20:30:33 +09:00
aycabta
06bd48aba8
[ruby/reline] Remove unnecessary metadata between lines
...
https://github.com/ruby/reline/commit/83928249e3
2021-08-29 20:30:33 +09:00
aycabta
081e5de34d
[ruby/reline] Combine vertical processing into @dialog_vertical_offset
...
https://github.com/ruby/reline/commit/600b93620c
2021-08-29 20:30:33 +09:00
aycabta
f863ed5210
[ruby/reline] Drop too much contents before processing
...
https://github.com/ruby/reline/commit/94f7027edc
2021-08-29 20:30:33 +09:00
aycabta
fb9fe4c43f
[ruby/reline] Display autocomplete below original line if end point was wrapped
...
https://github.com/ruby/reline/commit/49f3392d59
2021-08-29 20:30:33 +09:00
aycabta
9b2afb2eed
[ruby/reline] Scroll properly to create margin
...
https://github.com/ruby/reline/commit/064d54f8f1
2021-08-29 20:30:33 +09:00
aycabta
85dd0ad5e0
[ruby/reline] Move dialog pos to left when goes beyond right edge
...
https://github.com/ruby/reline/commit/f1efa2b062
2021-08-29 20:30:33 +09:00
aycabta
d768eeeddb
[ruby/reline] Support hide/show cursor on Windows
...
https://github.com/ruby/reline/commit/0c870813bd
2021-08-29 20:30:33 +09:00
aycabta
02a61fe33f
[ruby/reline] Hide cursor when rendering dialog
...
https://github.com/ruby/reline/commit/a9050cf676
2021-08-29 20:30:32 +09:00
aycabta
c0349765e9
[ruby/reline] Remove debug code
...
https://github.com/ruby/reline/commit/2389d175f7
2021-08-29 20:30:32 +09:00
aycabta
2ec3977ce2
[ruby/reline] Clear after cursor
...
https://github.com/ruby/reline/commit/4d7503cd1f
2021-08-29 20:30:32 +09:00
aycabta
b95e5f4a41
[ruby/reline] Move cursor to rerender right margin of dialog correctly
...
https://github.com/ruby/reline/commit/554855013b
2021-08-29 20:30:32 +09:00
usa
788c047695
[ruby/reline] Create windows.rb
...
see issue #317
https://github.com/ruby/reline/commit/aad164de93
2021-08-29 20:30:32 +09:00
aycabta
d7f654ad5a
[ruby/reline] Add "sleep 0.01" to Windows event loop
...
https://github.com/ruby/reline/commit/dfc89eae53
2021-08-29 20:30:32 +09:00
aycabta
6f66927aef
[ruby/reline] Add comments about where rerendering
...
https://github.com/ruby/reline/commit/4406069b7e
2021-08-29 20:30:32 +09:00
aycabta
55459bdd67
[ruby/reline] Use background color instead of border frame
...
https://github.com/ruby/reline/commit/8f1db0a076
2021-08-29 20:30:32 +09:00
aycabta
6fda457448
[ruby/reline] Suppress warning; unused variable
...
https://github.com/ruby/reline/commit/74a6124e8d
2021-08-29 20:30:32 +09:00
aycabta
1e527c8a55
[ruby/reline] Remove an unnecessary variable
...
https://github.com/ruby/reline/commit/5435c1aa3f
2021-08-29 20:30:32 +09:00
aycabta
fb0fc20196
[ruby/reline] Implement dialog with autocomplete callback
...
https://github.com/ruby/reline/commit/1401d6165e
2021-08-29 20:30:32 +09:00
aycabta
e66200780b
[ruby/reline] Separate calling completion proc with checking args
...
https://github.com/ruby/reline/commit/3203cb97db
2021-08-29 20:30:32 +09:00
aycabta
eadd25d5af
[ruby/irb] Update dependency to "reline >= 0.2.7.pre.1" for use dialog feature in tests
...
https://github.com/ruby/irb/commit/df04a9a881
2021-08-29 20:30:07 +09:00
aycabta
cde84a5baa
[ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_name
...
https://github.com/ruby/irb/commit/c5f13b23d7
2021-08-29 20:30:01 +09:00
aycabta
ae4e301d5d
[ruby/irb] Add show doc dialog for Reline
...
https://github.com/ruby/irb/commit/026700499d
2021-08-29 20:29:54 +09:00
Nobuyoshi Nakada
b62ed309f0
[ruby/securerandom] [DOC] fix a code mark up [ci skip]
...
https://github.com/ruby/securerandom/commit/de47532707
2021-08-24 19:29:54 +09:00
Olle Jonsson
80597f2544
[ruby/un] gemspec: Explicitly list 0 executables
...
This gem exposes no executables, so this makes that clear to the reader.
https://github.com/ruby/un/commit/012c298e12
2021-08-24 18:02:44 +09:00
Hiroshi SHIBATA
b126a27d8c
[ruby/un] LICENSE
...
https://github.com/ruby/un/commit/762c38c176
2021-08-24 18:02:44 +09:00
Kazuhiro NISHIYAMA
2eed62fb65
[ruby/un] Use STDIN if no arguments
...
https://github.com/ruby/un/commit/8e0d6f62cb
2021-08-24 18:02:44 +09:00
Kazuhiro NISHIYAMA
66abeb0370
[ruby/un] Add colorize command
...
https://github.com/ruby/un/commit/4d080eeec0
2021-08-24 18:02:44 +09:00
Kentaro Goto
689962eaea
improves message. thanks to eregon
2021-08-23 09:59:09 +09:00
Kentaro Goto
f18e1752dc
Display httpd URLs supporting HTTPS
2021-08-23 09:59:09 +09:00
Kentaro Goto
8361675e3a
Display httpd URLs
2021-08-23 09:59:09 +09:00
Yusuke Endoh
cad83fa3c4
ast.c: Rename "save_script_lines" to "keep_script_lines"
...
... as per ko1's preference. He is preparing to extend this feature to
ISeq for his new debugger. He prefers "keep" to "save" for this wording.
This API is internal and not included in any released version, so I
change it in advance.
2021-08-20 16:18:36 +09:00
aycabta
acce754eb8
[ruby/reline] Remove interrupt avoidance
...
There used to be a process that did not want to be interrupted by
SIGINT, so it was trapped, but that process is no longer there.
https://github.com/ruby/reline/commit/ba7252a5db
2021-08-14 22:13:31 +09:00
aycabta
5534698b84
[ruby/reline] Version 0.2.7
...
https://github.com/ruby/reline/commit/040d29b4c0
2021-08-12 19:55:17 +09:00
aycabta
f9abcfb6fc
[ruby/irb] Version 1.3.7
...
https://github.com/ruby/irb/commit/98610236ec
2021-08-12 19:53:10 +09:00
aycabta
53743a42c4
[ruby/irb] Update dependency, reline >= 0.2.7
...
https://github.com/ruby/irb/commit/5a0c8dc9e6
2021-08-12 19:53:04 +09:00
aycabta
b8f771fba2
Update parser files of RDoc generated by the latest Racc
2021-08-10 02:36:00 +09:00
aycabta
44635ebe9a
Update parser files of RDoc generated by the latest KPeg
2021-08-10 02:36:00 +09:00
aycabta
6b439e9c4e
[ruby/rdoc] Use HEAD of kpeg
...
I compared the results between the latest release of kpeg gem (1.1.0)
and HEAD of kpeg gem with `time` command, and the execution time is
reduced from 38.35s sec to 35.06 sec.
ref. https://github.com/evanphx/kpeg/pull/43
https://github.com/ruby/rdoc/commit/682bcb48ce
2021-08-10 02:36:00 +09:00
aycabta
d082510429
[ruby/rdoc] Add "rake clean" task to erase generated parser files
...
https://github.com/ruby/rdoc/commit/4e3e635afa
2021-08-10 02:36:00 +09:00
aycabta
b277a6d26d
Import copied Rakefile from original RDoc repository
2021-08-10 02:36:00 +09:00
aycabta
d8eeee97ce
[ruby/rdoc] Move dev dependency of gettext to Gemfile
...
https://github.com/ruby/rdoc/commit/a177377b6f
2021-08-10 02:36:00 +09:00
aycabta
638c72e162
[ruby/rdoc] Use single quote in Gemfile
...
https://github.com/ruby/rdoc/commit/e4b68d414c
2021-08-10 02:36:00 +09:00
aycabta
b685c60bef
Import copied Gemfile from original RDoc repository
2021-08-10 02:36:00 +09:00
Nobuyoshi Nakada
3e7fb4b91d
Check the result of tigetstr
2021-08-06 13:34:25 +09:00
Nobuyoshi Nakada
9bfb8ea671
Fix caching of curses_dl
2021-08-06 13:33:47 +09:00
aycabta
7bcbee37b5
Fix the result of checking the existence of constants being reversed
2021-08-06 02:51:10 +09:00
aycabta
de93b8b069
Handle SIGINT in other thread correctly
...
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-08-04 18:29:42 +09:00
aycabta
5bb7b57129
Use Symbol of signal for trap
2021-08-04 18:29:42 +09:00
Masataka Pocke Kuwabara
242f024bcb
[ruby/error_highlight] Keep it work if paren exists after receiver
...
https://github.com/ruby/error_highlight/commit/b79d679bbd
2021-07-31 22:15:16 +09:00
aycabta
1c9cb9da8f
[ruby/reline] Support Terminfo on Cygwin and macOS
...
https://github.com/ruby/reline/commit/b0b75fcd27
2021-07-30 02:27:02 +09:00
aycabta
f1b5cb7e5d
[ruby/reline] Don't check the existence of Terminfo on Windows
...
https://github.com/ruby/reline/commit/320f09055c
2021-07-30 02:27:02 +09:00
aycabta
b158b4666d
[ruby/reline] Check TYPE_VARIADIC
...
https://github.com/ruby/reline/commit/8e62e46e33
2021-07-30 02:27:02 +09:00
aycabta
0f496b9b29
[ruby/reline] Define StringWithTiparm instead of singular method
...
https://github.com/ruby/reline/commit/de234dc875
2021-07-30 02:27:02 +09:00
SilverPhoenix99
5b9f3ed326
[ruby/reline] Fixed Ctrl+Enter key in Windows.
...
https://github.com/ruby/reline/commit/0c38e39023
2021-07-30 02:27:02 +09:00
aycabta
46c6da9c37
[ruby/reline] Check empty .inputrc
...
https://github.com/ruby/reline/commit/b60b3b76cd
2021-07-30 02:27:02 +09:00
aycabta
51ee24e7f7
[ruby/reline] Add original C function declarations comment for each function
...
https://github.com/ruby/reline/commit/9a25ee9f12
2021-07-30 02:27:02 +09:00
Jeremy Evans
44a9337a46
[ruby/reline] Fix reline on OpenBSD
...
OpenBSD doesn't support tiparm, only tparm. I'm not sure if the
two are compatible, but this at least this allows me to run irb
on OpenBSD.
https://github.com/ruby/reline/commit/0ce2b34e2b
2021-07-30 02:27:02 +09:00
SilverPhoenix99
1bf768d2e1
[ruby/reline] Added support for Numpad divide key on Windows.
...
https://github.com/ruby/reline/commit/84577da0c4
2021-07-30 02:27:02 +09:00
aycabta
750359ce81
[ruby/reline] Support Enter key of numpad on Windows
...
The yamatanooroti gem can't emulate numpad key pressing...
https://github.com/ruby/reline/commit/8e9da1aeaf
2021-07-30 02:27:02 +09:00
Lars Kanis
03f8c27179
[ruby/reline] Windows cmd: Don't type anything when pressing ALT keys alone
...
Fixes #298
https://github.com/ruby/reline/commit/72acfcd27a
2021-07-30 02:27:02 +09:00
aycabta
b0633ee4b3
[ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()
...
https://github.com/ruby/reline/commit/a0d946a398
2021-07-30 02:27:02 +09:00
aycabta
2a7e86844b
[ruby/reline] Add require 'reline/terminfo' to use Reline::Terminfo.enabled?
...
https://github.com/ruby/reline/commit/7ef9805b35
2021-07-30 02:27:02 +09:00
Hiroshi SHIBATA
672796575e
Update the latest version of readline.gemspec
2021-07-29 16:20:10 +09:00
Miguel Teixeira
60b02db516
[ruby/net-http] Enforce write timeout when body_stream is used
...
The existing implementation of `Net::HTTP#write_timeout` relies on
`Net::BefferedIO` to trigger the `Net::WriteTimeout` error. This commit
changes `send_request_with_body_stream` to remove the optimization that
was making `Net::HTTP#write_timeout` not work when `body_stream` is
used.
Open issue:
https://bugs.ruby-lang.org/issues/17933
https://github.com/ruby/net-http/commit/a0fab1ab52
2021-07-29 15:53:54 +09:00
BurdetteLamar
1e04571da0
[ruby/set] Improve What's Here links
...
https://github.com/ruby/set/commit/76b056c3b9
2021-07-29 14:18:52 +09:00
BurdetteLamar
2bd68e32e7
[ruby/set] Improve What's Here links
...
https://github.com/ruby/set/commit/dd787a3988
2021-07-29 14:18:42 +09:00
Olle Jonsson
899194f3a6
[ruby/set] gemspec: This gem exposes 0 executables
...
This change removes unused configuration.
https://github.com/ruby/set/commit/6c2338d699
2021-07-29 14:18:33 +09:00
Jeremy Evans
52e602edda
[ruby/set] Update documentation for intersect?/disjoint?
...
https://github.com/ruby/set/commit/35b69e9d69
2021-07-29 14:18:25 +09:00
Jeremy Evans
cafa7d8975
[ruby/set] Allow the use of any enumerable in intersect?/disjoint?
...
https://github.com/ruby/set/commit/1a73ab9047
2021-07-29 14:18:18 +09:00
Jeremy Evans
571dafdc7f
[ruby/set] Allow Set#intersect? and #disjoint? to accept array argument
...
Implements [Feature #17838 ]
https://github.com/ruby/set/commit/d9b389bafa
2021-07-29 14:18:10 +09:00
Burdette Lamar
27679b349e
[ruby/optparse] More on tutorial ( https://github.com/ruby/optparse/pull/23 )
...
- Removed a largish block of repeated text.
- Added sections "Top List and Base List" and "Methods for Defining Options" (on, define, etc.).
- Linked from class OptionParser doc to the tutorial.
https://github.com/ruby/optparse/commit/7f3195b9db
2021-07-28 20:13:39 +09:00
Nobuyoshi Nakada
bf175e7ec2
[ruby/optparse] nodoc private methods
...
https://github.com/ruby/optparse/commit/f23d750d14
2021-07-28 20:13:38 +09:00
Benoit Daloze
59a65f2d24
Update to latest uri
...
* bc47bf71df
* To include the fix from https://github.com/ruby/uri/pull/27
2021-07-28 12:26:31 +02:00
Marcus Stollsteimer
218c3b2548
[ruby/readline] Improve the gem's description
...
Improve the language in the gem's summary and description;
also remove U+00A0 (no-break space) characters from post-install box.
https://github.com/ruby/readline/commit/5037cf7ffc
2021-07-28 13:35:36 +09:00
Olle Jonsson
5b574b40a9
[ruby/resolv-replace] gemspec: Drop executables directive
...
This gem exposes no executables.
https://github.com/ruby/resolv-replace/commit/fa405185f7
2021-07-28 13:32:33 +09:00
Hiroshi SHIBATA
51321985fb
[ruby/resolv] Bump version to 0.2.1
...
https://github.com/ruby/resolv/commit/095f1c003f
2021-07-28 13:32:33 +09:00
Olle Jonsson
0663134ad1
[ruby/getoptlong] RDoc: escape to avoid links to the word Set
...
We would like to avoid linking to the Set class for these words.
https://github.com/ruby/getoptlong/commit/33b56d6141
2021-07-28 13:32:33 +09:00
Olle Jonsson
eb3a7eda5e
[ruby/getoptlong] gemspec: Drop executables directives
...
This gem exposes 0 executables.
https://github.com/ruby/getoptlong/commit/4522163cbd
2021-07-28 13:32:32 +09:00
Jeremy Evans
230111802c
[ruby/find] Add Errno::EINVAL to list of ignored errors
...
This error can occur on Windows for certain filenames on certain
code pages.
Fixes [Bug #14591 ]
https://github.com/ruby/find/commit/0a474d1027
2021-07-27 21:20:31 +09:00
Nobuyoshi Nakada
acfec23bec
Remove probably unintented symlinks
2021-07-27 18:49:28 +09:00
Martin Dürst
26b1e6fca8
Deal with Unicode ranges in the file emoji-sequences.txt
...
Detect Unicode ranges and loop over them.
This fixes issue #18028 .
2021-07-27 18:14:20 +09:00
Hiroshi SHIBATA
6656309fe2
Fix test failure for parallel testing
2021-07-27 17:34:13 +09:00
Hiroshi SHIBATA
b875a85c53
Added missing require for URI::WS class
2021-07-27 17:33:18 +09:00
Benoit Daloze
1cf111774f
[ruby/uri] Add proper Ractor support to URI
...
* Using a module to map scheme name to scheme class, which also works with Ractor.
* No constant redefinition, no ObjectSpace, still fast lookup for initial schemes.
https://github.com/ruby/uri/commit/883567fd81
2021-07-27 16:54:27 +09:00
Benoit Daloze
090d799c24
[ruby/uri] Revert "Fix to support Ruby 3.0 Ractor"
...
* This reverts commit 1faa4fdc161d7aeebdb5de0c407b923beaecf898.
* It has too many problems, see https://github.com/ruby/uri/pull/22 for discussion.
https://github.com/ruby/uri/commit/b959da2dc9
2021-07-27 16:54:26 +09:00
kvokka
a288c21a5d
[ruby/uri] Fix to support Ruby 3.0 Ractor
...
https://github.com/ruby/uri/commit/1faa4fdc16
2021-07-27 16:54:26 +09:00
Daniel Niknam
bd8daa8523
[rubygems/rubygems] Remove the warning for not defining a gem server source
...
Bundler has deprecated gemfiles without a global source and this feature
is now obsolete. `Bundler::Definition#has_rubygems_remotes?` is removed
because it's not used anymore.
https://github.com/rubygems/rubygems/commit/d29dd2cb7b
2021-07-27 09:25:57 +09:00
Daniel Niknam
49176e8c8c
[rubygems/rubygems] Refactor Bundler::Dsl#check_rubygems_source_safety to improve readability
...
`check_rubygems_source_safety` is responsible for:
1. if there are multiple global sources
- for bundle 3.x raise an error
- for bundle 2.x print a warning
2. print a warning if there is no explicit global source
The second responsibility was added recently and now the logic could be
extracted to improve readability. Conditions are still live in the `check_rubygems_source_safety` method
since we don't want to call both functions always and that would help us achieve that.
https://github.com/rubygems/rubygems/commit/f3d7e946ee
2021-07-27 09:25:57 +09:00
Daniel Niknam
1ef360230e
[rubygems/rubygems] Deprecate Gemfile without an explicit global source
...
Raise a warning when parsing a Gemfile and it doesn't have a global source. Gemfiles like this, specially now that rubygems sources are are no longer merged into a single source for security, are very confusing because they generate a different lockfile depending on the gems you have locally installed. This is because bundler always use an implicit global source that defaults to locally installed gems.
https://github.com/rubygems/rubygems/commit/b7523ad21c
2021-07-27 09:25:57 +09:00
Daniel Niknam
b500e8fab4
[rubygems/rubygems] Implement Bundler::SourceList#implicit_global_source?
...
This method is created to tell whether any global source exist in the object or not and it will be used by `Bundler:Dsl` to print a warning if no global source has been defined in the Gemfile.
https://github.com/rubygems/rubygems/commit/422fec4438
2021-07-27 09:25:57 +09:00
Daniel Niknam
91a3f06e98
[rubygems/rubygems] Implement Bundler::Source::Rubygems#no_remotes?
...
This method is created to tell whether any remote exist in the object or not and it will be used by `Bundler:SourceList` to tell if a global source has been defined implicitly or not.
https://github.com/rubygems/rubygems/commit/47e3ff0e47
2021-07-27 09:25:56 +09:00
David Rodríguez
095b5bbcc1
[rubygems/rubygems] Lazily load shellwords
...
https://github.com/rubygems/rubygems/commit/ef6388656a
2021-07-27 09:25:56 +09:00
David Rodríguez
350f4a0b66
[rubygems/rubygems] Rubygems doesn't need to load the `base64` library
...
https://github.com/rubygems/rubygems/commit/fe723c0f7f
2021-07-27 09:25:56 +09:00
David Rodríguez
960023ff54
[rubygems/rubygems] Rubygems doesn't need to load the `resolv` library
...
https://github.com/rubygems/rubygems/commit/8bf41f53cc
2021-07-27 09:25:56 +09:00
David Rodríguez
9cddc0ec94
[rubygems/rubygems] Lazily load `shellwords` library
...
https://github.com/rubygems/rubygems/commit/e5532ef886
2021-07-27 09:25:56 +09:00
David Rodríguez
9ac89fe35e
[rubygems/rubygems] The `--quiet` should still display warnings
...
The is the previous intentional behaviour until
ca0676cb1c
.
In my opinion, that previous behaviour was better and should be
restored, because we want our users to always see warnings and fix them.
And the original issue that motivated the change is fixable by other
means, namely through `BUNDLE_SILENCE_ROOT_WARNING`, or through
`BUNDLE_SILENCE_DEPRECATIONS` in general. Finally, the --quiet option is
still documented as "only print errors and warnings".
So this PR essentially reverts
ca0676cb1c
for the above reasons.
https://github.com/rubygems/rubygems/commit/35f2254dfc
2021-07-27 09:25:56 +09:00
Nobuyoshi Nakada
803c60858e
[rubygems/rubygems] Check requirements classes
...
Mitigate the security risk:
https://devcraft.io/2021/01/07/universal-deserialisation-gadget-for-ruby-2-x-3-x.html
https://github.com/rubygems/rubygems/commit/141c2f4388
2021-07-27 09:25:56 +09:00
David Rodríguez
88e46cf6b8
[rubygems/rubygems] Remove all `syck` traces from `rubygems`
...
After reading [this blog
post](https://blog.rubygems.org/2011/08/31/shaving-the-yaml-yak.html ),
published almost 10 years ago already, my understanding is that this
problem could come up in two ways:
* Rubygems.org serving corrupted gemspecs". As far as I understand this
was fixed in rubygems.org a lot time ago, since
https://github.com/rubygems/rubygems.org/pull/331 .
* Clients having a ten years old gemspec cache with some of these bad
gemspecs. In this case, there's no easy solution but I think ten years
is enough and rebuilding the cache should do the trick.
So, I think it's time we remove this.
https://github.com/rubygems/rubygems/commit/afcb15d556
2021-07-27 09:25:56 +09:00
David Rodríguez
6bcedabfdd
[rubygems/rubygems] Remove `gem install` hint when installing a gem fails
...
A fresh `gem install` might not reproduce the exact `bundle install`
environment that originally caused the error. It also makes it harder
for the user to troubleshoot the error since she needs to run a separate
command.
Instead, show the original error and backtrace directly.
https://github.com/rubygems/rubygems/commit/49c2abfec6
2021-07-27 09:25:55 +09:00
David Rodríguez
6eb6f740f2
[rubygems/rubygems] Show a backtrace in case gem installation fails
...
For example, due to extension compilation issues.
https://github.com/rubygems/rubygems/commit/adbe55bb6a
2021-07-27 09:25:55 +09:00
David Rodríguez
4271f4aea5
[rubygems/rubygems] Fix bundler binstub version selection
...
To mimic built-in rubygems behaviour, only thing that should be
approximated is the lockfile version. Other alternatives like
`BUNDLER_VERSION` should be respected exactly.
https://github.com/rubygems/rubygems/commit/dbd667d4bc
2021-07-27 09:25:55 +09:00
Daniel Niknam
90899c50c2
[rubygems/rubygems] Remove LoadError message in regards to requiring a relative file
...
Ruby 1.9.2 removed "." from LOAD_PATH for robustness and security reasons.
This code was introduced by 56fc830e19
commit
to helping users understand the issue and had a guard condition to include the message for `RUBY_VERSION >= "1.9"`.
However, the guard condition was removed as part of the "Ruby version leftover" cleanup by
8c9cf76e41
Ruby 1.9 development was ended a long time ago and this message is not useful anymore.
https://github.com/rubygems/rubygems/commit/a23609b15a
2021-07-27 09:25:55 +09:00
Andrew Haines
705b1bdef2
[rubygems/rubygems] Fix interrupt handling in Bundler workers
...
The existing interrupt handling using `SharedHelpers.trap` fails when the previous
handler for a signal is not callable (for example, when it is the string "DEFAULT").
Instead, we now handle interrupts by aborting the process when worker threads are
running, and restore the previous handler after worker threads are finished.
Fixes #4764 .
https://github.com/rubygems/rubygems/commit/b9f455d487
2021-07-27 09:25:55 +09:00
manga_osyo
86e0eecc84
[ruby/irb] Fix #256
...
Support int that follow on symbeg in IRB
https://github.com/ruby/irb/commit/90cb27b1bd
2021-07-23 03:13:14 +09:00
aycabta
261dca2ee2
[ruby/irb] Support non-English code page message
...
https://github.com/ruby/irb/commit/e7d71fea46
2021-07-20 20:36:19 +09:00
Hiroshi SHIBATA
95dd461387
[ruby/racc] Removed pre-setup from gemspec
...
https://github.com/ruby/racc/commit/2f6f02e5c1
2021-07-19 11:59:42 +09:00
Hiroshi SHIBATA
dbcfc8d499
[ruby/racc] Removed needless files from gemspec
...
https://github.com/ruby/racc/commit/d044ae883f
2021-07-19 11:59:42 +09:00
Hiroshi SHIBATA
b5b3cd2722
[ruby/racc] Move document from library directory
...
https://github.com/ruby/racc/commit/2e8d7d286d
2021-07-19 11:59:41 +09:00
Hiroshi SHIBATA
7217f60bb3
[ruby/racc] Removed generate code from parser.rb. It's already migrated by rake task
...
https://github.com/ruby/racc/commit/ec7d01980a
2021-07-19 11:54:35 +09:00
Bruno Arueira
23c4b93e54
[ruby/racc] Shrink gem size
...
https://github.com/ruby/racc/commit/27e2a64e13
2021-07-18 20:38:28 +09:00
Masafumi Koba
650a65c6fc
[rubygems/rubygems] Add missing `require 'fileutils'` in `Gem::ConfigFile`
...
https://github.com/rubygems/rubygems/commit/c4004fadd9
2021-07-16 15:40:08 +09:00
David Rodríguez
71d3c9bbfa
[rubygems/rubygems] Fix `bundle plugin install --help` showing `bundle install`'s help
...
https://github.com/rubygems/rubygems/commit/b7b7d16aa8
2021-07-16 15:40:08 +09:00
Andre Arko
c5f78ade5a
[rubygems/rubygems] fix dangling empty hooks
...
it turns out that running `bundle plugin uninstall some-plugin` would remove that plugin from the list of hooks, but if the list of hooks for an event was now empty, we would serialize the empty array into yaml as an empty single bullet item. which would then get unserialized as a plugin with the name empty string. which we would then try to load and explode. 😬
https://github.com/rubygems/rubygems/commit/545ebba9a5
2021-07-16 15:40:08 +09:00
Andre Arko
a3d2200b2a
[rubygems/rubygems] test loading bad plugins with nil/empty names
...
https://github.com/rubygems/rubygems/commit/e64b1f3497
2021-07-16 15:40:07 +09:00
David Rodríguez
227c2deff4
[rubygems/rubygems] Fix development gem unintentionally removed on an edge case
...
When a development dependency was duplicated inside the gemspec and
Gemfile with the same requirements, we went from printing a warning to
removing the gem altogether.
This change makes it not print a warning, but don't remove the gem
either.
https://github.com/rubygems/rubygems/commit/8bb2488131
2021-07-16 15:40:07 +09:00
Jared Beck
bbaebbf529
[rubygems/rubygems] Fix contradictory message about deletion of default gem
...
[Fixes #4733 ]
https://github.com/rubygems/rubygems/commit/fce7f3eb7d
2021-07-16 15:40:07 +09:00
Hiroshi SHIBATA
55a79b648c
Adjust the release version of ruby2_keywords
2021-07-16 13:50:15 +09:00
aycabta
f1035248af
[ruby/irb] Show code page by irb_info on Windows
...
https://github.com/ruby/irb/commit/6160d74199
2021-07-16 01:55:25 +09:00
Hiroshi SHIBATA
896bbb9fad
Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9
2021-07-14 10:48:07 +09:00
aycabta
1d03c7da04
[ruby/irb] Add an explanation of default sub commands of "measure", which are :time and :stackprof
...
https://github.com/ruby/irb/commit/759be5a344
2021-07-13 21:21:29 +09:00
Yusuke Endoh
5fd5d71a4b
[ruby/error_highlight] Support a file that has no final newline
...
https://github.com/ruby/error_highlight/commit/9d671284cb
2021-07-13 16:54:17 +09:00
Yusuke Endoh
23c8bc367c
[ruby/error_highlight] Support hard tabs
...
Now, the highlight line is created by replacing non-tab characters with
spaces, and keeping all hard tabs as-is. This means the highlight line
has the completely same indentation as the code snippet line.
Fixes #7
https://github.com/ruby/error_highlight/commit/38f20fa542
2021-07-13 16:51:02 +09:00
Yusuke Endoh
8b01d16ad6
[ruby/error_highlight] Stop showing a code snippet if it has non-ascii characters
...
See https://github.com/ruby/error_highlight/issues/4
https://github.com/ruby/error_highlight/commit/c20efd3961
2021-07-12 16:48:15 +09:00
aycabta
947d0198e0
[ruby/irb] Show LANG and LC_ALL env by irb_info
...
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
https://github.com/ruby/irb/commit/b431742430
2021-07-11 06:12:07 +09:00
Jeremy Evans
289fd3c801
[ruby/irb] Pass local variables from workspace binding to lexer
...
This fixes at least an issue where irb will incorrectly assume
code opens a heredoc when it does not, such as this code:
```ruby
s1 = 'testing'
s2 = 'this'
s2 <<s1
p s1
s1
```
Ruby parses the `s2 <<s1` as `s2.<<(s1)`, not as a heredoc, because
`s2` is a local variable in scope. irb was using ripper without
letting ripper know that `s2` was a local variable, so ripper would
lex it as a heredoc instead of a method call.
Fix the situation by prepending a line at line 0 with all local
variable definitions in scope whenever lexing. This fixes the
heredoc issue, and potentially other issues that depend on whether
an identifier is a local variable or not.
Fixes [Bug #17530 ]
https://github.com/ruby/irb/commit/4ed2187f76
2021-07-10 13:44:17 +09:00
Nobuyoshi Nakada
524513be39
mkmf.rb: try linking at try_var
...
To check for variables accessible but not declared.
2021-07-08 18:18:35 +09:00
Martin Dürst
99cd0e1f79
Update lib/unicode_normalize/tables.rb to Unicode version 13.0.0
2021-07-08 14:45:03 +09:00
Hiroshi SHIBATA
c082c6eb7c
Sync RubyGems and Bundler with upstream
2021-07-07 15:31:52 +09:00
David Rodríguez
6e2240a2f9
Sync latest bundler & rubygems development version
2021-07-07 13:30:20 +09:00
Hiroshi SHIBATA
02a3cac658
[ruby/rdoc] Bump version to 6.3.2
...
https://github.com/ruby/rdoc/commit/0a3a674583
2021-07-06 11:02:14 +09:00
Nobuyoshi Nakada
3dacc14fd3
[ruby/rdoc] Fix links without paths
...
https://github.com/ruby/rdoc/commit/424bd5db4d
2021-07-05 11:34:37 +09:00
Nobuyoshi Nakada
f88a9097a4
[ruby/rdoc] Fix for explicit http link
...
https://github.com/ruby/rdoc/commit/caf234665c
2021-07-05 11:34:35 +09:00
Nobuyoshi Nakada
7c8aa0a5d2
[ruby/rdoc] Allow a label in a link to another document text
...
https://github.com/ruby/rdoc/commit/85bb2d33bb
2021-07-05 11:34:33 +09:00
aycabta
caa123b50e
[ruby/rdoc] Support ActiveSupport::Concern.included
...
ref. 168ddaa08a/activerecord/lib/active_record/core.rb (L9-L20)
https://github.com/ruby/rdoc/commit/a2d651dade
Co-authored-by: Fumiaki MATSUSHIMA <mtsmfm@gmail.com>
2021-07-05 11:34:29 +09:00
Ulysse Buonomo
ec9a9af375
[ruby/rdoc] Fix chained inclusion ancestors_of
...
Fixes #814
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
https://github.com/ruby/rdoc/commit/b45f747216
2021-07-05 11:34:25 +09:00
xstnztk
c7d1989986
[ruby/rdoc] Document 'ruby:' to show core documentation in ri
...
ri supports 'ruby:' as a kind of "pseudo gem name" to display files of the core Ruby documentation such as syntax and NEWS. Add the appropriate documentation to the description of options shown by "ri --help".
https://github.com/ruby/rdoc/commit/a0e5df6702
2021-07-05 11:34:22 +09:00
Nobuyoshi Nakada
287fb680e2
Library arguments to VC are bare file names
2021-07-03 12:52:46 +09:00
Nobuyoshi Nakada
1ac228378c
Use $ignore_error defined in mkmf.rb
2021-07-03 12:52:46 +09:00
Yusuke Endoh
3a95834739
[ruby/error_highlight] Suppress SyntaxError during RubyVM::AST.of
...
When the original source code is erb, RubyVM::AST.of does not work well.
https://github.com/rails/rails/issues/42678 .
https://github.com/ruby/error_highlight/commit/b1572761a6
2021-07-02 16:48:20 +09:00
Keiko Kaneko
8ee24840c8
[ruby/irb] Update ls.rb without requiring Set, because Set is one of standard libraries
...
https://github.com/ruby/irb/commit/7092ad2ab5
2021-07-01 05:16:31 +09:00
Takashi Kokubun
acbddbe68c
[ruby/irb] Rescue a specific error
...
Rescuing StandardError is prone to bugs caused by a typo or obsoleted methods.
https://github.com/ruby/irb/commit/eb5260fcd5
2021-06-30 21:06:52 +09:00
Masataka Pocke Kuwabara
e8c2b03ee1
[ruby/irb] Fix error on `ls object_cant_define_singleton`
...
such as `ls 42`, `ls :sym` and so on
https://github.com/ruby/irb/commit/b1d436a853
2021-06-30 20:55:18 +09:00
Yusuke Endoh
b6c910e1f4
[ruby/error_highlight] Allow the development version (= master branch) of Ruby 3.1
...
https://github.com/ruby/error_highlight/commit/2dca1446c9
2021-06-30 17:33:57 +09:00
Yusuke Endoh
8ccc257434
Add the gemspec for error_highlight
2021-06-30 14:02:28 +09:00
Yusuke Endoh
6c6b128c67
[ruby/error_highlight] Bump version
...
https://github.com/ruby/error_highlight/commit/8d483c251e
2021-06-30 13:36:31 +09:00
Yusuke Endoh
ca4e5b1eb3
[ruby/error_highlight] Reconsider the API of ErrorHighlight.spot
...
https://github.com/ruby/error_highlight/commit/acb2046a82
2021-06-30 12:49:27 +09:00
Yusuke Endoh
f428ced69c
[ruby/error_highlight] Experimentally support a custom formatter
...
https://github.com/ruby/error_highlight/commit/f40a1de20e
2021-06-30 12:49:18 +09:00
Yusuke Endoh
db7e9b1aac
[ruby/error_highlight] Add some comments
...
https://github.com/ruby/error_highlight/commit/e0c90c72c3
2021-06-30 11:46:47 +09:00
Yusuke Endoh
9438c99590
Rename error_squiggle to error_highlight
2021-06-29 23:45:49 +09:00
Yusuke Endoh
e946049665
[WIP] add error_squiggle gem
...
```
$ ./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
2021-06-29 23:45:49 +09:00
Yusuke Endoh
809f120374
Use String#include? instead of end_with? to avoid message duplication
...
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
2021-06-29 15:49:51 +09:00
Yusuke Endoh
612b6fcd37
Let Correctable#original_message skip prepended method definitions
...
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
2021-06-29 15:49:51 +09:00
Nobuyoshi Nakada
4670458af8
Should require "rbconfig" to use RbConfig
...
https://github.com/ruby/did_you_mean/commit/fbe5aaaae8
2021-06-29 15:49:51 +09:00
Yuki Nishijima
8356d9e374
Start v1.6.0 development
...
https://github.com/ruby/did_you_mean/commit/3f69171813
2021-06-29 15:49:51 +09:00
Nobuyoshi Nakada
9eae8cdefb
Prefer qualified names under Thread
2021-06-29 11:41:10 +09:00
Takashi Kokubun
35c7e83bb3
[ruby/irb] Optimize show_source command further
...
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
2021-06-27 10:52:49 +09:00
Masataka Pocke Kuwabara
6eb7c663c6
[ruby/irb] Improve performance of `show_source` for large class
...
https://github.com/ruby/irb/commit/2b79e9ad21
2021-06-27 10:36:11 +09:00
Samuel Williams
bf376cae0c
[ruby/reline] Fix missing require.
...
https://github.com/ruby/reline/commit/010b28dfe9
2021-06-25 17:42:45 +09:00
Samuel Williams
e788481843
[ruby/reline] Avoid using blocking `IO.select`.
...
https://github.com/ruby/reline/commit/de94746393
2021-06-25 17:42:45 +09:00
Hiroshi SHIBATA
b048fd572a
Followed up 66d2fc7989
2021-06-25 17:27:17 +09:00
Aaron Patterson
b036a44e57
[ruby/racc] Remove Object monkey patch
...
I don't think we need this monkey patch anymore, so lets remove it!
https://github.com/ruby/racc/commit/464485e912
2021-06-25 17:26:27 +09:00
Hiroshi SHIBATA
7641a83d1f
[ruby/racc] Removed needless condition for old versions of RubyGems.
...
https://github.com/ruby/racc/commit/fe3183b1ff
2021-06-25 17:26:27 +09:00
Hiroshi SHIBATA
dd0a9507a2
[ruby/racc] Drop to support Ruby 2.4
...
https://github.com/ruby/racc/commit/5af1a42a3b
2021-06-25 17:26:27 +09:00
Hiroshi SHIBATA
77c1f6b1ec
[ruby/racc] Followed up #162
...
https://github.com/ruby/racc/commit/d66cd12166
2021-06-25 17:26:27 +09:00
Jean Boussier
71344a1d63
[ruby/racc] Stop compressing integer lists
...
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
2021-06-25 17:23:06 +09:00
Nobuyoshi Nakada
627aafac86
Remove also debug symbol directory at clean on macOS
2021-06-24 17:04:42 +09:00
Nobuyoshi Nakada
1356b90c91
Prefer configured command as RM_RF
2021-06-24 17:04:41 +09:00
Hiroshi SHIBATA
193eea9dcd
[ruby/rdoc] Specify working directory for RDoc::Options#check_files
...
https://github.com/ruby/rdoc/commit/f6cca9bd2f
2021-06-23 11:05:16 +09:00
Keiko Kaneko
de779f4a62
[ruby/irb] Sort ls result ordered by anscestry
...
https://github.com/ruby/irb/commit/fdd5c0a71e
2021-06-22 22:32:42 +09:00
aycabta
046fd3ac8c
Rescue conversion error of inputrc
2021-06-21 22:12:14 +09:00
aycabta
30cc07fdc1
Check Ruby version to use Fiddle with variadic args in test-all
2021-06-21 18:44:10 +09:00
Ulysse Buonomo
5cc11845b2
[ruby/irb] Improve stackprof measure
...
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
2021-06-21 18:03:49 +09:00
aycabta
90df426426
[ruby/reline] Version 0.2.6
...
https://github.com/ruby/reline/commit/5917e3a337
2021-06-21 17:58:49 +09:00
aycabta
00b027a69b
[ruby/reline] Fix explamation of #read_io
...
https://github.com/ruby/reline/commit/301ed11bec
2021-06-21 17:58:49 +09:00
aycabta
95a3cdade6
[ruby/reline] Remove FIXME comment in #render
...
https://github.com/ruby/reline/commit/acd8f8efbb
2021-06-21 17:58:49 +09:00
aycabta
b06218ce6f
[ruby/reline] Remove TODO comment in #render_partial
...
https://github.com/ruby/reline/commit/bb6ea232c2
2021-06-21 17:58:49 +09:00
aycabta
8135f489be
[ruby/reline] Add binding C-x C-x to em_exchange_mark on Windows
...
https://github.com/ruby/reline/commit/24a2489b62
2021-06-21 17:58:49 +09:00
aycabta
fa5a258e93
[ruby/reline] Treat C-Space as M-Space on Windows
...
https://github.com/ruby/reline/commit/69beca2863
2021-06-21 17:58:49 +09:00
aycabta
582b5705ab
[ruby/reline] Check existance of a constant, Fiddle::VERSION
...
https://github.com/ruby/reline/commit/4b74c3d83a
2021-06-21 17:58:48 +09:00
aycabta
18b79b4c49
[ruby/reline] Add Meta+arrow-keys in extended entries of terminfo
...
https://github.com/ruby/reline/commit/af6f6ed088
2021-06-21 17:58:48 +09:00
aycabta
60d1d6aa89
[ruby/reline] Terminfo.tigetstr should be able to receive tiparm in method chain
...
https://github.com/ruby/reline/commit/4a3e308163
2021-06-21 17:58:48 +09:00
aycabta
5e09da2f7a
[ruby/reline] Terminfo.tigetstr and tiparm should return String object
...
https://github.com/ruby/reline/commit/1e287d10cc
2021-06-21 17:58:48 +09:00
aycabta
46c813969b
[ruby/reline] Add terminfo support
...
https://github.com/ruby/reline/commit/74a7ffaa2f
2021-06-21 17:58:48 +09:00
aycabta
1b543dc226
[ruby/reline] Handle Errno::ENOTTY correctly
...
https://github.com/ruby/reline/commit/8daa392ba6
2021-06-21 17:58:48 +09:00
Jeremy Evans
242bad9a87
[ruby/reline] Fix Reline::Unicode.calculate_width when input is not a TTY
...
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
2021-06-21 17:58:48 +09:00
aycabta
26f31f880c
[ruby/reline] Treat return key correctly on Windows
...
To fix Reline::TestRendering#test_binding_for_vi_movement_mode.
https://github.com/ruby/reline/commit/0df3d2a1dc
2021-06-21 17:58:48 +09:00
aycabta
b0cc46b484
[ruby/reline] The config file must accept any character encoding
...
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
2021-06-21 17:58:48 +09:00
aycabta
c59bbd86a6
[ruby/reline] Use ReadConsoleInputW() instead of getwch()
...
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
2021-06-21 17:58:48 +09:00
Mark Delk
a049dfd10a
[ruby/reline] ensure reline's encoding is used when reading inputrc 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
2021-06-21 17:58:48 +09:00
aycabta
c2f30aaade
[ruby/irb] Version 1.3.6
...
https://github.com/ruby/irb/commit/75aa8d159b
2021-06-21 17:35:46 +09:00
Nobuyoshi Nakada
2b17d2f297
[ruby/net-protocol] Get rid of `__send__`
...
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
2021-06-16 22:23:46 +09:00
Marc-Andre Lafortune
f0818982e9
[ruby/ostruct] v0.4.0
...
https://github.com/ruby/ostruct/commit/8534f69e4e
2021-06-15 12:04:05 +09:00
Marc-Andre Lafortune
52369fc545
[lib/ostruct] Allow overriding of `block_given?`
2021-06-14 12:28:53 -04:00
Nobuyoshi Nakada
5dde13e5ce
[ruby/ostruct] bump up
...
https://github.com/ruby/ostruct/commit/bb253be3e9
2021-06-14 23:31:49 +09:00
jfrazx
931ea7cfbe
Add fallback block to `OpenStruct#delete_field` ( #1409 )
2021-06-14 09:53:20 -04:00
aycabta
9137caaf45
[ruby/rdoc] Add a dependency on psych gem 4.0.0 or newer
...
https://github.com/ruby/rdoc/commit/ebe185c877
2021-06-02 11:35:45 +09:00
Hiroshi SHIBATA
cd2190448d
[ruby/net-protocol] Bump version to 0.1.1
...
https://github.com/ruby/net-protocol/commit/97c4b68528
2021-05-31 17:40:07 +09:00
David Rodríguez
59c6820971
[rubygems/rubygems] Copy files specific to testing rubygems to `test`
...
https://github.com/rubygems/rubygems/commit/aa390a3500
2021-05-28 11:52:57 +09:00
Hiroshi SHIBATA
f7d661e783
[rubygems/rubygems] Try fix ruby-core CI
...
* Port
8e91b969df
from ruby-core, and make it compatible with psych 3 & 4.
2021-05-28 11:52:32 +09:00
Hiroshi SHIBATA
350bc29107
Guard for the ftp protocol feature of OpenURI
2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA
be2e2b4805
Promote net-smtp to the bundled gems
2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA
aa9726f7b9
Promote net-pop to the bundled gems
2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA
d5bc6b2337
Promote net-imap to the bundled gems
2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA
e49c998d1e
Promote net-ftp to the bundled gems
2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA
454a36794f
Promote matrix to the bundled gems
2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA
c9178c1127
Promote prime to the bundled gems
2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA
ab3266ea5c
Removed tracer from ruby repo
2021-05-25 13:13:52 +09:00
Mark Delk
b8ffb1c46f
[ruby/irb] respect NO_COLOR environment variable
...
When `NO_COLOR` is set to any non-nil value, output is not colorized.
See https://no-color.org/
https://github.com/ruby/irb/commit/401d0916fe
2021-05-24 11:55:58 +09:00
aycabta
c264d30261
Use YAML.safe_load to use the permitted_classes option
2021-05-21 21:45:03 +09:00
Nobuyoshi Nakada
59b327aa58
[ruby/rdoc] Drop support for Ruby 2.4
...
https://github.com/ruby/rdoc/commit/f480b970cc
2021-05-21 15:53:34 +09:00
Yusuke Endoh
21d24767e8
[ruby/rdoc] Update rdoc.gemspec by adding lib/rdoc/markup/table.rb
...
Fixes ruby/rdoc#808
https://github.com/ruby/rdoc/commit/80766fd389
2021-05-21 15:51:53 +09:00
aycabta
0ee24b4fab
[ruby/rdoc] Version 6.3.1
...
https://github.com/ruby/rdoc/commit/9307f932b7
2021-05-21 13:42:24 +09:00
aycabta
b1c73f239f
[ruby/rdoc] Use File.open to fix the OS Command Injection vulnerability in CVE-2021-31799
...
https://github.com/ruby/rdoc/commit/a7f5d6ab88
2021-05-21 13:42:24 +09:00
Hiroshi SHIBATA
dfecc650c3
Workaround with fbb4e3f96c
in yaml/store.rb
2021-05-17 12:57:41 +09:00
Yusuke Endoh
ffdf0232ef
lib/rdoc/rdoc.rb: Allow only RDoc::Options in .rdoc_options
...
Follow-up of d8fd92f620
. Instead of using
unsafe_load blindly, RDoc::Options is only supposed to be allowed.
2021-05-17 12:53:42 +09:00
Hiroshi SHIBATA
d8fd92f620
Workaround with fbb4e3f96c
in rdoc
2021-05-17 12:04:40 +09:00
aycabta
eef406acf4
[ruby/irb] IRB should use the latest Reline, 0.2.5
...
https://github.com/ruby/irb/commit/34496e20e8
2021-05-15 19:12:57 +09:00
Hiroshi SHIBATA
b314885af0
[rubygems/rubygems] Update the link of minitest code with the commit hash.
...
https://github.com/rubygems/rubygems/commit/e7280f8d30
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
32d25660b9
[rubygems/rubygems] Removed the related code for minitest-bisect
...
https://github.com/rubygems/rubygems/commit/83ebdec27a
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
9620a30b1b
[rubygems/rubygems] Fixed an intentional blank-line
...
https://github.com/rubygems/rubygems/commit/795b572ac2
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
655727ee1b
[rubygems/rubygems] Added comment for Minitest::Mock
...
https://github.com/rubygems/rubygems/commit/ae44b68d57
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
129bc04ab7
[rubygems/rubygems] util/rubocop -a
...
https://github.com/rubygems/rubygems/commit/a10ff97830
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
3456335a9c
[rubygems/rubygems] Removed minitest/mock from test/rubygems/test_gem_remote_fetcher.rb
...
https://github.com/rubygems/rubygems/commit/f1af59fe02
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
d5237c5d10
[rubygems/rubygems] Import capture_subprocess_io from minitest
...
https://github.com/rubygems/rubygems/commit/8b2ca6df3a
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
3948be3503
[rubygems/rubygems] Use assert_path_exist and assert_path_not_exist instead of assert_path_exists and refute_path_exists
...
https://github.com/rubygems/rubygems/commit/a7c93558c3
2021-05-12 17:24:43 +09:00
Hiroshi SHIBATA
cddeee21e9
[rubygems/rubygems] Use test-unit instead of minitest
...
https://github.com/rubygems/rubygems/commit/a8571524ad
2021-05-12 17:24:43 +09:00
Shugo Maeda
773c690f25
[ruby/net-ftp] Bump version to 0.1.2
...
https://github.com/ruby/net-ftp/commit/895ba44b3c
2021-05-12 09:20:41 +09:00
Koichi ITO
c45f7556b5
[ruby/irb] Fix `Encoding::ConverterNotFoundError`
...
Follow https://github.com/ruby/irb/pull/237 .
This PR fixes the following `Encoding::ConverterNotFoundError`.
```console
% bin/spring stop && bin/rails c
Spring stopped.
Running via Spring preloader in process 58395
Loading development environment (Rails 6.0.3.7)
irb(main):001:0> "こんにちは".do_something
Traceback (most recent call last):
(snip)
12: from /Users/koic/src/github.com/ruby/irb/lib/irb.rb:547:in `eval_input'
11: from /Users/koic/src/github.com/ruby/irb/lib/irb/ruby-lex.rb:232:in `each_top_level_statement'
10: from /Users/koic/src/github.com/ruby/irb/lib/irb/ruby-lex.rb:232:in `catch'
9: from /Users/koic/src/github.com/ruby/irb/lib/irb/ruby-lex.rb:233:in `block in each_top_level_statement'
8: from /Users/koic/src/github.com/ruby/irb/lib/irb/ruby-lex.rb:233:in `loop'
7: from /Users/koic/src/github.com/ruby/irb/lib/irb/ruby-lex.rb:251:in `block (2 levels) in each_top_level_statement'
6: from /Users/koic/src/github.com/ruby/irb/lib/irb.rb:548:in `block in eval_input'
5: from /Users/koic/src/github.com/ruby/irb/lib/irb.rb:758:in `signal_status'
4: from /Users/koic/src/github.com/ruby/irb/lib/irb.rb:586:in `block (2 levels) in eval_input'
3: from /Users/koic/src/github.com/ruby/irb/lib/irb.rb:650:in `handle_exception'
2: from /Users/koic/src/github.com/ruby/irb/lib/irb.rb:601:in `encode_with_invalid_byte_sequence'
1: from /Users/koic/src/github.com/ruby/irb/lib/irb.rb:601:in `new'
/Users/koic/src/github.com/ruby/irb/lib/irb.rb:601:in `initialize': code
converter not found (UTF-8 to UTF-8) (Encoding::ConverterNotFoundError)
```
First, this patch skips `Encoding::Converter.new` for the same encoding.
170531df19/lib/irb.rb (L601)
Next, this is a talk about the condition for skipping. `IRB.conf[:LC_MESSAGES].encoding`
becomes `"UTF-8"` string when `Reline.encoding_system_needs.name` is set in the below.
170531df19/lib/irb/input-method.rb (L269)
OTOH, `message.encoding` is `Encoding::UTF_8`, so these are compared as a string by this patch.
https://github.com/ruby/irb/commit/6df6e76cfc
2021-05-11 16:17:17 +09:00
Kazuki Yamaguchi
9edc162583
[ruby/resolv] Fix confusion of received response message
...
This is a follow up for commit 33fb966197f1 ("Remove sender/message_id
pair after response received in resolv", 2020-09-11).
As the @senders instance variable is also used for tracking transaction
ID allocation, simply removing an entry without releasing the ID would
eventually deplete the ID space and cause
Resolv::DNS.allocate_request_id to hang.
It seems the intention of the code was to check that the received DNS
message is actually the response for the question made within the method
earlier. Let's have it actually do so.
[Bug #12838 ] https://bugs.ruby-lang.org/issues/12838
[Bug #17748 ] https://bugs.ruby-lang.org/issues/17748
https://github.com/ruby/resolv/commit/53ca9c9209
2021-05-11 12:37:34 +09:00
David Rodríguez
5b0abba931
Sync bundler & rubygems
2021-05-11 11:29:41 +09:00
aycabta
774cc32b4d
[ruby/irb] Treat encodings in exception correctly
...
https://github.com/ruby/irb/commit/4452adbe04
2021-05-11 09:32:08 +09:00
Hiroshi SHIBATA
ce5779d8cc
[ruby/set] set is also dual licenses
...
https://github.com/ruby/set/commit/fc24457e53
2021-05-10 16:08:30 +09:00
Andrei Beliankou
94d858f81a
Add a space to separate sentences in the error message
2021-05-10 16:08:29 +09:00
Burdette Lamar
61e4499545
[ruby/set] Adding section: What's Here
...
https://github.com/ruby/set/commit/257dc452a7
2021-05-10 16:08:29 +09:00
Burdette Lamar
0a74547942
[ruby/set] Adding section: What's Here
...
https://github.com/ruby/set/commit/8f4c62768d
2021-05-10 16:08:29 +09:00
Burdette Lamar
b8506eb476
[ruby/set] Adding section: What's Here
...
https://github.com/ruby/set/commit/254d927c8c
2021-05-10 16:08:29 +09:00
Burdette Lamar
adc86f7a58
[ruby/set] Adding section: What's Here
...
https://github.com/ruby/set/commit/ab81354de1
2021-05-10 16:08:29 +09:00
Masataka Pocke Kuwabara
de96ae9b71
[ruby/irb] Dump ancestors' methods by ls command
...
https://github.com/ruby/irb/commit/73edff287c
2021-05-08 14:00:40 +09:00
Jeremy Evans
120b835fae
[ruby/timeout] Only run timeout_after hook on fiber scheduler if scheduler exists
...
https://github.com/ruby/timeout/commit/4893cde0ed
2021-05-06 16:51:10 +09:00
Jeremy Evans
44e8575ca6
[ruby/timeout] Avoid unnecessary object allocation
...
Idea from nobu.
https://github.com/ruby/timeout/commit/aecdaa23b3
2021-05-06 16:50:31 +09:00
Jeremy Evans
33b5e179a8
[ruby/timeout] Make Timeout::Error#exception with multiple arguments not ignore arguments
...
This makes:
raise(Timeout::Error.new("hello"), "world")
raise a TimeoutError instance with "world" as the message instead
of "hello", for consistency with other Ruby exception classes.
This required some internal changes to keep the tests passing.
Fixes [Bug #17812 ]
https://github.com/ruby/timeout/commit/952154dbf9
2021-05-06 16:49:26 +09:00
Kazuki Yamaguchi
364044e090
[ruby/net-http] Do not require stringio
...
It is not used in net/http library code since commit 15ccd0118c13
(r36473 in ruby svn trunk, 2012).
require's in test suite are also cleaned up.
https://github.com/ruby/net-http/commit/996d18a43f
2021-05-06 15:58:41 +09:00
Hiroshi SHIBATA
965719f5eb
Fixed the file path for net-imap.gemspec
2021-05-06 15:24:49 +09:00
Hiroshi SHIBATA
5de6f1ab47
Move net-imap.gemspec to under the lib/net/imap directory.
2021-05-06 15:20:35 +09:00
nicholas a. evans
5a02281fab
[ruby/net-imap] Many documentation improvements
...
* updated obsoleted RFCs to current versions
* linked most references to their RFCs
* linked extension commands to their RFCs
* removed unidiomatic `()` from instance method links
* escaped `IMAP` in a few places
* converted all response structs to explicit classes: this makes much
nicer rdoc output than listing them all under "constants"
* grouped flags constants into their own sections
https://github.com/ruby/net-imap/commit/9cd562ac84
2021-05-06 15:20:35 +09:00
nicholas a. evans
b0de2e7fe9
[ruby/net-imap] Move send_*_data into net/imap/command_data
...
Partially implements #10 .
https://github.com/ruby/net-imap/commit/64d1080d63
2021-05-06 15:20:35 +09:00
nicholas a. evans
deae61e939
[ruby/net-imap] Move flags to net/imap/flags
...
Partially implements #10 .
https://github.com/ruby/net-imap/commit/2a9afa83bf
2021-05-06 15:20:34 +09:00
nicholas a. evans
337c0e312b
[ruby/net-imap] Move UTF7 & datetime formatting to net/imap/data_encoding
...
Partially implements #10 .
https://github.com/ruby/net-imap/commit/0d43c5e856
2021-05-06 15:20:34 +09:00
nicholas a. evans
4dc7b82427
[ruby/net-imap] move command data formatters to net/imap/command_data
...
Partially implements #10 .
https://github.com/ruby/net-imap/commit/24e929fdd2
2021-05-06 15:20:34 +09:00
nicholas a. evans
affb51045c
[ruby/net-imap] move response data structs to net/imap/response_data
...
Partially implements #10 .
https://github.com/ruby/net-imap/commit/746757b936
2021-05-06 15:20:34 +09:00
nicholas a. evans
395a287736
[ruby/net-imap] move ResponseParser to lib/net/imap/response_parser
...
Partially implements #10 .
https://github.com/ruby/net-imap/commit/c2408aac9a
2021-05-06 15:20:34 +09:00
nicholas a. evans
2fc91da86c
[ruby/net-imap] Clean up authenticators rdoc
...
Added RFC links to all SASL mechanism specifications.
https://github.com/ruby/net-imap/commit/53ff4b0c09
2021-05-06 15:20:34 +09:00
nicholas a. evans
912f39b2c3
[ruby/net-imap] Update AUTH=PLAIN to be a little closer to RFC4616
...
* Add authzid support
* must not contain NULL chars
* improve rdoc
https://github.com/ruby/net-imap/commit/a587fc71b7
2021-05-06 15:20:34 +09:00
nicholas a. evans
331005812f
[ruby/net-imap] Move each authenticator to its own file
...
Also updates rdoc with SASL specifications and deprecations. Of these
four, only `PLAIN` isn't deprecated!
+@@authenticators+ was changed to a class instance var
+@authenticators+. No one should have been using the class variable
directly, so that should be fine.
https://github.com/ruby/net-imap/commit/23f241b081
2021-05-06 15:20:33 +09:00
Takashi Kokubun
a7f7479872
[ruby/erb] Document that `<% #` doesn't work
...
[Bug #17846 ]
b58b188028
2021-05-05 23:13:27 -07:00
ima1zumi
b2c54f5395
[ruby/irb] Need reline >= 0.1.6
...
irb 1.3.5 need reline >= 0.1.6 because irb use `Reline::IOGate.in_pasting?`.
This method defined after reline 0.1.6.
fix #228 .
https://github.com/ruby/irb/commit/6b7b8fc324
2021-04-30 20:46:50 +09:00
Marc-Andre Lafortune
7f1323c3bd
[ruby/ostruct] Add compatibility for to_h with block in Ruby 2.5
...
https://github.com/ruby/ostruct/commit/da45de5068
2021-04-28 17:48:05 +09:00
Marc-Andre Lafortune
37b445eaeb
[ruby/ostruct] Compatibility with Ruby 2.5
...
https://github.com/ruby/ostruct/commit/ecd9fafdf8
2021-04-28 17:33:59 +09:00
Ryuta Kamizono
908785ef6d
[ruby/net-imap] Fix typo intentionaly -> intentionally [ci skip]
...
https://github.com/ruby/net-imap/commit/4057c662e7
2021-04-28 11:10:52 +09:00
Jeremy Evans
0296a64450
[ruby/net-http] Initialize OpenSSL early before creating TCPSocket
...
OpenSSL make take some time to initialize, and it would be best
to take that time before connecting instead of after.
From joshc on Redmine.
Fixes Ruby Bug #9459
https://github.com/ruby/net-http/commit/14e09fba24
2021-04-28 11:03:12 +09:00
Jean Boussier
1229ad0528
[ruby/net-http] Fix the regexp used to clean the host
...
Introduced in https://github.com/ruby/ruby/commit/c1652035644
`/s` marks the regexp as encoded with Windows-31J which makes little
sense.
Nurse thinks the intent was to use `/m` for a multi-line regexp.
https://github.com/ruby/net-http/commit/6c15342cdf
2021-04-28 11:01:41 +09:00
Lukas Eipert
842f00f452
[ruby/net-http] Decode user and password from env configured proxy
...
If someone sets an env variable defining a http_proxy, containing a
username / password with percent-encoded characters, then the resulting
base64 encoded auth header will be wrong.
For example, suppose a username is `Y\X` and the password is `R%S] ?X`.
Properly URL encoded the proxy url would be:
http://Y%5CX:R%25S%5D%20%3FX@proxy.example:8000
The resulting proxy auth header should be: `WVxYOlIlU10gP1g=`, but the
getters defined by ruby StdLib `URI` return a username `Y%5CX` and
password `R%25S%5D%20%3FX`, resulting in `WSU1Q1g6UiUyNVMlNUQlMjAlM0ZY`.
As a result the proxy will deny the request.
Please note that this is my first contribution to the ruby ecosystem, to
standard lib especially and I am not a ruby developer.
References:
- https://gitlab.com/gitlab-org/gitlab/-/issues/289836
- https://bugs.ruby-lang.org/projects/ruby-master/repository/trunk/revisions/58461
- https://bugs.ruby-lang.org/issues/17542
https://github.com/ruby/net-http/commit/e57d4f38aa
2021-04-28 11:01:23 +09:00
mohamed
8a2b7b79ee
[ruby/net-http] Replace Timeout.timeout in Net:HTTP#connect
...
Use Socket.tcp's connect_timeout option instead
https://github.com/ruby/net-http/commit/753cae3bbc
2021-04-28 10:58:13 +09:00
Tom Freudenberg
e22626f08e
[ruby/net-smtp] mod: bump to a new VERSION that could be checked for testings >0.2.1
...
https://github.com/ruby/net-smtp/commit/8f2c9323e2
2021-04-28 10:51:10 +09:00
Hiroshi SHIBATA
eebecdf1c4
[ruby/net-smtp] Removed needless files from Gem::Specification#files
...
https://github.com/ruby/net-smtp/commit/69bba6b125
2021-04-28 10:48:13 +09:00
mohamed
ff931d0336
[ruby/net-smtp] Replace Timeout.timeout with socket timeout
...
Timeout.timeout is inefficient since it spins up a new thread for
each invocation, use Socket.tcp's connect_timeout option instead
https://github.com/ruby/net-smtp/commit/6ae4a59f05
2021-04-28 10:47:29 +09:00
Tom Freudenberg
4c8cce5b8a
[ruby/net-smtp] Net::SMTP.start() and #start() accepts ssl_context_params keyword argument
...
Additional params are passed to OpenSSL::SSL::SSLContext#set_params.
For example, `Net::SMTP#start(ssl_context_params: { cert_store: my_store, timeout: 123 })`
calls `set_params({ cert_store: my_store, timeout: 123 })`.
https://github.com/ruby/net-smtp/commit/4213389c21
2021-04-28 10:46:38 +09:00
Gannon McGibbon
1b2abb6590
[ruby/net-ftp] Replace "iff" with "if and only if"
...
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.
https://github.com/ruby/net-ftp/commit/e920473618
2021-04-27 21:22:56 +09:00
Shugo Maeda
4ae27d8075
[ruby/net-ftp] Reduce resource cosumption of Net::FTP::TIME_PARSER
...
Reported by Alexandr Savca as a DoS vulnerability, but Net::FTP is a
client library and the impact of the issue is low, so I have decided
to fix it as a normal issue.
Based on patch by nobu.
https://github.com/ruby/net-ftp/commit/a93af636f8
2021-04-27 21:21:33 +09:00
Jeremy Evans
990baec411
[ruby/net-ftp] Close the passive connection data socket if there is an error setting up the transfer
...
Previously, the connection leaked in this case. This uses
begin/ensure and checking for an error in the ensure block.
An alternative approach would be to not even perform the
connection until after the RETR (or other) command has been
sent. However, I'm not sure all FTP servers support that.
The current behavior is:
* Send (PASV/EPSV)
* Connect to the host/port returned in 227/229 reply
* Send (RETR/other command)
Changing it to connect after the RETR could break things.
FTP servers might expect that the client has already
connected before sending the RETR. The alternative
approach is more likely to introduce backwards compatibility
issues, compared to the begin/ensure approach taken here.
Fixes Ruby Bug 17027
https://github.com/ruby/net-ftp/commit/6e8535f076
2021-04-27 21:21:00 +09:00
mohamed
a86c6cb34d
[ruby/net-ftp] Replace Timeout.timeout with socket timeout
...
Timeout.timeout is inefficient since it spins up a new thread for
each invocation, use Socket.tcp's connect_timeout option instead
when we aren't using SOCKS (we can't replace Timeout.timeout
for SOCKS yet since SOCKSSocket doesn't have a connect_timeout
option).
https://github.com/ruby/net-ftp/commit/d65910132f
2021-04-27 21:20:48 +09:00
Marc-Andre Lafortune
3af2e8927a
[ruby/matrix] v0.4.1
...
https://github.com/ruby/matrix/commit/f7c9981907
2021-04-27 21:01:42 +09:00
Marc-Andre Lafortune
c57ba9b957
[ruby/matrix] v0.4.0
...
https://github.com/ruby/matrix/commit/baea4b90d4
2021-04-27 21:01:08 +09:00
Hiroshi SHIBATA
acf599e67c
[ruby/matrix] Use Gemfile instead of Gem::Specification#add_development_dependency.
...
https://github.com/ruby/matrix/commit/1381fde5c1
2021-04-27 20:57:54 +09:00
Yusuke Endoh
203eeeefdd
Revert "disable shareable_constant_value for CI"
...
This reverts commit c647205c3e
.
Maybe the root issue was fixed by 7ac078e5b67ba752a755d6bd9c3a99999767fd3a
2021-04-26 22:46:51 +09:00
Nobuyoshi Nakada
8fdc45c894
[ruby/irb] Added `colorable` keyword option
...
Currently `IRB::Color.colorize` and `IRB::Color.colorize_code`
refer `$stdin.tty?` internally.
This patch adds `colorable` keyword option which overrides it.
https://github.com/ruby/irb/commit/402e3f1907
2021-04-26 21:14:52 +09:00
Ryuta Kamizono
fc24b0736e
[ruby/irb] Fix typo ture -> true [ci skip]
...
https://github.com/ruby/irb/commit/783a0569e8
2021-04-26 21:13:42 +09:00
Koichi Sasada
c647205c3e
disable shareable_constant_value for CI
...
To debug CI failures on FreeBSD, disable `shareable_constant_value`.
2021-04-26 11:33:07 +09:00
Steven Harman
bbee6968f8
[ruby/uri] Use Regexp#match? to avoid extra allocations
...
`#=~` builds `MatchData`, requiring extra allocations as compared to
`#match?`, which returns a boolean w/o having to build the `MatchData`.
https://github.com/ruby/uri/commit/158f58a9cc
2021-04-22 14:55:44 +09:00
Felix Wong
291cfa7125
[ruby/uri] remove comment about URI::escape as it is removed
...
https://github.com/ruby/uri/commit/0f0057e1b2
2021-04-22 14:55:05 +09:00
Jeremy Evans
d4a490f26a
[ruby/uri] Set required_ruby_version to 2.4 in gemspec
...
Tests pass on Ruby 2.4, but not on Ruby 2.3.
https://github.com/ruby/uri/commit/594418079a
2021-04-22 14:54:56 +09:00
Jeremy Evans
10ad81eb2d
[ruby/uri] Only use UnboundMethod#bind_call if it is available
...
This allows tests to pass on Ruby 2.4-2.6.
Fixes #19
https://github.com/ruby/uri/commit/67ca99ca87
2021-04-22 14:54:47 +09:00
Lukas Zapletal
c46a4b8c7f
[ruby/uri] Optimize URI#hostname and URI#hostname=
...
https://github.com/ruby/uri/commit/3b7ccfd835
2021-04-22 14:54:28 +09:00
Charles Oliver Nutter
6e06c980da
[ruby/uri] Upstream Java proxy property checks from JRuby
...
These Java properties, retrieved from JRuby's "Java env" ENV_JAVA,
allow JRuby users to use the same proxy properties the rest of the
Java platform uses.
This resolves https://bugs.ruby-lang.org/issues/11194
https://github.com/ruby/uri/commit/3bd2bcc95a
2021-04-22 14:54:19 +09:00
Shugo Maeda
a9fe00c3ba
[ruby/net-imap] Bump version to 0.2.1
...
https://github.com/ruby/net-imap/commit/31f96ea884
2021-04-22 14:38:32 +09:00
Shugo Maeda
d785c5b8b2
[ruby/net-imap] Set timeout for IDLE responses
...
Fixes #14
https://github.com/ruby/net-imap/commit/39d39ff9bb
2021-04-22 14:38:23 +09:00
Hiroshi SHIBATA
674760316c
Merge net-imap-0.2.0
2021-04-22 14:37:45 +09:00
Olle Jonsson
b18aab24b6
[ruby/benchmark] gemspec: Explicitly have 0 executables
...
This gem exposes no executables.
https://github.com/ruby/benchmark/commit/ff1ef7ae06
2021-04-22 11:51:37 +09:00
Keith Bennett
4f39a35b60
[ruby/benchmark] Add comment about terminating newline in captions; fix test method name.
...
https://github.com/ruby/benchmark/commit/02ce298d3e
2021-04-22 11:51:37 +09:00
Olle Jonsson
2440d60acb
[ruby/cgi] gemspec: Explicitly empty executables list
...
The gem exposes no executables
https://github.com/ruby/cgi/commit/cd7106ad97
2021-04-22 11:51:37 +09:00
pavel
2756938369
[ruby/cgi] handle invalid encoding
...
https://github.com/ruby/cgi/commit/2b1c2e21a4
2021-04-22 11:51:36 +09:00
Kir Shatrov
53d153e42c
[ruby/time] Make Time friendly to Ractor
...
https://github.com/ruby/time/commit/c784e4f166
2021-04-22 11:51:36 +09:00
Hiroshi SHIBATA
3c8a67e8a5
[ruby/pp] Bump version to 0.2.0
...
https://github.com/ruby/pp/commit/a202dd2c9b
2021-04-21 20:45:23 +09:00
Hiroshi SHIBATA
17441a6b1b
[ruby/pp] Support < Ruby 3.0
...
https://github.com/ruby/pp/commit/3ee131ae92
2021-04-21 20:44:55 +09:00
Olle Jonsson
2229fc8b57
[ruby/resolv] gemspec: Explicitly list 0 executables
...
This gem exposes no executables, and this makes that clearer.
https://github.com/ruby/resolv/commit/8797a9d3ce
2021-04-21 20:43:18 +09:00
Olle Jonsson
c27e8f1caf
[ruby/forwardable] gemspec: Explicitly empty the executables list
...
This gem exposes no executables.
https://github.com/ruby/forwardable/commit/374b685927
2021-04-21 20:41:52 +09:00
Olle Jonsson
b68a4c199c
[ruby/base64] gemspec: Use an explicit file list
...
This avoids shelling out to git.
https://github.com/ruby/base64/commit/f45f06f93f
2021-04-21 20:41:26 +09:00
Olle Jonsson
fa00bf92ba
[ruby/base64] gemspec: Explicitly empty executables list
...
This gem exposes no executables.
https://github.com/ruby/base64/commit/9d2c49cb19
2021-04-21 20:41:17 +09:00
Olle Jonsson
855997a4d4
[ruby/abbrev] gemspec: Explicitly empty executables list
...
https://github.com/ruby/abbrev/commit/f28839e7b8
2021-04-21 20:39:04 +09:00
Gannon McGibbon
b56c8f814e
[ruby/logger] Replace "iff" with "if and only if"
...
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.
https://github.com/ruby/logger/commit/4fa0c28e00
2021-04-20 21:19:41 +09:00
Hiroshi SHIBATA
96741765d8
Merge the master branch of RubyGems
2021-04-15 15:36:15 +09:00
Hiroshi SHIBATA
ed149dbf46
Merge the master branch of Bundler
2021-04-15 15:36:15 +09:00
universato
b190f6ef13
[ruby/matrix] Fix a typo in a error message
2021-04-14 13:51:14 -04:00
Nobuyoshi Nakada
799ea1d154
mkmf.rb: convert also arch_hdrdir [Bug #16651 ]
2021-04-11 21:59:45 +09:00
Nobuyoshi Nakada
f89486965b
[ruby/optparse] Moved rdoc files to doc/optparse
...
https://github.com/ruby/optparse/commit/cccb28e0de
2021-04-11 09:03:36 +09:00
aycabta
6496c76d2a
[ruby/reline] Add calling Reline::Config#reset_default_key_bindings to #reset, which is forgot to call
2021-04-09 11:57:28 +09:00
Nobuyoshi Nakada
b0b3022f95
[ruby/reline] Moved development dependencies to Gemfile
...
As expressions in a gemspec file are evaluated at the build time,
but not the run time, the conditional in the gemspec will not work
as intended.
https://github.com/ruby/reline/commit/c09b7c454a
2021-04-08 21:41:00 +09:00
aycabta
5543695a19
[ruby/reline] Separate keystrokes each editing mode
...
https://github.com/ruby/reline/commit/ee23e6f3f8
2021-04-08 21:41:00 +09:00
aycabta
16f31da92e
[ruby/reline] Check WITH_VTERM env to add vterm gem as dependency
...
https://github.com/ruby/reline/commit/27b689a7e2
2021-04-08 21:41:00 +09:00
Nobuyoshi Nakada
9e940eae60
[ruby/irb] Moved development dependencies to Gemfile
...
As expressions in a gemspec file are evaluated at the build time,
but not the run time, the conditional in the gemspec will not work
as intended.
https://github.com/ruby/irb/commit/42f364ea23
2021-04-08 21:41:00 +09:00
Nobuyoshi Nakada
3816157e5d
[ruby/irb] Ripper::Lexer::Elem#state is defined since Ruby 2.5
...
And the required ruby version is 2.5 or later.
https://github.com/ruby/irb/commit/ac496d4c78
2021-04-08 20:42:14 +09:00
Olle Jonsson
ec355813b0
[ruby/optparse] gemspec: Explicit files list [ci skip]
...
This avoid shelling out, and includes a narrower list of files.
https://github.com/ruby/optparse/commit/f3ca83caff
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-04-08 12:37:24 +09:00
BurdetteLamar
a5ecce9187
[ruby/optparse] Make use of option_params.rdoc
...
https://github.com/ruby/optparse/commit/d55d9284c3
2021-04-08 12:11:42 +09:00
Olle Jonsson
2b66b22479
[ruby/optparse] gemspec: Explicitly list 0 executables
...
This gem exposes no executable files.
https://github.com/ruby/optparse/commit/d14bf83007
2021-04-08 12:09:30 +09:00
Hiroshi SHIBATA
a00d92326c
[ruby/tmpdir] Bump version to 0.1.2
...
https://github.com/ruby/tmpdir/commit/c79bc7adf6
2021-04-05 21:08:58 +09:00
Nobuyoshi Nakada
4b6fa03a72
[ruby/tmpdir] Make usable chars more strict
...
Remove other than alphanumeric and some punctuations considered
filesystem-safe, instead of removing some unsafe chars only.
https://hackerone.com/reports/1131465
https://github.com/ruby/tmpdir/commit/adf294bc2d
2021-04-05 21:08:57 +09:00
aycabta
bacb646169
[ruby/irb] Check WITH_VTERM env to add vterm gem as dependency
...
https://github.com/ruby/irb/commit/23c8b73cb1
2021-04-04 22:39:16 +09:00
aycabta
47abb70234
[ruby/reline] Use vterm 0.0.5 or newer on Unix like OSes because suppresses SEGV
...
https://github.com/ruby/reline/commit/7562cf3b5f
2021-04-03 20:22:56 +09:00
aycabta
281c6f5055
[ruby/irb] Use vterm 0.0.5 or newer on Unix like OSes because suppresses SEGV
...
https://github.com/ruby/irb/commit/b034bd22b0
2021-04-03 20:21:09 +09:00
aycabta
f079318187
[ruby/irb] Use yamatanooroti gem for tests
...
https://github.com/ruby/irb/commit/f053f49c29
2021-04-03 20:21:02 +09:00
aycabta
8a4472fb6d
[ruby/reline] Version 0.2.5
...
https://github.com/ruby/reline/commit/22ce5651e5
2021-04-03 01:28:42 +09:00
aycabta
3ffb04474a
[ruby/irb] Version 1.3.5
...
https://github.com/ruby/irb/commit/22e2ddf715
2021-04-03 01:25:58 +09:00
Nobuyoshi Nakada
64b991b0cd
[ruby/rdoc] Links to document texts without "rdoc-ref:" prefix
...
While links to generated HTML from RDoc file needs to be prefixed
by "rdoc-ref:" currently, in case of explicit references this
seems just redundant.
Also GitHub RDoc support does not work with this prefix.
This patch lets links to such document texts (".rb", ".rdoc" and
".md" now) refer URLs generated by `RDoc::TopLevel#http_url`
without the prefix.
https://github.com/ruby/rdoc/commit/f18b27b69d
2021-04-03 01:22:09 +09:00
aycabta
61e1cf23ac
[ruby/rdoc] Treat emphasis tags as excluding other notations
...
And exclusive notations don't exclude other exclusive notations.
https://github.com/ruby/rdoc/commit/b8baa9a435
2021-04-03 01:21:50 +09:00
aycabta
e84d275fe6
[ruby/rdoc] Treat other tags as word boundaries
...
https://github.com/ruby/rdoc/commit/8222f85a17
2021-04-03 01:21:38 +09:00
aycabta
54aa11efa8
[ruby/rdoc] Disable other notations in <code> tags
...
https://github.com/ruby/rdoc/commit/0cd3b55210
2021-04-03 01:21:12 +09:00
aycabta
ab89c45b90
[ruby/irb] Evaluate each toplevel statement
...
https://github.com/ruby/irb/commit/bc1b1d8bc3
2021-04-03 01:17:08 +09:00
Cody Cutrer
3cab8c087f
[ruby/irb] process multi-line pastes as a single entity
...
this allows pasting leading-dot chained methods correctly:
```ruby
class A
def a; self; end
def b; true; end
end
a = A.new
a
.a
.b
```
will properly return `true` instead of erroring on the `.a` line:
```
irb(main):001:1* class A
irb(main):002:1* def a; self; end
irb(main):003:0> end
irb(main):004:0*
irb(main):005:0> a = A.new
irb(main):006:0*
irb(main):007:0> a
irb(main):008:0> .a
irb(main):009:0> .a
=> #<A:0x00007f984211fbe8>
```
https://github.com/ruby/irb/commit/45aeb52575
2021-04-03 00:49:29 +09:00
aycabta
7e93917458
[ruby/reline] Reset @rest_height when clear screen
...
https://github.com/ruby/reline/commit/3a7019b0d5
2021-04-02 17:33:48 +09:00
Takashi Kokubun
9e336f73fb
[ruby/irb] Add show_source command
...
https://github.com/ruby/irb/commit/108cb04352
2021-04-02 16:40:06 +09:00
Nobuyoshi Nakada
79af8ce6d7
[ruby/irb] Colorize `__END__` as keyword
...
https://github.com/ruby/irb/commit/9b84018311
2021-04-02 10:52:53 +09:00
Koichi Sasada
1ac68bba4e
[ruby/irb] SIGINT should raise Interrupt after IRB session
...
https://github.com/ruby/irb/commit/5832cfe75b
2021-04-02 01:57:44 +09:00
aycabta
66d2fc7989
Enclose the code that was accidentally a link in "tt"
2021-03-31 15:18:52 +09:00
Nobuyoshi Nakada
5cdf99f64e
mkmf: fixed install directories of header files in extension libraries [Bug #17761 ]
...
When installing an extension library which provides a header, that
header should be installed under site_ruby (or vendor_ruby when
"--vendor" option was given to extconf.rb). However, currently
this file is about to be installed in the core include directory.
2021-03-30 23:28:49 +09:00
Samuel Williams
92449e0e99
Fix handling of timeout accessing scheduler outside of non-blocking context.
2021-03-30 18:38:42 +13:00
Samuel Williams
511acba4ae
Update method name and add documentation.
2021-03-30 18:38:42 +13:00
Samuel Williams
9b9bbaec11
Update lib/timeout.rb
...
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-03-30 18:38:42 +13:00
Samuel Williams
4c53dc970b
Add hook for `Timeout.timeout`.
2021-03-30 18:38:42 +13:00
Aleksandar Ivanov
d65d661151
[ruby/irb] Prevent the completion from crashing if rdoc is missing
...
There are cases where ruby is installed without rdoc and e.g.
lib/irb/cmd/help.rb also handles the LoadError
Here is how to replicate the issue:
```
$ docker run -it alpine:3.13.3 sh
/ # apk add ruby ruby-irb ruby-io-console
/ # irb
irb(main):001:0> Class[TAB][TAB]
```
And you end up with something like:
```
irb(main):001:0> ClassTraceback (most recent call last):
34: from /usr/bin/irb:23:in `<main>'
33: from /usr/bin/irb:23:in `load'
32: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `<top (required)>'
31: from /usr/lib/ruby/2.7.0/irb.rb:400:in `start'
30: from /usr/lib/ruby/2.7.0/irb.rb:471:in `run'
29: from /usr/lib/ruby/2.7.0/irb.rb:471:in `catch'
28: from /usr/lib/ruby/2.7.0/irb.rb:472:in `block in run'
27: from /usr/lib/ruby/2.7.0/irb.rb:537:in `eval_input'
26: from /usr/lib/ruby/2.7.0/irb/ruby-lex.rb:150:in `each_top_level_statement'
25: from /usr/lib/ruby/2.7.0/irb/ruby-lex.rb:150:in `catch'
24: from /usr/lib/ruby/2.7.0/irb/ruby-lex.rb:151:in `block in each_top_level_statement'
23: from /usr/lib/ruby/2.7.0/irb/ruby-lex.rb:151:in `loop'
22: from /usr/lib/ruby/2.7.0/irb/ruby-lex.rb:154:in `block (2 levels) in each_top_level_statement'
21: from /usr/lib/ruby/2.7.0/irb/ruby-lex.rb:182:in `lex'
20: from /usr/lib/ruby/2.7.0/irb.rb:518:in `block in eval_input'
19: from /usr/lib/ruby/2.7.0/irb.rb:704:in `signal_status'
18: from /usr/lib/ruby/2.7.0/irb.rb:519:in `block (2 levels) in eval_input'
17: from /usr/lib/ruby/2.7.0/irb/input-method.rb:294:in `gets'
16: from /usr/lib/ruby/2.7.0/forwardable.rb:235:in `readmultiline'
15: from /usr/lib/ruby/2.7.0/forwardable.rb:235:in `readmultiline'
14: from /usr/lib/ruby/2.7.0/reline.rb:175:in `readmultiline'
13: from /usr/lib/ruby/2.7.0/reline.rb:238:in `inner_readline'
12: from /usr/lib/ruby/2.7.0/reline.rb:238:in `loop'
11: from /usr/lib/ruby/2.7.0/reline.rb:239:in `block in inner_readline'
10: from /usr/lib/ruby/2.7.0/reline.rb:270:in `read_io'
9: from /usr/lib/ruby/2.7.0/reline.rb:270:in `loop'
8: from /usr/lib/ruby/2.7.0/reline.rb:311:in `block in read_io'
7: from /usr/lib/ruby/2.7.0/reline.rb:240:in `block (2 levels) in inner_readline'
6: from /usr/lib/ruby/2.7.0/reline.rb:240:in `each'
5: from /usr/lib/ruby/2.7.0/reline.rb:241:in `block (3 levels) in inner_readline'
4: from /usr/lib/ruby/2.7.0/reline/line_editor.rb:820:in `input_key'
3: from /usr/lib/ruby/2.7.0/reline/line_editor.rb:608:in `complete'
2: from /usr/lib/ruby/2.7.0/irb/completion.rb:269:in `block in <module:InputCompletor>'
1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- rdoc (LoadError)
```
https://github.com/ruby/irb/commit/a2d299c2ac
2021-03-30 14:27:51 +09:00
Nobuyoshi Nakada
190a57b168
[ruby/optparse] bump up to 0.1.1
...
https://github.com/ruby/optparse/commit/2fe984a603
2021-03-29 19:37:25 +09:00
Nobuyoshi Nakada
e8317d90b0
[ruby/optparse] Fixed error message of unparsed non-option
...
Close https://github.com/ruby/optparse/issues/3
https://github.com/ruby/optparse/commit/94c5cf4032
2021-03-29 19:37:24 +09:00
Nobuyoshi Nakada
e97f21afcd
[ruby/optparse] Exclude unnecessary files from the package
...
https://github.com/ruby/optparse/commit/dfd9380231
2021-03-29 18:24:56 +09:00
BurdetteLamar
7846f3201a
[ruby/optparse] Change *opts to *params, to avoid confusion
...
https://github.com/ruby/optparse/commit/f5f5e202dd
2021-03-29 15:55:41 +09:00
Jeremy Evans
eca8ffaa0b
[ruby/optparse] Add OptionParser#require_exact accessor
...
This allows you to disable allowing abbreviations of long options
and using short options for long options.
Implements Ruby Feature #11523
https://github.com/ruby/optparse/commit/dfefb2d2e2
2021-03-29 15:55:41 +09:00
Takashi Kokubun
6a352e275b
[ruby/erb] Version 2.2.3
...
https://github.com/ruby/erb/commit/03bc4a8274
2021-03-26 12:37:37 +09:00
Kenichi Kamiya
3789d58c84
[ruby/erb] Clarify supported ruby versions in gemspec
...
https://github.com/ruby/erb/commit/b40db4114a
2021-03-26 12:35:52 +09:00
aycabta
ad8842c06d
[ruby/irb] Cache completion files to require
...
https://github.com/ruby/irb/commit/612ebcb311
2021-03-25 18:54:02 +09:00
aycabta
89caf51d93
[ruby/reline] Suppress crashing when completer_{quote,word_break}_characters is empty
...
https://github.com/ruby/reline/commit/c6f1164942
2021-03-24 15:43:34 +09:00
aycabta
758f2b35f9
[ruby/reline] Support preposing and postposing for Reline.completion_proc
...
https://github.com/ruby/reline/commit/1f469de90c
2021-03-24 15:43:27 +09:00
aycabta
4b33d860e8
[ruby/reline] Reline.delete_text removes the current line in multiline
...
https://github.com/ruby/reline/commit/da90c094a1
2021-03-24 15:43:19 +09:00
aycabta
b764c8d3c0
[ruby/reline] Add Reline.ungetc to control buffer
...
https://github.com/ruby/reline/commit/43ac03c624
2021-03-24 15:43:10 +09:00
aycabta
0927756e58
[ruby/irb] Complete require and require_relative
...
https://github.com/ruby/irb/commit/1c61178b4c
2021-03-24 15:11:41 +09:00
aycabta
0259ee6008
[ruby/irb] Change ripper_lex_without_warning to a class method
...
https://github.com/ruby/irb/commit/d9f8abc17e
2021-03-24 14:39:50 +09:00
Takashi Kokubun
94254117ee
[ruby/irb] Have some right padding
...
instead of filling out an entire line
https://github.com/ruby/irb/commit/6ac8f45f5f
2021-03-21 16:01:29 +09:00
Takashi Kokubun
75b38f1894
[ruby/irb] Fix step's argument
...
cols.size was calling Integer#size, which returns 8.
Fixing a bug of https://github.com/ruby/irb/pull/209
https://github.com/ruby/irb/commit/c93ae4be71
2021-03-21 15:50:53 +09:00
Takashi Kokubun
d0b044a842
[ruby/irb] Fix column overflow on ls output
...
https://github.com/ruby/irb/commit/6115754623
2021-03-21 15:19:04 +09:00
Takashi Kokubun
232433f224
[ruby/irb] Add whereami command
...
https://github.com/ruby/irb/commit/bc822e4aac
2021-03-21 13:40:21 +09:00
Takashi Kokubun
5f72962a09
[ruby/irb] Implement ls command
...
https://github.com/ruby/irb/commit/19b6c20604
2021-03-21 12:59:51 +09:00
Takashi Kokubun
278522f053
[ruby/irb] Don't call Ruby 2.4+'s String#pretty_print
...
https://github.com/ruby/irb/commit/89bcf107be
2021-03-20 20:25:32 +09:00
Takashi Kokubun
f9dc5db38e
[ruby/irb] Add all lib files automatically
...
https://github.com/ruby/irb/commit/ecc82336b7
2021-03-20 07:36:21 +09:00
aycabta
0428c2e7df
[ruby/irb] Define "measure" command without forced override
...
https://github.com/ruby/irb/commit/9587ba13b5
2021-03-19 23:34:34 +09:00
Nobuyoshi Nakada
fad3412d47
[ruby/rdoc] Get rid of a trailing space
...
https://github.com/ruby/rdoc/commit/7b7b91768e
2021-03-16 15:47:27 +09:00
aycabta
ff9a008871
[ruby/rdoc] Suppress unused variable warning of "text"
...
https://github.com/ruby/rdoc/commit/3a4120b155
2021-03-16 15:47:27 +09:00
aycabta
61a29a41e1
[ruby/rdoc] Allow empty .rdoc_options
...
https://github.com/ruby/rdoc/commit/0c8cb25b50
2021-03-16 15:47:27 +09:00
aycabta
971a0cd246
[ruby/rdoc] Allow partial default values to be overridden with .rdoc_options
...
https://github.com/ruby/rdoc/commit/e14800891f
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
de8e6218a3
[ruby/rdoc] Fixed CodeFence without blank lines
...
Currently a fenced code block needs a preceding blank line, it
should not be required, as:
https://github.github.com/gfm/#fenced-code-blocks
> A fenced code block may interrupt a paragraph, and does not
> require a blank line either before or after.
Just recommended:
https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks
> We recommend placing a blank line before and after code blocks
> to make the raw formatting easier to read.
https://github.com/ruby/rdoc/commit/0e1776caf3
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
10b082064e
[ruby/rdoc] Add table style
...
https://github.com/ruby/rdoc/commit/2219c5ae80
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
3651f678a7
[ruby/rdoc] Support GFM table
...
https://github.com/ruby/rdoc/commit/9dc933df16
2021-03-16 15:47:27 +09:00
Pankaj Doharey
05898c5b90
[ruby/rdoc] Update Rdoc.css sidebar panel.
...
Updates css so the sidebar look like a panel instead of looking like chopped edges.
https://github.com/ruby/rdoc/commit/b0098c6d72
2021-03-16 15:47:27 +09:00
David Rodríguez
53468cc111
Sync latest development version of bundler & rubygems
2021-03-08 13:47:35 +09:00
David Rodríguez
2ab6b7a751
Remove no longer needed globs
2021-03-08 13:47:35 +09:00
Jeremy Evans
14e1739ff3
[ruby/irb] Make save-history extension safe for concurrent use
...
This makes the save-history extension check for modifications to
the history file before saving it. If the history file was modified
after the history was loaded and before it was saved, append only
the new history lines to the history file.
This can result in more lines in the history file than SAVE_HISTORY
allows. However, that will be fixed the next time irb is run and
the history is saved.
Fixes [Bug #13654 ]
https://github.com/ruby/irb/commit/041ef53845
2021-03-06 00:18:32 +09:00
Jeremy Evans
2cc5827fdc
[ruby/irb] Do not continue line if last expression is an endless range
...
Fixes [Bug #14824 ]
https://github.com/ruby/irb/commit/63414f8465
2021-03-05 22:03:05 +09:00
Marc-Andre Lafortune
61f417ac7d
[lib/benchmark] Use $stdout instead of STDOUT [Bug #17600 ]
2021-03-01 19:23:21 -05:00
Jeremy Evans
dbea0be13d
[ruby/irb] Update help message for next context-mode of 4
...
While here, fixing tab/space issues in help message, and sync
rdoc for IRB class to match the help message.
https://github.com/ruby/irb/commit/ef8e3901cc
2021-02-27 06:51:12 +09:00
aycabta
f0743dd2a4
[ruby/reline] Version 0.2.4
...
https://github.com/ruby/reline/commit/462f971bd3
2021-02-26 05:24:01 +09:00
aycabta
fda162c776
[ruby/irb] Version 1.3.4
...
https://github.com/ruby/irb/commit/ab9852ccc5
2021-02-25 22:11:48 +09:00
cremno
a7dda449e8
[ruby/reline] fix Reline::Windows.getconsolemode buffer
...
use double quotes to properly convert the \000 escape sequence.
https://github.com/ruby/reline/commit/236dfe5683
2021-02-22 12:19:21 +09:00
aycabta
aeac4ddcc0
[ruby/reline] Use UTF-8 only for width calc, rest uses original encoding
...
I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and
DEC graphics by reading source code, so can't test this patch by
yamatanoorogi gem through vterm gem for now.
This fixes ruby/irb#190 .
https://github.com/ruby/reline/commit/44596c0cc7
2021-02-21 06:44:05 +09:00
Yoshinao Muramatu
38d30a6942
[ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof processing
...
https://github.com/ruby/reline/commit/3535676689
2021-02-21 06:43:52 +09:00
Yoshinao Muramatu
38cefac7ce
[ruby/reline] We still need support new and legacy behavior.
...
Revert "Support for change in Windows-specific behavior at eol"
This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82.
https://github.com/ruby/reline/commit/646587fc2c
2021-02-21 06:43:41 +09:00
Eamonn Webster
ac9e3b514b
[ruby/reline] Avoid tripping over nil prompt
...
https://github.com/ruby/reline/commit/d4d9d3e3d4
2021-02-21 06:41:11 +09:00
aycabta
dc9e33016c
[ruby/reline] Return 1 when char width not found
...
This fixes ruby/reline#261 .
https://github.com/ruby/reline/commit/3cf1213014
2021-02-21 06:41:03 +09:00
Nobuyoshi Nakada
cc8e966e3c
MSys is a variant of Cygwin
2021-02-20 23:33:22 +09:00
Nobuyoshi Nakada
b83b27cddb
[ruby/irb] Fix inverse separator condition
...
https://github.com/ruby/irb/commit/33f933196f
2021-02-12 00:02:16 +09:00
aycabta
6eb5b3ac27
[ruby/irb] The command "irb_info" should show RUBY_PLATFORM
...
https://github.com/ruby/irb/commit/39d1cd874f
2021-02-11 20:36:43 +09:00
aycabta
b2d2d25b94
[ruby/irb] Suppress colorize on Windows tests
...
https://github.com/ruby/irb/commit/5be9354cf9
2021-02-11 20:31:29 +09:00
aycabta
d77a42fbfd
[ruby/irb] Suppress error when File::ALT_SEPARATOR is nil
...
https://github.com/ruby/irb/commit/96accf3b95
2021-02-11 20:27:25 +09:00
Keith Bennett
3a7ff66abc
[ruby/benchmark] Adds `Tms#to_h`
...
[Feature #17601 ]
2021-02-07 23:06:17 -05:00
aycabta
93ebfed0a9
[ruby/reline] Version 0.2.3
...
https://github.com/ruby/reline/commit/b26c7d60c8
2021-02-07 05:29:31 +09:00
aycabta
8aac11484b
[ruby/irb] Version 1.3.3
...
https://github.com/ruby/irb/commit/4c87035b7c
2021-02-07 05:28:08 +09:00
aycabta
300084a854
[ruby/reline] Terminate correctly in the middle of lines higher than the screen
...
https://github.com/ruby/reline/commit/e1d9240ada
2021-02-07 05:12:19 +09:00
aycabta
fee19da230
[ruby/reline] Autowrap correctly when inserting chars in the middle of a line
...
https://github.com/ruby/reline/commit/ebaf37255f
2021-02-07 05:12:07 +09:00
aycabta
a19ed1623f
[ruby/reline] The vi_histedit supports multiline
...
This closes ruby/reline#253 .
https://github.com/ruby/reline/commit/f131f86d71
2021-02-07 05:11:54 +09:00
aycabta
a608bb3e9b
[ruby/reline] Move cursor just after the last line when finished
...
https://github.com/ruby/reline/commit/ba06e4c480
2021-02-07 05:11:47 +09:00
aycabta
08162f0e69
[ruby/reline] Update cursor info by inserting newline even if not in pasting
...
https://github.com/ruby/reline/commit/92d314f514
2021-02-07 05:11:41 +09:00
aycabta
b371ca3f4f
[ruby/reline] Handle past logs correctly when the code is higher than the screen
...
https://github.com/ruby/reline/commit/f197139b4a
2021-02-07 05:11:27 +09:00
aycabta
bd0f8b36fd
[ruby/reline] Show all lines higher than the screen when finished
...
On Unix-like OSes, logs prior to the screen are not editable. When the code
is higher than the screen, the code is only shown on the screen until input
is finished, but when it is finished, all lines are outputted.
https://github.com/ruby/reline/commit/8cd9132a39
2021-02-07 05:11:13 +09:00
aycabta
03523fdafb
[ruby/reline] Scroll down when ^C is pressed
...
https://github.com/ruby/reline/commit/6877a7e3f5
2021-02-07 05:11:00 +09:00
aycabta
ec6929a5dd
[ruby/reline] Remove an unused variable
...
https://github.com/ruby/reline/commit/123ea51166
2021-02-07 05:10:50 +09:00
aycabta
433b975fe8
[ruby/reline] Initialize uninitialized variables in tests
...
https://github.com/ruby/reline/commit/25af4bb64b
2021-02-07 05:10:36 +09:00
aycabta
b69c965f47
[ruby/reline] Cache pasting state in processing a key
...
Because it's too slow.
The rendering time in IRB has been reduced as follows:
start = Time.now
def each_top_level_statement
initialize_input
catch(:TERM_INPUT) do
loop do
begin
prompt
unless l = lex
throw :TERM_INPUT if @line == ''
else
@line_no += l.count("\n")
next if l == "\n"
@line.concat l
if @code_block_open or @ltype or @continue or @indent > 0
next
end
end
if @line != "\n"
@line.force_encoding(@io.encoding)
yield @line, @exp_line_no
end
break if @io.eof?
@line = ''
@exp_line_no = @line_no
@indent = 0
rescue TerminateLineInput
initialize_input
prompt
end
end
end
end
puts "Duration: #{Time.now - start} seconds"
0.22sec -> 0.14sec
https://github.com/ruby/reline/commit/b8b3dd52c0
2021-02-07 05:09:18 +09:00
aycabta
7b354cf67b
[ruby/irb] Enable to reassign a new block with "measure" command
...
https://github.com/ruby/irb/commit/b444573aa2
2021-02-06 21:09:31 +09:00
aycabta
5704b5fe5e
[ruby/irb] Allow "measure" command to take block
...
https://github.com/ruby/irb/commit/20f1ca23e9
2021-02-06 20:45:08 +09:00
ima1zumi
b79d443482
[ruby/irb] Add info.rb to gemspec
...
https://github.com/ruby/irb/commit/adbba19adf
2021-02-04 21:12:54 +09:00
Nobuhiro IMAI
b0fb208218
[ruby/irb] follow up the actual line number
...
https://github.com/ruby/irb/commit/7aed8fe3b1
2021-02-03 00:09:32 +09:00
Nobuyoshi Nakada
f6387ae073
Fix absolute path predicate on Windows
...
A path starts with '/' is not an absolute path on Windows, because
of drive letter or UNC.
2021-01-29 10:26:18 +09:00
Nobuhiro IMAI
e80e5a2f89
[ruby/irb] use `RubyLex::TerminateLineInput` appropriately [Bug #17564 ]
...
* using the appropriciate exception instead of `break` so that the session
can be continue after the `irb_source` and `irb_load` commands
* suppress extra new line due to one more `#prompt` call
https://github.com/ruby/irb/commit/bdefaa7cfd
2021-01-27 15:02:05 +09:00
Nobuhiro IMAI
5b05b85d85
[ruby/irb] add `IRB::FileInputMethod.open` to ensure closing associated File
...
* tweak some methods not to raise exception after `#close`
* use it in `IRB::IrbLoader#{source_file,load_file}
https://github.com/ruby/irb/commit/ec2947acbd
2021-01-27 15:01:57 +09:00
Nobuyoshi Nakada
19e6d27126
[ruby/rdoc] Support iso-strict format in git-log
...
https://github.com/ruby/rdoc/commit/2a6c22da63
2021-01-25 18:33:33 +09:00
Nobuyoshi Nakada
7fe22152fc
[ruby/rdoc] Support other date formats in git-log
...
https://github.com/ruby/rdoc/commit/ad8cf37d72
2021-01-25 18:33:31 +09:00
Nobuyoshi Nakada
fd6d5c803a
Clear each test own temporary directories
2021-01-25 12:51:18 +09:00
Nobuyoshi Nakada
30f11e73c4
Revert "Remove temporary directory properly"
...
This reverts commit 80bad36989
,
because a few CI machines fail continuously.
2021-01-24 23:26:11 +09:00
Nobuyoshi Nakada
80bad36989
Remove temporary directory properly
...
For each `make check`, rubygems test makes "tmp" directory and
some "gem_generate_index..." directories remain there.
* Do not create a (fixed name) directory in the current working
directory
* Should remove its own temporary directory
2021-01-24 19:30:02 +09:00
Nobuyoshi Nakada
52ebaf718e
[ruby/rdoc] Skip non-date logs by git-log
...
`RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by
git-log, because of too heuristic `Time.parse`.
For instance, "commit 8187228de0142d3ac7950b7d977c2849e934c637"
results in "8187-08-16", that is, day 228 in the year 8187.
https://github.com/ruby/rdoc/commit/9711e6f6d9
2021-01-24 16:46:27 +09:00
Nobuyoshi Nakada
d5d1c41728
[ruby/rdoc] Sort by CommitDate if available
...
https://github.com/ruby/rdoc/commit/455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada
fa048a0f85
[ruby/rdoc] Add links to the commits
...
https://github.com/ruby/rdoc/commit/1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada
f3f1a666c7
[ruby/rdoc] Shorten commit hashes
...
https://github.com/ruby/rdoc/commit/5d3e153963
2021-01-24 16:46:21 +09:00
Nobuyoshi Nakada
127f735c1e
[ruby/rdoc] Tweak log entry markdown
...
* add 3 levels to headings
* prefix commit log to labels to make unique IDs
https://github.com/ruby/rdoc/commit/5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada
b88d1e6b44
[ruby/rdoc] Make each commit entries h3
...
https://github.com/ruby/rdoc/commit/11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada
bb570ce6d8
[ruby/rdoc] Support ChangeLog generated by `git log`
...
https://github.com/ruby/rdoc/commit/5e0a123ca1
2021-01-24 16:46:15 +09:00
Dorian Marié
68e7dc532d
[ruby/rdoc] Fix failing test by adding gettext as a development dependency
...
The failing test was:
========================================================================================
rdoc/test/rdoc/test_rdoc_i18n_locale.rb:35:in `rescue in test_load_existent_po'
Omission: gettext gem is not found [test_load_existent_po(TestRDocI18nLocale)]
========================================================================================
https://github.com/ruby/rdoc/commit/e5f85839e1
2021-01-24 16:46:11 +09:00
aycabta
743c44ee21
[ruby/irb] Indent correctly with method calling with receiver
...
https://github.com/ruby/irb/commit/e7c68e74a0
2021-01-24 14:35:34 +09:00
aycabta
fc54af8aa1
[ruby/irb] Indent correctly with keyword "for" and "in"
...
https://github.com/ruby/irb/commit/47c83ea724
2021-01-24 14:35:26 +09:00
Gannon McGibbon
37258b64c7
[ruby/net-http] Replace "iff" with "if and only if"
...
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.
https://github.com/ruby/net-http/commit/ffb87cad32
2021-01-23 10:20:28 +09:00
Gannon McGibbon
1def8a6004
[rubygems/rubygems] Replace "iff" with "whether" and "if and only if"
...
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
or "whether" should suffice.
https://github.com/rubygems/rubygems/commit/88318ebc6d
2021-01-23 09:50:47 +09:00
aycabta
fb33ec0119
[ruby/irb] Delete a doodle-level memo comment...
...
https://github.com/ruby/irb/commit/fc3e1d9e0c
2021-01-22 08:15:31 +09:00
Gannon McGibbon
871b4612b0
[ruby/matrix] Replace "iff" with "whether" [doc]
...
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "whether"
when describing return values should suffice.
2021-01-21 13:22:25 -05:00
Felix Wolfsteller
e34f51fe60
[ruby/matrix] Add `Matrix#rotate_entries` [ #19 ]
...
Co-authored-by: Marc-André Lafortune <github@marc-andre.ca>
2021-01-21 13:22:25 -05:00
Takashi Kokubun
724c289b5c
[ruby/erb] Version 2.2.2
...
https://github.com/ruby/erb/commit/3d84ea83bc
2021-01-21 15:29:40 +09:00
Takashi Kokubun
b12bd451af
[ruby/erb] Let ERB.version just return a version
...
and deprecate ERB::Revision.
`'$Date:: $'` has not been working since Git
migration from SVN. I'm sorry.
Because it has been already broken, I'd like to take this opportunity to
make `ERB.version` compatible with `Gem::Version.new`.
https://github.com/ruby/erb/commit/2b4182eb10
2021-01-21 15:26:55 +09:00
Takashi Kokubun
e0d92d5e5d
[ruby/erb] Version 2.2.1
...
https://github.com/ruby/erb/commit/c8aa019c26
2021-01-21 14:52:20 +09:00
Takashi Kokubun
3e8ca51b3b
Fix the relative path for Ruby core
2021-01-20 21:45:34 -08:00
Takashi Kokubun
5f7df72b56
[ruby/erb] Unify ERB version definitions
...
https://github.com/ruby/erb/commit/5df06b8473
2021-01-20 21:43:05 -08:00
Takashi Kokubun
084662dc9f
[ruby/erb] Make styles consistent throught the project
...
https://github.com/ruby/erb/commit/c68c9470b0
2021-01-20 21:36:23 -08:00
Takashi Kokubun
922989fa0f
[ruby/erb] Warn safe_level and later args even without -w
...
because, when Ruby 3.1 is released, Ruby 2.5, the last version with the
old method signature, will have been EOL. Therefore we can safely warn
the old interface from Ruby 3.1.
https://github.com/ruby/erb/commit/c3a753f49f
2021-01-21 13:52:02 +09:00
Gannon McGibbon
9e0075a3d9
Replace "iff" with "if and only if"
...
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.
2021-01-19 12:06:45 -08:00
Takashi Kokubun
1f87725cae
[ruby/irb] Rescue Errno::EINVAL on IRB pp
...
http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20210119T070008Z.log.html.gz
is caused by:
/export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline/ansi.rb:157:in `winsize': Invalid argument - <STDIN> (Errno::EINVAL)
from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline/ansi.rb:157:in `get_screen_size'
from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline.rb:168:in `get_screen_size'
from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/forwardable.rb:238:in `get_screen_size'
from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/irb/color_printer.rb:7:in `pp'
from -e:1:in `<main>'
https://github.com/ruby/irb/commit/1719514598
2021-01-19 08:57:50 -08:00
Takashi Kokubun
82386f21b9
[ruby/irb] Use a real screen size for pp by default
...
https://github.com/ruby/irb/commit/9b9300dec2
2021-01-18 22:52:44 -08:00
Hiroshi SHIBATA
5741236a0c
Use real-case version number for the result of `gem list`
2021-01-19 11:51:39 +09:00
Nobuyoshi Nakada
21d2463fbc
Added empty ruby2_keywords gem to suffice dependencies
2021-01-19 01:19:57 +09:00
Hiroshi SHIBATA
bb5747e18a
Added ruby2_keywords for Ruby 2.5 and 2.6
2021-01-18 20:41:33 +09:00
aycabta
9f7876ab0f
[ruby/irb] Version 1.3.2
...
https://github.com/ruby/irb/commit/a7699026cc
2021-01-18 02:13:07 +09:00
Nobuhiro IMAI
d290a02bd7
[ruby/irb] handle repeated exception separately
...
https://github.com/ruby/irb/commit/fcf6b34bc5
2021-01-18 02:12:53 +09:00
Nobuhiro IMAI
3f0b4665df
[ruby/irb] handle `__ENCODING__` as a keyword as well
...
https://github.com/ruby/irb/commit/a6a33d908f
2021-01-18 02:12:43 +09:00
aycabta
edafde6844
[ruby/irb] [ruby/irb] [ruby/reline] Version 0.2.2
...
https://github.com/ruby/reline/commit/dfb710946f
https://github.com/ruby/irb/commit/1a1cdf9628
https://github.com/ruby/irb/commit/fe99faf8bd
2021-01-18 02:10:02 +09:00
aycabta
e1449ae74f
[ruby/reline] Reline::Windows.erase_after_cursor erases attributes too
...
https://github.com/ruby/reline/commit/68b961dfc7
2021-01-18 02:09:53 +09:00
aycabta
05df7e0d4a
[ruby/reline] Support for change in Windows-specific behavior at eol
...
The behavior of automatically moving the cursor to the next line when
displaying a char at the eol on Windows suddenly disappeared.
https://github.com/ruby/reline/commit/cad4de6ee8
2021-01-18 02:09:43 +09:00
aycabta
1aba1a5103
[ruby/reline] Initialize a variable just in case
...
https://github.com/ruby/reline/commit/29b10f6e98
2021-01-18 02:07:37 +09:00
Nobuyoshi Nakada
562b97e2f0
[ruby/fileutils] Removed code for dead versions
...
https://github.com/ruby/fileutils/commit/1f707d8cc6
2021-01-17 12:20:57 +09:00
Nobuyoshi Nakada
905f58dc87
[ruby/fileutils] Drop support for dead old versions
...
https://github.com/ruby/fileutils/commit/4526148c67
2021-01-17 12:20:55 +09:00
Nobuyoshi Nakada
5307fab661
[ruby/time] Use Time#strftime to format
...
https://github.com/ruby/time/commit/6b8cc4799e
2021-01-15 19:04:33 +09:00
Nobuyoshi Nakada
1cb0c5ac49
[ruby/time] No document for private methods
...
https://github.com/ruby/time/commit/44a55daa70
2021-01-15 12:43:28 +09:00
Nobuyoshi Nakada
7f3c5e65c6
mkmf.rb: remove exts.mk at distclean
2021-01-14 00:17:23 +09:00
Marc-Andre Lafortune
30a35420e6
[ruby/ostruct] Bump version
2021-01-13 01:09:29 -05:00
Marc-Andre Lafortune
f48edc28dd
Fix method protection for modules in the ancestry chain.
...
[Fixes ruby/ostruct#23 ]
2021-01-12 23:29:39 -05:00
aycabta
0e44247508
[ruby/reline] Version 0.2.1
...
https://github.com/ruby/reline/commit/a3b3c6ee60
2021-01-13 01:12:54 +09:00
aycabta
eb5a094fc0
[ruby/reline] Move the cursor correctly when deleting at eol
...
This fixes ruby/reline#246 .
https://github.com/ruby/reline/commit/07a73ba601
2021-01-13 01:12:54 +09:00
aycabta
44817db28b
[ruby/reline] Handle ed_search_{prev,next}_history in multiline correctly
...
The current line was being handled incorrectly when displaying the hit
history, so it has been fixed to be correct.
https://github.com/ruby/reline/commit/a3df4343b3
2021-01-13 01:12:54 +09:00
aycabta
9fa478e38a
[ruby/irb] Version 1.3.1
...
https://github.com/ruby/irb/commit/c230d08911
2021-01-13 01:12:54 +09:00
Marc-André Lafortune
d8c8b79d24
[ruby/matrix] Fix 0-th power [Bug #17521 ] ( #4047 )
2021-01-10 16:21:10 -05:00
Takashi Kokubun
98bd7e87a0
[ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.pp
...
The incompatible interface is not helpful, again if you want to use it
as a standalone library, falling it back to PP.
Original PP.pp also ends with `out << "\n"`.
https://github.com/ruby/irb/commit/4c74c7d84c
2021-01-07 22:43:40 -08:00
Takashi Kokubun
d6b2b5bd47
[ruby/irb] Add missing require
...
This is useful if you want to use IRB::ColorPrinter as a library like:
```
begin
require 'irb/color_printer'
IRB::ColorPrinter.pp(obj)
rescue LoadError
pp(obj)
end
```
https://github.com/ruby/irb/commit/f8461691c7
2021-01-07 22:35:12 -08:00
aycabta
6cbb3fd142
[ruby/irb] Fix comment, irb gem supports 2.5.0 or older
...
https://github.com/ruby/irb/commit/36118015ba
2021-01-08 13:32:10 +09:00
aycabta
a8f4cbeece
[ruby/reline] Add acknowledgments and license for rb-readline
...
https://github.com/ruby/reline/commit/19df59b916
2021-01-08 13:25:18 +09:00
aycabta
01235f800f
[ruby/reline] Suppress auto indent for adding newlines in pasting
...
Co-authored-by: Juanito Fatas <me@juanitofatas.com>
https://github.com/ruby/reline/commit/074bb017a7
2021-01-08 13:25:18 +09:00
aycabta
76c9a3c8c6
[ruby/reline] Suppress crashing when dynamic_prompt_proc returns a broken prompt list
...
Co-authored-by: Juanito Fatas <me@juanitofatas.com>
https://github.com/ruby/reline/commit/558f7be168
2021-01-08 13:25:18 +09:00
aycabta
88af5085db
[ruby/reline] Suppress crashing when auto_indent_proc returns broken indent info
...
Co-authored-by: Juanito Fatas <me@juanitofatas.com>
https://github.com/ruby/reline/commit/7c24276275
2021-01-08 13:25:18 +09:00
aycabta
ea75aed98e
[ruby/reline] Correct var names in Reline were different from vi-*-mode-string
...
https://github.com/ruby/reline/commit/8255fc93b9
2021-01-08 13:25:18 +09:00