Hiroshi SHIBATA
e195710d10
Extract csv
2024-01-22 18:23:05 +09:00
Hiroshi SHIBATA
df70faa9c9
Extract nkf
2024-01-22 14:17:52 +09:00
Eddie Lebow
34315510d3
[ruby/irb] Fix documentation typo, `niL` -> `nil`
...
https://github.com/ruby/irb/commit/79086a9dda
2024-01-22 04:42:37 +00:00
Hiroshi SHIBATA
36fc5ee64f
Extract drb
2024-01-22 11:08:59 +09:00
Hiroshi SHIBATA
00dc1cace8
Reapply "[rubygems/rubygems] Fix activation conflicts when circularly requiring a gem"
...
This reverts commit 04cf66765a
.
2024-01-22 09:57:10 +09:00
Hiroshi SHIBATA
d51f4c9288
Reapply "[rubygems/rubygems] Fix `require` of a default gem when unresolved gems depend on it"
...
This reverts commit 54552b89e7
.
2024-01-22 09:57:10 +09:00
Hiroshi SHIBATA
94af1e5b81
[ruby/uri] Removed commented-out code
...
https://github.com/ruby/uri/commit/feb8e0dd73
2024-01-22 00:19:51 +00:00
Charles Oliver Nutter
c6b548accb
[ruby/nkf] Add JRuby extension to the gem
...
This pulls in the nkf extension implementation from JRuby. The
build and load logic has been updated along the same lines as
ruby/digest and the gem appears to build correctly for the -java
platform.
Fixes https://github.com/ruby/nkf/pull/13
https://github.com/ruby/nkf/commit/18f57f36ed
2024-01-22 00:12:45 +00:00
Adam Hess
ac4046d34b
[ruby/prism] switch unless to if
...
https://github.com/ruby/prism/commit/29bdbf4212
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-01-19 22:57:46 +00:00
Adam Hess
cfabe9c51c
[ruby/prism] Handle stovetop start in constant path fullname
...
https://github.com/ruby/prism/commit/3a216e63fe
2024-01-19 22:57:45 +00:00
Kevin Newton
da521fc92c
[ruby/prism] Parsing rules document
...
https://github.com/ruby/prism/commit/57a9575543
2024-01-19 16:12:25 +00:00
Matthew Healy
a58e091686
[ruby/prism] Extract identifier lexing documentation to separate file
...
https://github.com/ruby/prism/commit/c9df17e3c0
2024-01-19 15:43:29 +00:00
Hiroshi SHIBATA
411cda2d5c
Extract rinda
2024-01-19 20:02:19 +09:00
Hiroshi SHIBATA
99c2c703da
Extract resolv-replace
2024-01-19 17:44:58 +09:00
Hiroshi SHIBATA
b4ee5266f1
Extract abbrev as bundled gems
2024-01-19 16:27:45 +09:00
Hiroshi SHIBATA
176a442883
Extract observer as bundled gems
2024-01-19 15:24:09 +09:00
Hiroshi SHIBATA
54552b89e7
Revert "[rubygems/rubygems] Fix `require` of a default gem when unresolved gems depend on it"
...
This reverts commit f1f5f22d22
.
2024-01-19 12:12:33 +09:00
Hiroshi SHIBATA
04cf66765a
Revert "[rubygems/rubygems] Fix activation conflicts when circularly requiring a gem"
...
This reverts commit db44088c2a
.
https://github.com/ruby/ruby/actions/runs/7578672002/job/20641640821
https://github.com/ruby/ruby/actions/runs/7578672002/job/20641641212
https://github.com/ruby/ruby/actions/runs/7578672002/job/20641642031
2024-01-19 11:54:17 +09:00
David Rodríguez
db44088c2a
[rubygems/rubygems] Fix activation conflicts when circularly requiring a gem
...
If a gem is required circular, and there are unresolved specs depending
on it, we may end up in an activation conflict.
The solution is to not try to activate unresolved gems when requiring a
default gem, regardless of it having already been activated or not.
https://github.com/rubygems/rubygems/commit/3b2b8f4e3e
2024-01-19 11:28:11 +09:00
David Rodríguez
f1f5f22d22
[rubygems/rubygems] Fix `require` of a default gem when unresolved gems depend on it
...
The following conditions must be met:
* A default gem is required.
* A previous require left some gems unresolved, and those dependencies
themselves depend on the default gem.
In this case, rubygems require will first activate the default version
of the gem, then try to activate another unresolved version of the
default gem that conflicts with the first activation.
The solution is, if we are in the middle of requiring a default gem,
skip this step, because we have already activated it successfully.
https://github.com/rubygems/rubygems/commit/8cd5608db5
Co-authored-by: Stan Hu <stanhu@gmail.com>
2024-01-19 11:28:11 +09:00
David Rodríguez
8044e57907
[rubygems/rubygems] Add a comment to explain default gem activation
...
https://github.com/rubygems/rubygems/commit/291128268f
2024-01-19 11:28:10 +09:00
Stan Lo
b2ec4308d6
[ruby/irb] Bump version to v1.11.1
...
(https://github.com/ruby/irb/pull/837 )
https://github.com/ruby/irb/commit/f052097c4b
2024-01-19 10:49:12 +09:00
Alan Wu
7b253cfea4
RJIT: Properly reject keyword splat with `yield`
...
See the fix for YJIT.
2024-01-18 20:22:40 -05:00
Olle Jonsson
08edad31a6
[rubygems/rubygems] Drop two TODOs from specification.rb
...
These were introduced 13 years ago, in a documentation update. Perhaps we can let the TODOs go, without taking any action?
https://github.com/rubygems/rubygems/commit/fb23fa84f9
2024-01-18 22:49:32 +00:00
Takashi Kokubun
e37a37e696
Drop obsoleted BUILTIN_ATTR_NO_GC attribute
...
The thing that has used this in the past was very buggy, and we've never
revisied it. Let's remove it until we need it again.
2024-01-16 17:27:53 -08:00
Hiroshi SHIBATA
4e2eca3be0
Extract base64 as bundled gems
2024-01-17 08:28:31 +09:00
Cameron Dutro
8cbba87ca8
[ruby/prism] Add parse options to JavaScript's parsePrism function
...
https://github.com/ruby/prism/commit/d7fe7c7ae7
2024-01-16 19:19:30 +00:00
Kevin Newton
d124124c16
[ruby/prism] Fix up gemspec
...
https://github.com/ruby/prism/commit/82e3126762
2024-01-16 19:01:36 +00:00
Jemma Issroff
8bf12d7b2f
[ruby/prism] First pass at documenting information about the CRuby compiler
...
https://github.com/ruby/prism/commit/b575914b2f
2024-01-16 18:47:48 +00:00
Hiroshi SHIBATA
b68dab2d0f
Extract getoptlong as bundled gems
2024-01-16 17:07:10 +09:00
Samuel Giddins
e0312f90bb
[ruby/pp] Print beginless ranges properly
...
Instead of displaying the start of the range as nil
https://github.com/ruby/pp/commit/1df210d903
2024-01-15 14:04:14 +00:00
Benoit Daloze
1ed3b60375
[ruby/pp] Fix pretty printing a Data subclass instance when the subclass is anonymous
...
* It would be "#<data a=42>" (double space) instead of "#<data a=42>" (like #inspect).
https://github.com/ruby/pp/commit/bed72bfcb8
2024-01-11 13:44:01 +00:00
Benoit Daloze
62382a4345
[ruby/pp] Use .class.members for pretty printing Data
...
* Data#members might not be defined, instead it might be defined
on Data subclasses or a module included there. This is notably the
case on TruffleRuby which defines it there for optimization purposes.
In fact the mere presence of Data#members implies a megamorphic call
inside, so it seems best to avoid relying on its existence.
https://github.com/ruby/pp/commit/6a97d36fbb
2024-01-11 13:44:00 +00:00
Benoit Daloze
3b9cc22536
[ruby/pp] Use a proper feature check to check if Data is defined
...
https://github.com/ruby/pp/commit/ed602b9f2b
2024-01-11 13:44:00 +00:00
Nobuyoshi Nakada
7558625be1
[ruby/rdoc] Respect modeline to detect parser
...
https://github.com/ruby/rdoc/commit/485468f06f
2024-01-11 06:55:39 +00:00
David Rodríguez
0156b7416c
[rubygems/rubygems] Always avoid "Updating rubygems-update" message
...
The fact that under the hood the upgrade is done through a
rubygems-update gem is an implementation detail that does not really
help users to know.
Plus, it reads a bit weird.
https://github.com/rubygems/rubygems/commit/0fa5c50258
2024-01-11 13:51:52 +09:00
David Rodríguez
3980cebda5
[rubygems/rubygems] Make `gem update --system` respect ruby version constraints
...
https://github.com/rubygems/rubygems/commit/36052abbe2
2024-01-11 13:51:52 +09:00
David Rodríguez
aa908aa065
[rubygems/rubygems] Remove old condition no longer necessary
...
https://github.com/rubygems/rubygems/commit/701980b240
2024-01-11 13:51:52 +09:00
David Rodríguez
ef0705b3c2
[rubygems/rubygems] Fix development dependency not being added if introduced by two gemspecs
...
https://github.com/rubygems/rubygems/commit/adc05bf1c3
2024-01-11 13:51:52 +09:00
David Rodríguez
b8f859f0bf
Complete missing specs for platforms after resolution
...
If two platform specific variants have different dependencies, then
resolution may fallback to the non platform specific variant. However,
the platform specific variants that have the same dependencies as the
non specific one can still be kept.
Do a pass to complete those after resolution.
2024-01-11 13:51:52 +09:00
David Rodríguez
7f0dbfc9c8
[rubygems/rubygems] Move resetting the spec set to where it becomes necessary
...
https://github.com/rubygems/rubygems/commit/a8b547c6b1
2024-01-11 13:51:52 +09:00
David Rodríguez
51d2a8e983
[rubygems/rubygems] Extract a couple of helper methods
...
https://github.com/rubygems/rubygems/commit/880a4eae7f
2024-01-11 13:51:52 +09:00
David Rodríguez
ab1936faf9
[rubygems/rubygems] Remove methods to clarify what they do
...
https://github.com/rubygems/rubygems/commit/1d15d8a8ff
2024-01-11 13:51:52 +09:00
David Rodríguez
e900814467
[rubygems/rubygems] Make private helper private
...
https://github.com/rubygems/rubygems/commit/de9dc90026
2024-01-11 13:51:52 +09:00
David Rodríguez
76916217b6
[rubygems/rubygems] Extract `SpecSet#reset!` helper
...
https://github.com/rubygems/rubygems/commit/41f9b4d940
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA
acdc6abca8
[rubygems/rubygems] Disable false positive correction
...
https://github.com/rubygems/rubygems/commit/e75cca9496
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA
0e8b1973b4
[rubygems/rubygems] bin/rubocop -A --only Style/RedundantReturn
...
https://github.com/rubygems/rubygems/commit/ade728914f
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA
a1d5c6555e
[rubygems/rubygems] bin/rubocop -A --only Layout/ExtraSpacing
...
https://github.com/rubygems/rubygems/commit/39be5cd236
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA
888a8f4318
[rubygems/rubygems] bin/rubocop -A --only Style/StringLiteralsInInterpolation
...
https://github.com/rubygems/rubygems/commit/2333f5f9c5
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA
ea31461ba0
[rubygems/rubygems] bin/rubocop -A --only Style/StringLiterals
...
https://github.com/rubygems/rubygems/commit/f25013bcc0
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA
443e417885
[rubygems/rubygems] bin/rubocop -A --only Style/RedundantParentheses
...
https://github.com/rubygems/rubygems/commit/7cc647c8f3
2024-01-11 13:51:52 +09:00
Hiroshi SHIBATA
ff0119354e
[rubygems/rubygems] bin/rubocop -A --only Performance/StringInclude
...
https://github.com/rubygems/rubygems/commit/34df962cf4
2024-01-11 13:51:52 +09:00
Kenta Murata
08e22c64b3
[rubygems/rubygems] Use cache_home instead of data_home in default_spec_cache_dir
...
https://github.com/rubygems/rubygems/commit/d2801fcfde
2024-01-11 04:21:38 +00:00
Cody Cutrer
94e1d3f3fa
[rubygems/rubygems] include MatchMetadata in Bundler::LazySpecification
...
I'm running into a case in my plugin where matches_current_metadata? is
getting called on a lazy specification, and adding this fixes it
https://github.com/rubygems/rubygems/commit/24f962cb42
2024-01-11 04:19:13 +00:00
Brave Hager
d5e83a0601
[rubygems/rubygems] Update documentation to use squiggly heredoc
...
https://github.com/rubygems/rubygems/commit/4691b959ad
2024-01-11 00:51:48 +00:00
Aaron Patterson
881c5a1846
[ruby/prism] Add a "repeated flag" to parameter nodes
...
It's possible to repeat parameters in method definitions like so:
```ruby
def foo(_a, _a)
end
```
The compiler needs to know to adjust the local table size to account for
these duplicate names. We'll use the repeated parameter flag to account
for the extra stack space required
https://github.com/ruby/prism/commit/b443cb1f60
Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
Co-Authored-By: Jemma Issroff <jemmaissroff@gmail.com>
2024-01-10 15:24:26 +00:00
Hiroshi SHIBATA
d16f992e1b
Extract mutex_m as bundled gems
2024-01-10 17:28:16 +09:00
Nobuyoshi Nakada
1817d644ee
mkmf.rb: use kwargs
2024-01-10 09:18:18 +09:00
Kevin Newton
80da9b1547
[ruby/prism] Clarify __END__ comment
...
https://github.com/ruby/prism/commit/3e36d5eabc
2024-01-09 19:02:26 +00:00
Mark Young
7015cb2479
[ruby/abbrev] Provide a 'Changelog' link on rubygems.org/gems/abbrev
...
By providing a 'changelog_uri' in the metadata of the gemspec a
'Changelog' link will be shown on https://rubygems.org/gems/abbrev
which makes it quick and easy for someone to check on the changes
introduced with a new version.
Details of this functionality can be found on https://guides.rubygems.org/specification-reference/
https://github.com/ruby/abbrev/commit/9643a03ee8
2024-01-09 16:07:39 +00:00
Hiroshi SHIBATA
149373ce7f
racc is extracted at Ruby 3.3, not 3.4
2024-01-09 17:14:55 +09:00
Avdi Grimm
544c87d009
[rubygems/rubygems] Refer to underscores as underscores
...
https://github.com/rubygems/rubygems/commit/aa3ae5d245
2024-01-08 21:45:25 +00:00
Stan Lo
8f4eda5092
[ruby/irb] Make SourceFinder ignore binary sources
...
(https://github.com/ruby/irb/pull/836 )
https://github.com/ruby/irb/commit/73b35bb7f4
2024-01-08 12:42:39 +00:00
Nobuyoshi Nakada
76c20b06aa
Add `MakeMakefile["C"]`
2024-01-08 00:33:31 +09:00
Nobuyoshi Nakada
bca1493815
[DOC] Documentation of mkmf.rb
2024-01-07 21:49:47 +09:00
Nobuyoshi Nakada
7fcc6f04ac
[ruby/rdoc] Visibility should begin from `public` for each scope
...
Even for singleton class definition such as `class << self` that
shares the same container with the outer scope, its visibility is
separated and set to `public` by default.
https://github.com/ruby/rdoc/commit/baf26363b9
2024-01-07 11:39:46 +00:00
Nobuyoshi Nakada
2325b72cf3
[ruby/rdoc] Singleton method visibility should be isolated
...
Each singleton method definition of the form `def recv.method` has
visibility separate from the outer scope and is set to `public` by
default.
https://github.com/ruby/rdoc/commit/810913a7ea
2024-01-07 11:39:45 +00:00
BurdetteLamar
76afbda5b5
[ruby/net-http] Tweak to Net::HTTP What's Here
...
https://github.com/ruby/net-http/commit/3bf641ca63
2024-01-06 18:26:38 +00:00
Stan Lo
4bdfc9070c
[ruby/irb] Refactor exit command
...
(https://github.com/ruby/irb/pull/835 )
* Remove unnecessary code from the exit command's implementation
1. The parameters of `IRB.irb_exit` were never used. But there are some
libraries seem to call it with arguments + it's declared on the top-level
IRB constant. So I changed the params to anonymous splat instead of removing them.
2. `Context#exit` was completely unnecessary as `IRB.irb_exit` doesn't use
the `@irb` instance it passes. And since it's (or should be treated as)
a private method, I simply removed it.
3. The `exit` command doesn't use the status argument it receives at all.
But to avoid raising errors on usages like `exit 1`, I changed the argument to
anonymous splat instead removing it.
* Make exit an actual command
* Update readme
https://github.com/ruby/irb/commit/452b543a65
2024-01-06 17:15:16 +00:00
Stan Lo
3dac27897e
[ruby/irb] Require Reline v0.4.2+
...
(https://github.com/ruby/irb/pull/834 )
https://github.com/ruby/irb/commit/eff8d0d46a
2024-01-06 12:16:12 +00:00
Nobuyoshi Nakada
f6847e9456
[ruby/rdoc] Ignore `locale` at `write_options`
...
`@locale` is set from `@locale_name` and loaded from `@locale_dir`
after `write_options`, and `RDoc::I18n::Locale` does not seem to
expected to be loaded.
https://github.com/ruby/rdoc/commit/fd610f7023
2024-01-06 10:17:49 +00:00
Nobuyoshi Nakada
4112585be5
Too much nestings make editors confused
...
Get rid of nested double quotes inside nested interpolations. Also,
remove comments that are no longer needed by the documents.
2024-01-06 13:47:06 +09:00
Jeremy Evans
4d03140009
[ruby/net-http] Don't invoke response block more than once due to retry
...
If a socket error occurs while performing a streaming download via
the response block provided to transport_request, avoid calling
the response block again as this would result in duplicate data
received by the client.
Fixes https://github.com/ruby/net-http/pull/86
Fixes https://github.com/ruby/net-http/pull/87
Fixes [Bug #11526 ]
https://github.com/ruby/net-http/commit/114d01b092
Co-authored-by: Jeremy Stanley <jeremy@instructure.com>
2024-01-05 16:51:37 +00:00
Jeremy Evans
37657c79b6
[ruby/uri] Make URI#to_s prepend relative path with / if there is a host or port
...
Otherwise, the path could be considered part of the host or port.
This is better than modifying the path to make it absolute when
a host or port is set. We could also raise for invalid paths
when a host or port is set using check_path, but that results
in weird errors, and won't catch issues (such as ftp allowing a
relative path).
Fixes [Bug #19916 ]
https://github.com/ruby/uri/commit/ac32aa005b
2024-01-05 16:07:55 +00:00
Stan Lo
99933751c1
[ruby/reline] Bump version to v0.4.2
...
(https://github.com/ruby/reline/pull/633 )
https://github.com/ruby/reline/commit/5b59e48070
2024-01-05 14:32:18 +00:00
Hiroshi SHIBATA
75a8b48fba
[ruby/net-http] Bump version to 0.4.1
...
https://github.com/ruby/net-http/commit/21e226c0bc
2024-01-05 08:25:03 +00:00
Martin Emde
098d97e96d
[rubygems/rubygems] Quote Etag in `If-None-Match` header of compact index request
...
https://github.com/rubygems/rubygems/commit/d26bcd7551
2024-01-05 02:06:58 +00:00
Takashi Kokubun
5ff1524fde
[ruby/erb] Version 4.0.4
...
https://github.com/ruby/erb/commit/b68bfed6a8
2024-01-04 22:34:59 +00:00
tomoya ishida
542011ff68
[ruby/reline] Fix pasting tab-indented code crash
...
(https://github.com/ruby/reline/pull/630 )
https://github.com/ruby/reline/commit/90155fd0d9
2024-01-04 11:53:06 +00:00
hyuraku
577bc8254e
[rubygems/rubygems] remove useless comments from unpack_command.rb
...
https://github.com/rubygems/rubygems/commit/7576c21295
2024-01-04 00:39:54 +00:00
Kevin Newton
3a3fcf56d0
[ruby/prism] Fix rational when parsing non decimal integer
...
https://github.com/ruby/prism/commit/75d4331f7f
2024-01-03 17:18:02 +00:00
Stan Lo
66e0d92de5
[ruby/irb] Avoid completing empty input
...
(https://github.com/ruby/irb/pull/832 )
The candidate list for empty input is all methods + all variables +
all constants + all keywords. It's a long list that is not useful.
https://github.com/ruby/irb/commit/812dc2df7b
2024-01-03 13:47:51 +00:00
Kevin Newton
23beceedb7
[ruby/prism] IndexTargetNode should always have ATTRIBUTE_WRITE
...
Because this is a user-facing change, we also need to deal with the
fact that CRuby 3.3.0 was just released.
In order to support workflows that want to parse exactly as CRuby
parses in a specific version, this PR introduces a new option to
the options struct that is "version". This allows you to specify
that you want "3.3.0" parsing.
I'm not sure if this is the correct solution. Another solution is
to just fork and keep around the old branch for security patches.
Or we could keep around a copy of the source files within this
repository as another directory and only update when necessary.
There are a lot of potential solutions here.
Because this change is so small and the check for it is so minimal,
I've decided to go with this enum. If this ends up entirely
cluttering the codebase with version checks, we'll come up with
another solution. But for now this works, so we're going to go in
this direction for a bit until we determine it's no longer working.
https://github.com/ruby/prism/commit/d8c7e6bd10
2024-01-02 18:51:18 +00:00
Stan Lo
676748abca
[ruby/irb] Make show_source resolve top-level constant names
...
(https://github.com/ruby/irb/pull/831 )
https://github.com/ruby/irb/commit/5843616c78
2024-01-01 17:40:38 +00:00
tomoya ishida
c0e3c3b6fe
[ruby/irb] Fix display_document params in noautocomplete mode
...
(https://github.com/ruby/irb/pull/826 )
* Fix display_document params in noautocomplete mode
* Fix wrong preposing and target order in display_document
The fixed wrong-ordered value is not used in RegexpCompletor, so this change does not affect the test.
https://github.com/ruby/irb/commit/08208adb5e
2024-01-01 13:57:15 +00:00
Nobuyoshi Nakada
569a06aa2f
[ruby/rdoc] Allow empty name rdoc-ref as a local link
...
https://github.com/ruby/rdoc/commit/914a6af137
2023-12-31 15:19:50 +00:00
Nobuyoshi Nakada
5fd1738148
[ruby/securerandom] Update file list to package
...
https://github.com/ruby/securerandom/commit/647e5f0af8
2023-12-29 16:10:30 +00:00
tomoya ishida
6f33e3c53d
[ruby/reline] Revert kill_ring.rb file permission
...
(https://github.com/ruby/reline/pull/623 )
https://github.com/ruby/reline/commit/38e9cb2899
2023-12-29 08:23:28 +00:00
Alexander Momchilov
bc3b9356b2
[ruby/reline] Replace `object_id` comparison with `equal?`
...
(https://github.com/ruby/reline/pull/617 )
https://github.com/ruby/reline/commit/63deef4ae5
2023-12-29 04:05:28 +00:00
Blake Imsland
e86b4c29fc
[ruby/securerandom] Increase speed of UUID generation
...
https://github.com/ruby/securerandom/commit/b587b8c7cb
2023-12-29 02:43:45 +00:00
Nobuyoshi Nakada
96c6b9384c
[DOC] Remove lib/io.rb only for document of ruby/etc
2023-12-27 12:59:01 +09:00
Hiroshi SHIBATA
50b783ccac
[ruby/syntax_suggest] Typofix by misspell
...
https://github.com/ruby/syntax_suggest/commit/66e1cf0b3e
2023-12-26 02:10:25 +00:00
Hiroshi SHIBATA
1966a61a1e
Merge RubyGems-3.6.0.dev and Bundler-2.6.0.dev from master branch
2023-12-25 21:12:49 +09:00
David Rodríguez
df941aa90d
[ruby/resolv] Fix typo
...
https://github.com/ruby/resolv/commit/5dfdcfb7c7
2023-12-25 21:12:49 +09:00
Burdette Lamar
5384e5dfde
[ruby/irb] Remove dead doc ( https://github.com/ruby/irb/pull/819 )
...
https://github.com/ruby/irb/commit/2d5a1afdf5
2023-12-25 21:12:49 +09:00
Earlopain
86fa418dea
[ruby/ipaddr] Consider IPv4-mapped IPv6 addresses link local/loopback if IPV4 address is private
...
Same as #57
https://github.com/ruby/ipaddr/commit/d56acecb80
2023-12-25 21:12:49 +09:00
Luke Randall
da77c79d80
[ruby/ipaddr] Fix regressions in exception messages
...
Changes introduced by 09edfd4 have broken some exception
messages, and added the address as an unnecessary
suffix in others.
https://github.com/ruby/ipaddr/commit/74a043109c
2023-12-25 21:12:49 +09:00
Kasumi Hanazuki
eb53131367
[ruby/ipaddr] ntop: Measure address size in bytes
...
`IPAddr.ntop` takes the binary representation of an IP address, whose
length should be 4 or 16 *bytes* (not characters/codepoints).
The current implementation accepts strings in any encoding, but for
some values in non-BINARY encoding, it fails proper length check and
raises an `AddressFamilyError`. Since passing strings in a multibyte
encoding has never worked correctly for years, this patch makes it an
explicit error with an `InvalidAddressError`.
Fixes: https://github.com/ruby/ipaddr/issues/56
https://github.com/ruby/ipaddr/commit/a33fd14d4a
2023-12-25 21:12:49 +09:00
Hiroshi SHIBATA
6931222883
[ruby/securerandom] Typofix by misspell
...
https://github.com/ruby/securerandom/commit/e8be08901a
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
3d40f11564
[ruby/tempfile] [DOC] Missing documents
...
https://github.com/ruby/tempfile/commit/6932d6bc6f
2023-12-25 21:12:49 +09:00