summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-06-05Don't add `+YJIT` to `RUBY_DESCRIPTION` until it's actually enabledJean Boussier
If you start Ruby with `--yjit-disable`, the `+YJIT` shouldn't be added until `RubyVM::YJIT.enable` is actually called. Otherwise it's confusing in crash reports etc.
2024-06-05[ruby/prism] Parse all regular expressionsKevin Newton
https://github.com/ruby/prism/commit/11e0e204ce
2024-06-05[ruby/prism] Add Onigmo to other gemfilesKevin Newton
https://github.com/ruby/prism/commit/499ec1c3f1
2024-06-05[ruby/prism] Add Onigmo errors for invalid groupsKevin Newton
https://github.com/ruby/prism/commit/27e7685dd4
2024-06-05[ruby/prism] Add Onigmo error for invalid repeat and empty group nameKevin Newton
https://github.com/ruby/prism/commit/953601e3c0
2024-06-05[ruby/prism] Add Onigmo error for empty char-classKevin Newton
https://github.com/ruby/prism/commit/2e02fa3b80
2024-06-05[ruby/prism] Report onigmo errors for depthKevin Newton
https://github.com/ruby/prism/commit/e0e8bba8be
2024-06-05[ruby/irb] Add accidentally dropped disable_irb command backStan Lo
(https://github.com/ruby/irb/pull/964) * Add accidentally dropped disable_irb command back * Sort command files require by name https://github.com/ruby/irb/commit/1d627cebca
2024-06-05[ruby/reline] Refactor input key readingtomoya ishida
(https://github.com/ruby/reline/pull/712) * Add key binding matching status :matching_matched * Simplify read_2nd_character * Add a comment of matching status and EOF * Matching status to a constant * Expand complicated ternary operators to case-when https://github.com/ruby/reline/commit/64deec100b
2024-06-05[ruby/openssl] Fix test_create_with_mac_iter accidently setting keytype not ↵KJ Tsanaktsidis
maciter This test was accidentally passing the value 2048 into the keytype parameter of PKCS12_create, not the mac_iter parameter (because it had one too many `nil`s in the call). This value is invalid, and will make OpenSSL perform an out-of-bounds read which is caught when compiling with ASAN. This commit fixes the tests, and also adds some validation to PKCS12.create to make sure any keytype passed is actually valid. Since there only two valid keytype constants, and the whole feature is an export-grade crypto era thing only ever supported by old MSIE, it seems far more likely that code in the whild is using keytype similarly by mistake rather than as intended. So this validation might catch that. https://github.com/ruby/openssl/commit/47028686d2
2024-06-04[ruby/prism] (parser) mark spanning newlines as incorrectKevin Newton
https://github.com/ruby/prism/commit/09ba678066
2024-06-04[ruby/prism] (parser) split up regexp content by linesKevin Newton
https://github.com/ruby/prism/commit/85b4a5f804
2024-06-04[ruby/prism] (parser) handle quoted symbols in hash patternsKevin Newton
https://github.com/ruby/prism/commit/461aa5e658
2024-06-04[ruby/prism] (parser) mark unary_num_pow_precedence as incorrectKevin Newton
https://github.com/ruby/prism/commit/c49efdf824
2024-06-04[ruby/prism] (parser) fix up nested multi writeKevin Newton
https://github.com/ruby/prism/commit/12e079c97e
2024-06-04[ruby/reline] Ensure no escape sequence before printing prompttomoya ishida
(https://github.com/ruby/reline/pull/716) https://github.com/ruby/reline/commit/f9227b5c89
2024-06-04Revert "Revert "[ruby/reline] Reline::ANSI is general io. Reline::GeneralIO ↵Takashi Kokubun
is not."" This reverts commit 6e84ac2359c8fc8cb686ef4644b9cae26cd5ab9e. Now that the rubygems spec change has been merged, let's try reverting this and fixing it with tompng's new patch.
2024-06-04[ruby/prism] Revert "Revert "Properly destructure procarg0 in parser ↵Kevin Newton
translation"" This reverts commit https://github.com/ruby/prism/commit/d8ae19d0334a. https://github.com/ruby/prism/commit/df1eda2811
2024-06-04Remove dependency on fiddle from test/rubyHiroshi SHIBATA
Co-authored-by: "Nobuyoshi Nakada" <nobu@ruby-lang.org>
2024-06-03Revert "[ruby/reline] Reline::ANSI is general io. Reline::GeneralIO is not."Takashi Kokubun
This reverts commit ba01d15cf5db96933905d669c68f5cc0cd6910b8. It seems to be failing test-bundler-parallel. Reverting it to normalize the CI. We should revert this revert once we figure it out.
2024-06-03[ruby/prism] Revert "Properly destructure procarg0 in parser translation"Kevin Newton
This reverts commit https://github.com/ruby/prism/commit/823e931ff230. https://github.com/ruby/prism/commit/d8ae19d033
2024-06-03[ruby/prism] Properly destructure procarg0 in parser translationKevin Newton
https://github.com/ruby/prism/commit/823e931ff2
2024-06-03[ruby/prism] Update unparser testsKevin Newton
https://github.com/ruby/prism/commit/aee84cf42c
2024-06-03[ruby/prism] Update seattlerb testsKevin Newton
https://github.com/ruby/prism/commit/a255653447
2024-06-03[ruby/prism] Update whitequark testsKevin Newton
https://github.com/ruby/prism/commit/95e2484903
2024-06-03[ruby/reline] Reline::ANSI is general io. Reline::GeneralIO is not.tomoya ishida
(https://github.com/ruby/reline/pull/659) Reline::ANSI has a partial non-tty supporting code. It should be a general io. Reline::Dumb should be only used in testing. https://github.com/ruby/reline/commit/2d6828473d
2024-06-03[ruby/reline] In ed_search_[prev|next]_history, make the cursor comeHiroaki Osawa
to the end of the line when there is no search substr (https://github.com/ruby/reline/pull/714) * In ed_search_prev_history, make the cursor come to the end of the line when there is no search substr * In ed_search_next_history, make the cursor come to the end of the line when there is no search substr * Implemented ActionState to search with empty substr if the previous operation was search with empty string. * Use a simple 2-element array to represent action_state https://github.com/ruby/reline/commit/95ee80bd70
2024-06-03[ruby/reline] Improve key binding match/matching checktomoya ishida
(https://github.com/ruby/reline/pull/709) * Improve key binding match/matching check * Rename key_actors to default_key_bindings * Make key_stroke.expand always return a value * Update add_default_key_binding to use a add_default_key_binding_by_keymap internally Co-authored-by: Stan Lo <stan001212@gmail.com> --------- https://github.com/ruby/reline/commit/353ec236e2 Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-06-02Stop exposing `rb_str_chilled_p`Jean Boussier
[Feature #20205] Now that chilled strings no longer appear as frozen, there is no need to offer an API to check for chilled strings. We however need to change `rb_check_frozen_internal` to no longer be a macro, as it needs to check for chilled strings.
2024-06-01[Bug #20517] Make a multibyte character one token at meta escapeNobuyoshi Nakada
2024-06-01[ruby/reline] Overhaul io gate structureStan Lo
(https://github.com/ruby/reline/pull/666) * Overhaul IO gate structure 1. Move IO related classes to `lib/reline/io/` directory. 2. Rename `GeneralIO` to `Dumb`. 3. Use IO classes as instances instead of classes. * Update lib/reline/io/ansi.rb Co-authored-by: tomoya ishida <tomoyapenguin@gmail.com> --------- https://github.com/ruby/reline/commit/dc1518e1ac Co-authored-by: tomoya ishida <tomoyapenguin@gmail.com>
2024-06-01Tempfile.create(anonymous: true) implemented. (#10803)akr
The keyword argument `anonymous` is implemented for `Tempfile.create` The default is `anonymous: false`. The behavior is not changed as before. The created temporary file is immediately removed if `anonymous: true` is specified. So applications don't need to remove the file. The actual storage of the file is reclaimed by the OS when the file is closed. It uses `O_TMPFILE` for Linux 3.11 or later. It creates an anonymous file from the beginning. It uses FILE_SHARE_DELETE for Windows. It makes it possible to remove the opened file. [Feature #20497]
2024-05-31[ruby/prism] Fix up heredoc location translation for parserKevin Newton
https://github.com/ruby/prism/commit/a4e164e22b
2024-05-31[ruby/prism] Match % strings in parserKevin Newton
https://github.com/ruby/prism/commit/840185110f
2024-05-31[ruby/prism] Use correct opening and closing parenthesis for array pattern ↵Kevin Newton
in parser https://github.com/ruby/prism/commit/beed43922c
2024-05-31[ruby/prism] Match match_hash_var when quotes are usedKevin Newton
https://github.com/ruby/prism/commit/f2a327449a
2024-05-31[ruby/prism] Match parser for match_rest in patternKevin Newton
https://github.com/ruby/prism/commit/785de2c39d
2024-06-01Sychronize with rubygems/rubygems repoDavid Rodríguez
2024-05-31Make error messages clear blocks/keywords are disallowed in index assignmentJeremy Evans
Blocks and keywords are allowed in regular index. Also update NEWS to make this more clear. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-05-31[rubygems/rubygems] Fix `gem uninstall` warning when two versions of psych ↵David Rodriguez
installed https://github.com/rubygems/rubygems/commit/1b5644b666
2024-05-31[rubygems/rubygems] Extract a `spec` variableDavid Rodríguez
It's consistent with the previous test and makes print debugging easier. https://github.com/rubygems/rubygems/commit/d7f424df16
2024-05-31[rubygems/rubygems] Improve spec about `rubygems-update` in non default pathDavid Rodríguez
Make it not also install the gem in the default GEM_HOME. https://github.com/rubygems/rubygems/commit/22de9a810a
2024-05-31[rubygems/rubygems] Remove unnecessary resetDavid Rodríguez
https://github.com/rubygems/rubygems/commit/33328e54fd
2024-05-30test_bignum: defined? returns String (#10880)Sorah Fukumori
didn't verify the test is working properly due to mistaken auto-merge… [Bug #20515] bug: https://bugs.ruby-lang.org/issues/20515 follow-up: 22e4eeda6561693367fc7a00b92b90f46b09cabd follow-up: https://github.com/ruby/ruby/pull/10875
2024-05-30[ruby/prism] Disallow unescape test on FFI backendKevin Newton
https://github.com/ruby/prism/commit/32277722d4
2024-05-30[ruby/prism] Tests overhaulKevin Newton
https://github.com/ruby/prism/commit/6f886be0a4
2024-05-30ci: Test whether GMP is working in compilers.yml (#10875)Sorah Fukumori
Avoid reoccurence of [Bug #20515] Requires https://github.com/ruby/ruby/pull/10876 since 18eaf0be905e3e251423b42d6f4e56b7cae1bc3b bug: https://bugs.ruby-lang.org/issues/20515
2024-05-30[ruby/stringio] Remove special handling of chilled stringsJean Boussier
[Feature #20205] Followup: https://github.com/ruby/stringio/pull/94 They no longer need to be special cases. If StringIO end up mutating a chilled string, a warning will be emitted. https://github.com/ruby/stringio/commit/dc62d65449
2024-05-30Revert "[rubygems/rubygems] Fix `gem pristine` sometimes failing to pristine ↵Hiroshi SHIBATA
user installed gems" This reverts commit a3edc4abc574b04bcacfae2af188cce7d27bfcf1. That commit caused test failure with Windows platform. * https://github.com/ruby/ruby/actions/runs/9289018414/job/25561871390 * https://github.com/ruby/ruby/actions/runs/9289018425/job/25561873060
2024-05-29[rubygems/rubygems] Fix `gem pristine` sometimes failing to pristine user ↵David Rodriguez
installed gems https://github.com/rubygems/rubygems/commit/0eb6ed8f86