Commit graph

14659 commits

Author SHA1 Message Date
Martin Emde
098d97e96d [rubygems/rubygems] Quote Etag in If-None-Match header of compact index request
d26bcd7551
2024-01-05 02:06:58 +00:00
Takashi Kokubun
5ff1524fde [ruby/erb] Version 4.0.4
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)

90155fd0d9
2024-01-04 11:53:06 +00:00
hyuraku
577bc8254e [rubygems/rubygems] remove useless comments from unpack_command.rb
7576c21295
2024-01-04 00:39:54 +00:00
Kevin Newton
3a3fcf56d0 [ruby/prism] Fix rational when parsing non decimal integer
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.

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.

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)

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.

08208adb5e
2024-01-01 13:57:15 +00:00
Nobuyoshi Nakada
569a06aa2f [ruby/rdoc] Allow empty name rdoc-ref as a local link
914a6af137
2023-12-31 15:19:50 +00:00
Nobuyoshi Nakada
5fd1738148 [ruby/securerandom] Update file list to package
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)

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)

63deef4ae5
2023-12-29 04:05:28 +00:00
Blake Imsland
e86b4c29fc [ruby/securerandom] Increase speed of UUID generation
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
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
5dfdcfb7c7
2023-12-25 21:12:49 +09:00
Burdette Lamar
5384e5dfde [ruby/irb] Remove dead doc (https://github.com/ruby/irb/pull/819)
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

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.

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

a33fd14d4a
2023-12-25 21:12:49 +09:00
Hiroshi SHIBATA
6931222883 [ruby/securerandom] Typofix by misspell
e8be08901a
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
3d40f11564 [ruby/tempfile] [DOC] Missing documents
6932d6bc6f
2023-12-25 21:12:49 +09:00
Sutou Kouhei
60e46926ba [ruby/csv] Bump version
0cba3e766d
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
bf2532f039 [ruby/etc] [DOC] Add empty io.rb for IO#pathconf to satisfy the coverage
0353d7c8ee
2023-12-25 21:12:49 +09:00
Mark Young
1e1da75031 [ruby/timeout] Provide a 'Changelog' link on rubygems.org/gems/timeout
By providing a 'changelog_uri' in the metadata of the gemspec
a 'Changelog' link will be shown on https://rubygems.org/gems/timeout
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/

47a6f0313b
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
bb6cf76362 [ruby/timeout] [DOC] Missing documents
301ad4cfdc
2023-12-25 21:12:49 +09:00
Mark Young
24e0f6fcab [ruby/net-protocol] Provide a 'Changelog' link on rubygems.org/gems/net-protocol
By providing a 'changelog_uri' in the metadata of the gemspec
a 'Changelog' link will be shown on https://rubygems.org/gems/net-protocol
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/

46e78a2a0a
2023-12-25 21:12:49 +09:00
Mark Young
da06c09725 [ruby/base64] Provide a 'Changelog' link on rubygems.org/gems/base64
By providing a 'changelog_uri' in the metadata of the gemspec
a 'Changelog' link will be shown on https://rubygems.org/gems/base64
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/

7cab043d67
2023-12-25 21:12:49 +09:00
Martin Emde
df11b3daf8 [rubygems/rubygems] Let the guards have some space to breathe
73f1609715
2023-12-25 21:12:49 +09:00
Martin Emde
56804ddd2b [rubygems/rubygems] Use a mutex around Checksum::Store @store access
Not wrapping to_lock since access to it is single threaded and
read-only at the time of writing the lockfile.

3b53aa1b12
2023-12-25 21:12:49 +09:00
Hiroshi SHIBATA
5b8e685877 [ruby/rdoc] Typofix by misspell
6231b03476
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
e324953090 [ruby/rdoc] Fix support for rb_file_const and rb_curses_define_const
Constant definitions using these functions have been supported, but
since RDoc::Parser::C#gen_const_table did not consider other than
`rb_define_const` the documents for them have not been found, without
`Document-const` direvtive.

Fixes https://github.com/ruby/rdoc/issues/1067

cdad51a60b
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
e55a57af1e [ruby/optparse] [DOC] Add missing documents
324ff21f04
2023-12-25 21:12:49 +09:00
Hiroshi SHIBATA
27ead9907d
Typofix under lib and test, tool directories 2023-12-25 11:32:42 +09:00
Akinori MUSHA
c66ff6face [ruby/set] Bump version to 1.1.0
d6cab5bcc8
2023-12-23 16:50:33 +09:00
Akinori MUSHA
67882d7695 [ruby/set] Use the pattern argument instead of a block
c63047c2ce
2023-12-23 16:50:31 +09:00
Akinori MUSHA
6fc3171e8a [ruby/set] The arity of initialize_clone is -1 in Ruby >= 3
32a9689696
2023-12-23 16:50:30 +09:00
Akinori MUSHA
271c74a473 [ruby/set] Drop support for Ruby 2
64dad673d8
2023-12-23 16:50:29 +09:00
Takashi Kokubun
ef06510265 RJIT: Prefer STDERR over $stderr
When $stderr is redirected, you'll have no way to see why RJIT got
broken. This reference must always be the actual stderr.
2023-12-22 21:48:26 -08:00
Hiroshi SHIBATA
7d7a84e99f Merge RubyGems-3.5.3 and Bundler-2.5.3 2023-12-23 09:34:26 +09:00
Takashi Kokubun
19d082dcfa RJIT: Distinguish Pointer with Array
This is more convenient for accessing those fields.
2023-12-22 11:24:04 -08:00
Takashi Kokubun
f263e44746 RJIT: Avoid retaining unrelated local variables in memory 2023-12-21 23:00:18 -08:00
Takashi Kokubun
f3c82df944 RJIT: Minimize string allocations in InsnCompiler 2023-12-21 21:59:33 -08:00
Takashi Kokubun
9a3c49ee5d RJIT: Convert opt_case_dispatch keys with #to_value
comptime_key is a Ruby object and the value is not valid in machine code.

This PR also implements `CMP r/m64, imm32 (Mod 01: [reg]+disp8)` that is
now needed for running mail.gem benchmark.
2023-12-21 17:47:36 -08:00
Takashi Kokubun
3c18277629 RJIT: Clean up unnecessary documentation 2023-12-21 16:47:13 -08:00
Takashi Kokubun
18a97affa3 RJIT: Fix a wrong comparison in set_local_type 2023-12-21 16:45:37 -08:00
Takashi Kokubun
68bcca4c2b RJIT: Fix unwanted shadowing in set_local_type
local_idx should not be overwritten.
2023-12-21 15:48:37 -08:00
Hiroshi SHIBATA
82496f2b38 Merge RubyGems-3.5.2 and Bundler-2.5.2 2023-12-22 07:24:04 +09:00