Граф коммитов

9365 Коммитов

Автор SHA1 Сообщение Дата
aycabta 16cf2ef6f2 [ruby/irb] Don't show doc when pointer is negative
https://github.com/ruby/irb/commit/48af34bfc2
2021-08-31 05:24:36 +09:00
aycabta 7379a493bd [ruby/irb] Version 1.3.8.pre.3
https://github.com/ruby/irb/commit/a1fc68abaa
2021-08-30 12:00:35 +09:00
aycabta aeec02d7f3 [ruby/irb] [].name to display the doc for Array.name
https://github.com/ruby/irb/commit/7c2abc14d8
2021-08-30 11:58:56 +09:00
aycabta 1e2f10e8aa [ruby/irb] Rescue unknown error to quash crashing
https://github.com/ruby/irb/commit/92cce941cb
2021-08-30 11:58:51 +09:00
aycabta ece4ed0da7 Add --autocomplete / --noautocomplete options 2021-08-30 02:45:13 +09:00
aycabta b6b2b767ed [ruby/reline] Version 0.2.8.pre.3
https://github.com/ruby/reline/commit/6e0ea3362a
2021-08-30 02:37:23 +09:00
aycabta 8750e1ada8 [ruby/reline] Fix Reline.autocompletion=() interface
https://github.com/ruby/reline/commit/71c2eb143d
2021-08-30 02:37:23 +09:00
aycabta e1ee7f9ced [ruby/reline] Version 0.2.8.pre.2
https://github.com/ruby/reline/commit/5e3ea74891
2021-08-30 02:37:23 +09:00
aycabta 62555d7ae6 [ruby/reline] Set autocompletion is false by default
For compatibility with ext/readline.

https://github.com/ruby/reline/commit/13d9b936bc
2021-08-30 02:37:23 +09:00
aycabta 3a2e2a6848 [ruby/reline] Add Reline.autocompletion=() interface
https://github.com/ruby/reline/commit/a2e69f6277
2021-08-30 02:37:23 +09:00
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