79677 Commits

Author SHA1 Message Date
Stan Lo
6ed1a504d4 [ruby/irb] irb:rdbg cleanups (https://github.com/ruby/irb/pull/697)
* Remove unused method and constant from IRB::Debug

* Update comments

https://github.com/ruby/irb/commit/98914a963c
2023-08-29 12:54:25 +00:00
Stan Lo
0cfb779692 [ruby/irb] Fix test warnings (https://github.com/ruby/irb/pull/698)
* Encoding should be saved before creating Irb objects

* Fix unused local warning

https://github.com/ruby/irb/commit/036ec31034
2023-08-29 12:48:33 +00:00
Samuel Williams
f0b43597ff
[DOC] Improved documentation. (#8319) 2023-08-29 23:53:28 +12:00
Petrik
cfae3ed422 Fix code example doc for Random.alphanumeric 2023-08-29 19:48:28 +09:00
Nobuyoshi Nakada
247fa3ca76
[DOC] Remove typo 2023-08-29 19:40:52 +09:00
Samuel Williams
e46e48d690
Expose rb_process_status_wait and hide rb_process_status_waitv. (#8316) 2023-08-29 22:24:55 +12:00
git
0744da1b3b Update default gems list at 5ed42c980067d1e9970cfe2b5bc052 [ci skip] 2023-08-29 09:16:36 +00:00
Sutou Kouhei
5ed42c9800
Development of 3.0.9 started. 2023-08-29 18:15:05 +09:00
Sutou Kouhei
0a219ef44a
jruby: Add StringIO::VERSION (#59)
Fixes GH-57
2023-08-29 18:15:05 +09:00
Kevin Newton
13ed1d7b60
[ruby/yarp] Remove unnecessary NUL byte in string
https://github.com/ruby/yarp/commit/af867e35b1
2023-08-29 18:15:05 +09:00
Stan Lo
221c2d0e19
[ruby/irb] Print deprecation message for prompt_n methods
(https://github.com/ruby/irb/pull/691)

They were removed in #685, but we should still keep them to avoid breaking
changes to tools like Chef.

533ff08947/lib/chef/shell.rb (L138)

https://github.com/ruby/irb/commit/b585e0c835
2023-08-29 18:15:05 +09:00
Summer ☀️
0cd92819c9
[ruby/irb] Remove unused PROMPT_N
(https://github.com/ruby/irb/pull/685)

https://github.com/ruby/irb/commit/66e69fa0dc
2023-08-29 18:15:05 +09:00
Nobuyoshi Nakada
9126dd4b0e
Enable jobserver mode in submake [ci skip]
Filter out `-j` option not to reset jobserver mode which is enabled by
the environment variable.
2023-08-29 18:01:19 +09:00
Kouhei Yanagita
a28c5151f5 Fix Array#bsearch when block returns a non-integer numeric value 2023-08-29 18:00:44 +09:00
Hiroshi SHIBATA
f16c50772c [rubygems/rubygems] rubocop -a
https://github.com/rubygems/rubygems/commit/f240bfad2a
2023-08-29 17:41:41 +09:00
Hiroshi SHIBATA
5e81127c1b
Fixed broken -a option behavior 2023-08-29 17:41:26 +09:00
Samuel Williams
901b6d9c50
Validate the typed data before dereferencing the internal struct. (#8315) 2023-08-29 20:04:14 +12:00
Hiroshi SHIBATA
141102b0b0 Expose Test.filter_backtrace for the default gems. 2023-08-29 15:05:30 +09:00
Hiroshi SHIBATA
589cd0e511
[DOC] Mention about https://bugs.ruby-lang.org/issues/19776 2023-08-29 14:17:23 +09:00
Nobuyoshi Nakada
c0e913ae88
[DOC] Link method name references 2023-08-29 13:52:18 +09:00
Nobuyoshi Nakada
7e5c662a6f
[Feature #18183] Add chars: option to Random#alphanumeric 2023-08-29 10:56:56 +09:00
Nobuyoshi Nakada
c4fc9477aa
sync_default_gems.rb: Continue if files added to the toplevel removed 2023-08-29 10:20:52 +09:00
Nobuyoshi Nakada
a6db6b150f
sync_default_gems.rb: Split sync_default_gems_with_commits 2023-08-29 09:22:28 +09:00
yui-knk
c02f978fd5 Lrama v0.5.5 2023-08-29 08:26:18 +09:00
Peter Zhu
fd0df1f8c6 Fix growth in minor GC when we have initial slots
If initial slots is set, then during a minor GC, if we have allocatable
pages but the heap is mostly full, then we will set `grow_heap` to true
since `total_slots` does not count allocatable pages so it will be less
than `init_slots`. This can cause `allocatable_pages` to grow to much
higher than desired since it will appear that the heap is mostly full.
2023-08-28 18:01:29 -04:00
Peter Zhu
5485680244 Expose RVALUE_OLD_AGE in GC::INTERNAL_CONSTANTS 2023-08-28 18:01:29 -04:00
Alan Wu
85aa28e8a6 RJIT: Remove Type::CArray and limit use of Type::CString
See previous similar YJIT commit.
2023-08-28 17:14:33 -04:00
Alan Wu
23c83d172c YJIT: Remove Type::CArray and limit use of Type::CString
These types are essentially claims about what `RBASIC_CLASS(obj)`
returns. The field changes with singleton class creation, but we didn't
consider so previously and elided guards where we actually needed them.

Found running ruby/spec with --yjit-verify-ctx. The assertion interface
makes extensive use of singleton classes.
2023-08-28 17:14:33 -04:00
Jemma Issroff
3b815ed7da
Add yarp/yarp_compiler.c (#8042)
* Add yarp/yarp_compiler.c as stencil for compiling YARP

This commit adds yarp/yarp_compiler.c, and changes the sync script
to ensure that yarp/yarp_compiler.c will not get overwritten

* [Misc #119772] Create and expose RubyVM::InstructionSequence.compile_yarp

This commit creates the stencil for a compile_yarp function, which
we will continue to fill out. It allows us to check the output
of compiled YARP code against compiled code without using YARP.
2023-08-28 13:55:58 -07:00
Nathan Froyd
f726ad9740 [ruby/yarp] use memcmp for block memory comparison
https://github.com/ruby/yarp/commit/3563e5c5d5
2023-08-28 20:00:25 +00:00
Nathan Froyd
325240d0b6 [ruby/yarp] make node.c generated code more readable
https://github.com/ruby/yarp/commit/0ffd61c87a
2023-08-28 20:00:15 +00:00
Peter Zhu
91de37c23e Remove --disable-gems in assert_in_out_err
assert_in_out_err adds --disable=gems so we don't need to add
--disable-gems in the args list.
2023-08-28 15:05:19 -04:00
Samuel Williams
caf48487ca
Restore HAVE_RB_IO_T macro for compatibility with kgio, unicorn, etc. (#8286) 2023-08-28 21:50:05 +09:00
Mike Dalessio
9b87518ea0 [ruby/yarp] fix: %I list spanning a heredoc
Similar to the previous %W fix, we accept a symbol node and
concatenate it onto an interpolated symbol.

https://github.com/ruby/yarp/commit/6b5911b95e
2023-08-28 12:37:31 +00:00
Mike Dalessio
29c5b85128 [ruby/yarp] fix: %i list spanning a heredoc
The fix here is similar to what we did in a previous commit for %w, to
accept two consecutive string tokens without a separator.

https://github.com/ruby/yarp/commit/f869fbdbe5
2023-08-28 12:37:30 +00:00
Mike Dalessio
74812df496 [ruby/yarp] fix: %W list spanning a heredoc
Primarily this fix is to accept a string node and concatenate it onto
an interpolated string.

https://github.com/ruby/yarp/commit/6df729fe72
2023-08-28 12:37:30 +00:00
Mike Dalessio
77e971b6ec [ruby/yarp] fix: %w list spanning a heredoc
Two fixes were necessary:

- ensure we are handling newlines correctly
- accept two consecutive string tokens without a separator

https://github.com/ruby/yarp/commit/4e707937cb

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2023-08-28 12:37:29 +00:00
Mike Dalessio
8926fd20f6 [ruby/yarp] test: backfill tests for %q/%Q spanning a heredoc
Also rename the fixture file

https://github.com/ruby/yarp/commit/c148d955fd
2023-08-28 12:37:28 +00:00
Mike Dalessio
2b9a053740 [ruby/yarp] fix: yp_interpolated_symbol_node_append
Made this function's behavior match the interpolated_string
implementation.

Previously, the start location was not set and left as 0.

https://github.com/ruby/yarp/commit/87f348889f
2023-08-28 12:37:28 +00:00
Mike Dalessio
06f5d8f3a0 [ruby/yarp] Improve how we declare ripper exceptions in parse_test.rb
Specific files are named earlier in the block, and we now have the
ability to skip just the lex matching, or skip ripper entirely (for
files that don't parse).

https://github.com/ruby/yarp/commit/dcd3806dca
2023-08-28 12:37:28 +00:00
Nobuyoshi Nakada
00439dbdb4
sync_default_gems.rb: convert keys of REPOSITORIES to strings
Referencing always after conversion to a symbol, and yielded gem name
is always converted to a string.
2023-08-28 17:52:50 +09:00
Takashi Kokubun
4963dd6b64 Revert racc auto-sync support
It's no longer a default gem actually.
Fixed the webhook side instead
3c27d860b4.
2023-08-28 01:14:58 -07:00
Takashi Kokubun
f5da7c379b Ignore test/regress/ for racc 2023-08-28 01:10:24 -07:00
Takashi Kokubun
94275d96a8 Add missing racc support to sync_default_gems 2023-08-28 00:50:49 -07:00
Takashi Kokubun
4221d9695d Sort repository names in sync_default_gems 2023-08-28 00:50:19 -07:00
Imir Kiyamov
23eb13d49d [rubygems/rubygems] Fixed malformed lockfile version on installing
https://github.com/rubygems/rubygems/commit/c969a192bf
2023-08-28 07:41:51 +00:00
Jun Aruga
b0ec1db8a7 [ruby/openssl] ossl_pkey.c: Workaround: Decode with non-zero selections.
This is a workaround for the decoding issue in ossl_pkey_read_generic().
The issue happens in the case that a key management provider is different from
a decoding provider.

Try all the non-zero selections in order, instead of selection 0 for OpenSSL 3
to avoid the issue.

https://github.com/ruby/openssl/commit/db688fa739
2023-08-28 12:05:33 +09:00
Jun Aruga
69d9fda9f5 [ruby/openssl] Remove the pending logics by the pend_on_openssl_issue_21493.
Because we will add a workaround to avoid this issue.

https://github.com/ruby/openssl/commit/d157ba1d3b
2023-08-28 12:05:32 +09:00
David Rodríguez
80f35d96ae [rubygems/rubygems] Don't check for circular deps on full index sources
https://github.com/rubygems/rubygems/commit/d275cdccb1
2023-08-28 11:15:34 +09:00
David Rodríguez
2edf9fa23a [rubygems/rubygems] Remove redundant checks
https://github.com/rubygems/rubygems/commit/d66815633b
2023-08-28 11:15:34 +09:00