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

10238 Коммитов

Автор SHA1 Сообщение Дата
Peter Zhu eab354e17b [ruby/uri] Include RFC2396_REGEXP module directly
REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include
REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo.

https://github.com/ruby/uri/commit/ed6ded9c80
2022-04-22 12:00:14 +09:00
OKURA Masafumi c94f964e3f [ruby/uri] Feat: Support WSS
There was a file for WSS so I added one line of `require_relative`
to make it work.
Now `URI.parse('wss://example.com')` returns `URI::WS`.

https://github.com/ruby/uri/commit/ff8a103564
2022-04-22 11:59:54 +09:00
Karol Bucek cf73cf5981 [ruby/net-http] Feature detect to make net/http usable with JRuby
Handle missing session_new_cb= and do not call
session_cache_mode=, as JRuby SSL does not support
these methods.

https://github.com/ruby/net-http/commit/3237ef4d8c
2022-04-20 13:01:08 +09:00
Jeremy Evans 90ccc5674a [ruby/net-http] Add ignore_eof access to HTTP and HTTPResponse
The ignore_eof setting on HTTPResponse makes it so an EOFError is
raised when reading bodies with a defined Content-Length, if the
body read was truncated due to the socket be closed.

The ignore_eof setting on HTTP sets the values used in responses
that are created by the object.

For backwards compatibility, the default is for both settings is
true.  However, unless you are specifically tested for and handling
truncated responses, it's a good idea to set ignore_eof to false so
that errors are raised for truncated responses, instead of those
errors silently being ignored.

Fixes [Bug #14972]

https://github.com/ruby/net-http/commit/4d47e34995
2022-04-20 10:22:06 +09:00
David Rodríguez e5a852b912 [ruby/tsort] Small tweaks for easier vendoring
Bundler vendors this file and we have some tools to automatically
prepend the `Bundler::` namespace so that the vendored version does not
collide with the stdlib version.

However, due to how methods are defined, it's hard for our vendoring
tool to do the right thing.

I think this makes the code simpler and things easier for us too.

https://github.com/ruby/tsort/commit/7088a7c814
2022-04-18 09:40:07 +09:00
David Rodríguez 9a20bcd5c8 [rubygems/rubygems] I don't think this is necessary
https://github.com/rubygems/rubygems/commit/836f3e5aa5
2022-04-16 22:58:34 +09:00
BurdetteLamar 723debc9a9 [ruby/set] Repair format for What's Here
https://github.com/ruby/set/commit/292baacb60
2022-04-16 15:34:34 +09:00
Bobby McDonald ccb0572ff9 [rubygems/rubygems] Add modern rubies to the platforms
https://github.com/rubygems/rubygems/commit/5462322f8f
2022-04-16 08:23:21 +09:00
Peter Zhu 92614111c0 [ruby/rdoc] Fix links in docs
www.ruby-lang.org without the leading https:// will generate an
incorrect link because it will be treated as a relative link.

https://github.com/ruby/rdoc/commit/28f32149b6
2022-04-15 13:24:48 +09:00
Nobuyoshi Nakada 5397dd2e76 [ruby/rdoc] Apply matching word pairs to underscore-methods
Protected characters with `PROTECT_ATTR` should not have special
roles.

https://github.com/ruby/rdoc/commit/c318af0ea2
2022-04-14 16:37:14 +09:00
Peter Zhu 1a2490b564 [rubygems/rubygems] Fix formatting in docs
rdoc uses + for typewriter font rather than backticks.

https://github.com/rubygems/rubygems/commit/be320f1e0c
2022-04-14 16:24:09 +09:00
Nobuyoshi Nakada e06100d969 [ruby/rdoc] Allow cross references to methods including underscores
As underscores are masked to "protect" from the conversion, consider
also `PROTECT_ATTR` as a word character.

https://github.com/ruby/rdoc/commit/db58bb5170
2022-04-14 12:51:30 +09:00
Jeremy Evans 0579486f15 [ruby/net-http] Update the content-length heading when decoding bodies
Previously, the content-encoding header was removed and the body
was modified, but the content-length header was not modified,
resulting in the content-length header not matching the body
length.

Don't delete content-length before yielding inflate body, as that
causes a switch to read the entire body instead of reading in
chunks.

Fixes [Bug #16672]

https://github.com/ruby/net-http/commit/58284e9710

Co-authored-by: st0012 <stan001212@gmail.com>
2022-04-14 00:11:26 +09:00
Peter Zhu aaac279de0 [ruby/rdoc] Only parse valid URLs
Only valid characters for URLs should be used for generating URLs.

A list of valid characters can be found in sections 2.2 and 2.3 of IETF
RFC 3986 (https://www.ietf.org/rfc/rfc3986.txt).

https://github.com/ruby/rdoc/commit/2bd8fcdd4f
2022-04-13 22:25:33 +09:00
Jeremy Evans ebb4378237 [ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding
This allows for the ability to opt-in to a method to set the
encoding of response bodies.  By setting the accessor to a String
or Encoding instance, it will use the specified encoding.
Setting the value of true will try to detect the encoding of the
response body, either using the Content-Type header (assuming it
specifies charset) or by scanning for a <meta> tag in the document
that specifies the encoding.  The default is false in which case
no forcing of encoding will be done (same as before the patch).

Implements [Feature #2567]
Implements [Feature #15517]

https://github.com/ruby/net-http/commit/6233e6b7c1

Co-authored-by: Yui Naruse <naruse@ruby-lang.org>
2022-04-12 00:17:34 +09:00
Ashley Ellis Pierce c59488a8e3 [rubygems/rubygems] Use `ask_yes_no`
https://github.com/rubygems/rubygems/commit/1d38e167fa
2022-04-06 08:55:00 +09:00
Ashley Ellis Pierce 37a19f7f67 [rubygems/rubygems] Extract default_host method
https://github.com/rubygems/rubygems/commit/6e10e75574
2022-04-06 08:54:59 +09:00
Ashley Ellis Pierce b75b67f113 [rubygems/rubygems] Use YAML
https://github.com/rubygems/rubygems/commit/6122e8cac5
2022-04-06 08:54:59 +09:00
Ashley Ellis Pierce bb3ecdba6a [rubygems/rubygems] Accomodate gem hosts without profile/me endpoint
https://github.com/rubygems/rubygems/commit/31b6dcf5d3
2022-04-06 08:54:58 +09:00
Ashley Ellis Pierce 75083704bf [rubygems/rubygems] Update endpoint
https://github.com/rubygems/rubygems/commit/a5a7b3ec96
2022-04-06 08:54:58 +09:00
Ashley Ellis Pierce ec09b2dba1 [rubygems/rubygems] Remove whitespace
https://github.com/rubygems/rubygems/commit/08c2d88137
2022-04-06 08:54:57 +09:00
Ashley Ellis Pierce 925d73b3ee [rubygems/rubygems] Make changes <2.6 compatible
Multiple params to merge was not introduced until Ruby 2.6, so this
merges the two additional params together first and then merges that
with the request body

https://github.com/rubygems/rubygems/commit/870f7e9a1c
2022-04-06 08:54:56 +09:00
Ashley Ellis Pierce 7bb6449fe5 [rubygems/rubygems] Make mfa the default
https://github.com/rubygems/rubygems/commit/0b636f6902
2022-04-06 08:54:55 +09:00
Ashley Ellis Pierce 4ae3b78c95 [rubygems/rubygems] Correct mfa level name
https://github.com/rubygems/rubygems/commit/a002e351ae
2022-04-06 08:54:55 +09:00
Ashley Ellis Pierce b3f1b3ccef [rubygems/rubygems] Enable mfa on specific keys during gem signin
https://github.com/rubygems/rubygems/commit/e787f7f655
2022-04-06 08:54:54 +09:00
Alan Wu 2304cfa4c0 Document MakeMakefile#append_cflags
This method is at least 7 years old and is widely used in the wild.
Since we need to support it, let's document it to make it discoverable.
Add docs and move it out of the `# :stopdoc:` zone.
2022-04-05 12:57:55 -04:00
Nobuyoshi Nakada de427c3ce0 [ruby/optparse] Define `inspect` and `pretty_inspect`
https://github.com/ruby/optparse/commit/a3f0ec21b1
2022-04-04 15:05:44 +09:00
Hartley McGuire 4db75b6fe7 [rubygems/rubygems] bump actions/checkout to 3 in bundler gem template
Dependabot bumped the repo's configuration in 0c996fa but it did not
bump the version in the template for `bundler gem`

https://github.com/rubygems/rubygems/commit/e14980e169
2022-04-04 14:14:40 +09:00
Jeremy Evans 7648bae4c8 [ruby/net-http] Revert "Update the content-length heading when decoding bodies"
This reverts commit https://github.com/ruby/net-http/commit/a7cb30124cf1.

This is causing errors in Ruby's CI, will revert for now and
try again after testing a fix with Ruby's CI.

https://github.com/ruby/net-http/commit/7b852b1feb
2022-04-03 06:51:07 +09:00
Jeremy Evans 58adb1636b [ruby/net-http] Update the content-length heading when decoding bodies
Previously, the content-encoding header was removed and the body
was modified, but the content-length header was not modified,
resulting in the content-length header not matching the body
length.

Fixes [Bug #16672]

https://github.com/ruby/net-http/commit/a7cb30124c
2022-04-02 02:49:21 +09:00
Hiroshi SHIBATA 06f94d1784 [ruby/net-protocol] Bump version to 0.1.3
https://github.com/ruby/net-protocol/commit/9cf40af499
2022-04-01 13:56:47 +09:00
Marc-André Lafortune 8a38419b73 [ruby/ostruct] v0.5.5
https://github.com/ruby/ostruct/commit/ce879e56cf
2022-04-01 00:18:36 +09:00
Charles Oliver Nutter 8751769637 [ruby/ostruct] Avoid using block_given in the presence of aliases
defined?(yield) bypasses the block_given? method (or any aliases
to it) and always does the right thing.

https://github.com/ruby/ostruct/commit/4c38fe612e
2022-04-01 00:16:49 +09:00
James Hill 834c3b3545 [rubygems/rubygems] Update bundler documentation to reflect bundle config scope changes
In https://github.com/rubygems/rubygems/pull/4152 `bundle config` was changed
to default to local scope (instead of global) if the command was executed
from inside an application directory.

Updated documentation reflects this change.

https://github.com/rubygems/rubygems/commit/d92d42cae5
2022-03-31 20:00:10 +09:00
Marc-André Lafortune 4c4a1e2035 [ruby/ostruct] v0.5.4
https://github.com/ruby/ostruct/commit/fe19de4644
2022-03-24 21:38:26 +09:00
Marc-André Lafortune ad5754162b [ruby/ostruct] Avoid aliasing `block_given?` for JRuby [Fixes #40]
https://github.com/ruby/ostruct/commit/14d04ff694
2022-03-24 21:37:14 +09:00
David Rodríguez d32fa986c3 [rubygems/rubygems] Make `rescue` clause more specific
This is hiding a real bundler issue as a "network error". It's more
helpful to get a proper bug report, with stack trace and so on.

So stop re-raising errors when evaluating unmarshaled  responses  as
network errors, and only raise Marshal errors when the Marshal format is
invalid, not whenever marshalled gemspecs can't be loaded because that
may hide actual client errors, like missing `YAML` constants.

https://github.com/rubygems/rubygems/commit/05ea907e1c
2022-03-23 23:31:05 +09:00
Nobuyoshi Nakada 92ef73a918 [ruby/rdoc] Expand the enclosing tree of the current file
https://github.com/ruby/rdoc/commit/f9f90ef2ff
2022-03-22 01:32:13 +09:00
Nobuyoshi Nakada dafe5c1323 [ruby/rdoc] Fold files in the page directory
https://github.com/ruby/rdoc/commit/b7b4cdab6c
2022-03-22 01:32:12 +09:00
Nobuyoshi Nakada 73541cdc2f
[ruby/rdoc] Allow method source code to scroll [ci skip]
https://github.com/ruby/rdoc/commit/1bb0496c53
2022-03-20 15:42:56 +09:00
Nobuyoshi Nakada 20ad09e560 [ruby/rdoc] Use the custom style `details summary` only in `nav-section`
https://github.com/ruby/rdoc/commit/7736d3a89c
2022-03-20 15:38:28 +09:00
Nobuyoshi Nakada 6946263a29
[DOC] make internally used classes/methods nodoc
Empty class documents are generated even with `:stopdoc:`.
2022-03-20 14:26:20 +09:00
Hiroshi SHIBATA fadc7a150c [ruby/logger] bump version to 1.5.1
https://github.com/ruby/logger/commit/c4a4155ab7
2022-03-17 17:28:33 +09:00
Nobuyoshi Nakada 329c89bb42
Make implicit function declaration error [Feature #18615]
Enable `-Werror=implicit-function-declaration` by default for
building C extensions for early failures.
2022-03-17 14:37:34 +09:00
Kazuhiro NISHIYAMA d06f787e9f
Fix broken links of rdoc
- `www.ruby-lang.org` links to `./www.ruby-lang.org`
- `cgi['field_name']` links to `./'field_name'`
2022-03-17 10:11:38 +09:00
Nobuyoshi Nakada ebcbca96fb [ruby/rdoc] Fix full name of known class
Properly set the name of `File::Constants`, which is the only name
with a namespace in `RDoc::KNOWN_CLASSES`, and fixes longstanding bug
that `File::Constants` becomes `File::File::Constants`.

When it is generated by `rb_file_const` in dir.c, `name` is set to the
qualified name as same as `full_name`, and generated in the normal way
in file.c later, already set `full_name` is cleared and `name` will be
constructed from the enclosing namespace and the `name`.  It will
results in duplicated namespace, `File::File::Constants`.

https://github.com/ruby/rdoc/commit/3a8d6df562
2022-03-16 15:05:41 +09:00
Kazuhiro NISHIYAMA 7aabdbe837 [rubygems/rubygems] Fix a typo
https://github.com/rubygems/rubygems/commit/3e06a91435
2022-03-15 11:37:43 +09:00
Nobuyoshi Nakada b85457c710 [rubygems/rubygems] [DOC] Enable Gem::Package example
Other code must not be between the doc and class definition.

https://github.com/rubygems/rubygems/commit/366784aae5
2022-03-15 08:40:35 +09:00
David Rodríguez 6a8bc90278 [rubygems/rubygems] Report Github Actions CI provider within user agent string
See
https://docs.github.com/es/actions/learn-github-actions/environment-variables#default-environment-variables.

So that we can show stats about it at https://ecosystem.rubytogether.org

https://github.com/rubygems/rubygems/commit/48d6dc68f8
2022-03-15 04:44:33 +09:00
Nobuyoshi Nakada 41d63d3130 [rubygems/rubygems] Move `:stopdoc:` directive
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.

https://github.com/rubygems/rubygems/commit/34e8c1ee06
2022-03-15 01:18:03 +09:00
Ivo Anjo 7348db866a [DOC] Remove outdated note from WeakRef#initialize
The note

> Raises an ArgumentError if the given +orig+ is immutable, such as Symbol,
> Integer, or Float.

has not been true since #2313 (GH-2313, Feature #16035) when
@casperisfine enabled storing non-finalizable objects in the underlying
`ObjectSpace::WeakMap`.

On Ruby 2.7+, `WeakRef.new(1) + 1` works fine and the result is the
expected 2.
2022-03-14 10:50:52 +01:00
Nobuyoshi Nakada e859a218fd
[DOC] hide `UnicodeNormalize` in module index 2022-03-14 15:01:20 +09:00
Nobuyoshi Nakada 0bf194fb33 [ruby/rdoc] Start with open when only one visible class/module
https://github.com/ruby/rdoc/commit/6bb93001db
2022-03-14 14:48:13 +09:00
Nobuyoshi Nakada 976431d9ed [ruby/rdoc] Fold class and module index
https://github.com/ruby/rdoc/commit/4c7c46fcc4
2022-03-14 14:48:12 +09:00
Nobuyoshi Nakada a884431624 [ruby/forwardable] Move `:stopdoc:` directive
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.

https://github.com/ruby/forwardable/commit/34cd2ac4a1
2022-03-14 14:44:46 +09:00
Nobuyoshi Nakada 8760b270ed [ruby/irb] Move `:stopdoc:` directive
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.

https://github.com/ruby/irb/commit/86c41b06ad
2022-03-14 14:40:28 +09:00
Nobuyoshi Nakada 416c63c118 [ruby/rdoc] Refine `pretty_print`
https://github.com/ruby/rdoc/commit/acb91ea74a
2022-03-13 21:15:08 +09:00
Nobuyoshi Nakada 0bcc3bd6ab [ruby/rdoc] Clean documents for backwards compatibility
https://github.com/ruby/rdoc/commit/23e61a208e
2022-03-13 19:56:42 +09:00
Martin Dürst 45e0711f29 update Unicode Version to 14.0.0 and Emoji version to 14.0 2022-03-13 09:19:52 +09:00
Masafumi Koba 2e4516be26 [ruby/rdoc] Scrollable sidebar
This change makes the sidebar scrollable via `position: sticky` and `overflow: auto`;
See also <https://caniuse.com/?search=sticky>

https://github.com/ruby/rdoc/commit/4d52e24840
2022-03-11 17:38:13 +09:00
Peter Zhu f62f913132 [ruby/rdoc] Support crossref of methods with multiple arguments
For example, consider the following markup:

  C1#m(a, b)

Before this patch, it generated this HTML:

  <p><a href=\"C1.html#method-i-m\"><code>C1#m</code></a>(a, b)</p>

Which places the method arguments outside of the link.

Now it generates this HTML:

  <a href=\"C1.html#method-i-m\"><code>C1#m(a, b)</code></a>

https://github.com/ruby/rdoc/commit/05a2b2222b
2022-03-09 23:38:45 +09:00
Alex Gittemeier 943efa8ca6 [rubygems/rubygems] Add newline to validate_platforms! message when platform is missing
When I run bundle install with BUNDLE_DEPLOYMENT=true in the environment
on a different platform than I usually do development, I get the
following output to the console (wrapped exactly as shown):

Your bundle only supports platforms ["x86_64-darwin-19"] but your local platform
is x86_64-linux. Add the current platform to the lockfile with `bundle lock
--add-platform x86_64-linux` and try again.

Because the way the message wraps, its not as simple as copying the
suggested command to the clipboard because it contains a newline:

    $ bundle lock
    Writing lockfile to [...]/Gemfile.lock
    $ --add-platform x86_64-linux

Adding a newline right before the command forces the command in the
error message to be on the same line, which facilitates copy-pasting the
command in the message.

https://github.com/rubygems/rubygems/commit/4cf6989b11
2022-03-08 03:40:30 +09:00
Olle Jonsson 9c531ca524 [ruby/ostruct] Drop unused directives from gemspec (https://github.com/ruby/ostruct/pull/39)
This gem exposes no executables.

https://github.com/ruby/ostruct/commit/a1242f7ebe
2022-03-07 20:08:29 +09:00
Marc-André Lafortune 0adabdc53d [ruby/ostruct] v0.5.3
https://github.com/ruby/ostruct/commit/322efd0e61
2022-03-07 20:08:26 +09:00
Ladislav Gallay e1391bf96f [ruby/ostruct] Fix class and method as attribute names
https://github.com/ruby/ostruct/commit/7258535073
2022-03-07 20:08:22 +09:00
Brad Gessler 8ae09706f3 [rubygems/rubygems] Update README.md.tt
Reduce the number of steps required to install a gem from two steps to one by using `bundle add`

https://github.com/rubygems/rubygems/commit/2c968420cd
2022-03-07 07:03:35 +09:00
David Rodríguez 156079a85d [rubygems/rubygems] Make `--strict` flag of `update` and `outdated` commands consistent
Previously they had slightly different behavior when combined with
conservative updating flags.

The correct behavior is the `--update-strict` option, so `--script` now
does that, The `--update-strict` option is left there for now but I will
deprecate it later.

https://github.com/rubygems/rubygems/commit/ab42046229
2022-03-06 22:17:00 +09:00
Hiroshi SHIBATA 7f7db124ee [ruby/cgi] Bump up v0.3.2
https://github.com/ruby/cgi/commit/734dfdf1b4
2022-03-03 17:55:45 +09:00
Kazuhiro NISHIYAMA fd2e1d3c4a [ruby/rdoc] Use `Marshal.load io` instead of `Marshal.load io.read`
https://github.com/ruby/rdoc/commit/135198a31c
2022-03-02 14:01:31 +09:00
Hiroshi SHIBATA eb40ff73bf [ruby/securerandom] Bump up v0.2.0
https://github.com/ruby/securerandom/commit/62ca2828f3
2022-02-28 20:08:58 +09:00
Hiroshi SHIBATA ff3d7b720e Merge RubyGems and Bundler master 2022-02-28 11:39:20 +09:00
Tim Pope 37d5890e49 [ruby/reline] Fix support for emacs-ctlx and emacs-meta keymaps
The existing implementation, given the below .inputrc, erroneously
creates a "C-v" key binding:

	set keymap emacs-ctlx
	"\C-v": "[C-x C-v was pressed]"

This fixes it to instead create a "C-x C-v" keybinding.

https://github.com/ruby/reline/commit/719f52d231
2022-02-22 18:52:52 +09:00
Yusuke Endoh ae8a8b184e [ruby/rdoc] Prefer `require 'cgi/util'` instead of `require 'cgi'`
RDoc is using only CGI.escape, escapeHTML, and unescape.
We don't have to load the whole source code of cgi gem.

https://github.com/ruby/rdoc/commit/d096222cc2
2022-02-22 17:08:52 +09:00
Hiroshi SHIBATA c53bdb8ff6
Removed dependency of net-protocol. There is no plan to remove from stdlib 2022-02-21 17:10:56 +09:00
Hiroshi SHIBATA 79b04790e8
Removed dependency of io-wait. There is no plan to remove from stdlib 2022-02-21 17:10:22 +09:00
Akinori MUSHA dd3501bb95 Make Set a builtin feature [Feature #16989] 2022-02-18 11:56:24 +09:00
Yusuke Endoh b9851c7e1b lib/securerandom.rb: Fix the check of availability of Random.urandom
Random.urandom raises a RuntimeError if it is unavailable.
[Bug #13885]
2022-02-16 16:32:28 +09:00
Nobuyoshi Nakada 3b3fb73d61 [ruby/rdoc] Dump plain objects as `RDoc::Options`
So that the generated `.rdoc_options` file is loadable.

https://github.com/ruby/rdoc/commit/6cf6e1647b
2022-02-12 16:15:08 +09:00
Nobuyoshi Nakada e95ad70079
[ruby/rdoc] Update generated files 2022-02-12 15:22:47 +09:00
Ulysse Buonomo 5348a34504 [ruby/rdoc] Relative loading for easier development (https://github.com/ruby/rdoc/pull/821)
This patch makes sure we only load relative code. Hence when coding or
testing rdoc, we'll be sure to always be using the correct code.

Discussion started at https://github.com/ruby/rdoc/pull/817.

Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>

https://github.com/ruby/rdoc/commit/aa41bd48eb

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-02-12 15:06:06 +09:00
Yusuke Endoh 08137c5dd9 [ruby/rdoc] Optimize RawLine by using a regexp instead of negative look-ahead rule
This improves the performance in some cases.
`rdoc .../gems/sinatra-2.1.0/README.md` takes 10.5 sec. before this
change, and 7.1 sec. after this change.
`make rdoc` of ruby/ruby takes 19.3 sec. before this change, 18.1 sec.
after this change.

https://github.com/ruby/rdoc/commit/7cf8281e3e
2022-02-12 14:59:26 +09:00
Ilia Zenkevich e92e87bf90 [rubygems/rubygems] Add clarification for bundle-config "with" option
https://github.com/rubygems/rubygems/commit/666f3cc724
2022-02-11 18:49:57 +09:00
David Rodríguez 7b676b3ce3 [rubygems/rubygems] Fix corrupted lockfile when using `gemspec` and multiple sources
https://github.com/rubygems/rubygems/commit/9712262d90
2022-02-11 18:20:20 +09:00
Hiroshi SHIBATA f07a2613e3
Support directory layout of ruby/ruby repository 2022-02-10 17:18:05 +09:00
Hiroshi SHIBATA 52d3e31d27
[ruby/ipaddr] Bump version to 1.2.4
https://github.com/ruby/ipaddr/commit/6edf6ee6c3
2022-02-10 17:18:05 +09:00
Espartaco Palma 9b768012f6
[ruby/ipaddr] Fix exception calling `to_range' after `freeze'
https://github.com/ruby/ipaddr/commit/77fe1fca0a
2022-02-10 17:18:05 +09:00
Jean Boussier 100253c7f0
[ruby/ipaddr] Ipaddr#native must also coerce `@mask_addr`
Before it would be left as an IPv6 mask causing `to_range` to fail.

```
>> IPAddr.new("::2").native.to_range
/opt/rubies/3.0.3/lib/ruby/3.0.0/ipaddr.rb:479:in `set': invalid address (IPAddr::InvalidAddressError)
```

https://github.com/ruby/ipaddr/commit/af485192f3
2022-02-10 17:18:05 +09:00
Jean Boussier 5221cb4468
[ruby/ipaddr] Expose IPAddr::VERSION
An almost universal convention for gems is to expose Namespace::VERSION
which makes it much easier when debugging etc.

https://github.com/ruby/ipaddr/commit/587ae6996e
2022-02-10 17:18:03 +09:00
Sven Schwyn a271acf822 [rubygems/rubygems] Fix typo in multiple gemfiles warning
https://github.com/rubygems/rubygems/commit/bc69d19097
2022-02-10 08:38:09 +09:00
Nobuyoshi Nakada 8013250136 [ruby/rdoc] Simplify attribute exclusiveness conditions
https://github.com/ruby/rdoc/commit/45e33c4b85
2022-02-09 22:22:46 +09:00
Nobuyoshi Nakada ec6d1cf28f [ruby/rdoc] Get rid of ruby-mode.el confusions
https://github.com/ruby/rdoc/commit/63fac51198
2022-02-09 22:22:45 +09:00
Nobuyoshi Nakada 994b3f1dc6 [ruby/rdoc] Allow cross references to negation operator method
https://github.com/ruby/rdoc/commit/69cafb213a
2022-02-09 19:41:12 +09:00
Nobuyoshi Nakada 8db06fe2c9 [ruby/rdoc] Allow cross references to logical operator methods
https://github.com/ruby/rdoc/commit/17c0da304d
2022-02-09 19:41:11 +09:00
Soutaro Matsumoto cbd54cba03 [ruby/rdoc] Skip parentheses on singleton class declaration
https://github.com/ruby/rdoc/commit/b6c6d4f978
2022-02-09 18:45:05 +09:00
Nobuyoshi Nakada 88b1d21dbb [ruby/rdoc] Allow cross references to backtick method
https://github.com/ruby/rdoc/commit/52c33157f1
2022-02-09 18:44:41 +09:00
Nobuyoshi Nakada 202f690a5e [ruby/rdoc] Allow cross references to operator methods
Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross
reference targets.

https://github.com/ruby/rdoc/commit/5d332a4128
2022-02-09 18:44:40 +09:00
Nobuyoshi Nakada dec96dd897 [ruby/rdoc] Support all struct definition functions
Currently only `rb_struct_define_without_accessor` is supported by
https://github.com/ruby/rdoc/pull/73.  We should support other
three functions too.

https://github.com/ruby/rdoc/commit/d42288f06c
2022-02-09 18:43:07 +09:00
nicholas a. evans 981a75db91 [rubygems/rubygems] Fix missing rdoc for Gem::Version
The rdoc for Gem::Version is available here:
* https://docs.ruby-lang.org/en/3.0/Gem/Version.html

However it is currently missing from:
* https://ruby-doc.org/stdlib-3.1.0/libdoc/rubygems/rdoc/Gem/Version.html
* https://docs.ruby-lang.org/en/3.1/Gem/Version.html
* https://docs.ruby-lang.org/en/master/Gem/Version.html
* `ri Gem::Version`
  with `ri --version` => 6.4.0 and `gem --version` => 3.3.5
* `yard ri Gem::Version` with `yard --version` => 0.9.27

https://github.com/rubygems/rubygems/commit/c10e5dd884
2022-02-07 23:06:19 +09:00
Jeremy Evans 7529c53891 [ruby/net-http] Do not set SNI hostname if connecting to IP address
RFC 6066, section 3, explicitly disallows the use of an IP address
as an SNI server name.  So check if the connection is being made
to an IP address using the resolv regexps, and do not set an SNI
hostname in that case.

Recent changes to LibreSSL make it more strictly follow RFC 6066,
resulting an s.hostname= raising an error if passed an IP address.
When such verions of LibreSSL are used, this change not only fixes
the net/http tests, it also fixes tests for webrick and open-uri,
which both make SSL connections to 127.0.0.1 using net/http in
their tests.

Avoid warning in the openssl extension by unsetting
@ssl_context.verify_hostname if connecting to an IP address.
Make changes so that the post_connection_check still happens
when connecting to an IP address, which is necessary to keep
checking that the certificate returned includes the IP address,
which one of the tests depends on.

Revert the previous change that modified the regexp used for
checking the error message.

https://github.com/ruby/net-http/commit/fa68e64bee
2022-02-03 05:10:21 +09:00
Olle Jonsson d8c54bac4a [ruby/net-protocol] Fix typo in gem description [ci skip]
https://github.com/ruby/net-protocol/commit/35d7b08a54
2022-02-02 21:21:47 +09:00
Olle Jonsson 94687a6826 [ruby/net-protocol] Drop unused gemspec directives
This gem exposes no executables.

https://github.com/ruby/net-protocol/commit/3c4def2a64
2022-02-02 21:17:47 +09:00
Dan Jensen 0b2f6b942b [rubygems/rubygems] Skip "seller shipped" notification after delivery
If a Shipment has been delivered, there is no point in notifying the
buyer that the seller shipped. Instead, we should simply notify the
buyer that the shipment was delivered. This is relevant in cases where
the seller is late to mark a Shipment as shipped, so the first EasyPost
Tracker update marks it as delivered, or in cases where the seller
fails to mark as shipped and the buyer marks it as delivered.

This fixes a Shipment event handler so the buyer notification for
shipment is no longer invoked if the Shipment is already delivered.

https://github.com/rubygems/rubygems/commit/09c2cadc86
2022-02-01 20:07:18 +09:00
David Rodríguez 517d7c3221 Sync latest Bundler & RubyGems 2022-02-01 08:09:23 +09:00
Josef Šimánek d5c9710b07 [rubygems/rubygems] Remove encoding pragma from specification.rb
- it is not used since it is not at the top of the file
- it is not useful anymore

https://github.com/rubygems/rubygems/commit/6aee05d923
2022-02-01 05:20:38 +09:00
Nobuyoshi Nakada 7672f6a423
mkmf: unify duplicate code in pkg_config 2022-01-29 15:29:46 +09:00
Mike Dalessio b90e56e624 mkmf: pkg_config accepts multiple options 2022-01-29 15:22:52 +09:00
aycabta d66e7ec77b [ruby/reline] Add a comment for VK_MENU
https://github.com/ruby/reline/commit/ee307c2b01
2022-01-27 20:54:09 +09:00
aycabta f4ee60543a [ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
On European keyboards.

https://github.com/ruby/reline/commit/75fe9759a4
2022-01-27 20:54:09 +09:00
Charles Oliver Nutter f511ff3b3a [ruby/yaml] Add JRuby-specific warning when psych fails
The error here is confusing for users because JRuby does not use
libyaml and installing it will not help. Instead, JRuby directs
them to a wiki page that describes an issue when multiple
conflicting versions of SnakeYAML are installed.

This change allows us to use the yaml gem and delete our local
sources.

https://github.com/ruby/yaml/commit/8122087ffb
2022-01-27 17:16:05 +09:00
Jesse Chavez 99d02caed3 [ruby/logger] Fix log rotation inter-process lock failed.
Issue only occurs in JRuby 9.3.0.0 and Windows and the full
console output is:

log rotation inter-process lock failed. D:\log.txt -> D:\log.txt.0: The process cannot access the file because it is being used by another process.
log writing failed. closed stream
log writing failed. closed stream
...

https://github.com/ruby/logger/commit/19fc734638
2022-01-27 12:33:06 +09:00
manga_osyo b6b2e489f1 [ruby/irb] Changed to call Kernel.print
If you call `binding.irb` on a class defined `#print`, it will crash, so call `Kernel.print`.

Fix [Bug #18389] `binding.irb` can fail in some classes that implement `context` and `print` methods.

https://github.com/ruby/irb/commit/d54b271984
2022-01-27 01:28:52 +09:00
David Rodríguez c925d3b668 [rubygems/rubygems] Fix `force_ruby_platform` ignored when lockfile includes the current specific platform
https://github.com/rubygems/rubygems/commit/9ca371adf8
2022-01-26 13:09:31 +09:00
Ngan Pham 42ef3fcaef [rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORM
In certain places, we want to display the platform name with
`Gem::Platform.local` instead of `RUBY_PLATFORM`.

Fixes https://github.com/rubygems/rubygems/issues/5264

https://github.com/rubygems/rubygems/commit/bdd1848ae8
2022-01-26 02:24:30 +09:00
David Rodríguez 4317a6750d [rubygems/rubygems] Forbid downgrading past the originally shipped version on Ruby 3.1
https://github.com/rubygems/rubygems/commit/68bef90339
2022-01-25 01:11:39 +09:00
gemmaro d77f2ff5b4 [ruby/rdoc] Fix typo in RDoc::Task example
https://github.com/ruby/rdoc/commit/7a77e55c2a
2022-01-24 10:17:16 +09:00
Postmodern c155445752 [ruby/reline] Ignore global constants when checking if Fiddle::VERSION exists
If a top-level `VERSION` constant exists, or if a module containing a `VERSION` constant is included into the top-level scope, then `Fiddle.const_defined?(:VERSION)` will erroneously return true when `RUBY_VERSION < 3.0.0`.

https://github.com/ruby/reline/commit/8529c8e47a
2022-01-24 07:00:34 +09:00
David Rodríguez 2b7025e680 [rubygems/rubygems] Rename `Gem.open_with_flock` to `Gem.open_file`
Since it only uses `flock` on Windows.

https://github.com/rubygems/rubygems/commit/b877de4d9c
2022-01-20 06:45:28 +09:00
David Rodríguez ec5bde1a80 [rubygems/rubygems] Restrict `flock` to Windows
It was introduced to fix some race conditions there, but it doesn't seem
necessary on other systems and it's actually causing issues there.

https://github.com/rubygems/rubygems/commit/27b682c812
2022-01-20 06:45:27 +09:00
Yusuke Nakamura 7353f950c3 [rubygems/rubygems] Change generated namespaced test class name in minitest
* `foo` => `TestFoo`
* `foo_bar` => `TestFooBar`
* `foo-bar` => `Foo::TestBar`

https://github.com/rubygems/rubygems/commit/353cdd61c3
2022-01-20 01:04:53 +09:00
Yusuke Nakamura 4451313252 [rubygems/rubygems] Update generated minitest file style
foo     => test/test_foo.rb
foo-bar => test/foo/test_bar.rb
foo_bar => test/test_foo_bar.rb

https://github.com/rubygems/rubygems/commit/c795e5d40d
2022-01-20 01:04:52 +09:00
Yusuke Nakamura 4e955b2e37 [rubygems/rubygems] Create minitest file to underscored path in "bundle gem" command
...with dashed gem name

In "bundle gem" command with dashed name gem (e.g. foo-bar) generates
`test/test_foo/bar.rb`, but this file contains undefined class `TestFoo`
and moreover, does not include in "bundle exec rake test" target.

Therefore, intentially the first test after gem created is fail, but in
case of gem name contains dash character is not.

The change doings...
(when "bundle gem foo-bar" called)

* create `test/test_foo_bar.rb`
* define `TestFooBar` class in `test/test_foo_bar.rb`

https://github.com/rubygems/rubygems/commit/5d9a69fc0f
2022-01-20 01:04:52 +09:00
David Rodríguez 0dd8c6157d [rubygems/rubygems] Don't pass regexp to `Gem::Dependency.new` during `gem dependency`
https://github.com/rubygems/rubygems/commit/89dd5158a4
2022-01-19 15:56:36 +09:00
David Rodríguez 1d530ae27a [rubygems/rubygems] Remove dead method
https://github.com/rubygems/rubygems/commit/477d5f6f6e
2022-01-19 15:56:36 +09:00
David Rodríguez 0350c179ea [rubygems/rubygems] Don't pass regexp to `Gem::Dependeny.new` from list, search, and query commands
It's deprecated functionality.

https://github.com/rubygems/rubygems/commit/13d3eb6cb0
2022-01-19 15:56:35 +09:00
David Rodríguez 8b6a02de2f [rubygems/rubygems] Simplify argument processing logic in `gem list` & `gem search`
Make it more explicit that if not specific arguments are given, the
value of `-n` is used.

https://github.com/rubygems/rubygems/commit/ed811ddc00
2022-01-19 15:56:35 +09:00
Hiroshi SHIBATA d22511fd75 Merge rubygems/rubygems HEAD.
Picked at 12aeef6ba9a3be0022be9934c1a3e4c46a03ed3a
2022-01-19 15:01:44 +09:00
David Rodríguez e7249294fb
[rubygems/rubygems] Fix regression with old marshaled specs having null required_rubygems_version
https://github.com/rubygems/rubygems/commit/91f07a0208
2022-01-19 11:20:36 +09:00
David Rodríguez f04954d95c
[rubygems/rubygems] Normalize end alignment style with Bundler
https://github.com/rubygems/rubygems/commit/f7f504b24c
2022-01-19 11:20:36 +09:00
Takashi Kokubun c0d18a1aa2
[ruby/erb] Revert "Remove safe_level and further positional arguments (https://github.com/ruby/erb/pull/7)"
This reverts commit 5133efa06f.

While we already handled this deprecation in many libraries, we noticed
that some (e.g. sprockets) relied on the format of `ERB.version` and
2b4182eb10 broke such handling.

Given that the `ERB.version` change was released at 3.1 and it's
obviously new, I'll skip this removal in 3.2 and postpone this to a
future version.
2022-01-17 12:39:17 -08:00
st0012 e53962b9e1 [ruby/irb] Use require_relative to load extensions/commands
https://github.com/ruby/irb/commit/d5060f7668
2022-01-17 21:09:36 +09:00
Yusuke Endoh b4e362d444 lib/drb/drb.rb: Prevent a "warning: assigned but unused variable"
... by replacing the variable with a underscore-prefixed name
2022-01-17 14:56:11 +09:00
st0012 81b604fb00 [ruby/irb] Use require_relative to require lib files
1. `require` can mislead Ruby to load system irb's files and cause
   constant redefined warnings as other code loads the same module/class
   from lib folder.
2. Most files already use `require_relative`.

https://github.com/ruby/irb/commit/848d339f2e
2022-01-17 14:23:40 +09:00
Brandon Weaver ac1bb6b510 [ruby/net-http] Rename `D` to `debug` in `Net::HTTP`
Renames `D` to `debug` in `Net::HTTP` and introduces an alias for
backwards compatibility. This was done for readability reasons, in that
`D` did not clearly reflect what the method was doing and can cause some
confusion.

https://github.com/ruby/net-http/commit/582d6e87d6
2022-01-17 10:17:23 +09:00
aycabta f5e3913737 [ruby/reline] Fix incremental search to work correctly even if not last line
https://github.com/ruby/reline/commit/21d75f6d4c
2022-01-16 22:09:31 +09:00
aycabta 921ff739df [ruby/reline] Insert newline in the middle of buffer just after dialog
https://github.com/ruby/reline/commit/0c76631132
2022-01-16 22:09:31 +09:00
aycabta 2bc6b07a8d [ruby/reline] Combine common logic into one
https://github.com/ruby/reline/commit/5db9738f17
2022-01-16 22:09:29 +09:00
aycabta f94a2adf6a [ruby/reline] Clear dialog when adding new line to end of buffer
https://github.com/ruby/reline/commit/7d38454327
2022-01-16 22:09:28 +09:00
Takashi Kokubun d12a08abb5 [ruby/erb] Remove safe_level and further positional arguments (https://github.com/ruby/erb/pull/7)
[Feature #14256]

https://github.com/ruby/erb/commit/5133efa06f
2022-01-16 06:46:47 +09:00
Takashi Kokubun 3cfb6fc479 [ruby/erb] Escape the second *
The original code just seems unintentional

https://github.com/ruby/erb/commit/75a0749cb7
2022-01-16 05:26:37 +09:00
ooooooo_q b2d15dcad6 [ruby/erb] fix regexp (https://github.com/ruby/erb/pull/6)
https://github.com/ruby/erb/commit/33100a022f
2022-01-16 05:21:05 +09:00
loadkpi 7c70151aed [rubygems/rubygems] Fix `gem update --system` for already installed version of rubygems-update
https://github.com/rubygems/rubygems/commit/c167d513a7
2022-01-15 14:00:35 +09:00
Masatoshi SEKI 64e19ad7e9 to prevent collection, keep the last result. 2022-01-15 00:58:21 +09:00
David Rodríguez 7d42b442bb [rubygems/rubygems] Support binstubs with `--enable-load-relative` prolog
https://github.com/rubygems/rubygems/commit/32a5e9057a
2022-01-15 00:00:11 +09:00
David Rodríguez 044b0ae8e0 [rubygems/rubygems] Extract a bit of common logic to methods
https://github.com/rubygems/rubygems/commit/9a1b891435
2022-01-15 00:00:10 +09:00
David Rodríguez 810516ca31 [rubygems/rubygems] Fix method documentation to be more correct English
https://github.com/rubygems/rubygems/commit/bcffd92c48
2022-01-15 00:00:09 +09:00
Koichi Sasada 53a4e10146 clear `@result` after `setup_message`
For the remote object `ro`, method chain like `ro.foo.bar` the
result of `ro.foo` is stored in `@result`, but cleared just
before `setup_message` and it seems GCed on specific machine.

```
  1) Error:
DRbTests::TestDRbCore#test_05_eq:
RangeError: "140" is recycled object
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:366:in `_id2ref'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:366:in `to_obj'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1528:in `to_obj'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1847:in `to_obj'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:620:in `recv_request'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:931:in `recv_request'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1656:in `init_with_client'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1668:in `setup_message'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1632:in `perform'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1725:in `block (2 levels) in main_loop'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1721:in `loop'
    (druby://localhost:36141) /tmp/ruby/v3/src/trunk-repeat20-asserts/lib/drb/drb.rb:1721:in `block in main_loop'
    /tmp/ruby/v3/src/trunk-repeat20-asserts/test/drb/drbtest.rb:206:in `test_05_eq'
```

To prevent collecting, clear `@result` just after `setup_message`
and `setup_message` can get the last result object.
2022-01-14 18:33:16 +09:00
Justin Searls a485152660 [rubygems/rubygems] Lock standard.yml to the required ruby version
https://github.com/rubygems/rubygems/commit/1791b5b9e5
2022-01-13 23:59:55 +09:00
Vyacheslav Alexeev d0a0637948 [rubygems/rubygems] Use `Fiddle` in `bundle doctor` to check for dynamic library presence
https://github.com/rubygems/rubygems/commit/ecd495ce1b
2022-01-13 18:16:05 +09:00
Akira Matsuda 9828502570 [rubygems/rubygems] Let Version#spaceship accept a String
With this patch, handwriting version comparisons become a little bit easier.

before:
  SomeGem.version <=> Gem::Version.new('1.3')

after:
  SomeGem.version <=> '1.3'

https://github.com/rubygems/rubygems/commit/7e0dbb79f2
2022-01-13 18:15:14 +09:00
Nobuyoshi Nakada 92630e2346
[ruby/optparse] Fix links to the page directory files [Bug #18468]
https://github.com/ruby/optparse/commit/dab72c543d
2022-01-12 21:16:02 +09:00
Nobuyoshi Nakada 7d94df63c4
[ruby/optparse] Add rdoc options
Specify the main page and the page directory.  Also in Rakefile,
extract and use the same options from the gemspec file.

https://github.com/ruby/optparse/commit/d182cd60b5
2022-01-12 21:16:01 +09:00
Jeremy Evans d494a16ac5 [ruby/resolv] Support more characters in link local addresses
Implements [Feature #17524]

https://github.com/ruby/resolv/commit/993a1a374f
2022-01-12 10:49:57 +09:00
Nobuyoshi Nakada 6d3ee418c2 [rubygems/rubygems] Markup code with RDoc notations
https://github.com/rubygems/rubygems/commit/c29cd23826
2022-01-11 20:20:51 +09:00
aycabta 9e79ae539b [ruby/reline] Clear dialog when just_move_cursor is called with dialog at last line
https://github.com/ruby/reline/commit/05024b968e
2022-01-11 06:10:37 +09:00
Peter Zhu 09cfc653b7 [ruby/reline] Fix reline on Solaris
Solaris requires that the pointer errret_int is alined to an integer,
however, with VWA, strings are no longer aligned to an integer, so use a
Fiddle::Pointer with a malloc'd region instead.

https://github.com/ruby/reline/commit/5fcd89ab0c
2022-01-08 20:32:06 +09:00
ximenasandoval 73be7a85cd [rubygems/rubygems] Fix suggestions flag
https://github.com/rubygems/rubygems/commit/b55a1393ca
2022-01-06 23:58:39 +09:00
ximenasandoval cea4a81056 [rubygems/rubygems] Let fetch understand gem:version syntax
Fix version error message

Add tests to fetch error messages

Fix default version since is not necessary

https://github.com/rubygems/rubygems/commit/070620ebe4
2022-01-06 23:58:38 +09:00
David Rodríguez ee5e684bc1 [rubygems/rubygems] Fix `gem install <non-existent-gem> --force` crash
Before:

```
$ gem install sfdsfdsfsdide --force
ERROR:  While executing gem ... (NoMethodError)
    undefined method `spec' for nil:NilClass

    @always_install << newest.spec
                             ^^^^^
```

After:

```
$ gem install sfdsfdsfsdide --force
ERROR:  Could not find a valid gem 'sfdsfdsfsdide' (>= 0) in any repository
```

https://github.com/rubygems/rubygems/commit/4e2bfd1101
2022-01-06 23:52:48 +09:00
Hiroshi SHIBATA 8bba6d3d54 [rubygems/rubygems] Exclude bin directory for newgem template, Because it contains only development script
https://github.com/rubygems/rubygems/commit/01017ee8ca
2022-01-05 19:16:53 +09:00
Kazuhiro NISHIYAMA 5757696e07
`res.response_body_permitted?` is not defined
`response_body_permitted?` is a method of request.
2022-01-05 16:20:11 +09:00
David Rodríguez d1a91076dc [rubygems/rubygems] Fix race conditon on JRuby
On JRuby, sometimes we get the following error in CI when running a
realworld test that checks that `gem install rails` succeeds:

```
ERROR:  While executing gem ... (NoMethodError)
    undefined method `ignored=' for nil:NilClass
	/home/runner/.rubies/jruby-9.3.2.0/lib/ruby/stdlib/rubygems/stub_specification.rb:193:in `to_spec'
	org/jruby/RubyArray.java:2642:in `map'
	/home/runner/.rubies/jruby-9.3.2.0/lib/ruby/stdlib/rubygems/specification.rb:758:in `_all'
	/home/runner/.rubies/jruby-9.3.2.0/lib/ruby/stdlib/rubygems/specification.rb:956:in `each'
	org/jruby/RubyEnumerable.java:1710:in `any?'
	/home/runner/.rubies/jruby-9.3.2.0/lib/ruby/stdlib/rubygems/resolver/activation_request.rb:111:in `installed?'
	/home/runner/.rubies/jruby-9.3.2.0/lib/ruby/stdlib/rubygems/request_set.rb:173:in `block in install'
```

I'm not sure how this error is happening, but I think there's no need to
copy the `@ignored` instance variable when materializing stub
specifications. This instance variable is used to not print a warning
about missing extensions more than once for each gem upon gem
activation, but as far as I can see, it's only used by methods that work
on specification stubs. Once specifications are materialized, I think
it can be safely ignored.

https://github.com/rubygems/rubygems/commit/301cecd5a7
2022-01-05 07:25:45 +09:00
Christian Boos 11b1ebe606 [ruby/error_highlight] Fix the spurious TypeError.
When we have no backtrace locations, we can't have the highlight,
so just return the message.

https://github.com/ruby/error_highlight/commit/9f5c639494
2022-01-04 23:09:01 +09:00
David Rodríguez f0669fb6cb [ruby/optparse] Use `require_relative` for internal requires (https://github.com/ruby/optparse/pull/28)
https://github.com/ruby/optparse/commit/e4f2682128
2022-01-04 16:38:17 +09:00
Nobuyoshi Nakada 8f9623741a [rubygems/rubygems] Append a newline to the checksum file
https://github.com/rubygems/rubygems/commit/48ea2778e9
2022-01-04 14:59:17 +09:00
Nobuyoshi Nakada c2e8e1f6a4 [rubygems/rubygems] Fix checksum
Calculate the checksum of the content, not the given pathname at
the build time itself.

https://github.com/rubygems/rubygems/commit/b60ee97ee9
2022-01-04 14:59:16 +09:00
卜部昌平 980bf94f02
Kernel#=~: delete
Has been deprecated since ebff9dc10e.
2022-01-03 22:33:38 +09:00
aycabta 76181ae940 [ruby/reline] Check capname of tigetstr/tigetflag/tigetnum
Incorrect arguments can cause SEGV.

https://github.com/ruby/reline/commit/a58748bcf9
2022-01-02 11:44:07 +09:00
aycabta 6d1b406dc8 [ruby/reline] Version 0.3.1
https://github.com/ruby/reline/commit/9ab5850444
2022-01-02 11:24:14 +09:00
aycabta 85f304b931 [ruby/reline] Implement Reline::Terminfo.tigetnum
https://github.com/ruby/reline/commit/695212d5d2
2022-01-02 10:27:09 +09:00
aycabta 530586fafc [ruby/reline] Fix the difinition of tigetflag() in comment...
https://github.com/ruby/reline/commit/af4d77ba09
2022-01-02 00:39:45 +09:00
aycabta 7deee741ab [ruby/reline] Remove unnecessary qualifiers on definition of comments
https://github.com/ruby/reline/commit/abc1e4ee88
2022-01-01 23:12:07 +09:00
aycabta 6300c4dcc3 [ruby/reline] Implement Reline::Terminfo.tigetflag
https://github.com/ruby/reline/commit/0451ed7a28
2022-01-01 23:06:53 +09:00
YO4 31c69d66d2 [ruby/reline] windows fix scroll
https://github.com/ruby/reline/commit/c559d0f7a9
2021-12-30 20:53:21 +09:00
ima1zumi f589242e75 [ruby/reline] Use unix_line_discard when Ctrl-u is entered
The kill-line was called when C-u was entered, so it is now called unix-line-discard.

In readline(3):

> unix-line-discard (C-u)
>               Kill backward from point to the beginning of the line.
>               The killed text is saved on the kill-ring.

https://github.com/ruby/reline/commit/27570d195e
2021-12-30 20:23:58 +09:00
Samuel Williams e4cd319f3d [ruby/irb] Prefer `IO#wait_readable` over `IO#select`. (https://github.com/ruby/irb/pull/323)
https://github.com/ruby/irb/commit/1c03bd3373
2021-12-29 09:37:05 +09:00
David Rodríguez 95d2e06c2b [rubygems/rubygems] Fix `bundle update --bundler` no longer updating lockfile
https://github.com/rubygems/rubygems/commit/a053b7e4d4
2021-12-28 04:38:31 +09:00
David Rodríguez be476f38f9 [rubygems/rubygems] Don't crash when updating to an unsupported `rubygems-update` version
https://github.com/rubygems/rubygems/commit/b0badcd00a
2021-12-27 22:57:46 +09:00
David Rodríguez dd022c1f76 [rubygems/rubygems] Don't redownload `rubygems-update` package if already there
This makes it easier to test the upgrade process locally and should be
more efficient in certain cases where the user has already upgraded in
the past.

https://github.com/rubygems/rubygems/commit/ed6cc88494
2021-12-27 21:32:32 +09:00
Nobuyoshi Nakada 56a0f34d31 [ruby/drb] Fix method names "regist" as "register"
https://github.com/ruby/drb/commit/9a1ff286bc
2021-12-27 18:11:48 +09:00
Hiroshi SHIBATA d6311cb1ca Track RubyGems 3.4.0dev and Bundler 2.4.0dev 2021-12-27 10:45:36 +09:00
David Rodríguez 03903f23c2 [rubygems/rubygems] Remove the rest of the `RUBY_VERSION` monkeypatching
Since we're at it. This generates a bunch of warnings and seems like a
brittle way to test things, so let's get rid of it.

https://github.com/rubygems/rubygems/commit/f5d45520e0
2021-12-27 10:45:36 +09:00
Masataka Pocke Kuwabara 73707e5c51 [rubygems/rubygems] Make SpecificationPolicy autoload constant
It reduces memory usage about 204kb (1.4%).

https://github.com/rubygems/rubygems/commit/b7d4b8c8a6
2021-12-27 10:45:36 +09:00
Nobuyoshi Nakada 9736cb890b
Check if `Kernel#untaint` is defined instead of version comparison
Probably `RUBY_VERSION` seems overwritten somewhere in the tests.
2021-12-27 08:56:00 +09:00
aycabta 0f1fbc6421 [ruby/irb] Version 1.4.1
https://github.com/ruby/irb/commit/b1d9c34441
2021-12-25 12:57:28 +09:00
aycabta ddf0cdee4f [ruby/irb] Support showing doc by dialog in iTerm2
https://github.com/ruby/irb/commit/a4b95d6634
2021-12-25 12:56:40 +09:00
aycabta 40c20110d5 [ruby/reline] Version 0.3.0
https://github.com/ruby/reline/commit/3f6ea92268
2021-12-25 10:58:44 +09:00
Hiroshi SHIBATA da6a5e3ed1 Merge RubyGems-3.3.3 and Bundler-2.3.3 2021-12-25 07:40:52 +09:00
aycabta 90239c4163 [ruby/irb] Version 1.4.0
https://github.com/ruby/irb/commit/b80ec5821e
2021-12-25 00:41:04 +09:00
aycabta 214b6128ae [ruby/irb] Update dependency, reline >= 0.3.0
https://github.com/ruby/irb/commit/f36ad549c4
2021-12-25 00:41:03 +09:00
aycabta c815c0be46 [ruby/reline] Escape newline(s) in dynamic prompt
https://github.com/ruby/reline/commit/9b209ee1ea
2021-12-25 00:32:58 +09:00
aycabta b0db420b0e [ruby/reline] Escape newline(s) in prompt
https://github.com/ruby/reline/commit/b545459fca
2021-12-25 00:32:57 +09:00
aycabta 22cc2243f9 [ruby/reline] Remove unnecessary parameter
https://github.com/ruby/reline/commit/20fcd22564
2021-12-25 00:32:56 +09:00
Yuki Nishijima f9712b029b Sync did_you_mean 2021-12-24 23:20:30 +09:00
manga_osyo f279d41847 Fix warning in `Lexer::Elem#[]`
Changed to use `#pos` `#event` `#tok` `#state` since using Lexer::Elem#[0~4] now gives a warning.
see: 8944009be7

https://github.com/ruby/reline/commit/9adbb9af32
2021-12-24 20:44:02 +09:00
aycabta 4fccefef05 [ruby/reline] Revert "Change aliased methods to be parivete"
Ruby 2.5 doesn't support "private alias_method" idiom  but Ruby on Rails
6.x still support 2.5. 😢

This reverts commit https://github.com/ruby/reline/commit/0f075f562b9b.

https://github.com/ruby/reline/commit/4ecaa63b26
2021-12-24 18:23:28 +09:00
aycabta fc5bc378e5 [ruby/reline] Change aliased methods to be parivete
https://github.com/ruby/reline/commit/0f075f562b
2021-12-24 18:23:28 +09:00
aycabta a9c59b13da [ruby/reline] Add doc about em-kill-line macro
https://github.com/ruby/reline/commit/2e46493aff
2021-12-24 18:23:28 +09:00
aycabta bad1e153d4 [ruby/reline] Implement em_kill_line
https://github.com/ruby/reline/commit/9fca6ceb45
2021-12-24 18:23:28 +09:00
aycabta 6c3cc9c58a [ruby/reline] Rename the wrong name "em-kill-line" with the correct name "unix-line-discard"
https://github.com/ruby/reline/commit/da7af35d1f
2021-12-24 18:23:28 +09:00
aycabta fd60a235f5 [ruby/reline] Add doc about ed-kill-line, kill-line, em-kill-line, and unix-line-discard
https://github.com/ruby/reline/commit/586a48ffe0
2021-12-24 18:23:28 +09:00