Commit graph

12164 commits

Author SHA1 Message Date
Stan Lo
a2d3f5606a [ruby/irb] Lazily load the multi-irb extension
(https://github.com/ruby/irb/pull/472)

* Lazily load the multi-irb extension

We now have plan to implement a command that prints all commands'
information, which will need to load all command files without actually
running them.

But because the `multi-irb` extension patches IRB's top-level methods,
loading it would cause unintentional side-effects.

So this commit moves related requires into command execution to avoid the problem.

* Make extend_irb_context private

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2022-12-07 23:30:00 +00:00
Ian Ker-Seymer
554161236a [rubygems/rubygems] Always build in release mode
7b84fc1f19
2022-12-07 11:31:25 +00:00
Takashi Kokubun
57cb4a8179
MJIT: Remove obsoleted MJIT counters 2022-12-06 23:05:00 -08:00
Peter Zhu
9d4483f24d [ruby/net-http] [DOC] Fix call-seq for Net::HTTP.start
The lack of a newline between the call-seq and the documentation was
causing the documentation to be parsed as a call-seq.

1a212e2065
2022-12-06 14:27:15 +00:00
Martin Dürst
156069d7b6 update Unicode normalization tables to version 15.0.0 2022-12-06 10:11:33 +09:00
Stan Lo
9aa18f61f2 [ruby/irb] Allow disabling autocompletion with
`IRB_USE_AUTOCOMPLETE=false`
(https://github.com/ruby/irb/pull/469)

* Allow using IRB_USE_AUTOCOMPLETE=false to disable autocompletion

Currently, the only 2 ways to disable autocompletion are:

1. Create `.irbrc` and set `IRB.conf[:USE_AUTOCOMPLETE] = false`
2. Add the `--noautocomplete` flag when using the `irb` executable

Both of them are less convenient than setting a env var and are
lesser known to devs.

And given the number of problems the autocompletion has (see #445), I
think we should allow disabling it with a simple `IRB_USE_AUTOCOMPLETE=false`.

* Mention some env var configs in the README
2022-12-06 00:53:32 +00:00
Matthew Boeh
1602d75c34 [ruby/did_you_mean] Do not suggest #name= for #name and vice versa
(https://github.com/ruby/did_you_mean/pull/180)

* Do not suggest #name= for #name and vice versa
* Avoid allocating unnecessary MatchData

Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
2022-12-05 13:16:33 +00:00
Hiroshi SHIBATA
3fe5890f7b [ruby/did_you_mean] Bump version to 1.6.2
f5b15128e2
2022-12-05 10:29:44 +00:00
Hiroshi SHIBATA
b62b7dc705 [ruby/uri] Bump version to 0.12.0
72f22716f8
2022-12-05 08:20:24 +00:00
Hiroshi SHIBATA
3fe8907b84 [ruby/un] Bump version to 0.2.1
8f1c78e27c
2022-12-05 08:18:33 +00:00
Hiroshi SHIBATA
eca8090120 [ruby/tsort] Bump version to 0.1.1
dd71002c65
2022-12-05 08:16:29 +00:00
Hiroshi SHIBATA
325ac80c21 [ruby/tmpdir] Bump version to 0.1.3
ee99c758fd
2022-12-05 08:15:11 +00:00
Hiroshi SHIBATA
3909cfaa02 [ruby/timeout] Bump version to 0.3.1
4941e8c871
2022-12-05 08:13:18 +00:00
Nobuyoshi Nakada
facb5cd4d5
Clean compiler intermediate files more 2022-12-05 17:09:49 +09:00
Hiroshi SHIBATA
f5355df610 [ruby/securerandom] Bump version to 0.2.1
5bfe7d6c16
2022-12-05 07:51:34 +00:00
Hiroshi SHIBATA
52c76d0f69 [ruby/resolv] Bump version to 0.2.2
261f049058
2022-12-05 07:49:03 +00:00
Hiroshi SHIBATA
73404e8f12 [ruby/pstore] Bump version to 0.1.2
2d95c19c43
2022-12-05 07:38:23 +00:00
Hiroshi SHIBATA
7a7d1b3853 [ruby/pp] Bump version to 0.4.0
8870aa02df
2022-12-05 07:35:19 +00:00
Hiroshi SHIBATA
71b4d35526 [ruby/optparse] Bump version to 0.3.0
c80dfb1ebd
2022-12-05 07:17:23 +00:00
Hiroshi SHIBATA
c5911408f9 [ruby/open-uri] Bump version to 0.3.0
783892ebb0
2022-12-05 07:14:06 +00:00
Hiroshi SHIBATA
ad970f5474 [ruby/net-protocol] Bump version to 0.2.0
3097bb4cc3
2022-12-05 06:46:33 +00:00
Hiroshi SHIBATA
9e114338b9 [ruby/net-http] Bump version to 0.3.1
09a9ea163a
2022-12-05 06:42:56 +00:00
Hiroshi SHIBATA
826adbc963 [ruby/mutex_m] Bump version to 0.1.2
57f23978cd
2022-12-05 06:39:55 +00:00
Hiroshi SHIBATA
8a5dffe513 [ruby/logger] Bump version to 1.5.2
9c4ae3b81d
2022-12-05 06:36:31 +00:00
Hiroshi SHIBATA
51cfe70135 [ruby/ipaddr] Bump version to 1.2.5
d92acb3982
2022-12-05 06:32:03 +00:00
Hiroshi SHIBATA
519c31e48c [ruby/getoptlong] Bump version to 0.2.0
71fbf2123f
2022-12-05 06:19:25 +00:00
Hiroshi SHIBATA
f41d38a6fb [ruby/forwardable] Bump version to 1.3.3
301687dbfa
2022-12-05 06:15:38 +00:00
Hiroshi SHIBATA
05caafb473 [ruby/fileutils] Bump version to 1.7.0
213e6a3d1f
2022-12-05 06:12:31 +00:00
Hiroshi SHIBATA
3cfb7afbfe [ruby/drb] Bump version to 2.1.1
7c2d56e9f3
2022-12-05 05:59:33 +00:00
Hiroshi SHIBATA
c4d22d47f8 [ruby/delegate] Bump version to 0.3.0
420637be45
2022-12-05 05:47:54 +00:00
Hiroshi SHIBATA
0f534bfb6a [ruby/benchmark] Bump version to 0.2.1
303ac8f28b
2022-12-05 05:15:02 +00:00
Hiroshi SHIBATA
d7b00b55a9 [ruby/rdoc] Bump version to 6.4.0
c5e7ee03ac
2022-12-05 04:59:54 +00:00
Hiroshi SHIBATA
5fb3dec058 [ruby/racc] Bump version to 1.6.1
1768ed252f
2022-12-05 04:55:35 +00:00
Stan Lo
16b2e03014 [ruby/reline] Remove unapproved color setting APIs
These APIs/configs are not approved by the Ruby core, so they can't be
released to the public. This means having them in the codebase will
block other fixes/features from being released as well.

So this commit removes those exposed interfaces to unblock the release.

Hopefully when https://bugs.ruby-lang.org/issues/18996 is approved we
can re-implement better APIs.

f7a961c550
2022-12-05 03:14:55 +00:00
Burdette Lamar
e58c4f97fa [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/84)

660046386f
2022-12-04 20:22:31 +00:00
Ellen Marie Dash
82b86b4c97 [rubygems/rubygems] Delete partial file and re-raise on Errno::ENOSPC.
Add test for not leaving empty files if ENOSPC is raised during 'gem install'

8e0e20f079
2022-12-02 19:21:08 +00:00
HASUMI Hitoshi
11871e49c4 [ruby/reline] Fix misuse of kwarg in IO#raw
- Obviously, `tim` is a typo for `time`
- This didn't cause an exception because IO#raw is implemented in C and it doesn't check the keyword of the parameters
- Though this typo doesn't produce any problems for now, I think it should be fixed just in case for the future
- I've used this fixed version of Reline with IRB for several days and didn't find any new problems due to the fix
- But I myself am not sure how to make sure this fix is completely robust

e66a9696a1
2022-12-02 10:47:18 +00:00
Yusuke Endoh
bc3ac86795 [rubygems/rubygems] require bundler/setup only when Bundler is not defined
... to prevent "circular require" when `--disable-gems` is used.

This is a simplified case of e5a0abc5de

```
$ bundle exec ruby -we 'system("ruby", "-w", "--disable-gems", "-e", "")'
<internal:/home/mame/work/ruby/local/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85: warning: <internal:/home/mame/work/ruby/local/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85: warning: loading in progress, circular require considered harmful - /home/mame/work/ruby/local/lib/ruby/3.2.0+3/bundler/setup.rb
```

When bundler/setup is require'ed under --disable-gems mode, it loads
rubygems by `require "rubygems" unless defined?(Gem)` in
0b1f682a6d/bundler/lib/bundler/rubygems_integration.rb (L3)
In this case, require'ing bundler/setup from rubygems.rb is circular.

This change makes rubygems.rb to require "bundler/setup" only when
`Bundler` is not defined.

b4608dee5e
2022-12-02 04:12:16 +00:00
schneems
85a1c67a65 [ruby/syntax_suggest] Add temp support for 3.2.0-preview{3,2,1}
This SyntaxError#path feature only exists in Ruby HEAD. Until it is released in a preview I want to continue to support existing releases of 3.2.0 (and also so CI will continue to work, as it still uses a preview version to execute tests).

9862032465
2022-12-02 09:36:40 +09:00
Hiroshi SHIBATA
652e2d8f5d [ruby/syntax_suggest] No longer need PathnameFromMessage with SyntaxError#path.
https://bugs.ruby-lang.org/issues/19138

  Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

8e1e7b3298
2022-12-02 09:36:39 +09:00
Burdette Lamar
171e94bd95 [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPHeader
(https://github.com/ruby/net-http/pull/83)

1ea5004098
2022-12-01 23:17:47 +00:00
Nobuyoshi Nakada
a1d341efaf [ruby/delegate] Revert "Fix DelegateClass block "method redefined" warning"
2a91436284
2022-12-01 08:08:02 +00:00
Nobuyoshi Nakada
f0c9d2a0c8 [ruby/rdoc] Fix =end delimiter
e1679fa7e4
2022-12-01 02:36:20 +09:00
Nobuyoshi Nakada
99cad3fccd [ruby/rdoc] Non-RD part feature has not been imported to RDoc
fe0159de2f
2022-12-01 02:36:20 +09:00
Nobuyoshi Nakada
c87b3ee671 [ruby/rdoc] Use Tempfile
0b9dde5ab4
2022-12-01 02:36:20 +09:00
Nobuyoshi Nakada
d532d27507 [ruby/irb] Use class methods of File over Kernel.open
e0ec5e1bd8
2022-11-30 10:18:57 +00:00
Nobuyoshi Nakada
cf3b305c43 [ruby/un] wait_writable: close opened file
b08aeb9c48
2022-11-30 10:09:17 +00:00
Takashi Kokubun
d0c0d7fa5b MJIT: Revert FL_EXIVAR check optimization
It seems to slow down optcarrot. I'll revisit this later.
2022-11-29 22:35:26 -08:00
Takashi Kokubun
9a84971315 [ruby/irb] Make sure ls doesn't return an array
(https://github.com/ruby/irb/pull/461)

367797bb05
2022-11-30 04:52:33 +00:00
schneems
d6e91784ab Update SyntaxSuggest to use angle brackets >
```
$ ruby tool/sync_default_gems.rb syntax_suggest
Sync ruby/syntax_suggest
```

https://github.com/ruby/syntax_suggest/pull/161
2022-11-30 12:58:47 +09:00