summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-08-29[ruby/yarp] Add instance variable names to the constant poolKevin Newton
https://github.com/ruby/yarp/commit/f049932c44
2023-08-29Tests for the YARP compilerKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/8323
2023-08-29[ruby/yarp] Statements inside ensure blocks can accept blocksKevin Newton
https://github.com/ruby/yarp/commit/be84ea5343
2023-08-29[ruby/irb] Improve help/show_cmds message during debuggerStan Lo
integration (https://github.com/ruby/irb/pull/693) * `help` should display debugger's help during irb:rdbg session * Update `show_cmds`'s output when in irb:rdbg session https://github.com/ruby/irb/commit/4029c2e564
2023-08-29[ruby/irb] Add --nomultiline indent and prompt testtomoya ishida
(https://github.com/ruby/irb/pull/699) https://github.com/ruby/irb/commit/9b4aea753b
2023-08-29[ruby/irb] Fix test warnings (https://github.com/ruby/irb/pull/698)Stan Lo
* Encoding should be saved before creating Irb objects * Fix unused local warning https://github.com/ruby/irb/commit/036ec31034
2023-08-29jruby: Add StringIO::VERSION (#59)Sutou Kouhei
Fixes GH-57
2023-08-29[ruby/irb] Print deprecation message for prompt_n methodsStan Lo
(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. https://github.com/chef/chef/blob/533ff089479763f29045e4e6ddf388b73fc99338/lib/chef/shell.rb#L138 https://github.com/ruby/irb/commit/b585e0c835
2023-08-29[ruby/irb] Remove unused `PROMPT_N`Summer ☀️
(https://github.com/ruby/irb/pull/685) https://github.com/ruby/irb/commit/66e69fa0dc
2023-08-29Fix Array#bsearch when block returns a non-integer numeric valueKouhei Yanagita
Notes: Merged: https://github.com/ruby/ruby/pull/8314
2023-08-29Validate the typed data before dereferencing the internal struct. (#8315)Samuel Williams
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2023-08-29[Feature #18183] Add `chars:` option to `Random#alphanumeric`Nobuyoshi Nakada
2023-08-28Fix growth in minor GC when we have initial slotsPeter Zhu
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. Notes: Merged: https://github.com/ruby/ruby/pull/8310
2023-08-28Remove --disable-gems in assert_in_out_errPeter Zhu
assert_in_out_err adds --disable=gems so we don't need to add --disable-gems in the args list. Notes: Merged: https://github.com/ruby/ruby/pull/8303
2023-08-28[ruby/yarp] fix: %I list spanning a heredocMike Dalessio
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[ruby/yarp] fix: %i list spanning a heredocMike Dalessio
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[ruby/yarp] fix: %W list spanning a heredocMike Dalessio
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[ruby/yarp] fix: %w list spanning a heredocMike Dalessio
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[ruby/yarp] test: backfill tests for %q/%Q spanning a heredocMike Dalessio
Also rename the fixture file https://github.com/ruby/yarp/commit/c148d955fd
2023-08-28[ruby/yarp] Improve how we declare ripper exceptions in parse_test.rbMike Dalessio
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[ruby/openssl] Remove the pending logics by the pend_on_openssl_issue_21493.Jun Aruga
Because we will add a workaround to avoid this issue. https://github.com/ruby/openssl/commit/d157ba1d3b
2023-08-27[ruby/yarp] Fix paths in library_symbols_test.rbBenoit Daloze
https://github.com/ruby/yarp/commit/b5fba6d63f
2023-08-27Free all empty heap pages in Process.warmupPeter Zhu
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. Notes: Merged: https://github.com/ruby/ruby/pull/8257
2023-08-26[ruby/irb] Fix deprecation test when ran multiple timesPeter Zhu
(https://github.com/ruby/irb/pull/695) https://github.com/ruby/irb/commit/ae0e5bb80f
2023-08-25[Feature #19785] Deprecate RUBY_GC_HEAP_INIT_SLOTSPeter Zhu
This environment variable is replaced by `RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS`, so it doesn't make sense to keep it. Notes: Merged: https://github.com/ruby/ruby/pull/8147
2023-08-26[Bug #19784] Fix behaviors against prefix with broken encodingNobuyoshi Nakada
- String#start_with? - String#delete_prefix - String#delete_prefix! Notes: Merged: https://github.com/ruby/ruby/pull/8296
2023-08-26Split string testsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8296
2023-08-25Use require_relative in JSON testsTakashi Kokubun
to prevent them from conflicting with yarp/test_helper
2023-08-25Remove version templating in YARPKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/8298
2023-08-25[ruby/yarp] Move tests from test/* to test/yarp/* to match CRubyKevin Newton
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[ruby/yarp] Introduce parse_lex instead of asking for a blockKevin Newton
https://github.com/ruby/yarp/commit/7e70339fe1
2023-08-25[ruby/yarp] Fix nested multi assignment locationsKevin Newton
https://github.com/ruby/yarp/commit/9a65f002dc
2023-08-25[ruby/yarp] Fix rational parsingKevin Newton
https://github.com/ruby/yarp/commit/c8f31eb5b6
2023-08-25[ruby/yarp] Track block opening and closing locationsKevin Newton
https://github.com/ruby/yarp/commit/7984e4ddc7
2023-08-25[ruby/yarp] Ensure interpolated symbols converted to regular symbols get ↵Kevin Newton
opening and closing https://github.com/ruby/yarp/commit/386655d54f
2023-08-25[ruby/yarp] Add closing_loc to WhileNodeKevin Newton
https://github.com/ruby/yarp/commit/b4132b876d
2023-08-25[ruby/yarp] Add closing_loc to UntilNodeKevin Newton
https://github.com/ruby/yarp/commit/4362cecc2c
2023-08-25[ruby/yarp] Call shorthand should not result in a message locationKevin Newton
https://github.com/ruby/yarp/commit/ad0f9d35e3
2023-08-25[ruby/yarp] Mark local variable targets in pattern matchingKevin Newton
https://github.com/ruby/yarp/commit/6c6700a001
2023-08-25[ruby/yarp] Provide target node versionsKevin Newton
https://github.com/ruby/yarp/commit/a026564d38
2023-08-25[ruby/yarp] Provide a desugar visitorKevin Newton
https://github.com/ruby/yarp/commit/9fad513089
2023-08-25[ruby/yarp] Split up AndWriteNode, OrWriteNode, OperatorWriteNodeKevin Newton
https://github.com/ruby/yarp/commit/6d3b3b5776
2023-08-25[ruby/yarp] Lambda params should not accept blocksKevin Newton
https://github.com/ruby/yarp/commit/706daae0ac
2023-08-25[ruby/yarp] fix: regexes and strings with escaped newline around a heredocMike Dalessio
Found via the fuzzer. https://github.com/ruby/yarp/commit/501757135a Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2023-08-25[ruby/yarp] Allow whitespace after "(en)coding" before ":", as in "encoding ↵Jemma Issroff
:" https://github.com/ruby/yarp/commit/d39a998182
2023-08-26[Bug #19851] Ripper: Hide internal block argument IDNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8293
2023-08-25[ruby/yarp] Add names to classes and modulesKevin Newton
This should hopefully make it easier to compile these nodes, and also for static analysis tools for having a quick label. https://github.com/ruby/yarp/commit/f086662144
2023-08-25Implement WeakKeyMap using weak referencesPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/8113
2023-08-25Implement WeakMap using weak referencesPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/8113
2023-08-25Expose stats about weak referencesPeter Zhu
[Feature #19783] This commit adds stats about weak references to `GC.latest_gc_info`. It adds the following two keys: - `weak_references_count`: number of weak references registered during the last GC. - `retained_weak_references_count`: number of weak references that survived the last GC. Notes: Merged: https://github.com/ruby/ruby/pull/8113