David Rodríguez
279dcfab7a
[rubygems/rubygems] Fix standalone install crashing when using legacy multi remote gemfiles
...
If a legacy multi remote Gemfile depends transitively on a default gem,
then in standalone mode we'd fail to fetch the proper version from the
source that includes it, since we were adding it to `specs` (instead of
`remote_specs`), which was already including the default version of the
gem, and thus preventing the remote version from "overwriting that" and
being added to the index. We should add it to the `remote_specs` index
directly instead.
https://github.com/rubygems/rubygems/commit/05f4f9dfc0
2023-08-28 11:15:33 +09:00
Martin Emde
7bf5f78028
[rubygems/rubygems] Refactor Fetcher#api_fetcher? and fetcher loading logic
...
https://github.com/rubygems/rubygems/commit/f664d60114
2023-08-28 11:15:32 +09:00
Nobuyoshi Nakada
0c9d0684e1
YARP: generated files using from templates depend on config.yml
2023-08-28 09:51:55 +09:00
Burdette Lamar
1cc700907d
[DOC] More on method exec ( #8302 )
2023-08-27 13:39:18 -04:00
Benoit Daloze
5937d01f7f
[ruby/yarp] Rename constant pool fields to name or operator
...
* `constant_id` and `operator_id` are confusing.
* See https://github.com/ruby/yarp/issues/1296
https://github.com/ruby/yarp/commit/09d0a144df
2023-08-27 16:18:15 +00:00
Benoit Daloze
412e586afe
[ruby/yarp] Fix paths in library_symbols_test.rb
...
https://github.com/ruby/yarp/commit/b5fba6d63f
2023-08-27 16:18:15 +00:00
Nobuyoshi Nakada
78c5bb1136
Remove duplicate #include <string.h>
[ci skip]
2023-08-27 23:21:20 +09:00
Peter Zhu
b7237e3bbd
Free all empty heap pages in Process.warmup
...
This commit adds `free_empty_pages` which frees all empty heap pages and
moves the number of pages freed to the allocatable pages counter. This
is used in Process.warmup to improve performance because page
invalidation from copy-on-write is slower than allocating a new page.
2023-08-27 09:39:29 -04:00
Nobuyoshi Nakada
5c98ee02d2
Define bounds-checking interfaces macro for each file
2023-08-27 00:12:03 +09:00
Peter Zhu
a97dedf761
[ruby/irb] Fix deprecation test when ran multiple times
...
(https://github.com/ruby/irb/pull/695 )
https://github.com/ruby/irb/commit/ae0e5bb80f
2023-08-26 13:56:51 +00:00
Peter Zhu
9ea9f99248
[Feature #19785 ] Deprecate RUBY_GC_HEAP_INIT_SLOTS
...
This environment variable is replaced by
`RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS`, so it doesn't make sense to keep it.
2023-08-25 21:50:56 -04:00
git
487d91fde1
Update default gems list at e2b8eac767d41734520377b5cf6f44 [ci skip]
2023-08-26 00:22:09 +00:00
Kevin Newton
e2b8eac767
[ruby/yarp] Bump to version 0.9.0
...
https://github.com/ruby/yarp/commit/b327e39527
2023-08-26 00:20:44 +00:00
Nobuyoshi Nakada
b054c2fe06
[Bug #19784 ] Fix behaviors against prefix with broken encoding
...
- String#start_with?
- String#delete_prefix
- String#delete_prefix!
2023-08-26 08:58:02 +09:00
Nobuyoshi Nakada
808b067088
Split string tests
2023-08-26 08:58:02 +09:00
Nobuyoshi Nakada
00ac3a64ba
Introduce at_char_boundary
function
2023-08-26 08:58:02 +09:00
yui-knk
cfdbbd6726
kw_rest_arg nd_cflag has not been used since 9720136
2023-08-26 08:45:02 +09:00
Takashi Kokubun
96a809f621
Use require_relative in JSON tests
...
to prevent them from conflicting with yarp/test_helper
2023-08-25 15:32:14 -07:00
Zack Deveau
480aee4363
Add Missing Counters to rb_debug_counter_type
enum ( #8297 )
...
Add missing counters to rb_debug_counter_type enum
On master we have calls to the RB_DEBUG_COUNTER_INC macro
for counters that are not getting defined in the
rb_debug_counter_type enum.
This commit adds those that are missing in order for
compilation to pass with -DUSE_RUBY_DEBUG_LOG.
2023-08-25 15:27:56 -07:00
Kevin Newton
00ec8dedb1
Update deps
2023-08-25 18:20:51 -04:00
Kevin Newton
293959a745
Remove config.h from targets necessary for YARP
2023-08-25 18:20:51 -04:00
Kevin Newton
ca9a44795b
Remove version templating in YARP
2023-08-25 18:20:51 -04:00
Kevin Newton
aea7e91828
Fix sync script for YARP
2023-08-25 18:20:51 -04:00
Samuel Williams
b2d1c720ec
Add documentation regarding how to build Ruby for debugging. ( #8290 )
...
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-08-26 09:59:45 +12:00
Kevin Newton
439f069b4b
[ruby/yarp] Move tests from test/* to test/yarp/* to match CRuby
...
This should make it easier on the sync to determine what changed
and hopefully result in fewer merge conflicts that have to be
manually resolved.
https://github.com/ruby/yarp/commit/17d82afbfc
2023-08-25 21:15:49 +00:00
Kevin Newton
9b8602dd90
[ruby/yarp] Introduce parse_lex instead of asking for a block
...
https://github.com/ruby/yarp/commit/7e70339fe1
2023-08-25 21:10:19 +00:00
Kevin Newton
76512d78fc
[ruby/yarp] Rename Location#to to Location#join, include checks
...
https://github.com/ruby/yarp/commit/de8924e3ec
2023-08-25 21:10:17 +00:00
Kevin Newton
4813887694
[ruby/yarp] Accept a block to parse and parse_file to get lexer output as well
...
https://github.com/ruby/yarp/commit/40fbf61a8d
2023-08-25 21:10:17 +00:00
Kevin Newton
0c1a749eef
[ruby/yarp] Fix nested multi assignment locations
...
https://github.com/ruby/yarp/commit/9a65f002dc
2023-08-25 21:10:16 +00:00
Kevin Newton
20cf9e3ae8
[ruby/yarp] Add a Location#to method for combining them
...
https://github.com/ruby/yarp/commit/1db2de98ac
2023-08-25 21:10:15 +00:00
Kevin Newton
55a8add304
[ruby/yarp] Fix rational parsing
...
https://github.com/ruby/yarp/commit/c8f31eb5b6
2023-08-25 21:10:15 +00:00
Kevin Newton
a31b069a8a
[ruby/yarp] Track block opening and closing locations
...
https://github.com/ruby/yarp/commit/7984e4ddc7
2023-08-25 21:10:13 +00:00
Kevin Newton
b9a2c96747
[ruby/yarp] Ensure interpolated symbols converted to regular symbols get opening and closing
...
https://github.com/ruby/yarp/commit/386655d54f
2023-08-25 21:10:13 +00:00
Kevin Newton
b112e89bb1
[ruby/yarp] Add closing_loc to WhileNode
...
https://github.com/ruby/yarp/commit/b4132b876d
2023-08-25 21:10:12 +00:00
Kevin Newton
df11a08d93
[ruby/yarp] Add closing_loc to UntilNode
...
https://github.com/ruby/yarp/commit/4362cecc2c
2023-08-25 21:10:11 +00:00
Kevin Newton
74780c3e7f
[ruby/yarp] Call shorthand should not result in a message location
...
https://github.com/ruby/yarp/commit/ad0f9d35e3
2023-08-25 21:10:10 +00:00
Kevin Newton
85c8e8b9bd
Fix VPATH for yarp/version.h
2023-08-25 15:53:01 -04:00
Kevin Newton
934552618e
[ruby/yarp] Fix relative require for version in YARP gemspec
...
https://github.com/ruby/yarp/commit/ca8e8cfa0d
2023-08-25 19:48:51 +00:00
Kevin Newton
a7c7cd11bc
Update sync script to handle yarp/version.h
2023-08-25 15:47:25 -04:00
Kevin Newton
2e29bd6ce0
[ruby/yarp] Use .rb suffix to find version file
...
https://github.com/ruby/yarp/commit/7c530c79c2
2023-08-25 19:43:49 +00:00
Kevin Newton
d2392e1ce2
[ruby/yarp] Fix relative require in template script
...
https://github.com/ruby/yarp/commit/dea9eb5a12
2023-08-25 19:43:10 +00:00
Benoit Daloze
f603497105
[ruby/yarp] Use templating to avoid duplicating the YARP version in many places
...
https://github.com/ruby/yarp/commit/9c359fd92e
2023-08-25 19:37:17 +00:00
Kevin Newton
dd07b70253
Fix mutation visitor build for YARP templating
2023-08-25 15:33:14 -04:00
Kevin Newton
0df515c095
[ruby/yarp] Mark local variable targets in pattern matching
...
https://github.com/ruby/yarp/commit/6c6700a001
2023-08-25 19:31:33 +00:00
Kevin Newton
7898b8e1ea
[ruby/yarp] Provide target node versions
...
https://github.com/ruby/yarp/commit/a026564d38
2023-08-25 19:31:31 +00:00
Kevin Newton
aeef709109
[ruby/yarp] Split up parse_target and parse_write
...
https://github.com/ruby/yarp/commit/75d8bb93ea
2023-08-25 19:31:31 +00:00
Kevin Newton
2ebaf077f6
[ruby/yarp] Provide a desugar visitor
...
https://github.com/ruby/yarp/commit/9fad513089
2023-08-25 19:31:30 +00:00
Kevin Newton
a38ca45b65
[ruby/yarp] Split up AndWriteNode, OrWriteNode, OperatorWriteNode
...
https://github.com/ruby/yarp/commit/6d3b3b5776
2023-08-25 19:31:28 +00:00
Kevin Newton
649aba28f4
[ruby/yarp] Add Node#copy and MutationVisitor
...
https://github.com/ruby/yarp/commit/3693091661
2023-08-25 19:31:28 +00:00
Kevin Newton
3b9085ad24
[ruby/yarp] Lambda params should not accept blocks
...
https://github.com/ruby/yarp/commit/706daae0ac
2023-08-25 19:11:24 +00:00