Commit graph

11330 commits

Author SHA1 Message Date
Hiroshi SHIBATA
98e33aa992 Merge yaml-0.2.1 2022-12-09 16:36:22 +09:00
Hiroshi SHIBATA
643918ecfe Merge csv-3.2.6 2022-12-09 16:36:22 +09:00
Nobuyoshi Nakada
bda070f016
[ruby/rdoc] Fix =end delimiter
e1679fa7e4
2022-12-09 15:40:05 +09:00
Nobuyoshi Nakada
acd857b989
[ruby/rdoc] Non-RD part feature has not been imported to RDoc
fe0159de2f
2022-12-09 15:40:04 +09:00
Nobuyoshi Nakada
b749bc05d0
[ruby/rdoc] Use Tempfile
0b9dde5ab4
2022-12-09 15:40:04 +09:00
Takashi Kokubun
fa64889abb [ruby/erb] Use a ruby-lang alias on spec.email
39414f32a5
2022-12-09 06:36:55 +00:00
Takashi Kokubun
95b423f93a [ruby/irb] Version 1.6.0
d799c5c9da
2022-12-09 04:35:43 +00:00
Stan Lo
c9076d546a [ruby/irb] Add show_doc as an alias to the help command
(https://github.com/ruby/irb/pull/475)

In the long-term, we want to align with `Pry`, `byebug` and `debug` to
use the `help` command to list all commands, which is what `show_cmds`
currently does. And `show_doc` will be the command to look up Ruby APIs.

By aliasing `show_doc` to the current `help` now, users will have time
to get use to it.
2022-12-08 21:46:55 +00:00
Stan Lo
12b7c129bf [ruby/irb] Gracefully handle missing command argument
(https://github.com/ruby/irb/pull/473)

* Handle file loading commands' argument error gracefully

Currently, if users don't provide an argument to `source`,
`irb_load`, and `irb_require`, IRB raises `ArgumentError` with full
stacktrace. This is confusing because it looks similar to when IRB has
internal issues. The message also isn't helpful on helping users avoid
the error.

So in this commit, I add a new `CommandArgumentError` for commands to
raise explicitly when users' input doesn't satisfy a command's argument
requirement.

* Gracefully handle `fg` command's argument requirement
2022-12-08 21:05:37 +00:00
Stan Lo
3956bb859c [ruby/irb] Add "show_cmds" command to list all commands'
descriptions
(https://github.com/ruby/irb/pull/463)

7e857655ac
2022-12-08 19:10:23 +00:00
Hiroshi SHIBATA
6f44dc8edf [ruby/net-protocol] Bump version to 0.2.1
06d1420936
2022-12-08 07:23:46 +00:00
Jean Boussier
8547f61daf [ruby/net-protocol] Undo BufferedIO#rbuf_consume_all_shareable! optimization
This optimization is unsafe because `dest` is allowed to be a custom
object responding to `<<` (e.g. a block wrapped in `ReadAdapter`).

So the receiver can hold onto the passed buffer for as long as it wants.

If it was guaranteed that `ReadAdapter` was the only possible receiver
we could dup the buffer there for mutation safety, but I'm not certain
it's the case so I'd rather err on the safe side.

Ref: https://github.com/shrinerb/shrine/issues/610

7efa16d55d
2022-12-08 07:17:51 +00:00
Benoit Daloze
a57a3154d3 [rubygems/rubygems] Avoid deprecated Gem::Platform.match in Gem::Resolver::InstallerSet
05cb5410cb
2022-12-08 07:17:09 +00:00
Akira Matsuda
7e121dc4a8 [ruby/logger] Another performance improvement on the Formatter by
using Kernel#sprintf over String#%
(https://github.com/ruby/logger/pull/75)

* Prefer Kernel#sprintf over String#% for formatting Strings
2022-12-08 03:31:36 +00:00
Samuel Williams
7ab4820af7 [ruby/logger] Only assign to @filename if the path is valid.
(https://github.com/ruby/logger/pull/81)

b41d7c699c
2022-12-08 03:28:18 +00:00
Samuel Williams
701251c576 [ruby/logger] Drop RDoc development dependency to avoid CI failures.
(https://github.com/ruby/logger/pull/82)

8915627234
2022-12-08 03:21:40 +00:00
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