summaryrefslogtreecommitdiff
path: root/spec/ruby
AgeCommit message (Collapse)Author
16 hoursFix Array#[] with ArithmeticSequence with negative steps (#5739)Jeremy Evans
* Fix Array#[] with ArithmeticSequence with negative steps Previously, Array#[] when called with an ArithmeticSequence with a negative step did not handle all cases correctly, especially cases involving infinite ranges, inverted ranges, and/or exclusive ends. Fixes [Bug #18247] * Add Array#slice tests for ArithmeticSequence with negative step to test_array Add tests of rb_arithmetic_sequence_beg_len_step C-API function. * Fix ext/-test-/arith_seq/beg_len_step/depend * Rename local variables * Fix a variable name Co-authored-by: Kenta Murata <3959+mrkn@users.noreply.github.com> Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
30 hoursOnly allow procs created by Symbol#to_proc to call public methodsJeremy Evans
Fixes [Bug #18826] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/6018 Merged-By: jeremyevans <code@jeremyevans.net>
3 days[Bug #18946] New tests for fixed Time/DateTime conversionsNobuyoshi Nakada
3 days[Bug #18946] Use Gregorian dates to testNobuyoshi Nakada
5 daysSilent backtrace from cve_2019_8325_spec.rbNobuyoshi Nakada
Since the change at f310ac1cb2964f635f582862763b2155aacf2c12 to show the backtraces by default, this test started to show the backtraces. As the backtraces are not the subject of this test, silence them by using Gem::SilentUI. Notes: Merged: https://github.com/ruby/ruby/pull/6220 Merged-By: nobu <nobu@ruby-lang.org>
6 daysTest that File.read defaults to text modeAlan Wu
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/6212
10 daysImplement Queue#pop(timeout: sec)Jean Boussier
[Feature #18774] As well as `SizedQueue#pop(timeout: sec)` If both `non_block=true` and `timeout:` are supplied, ArgumentError is raised. Notes: Merged: https://github.com/ruby/ruby/pull/6185
2022-07-27Update to ruby/spec@cbfaf51Benoit Daloze
2022-07-21Do not chomp trailing line separator IO#each with nil separator and chompJeremy Evans
nil separator means no sepator, so chomp should not remove a line separator. Partially Fixes [Bug #18770] Notes: Merged: https://github.com/ruby/ruby/pull/6164
2022-07-21Do not have class/module keywords look up ancestors of ObjectJeremy Evans
Fixes case where Object includes a module that defines a constant, then using class/module keyword to define the same constant on Object itself. Implements [Feature #18832] Notes: Merged: https://github.com/ruby/ruby/pull/6048
2022-07-02Relax `not_before` limitNobuyoshi Nakada
Use the value as similar as other tests below. Trying to fix sporadic “not yet valid” failures on some CIs. Notes: Merged: https://github.com/ruby/ruby/pull/6085
2022-07-01Fix TODO in stringio/truncate_spec.rbNobuyoshi Nakada
2022-07-01stop CI failures.Koichi Sasada
302f353fd9223d020e48495eaa7a03ce5d539409 seems break the rubyspec. @nobu please check it.
2022-06-30Add more check to debug failuresKazuhiro NISHIYAMA
2022-06-26Fix Process.clock_gettime specs on OpenBSDJeremy Evans
2022-06-26Update to ruby/spec@ab32a1aBenoit Daloze
2022-06-20[Feature #18788] Spec for options as `String` to `Regexp.new`Nobuyoshi Nakada
Co-Authored-By: Janosch Müller <janosch.mueller@betterplace.org> Notes: Merged: https://github.com/ruby/ruby/pull/6039
2022-06-20Spec update for warnning suspicious flag to `Regexp.new`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6039
2022-06-18[Bug #18813] Warn when autoload has to lookup in parent namespaceJean Boussier
This is a verbose mode only warning. Notes: Merged: https://github.com/ruby/ruby/pull/6038
2022-06-16Fix spec version guardAlan Wu
Follow up for 278fefb96294adf9d27a78f919c714a31b65ef58
2022-06-17ENV.merge! support multile arguments [Feature #18279]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5207
2022-05-29Update rubyspec for stringio bug fixJeremy Evans
2022-05-20[Feature #18595] Alias String#-@ as String#dedupJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/5583
2022-04-25Update to ruby/spec@3affe1eBenoit Daloze
2022-04-19Resolve several markedown warningsTim Smith
- Spaces before and after blocks. - Single spaces after sentences everywhere Signed-off-by: Tim Smith <tsmith@mondoo.com> Notes: Merged: https://github.com/ruby/ruby/pull/5816
2022-04-17Fix a typoKazuhiro NISHIYAMA
2022-04-07Get rid of type aliasingNobuyoshi Nakada
2022-04-07Suppress an unused functionNobuyoshi Nakada
2022-04-06Raise RuntimeError if Kernel#binding is called from a non-Ruby frameJeremy Evans
Check whether the current or previous frame is a Ruby frame in call_trace_func and rb_tracearg_binding before attempting to create a binding for the frame. Fixes [Bug #18487] Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> Notes: Merged: https://github.com/ruby/ruby/pull/5767 Merged-By: jeremyevans <code@jeremyevans.net>
2022-04-01Revert "Raise RuntimeError if Kernel#binding is called from a non-Ruby frame"Jeremy Evans
This reverts commit 343ea9967e4a6b279eed6bd8e81ad0bdc747f254. This causes an assertion failure with -DRUBY_DEBUG=1 -DRGENGC_CHECK_MODE=2
2022-03-30Do not autosplat array in block call just because keywords acceptedJeremy Evans
If the block only accepts a single positional argument plus keywords, then do not autosplat. Still autosplat if the block accepts more than one positional argument in addition to keywords. Autosplatting a single positional argument plus keywords made sense in Ruby 2, since a final positional hash could be used as keywords, but it does not make sense in Ruby 3. Fixes [Bug #18633] Notes: Merged: https://github.com/ruby/ruby/pull/5665 Merged-By: jeremyevans <code@jeremyevans.net>
2022-03-29Fix spec descriptionJeremy Evans
Co-authored-by: Benoit Daloze <eregontp@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/5359
2022-03-29Make TracePoint#enable with block target current thread by defaultJeremy Evans
If TracePoint#enable is passed a block, it previously started the trace on all threads. This changes it to trace only the current thread by default. To limit the scope of the change, the current thread is only used by default if target and target_line are both nil. You can pass target_thread: nil to enable tracing on all threads, to get the previous default behavior. Fixes [Bug #16889] Notes: Merged: https://github.com/ruby/ruby/pull/5359
2022-03-28Update to ruby/spec@aaf998fBenoit Daloze
2022-03-24Raise RuntimeError if Kernel#binding is called from a non-Ruby frameJeremy Evans
Check whether the current or previous frame is a Ruby frame in call_trace_func before attempting to create a binding for the frame. Fixes [Bug #18487] Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> Notes: Merged: https://github.com/ruby/ruby/pull/5567
2022-03-24Now all extension libraries must consider the ABI headerNobuyoshi Nakada
2022-03-17Make Proc#parameters support lambda keyword for returning parameters as if ↵Jeremy Evans
lambda This makes it easier to use Proc#parameters to build wrappers. Implements [Feature #15357] Notes: Merged: https://github.com/ruby/ruby/pull/5677
2022-03-17A positional Hash is not keyword arguments [Bug #18632]Nobuyoshi Nakada
2022-03-17spec: disable a part of Kernel.open spec where spawns a process for WASIYuta Saito
WASI doesn't provide a way to spawn a new process Notes: Merged: https://github.com/ruby/ruby/pull/5672
2022-03-17spec: disable part of require_relative spec where uses symlink for WASIYuta Saito
cap-std, an underlying sandbox implementation of WASI in wasmtime, doesn't allow to create a symlink to an absolute path to enforce sandbox restriction. See also: https://github.com/bytecodealliance/cap-std/commit/257867a1d3a589b2561b00111ffa4db3bab0e8be Notes: Merged: https://github.com/ruby/ruby/pull/5656
2022-03-14spec: skip '~' test for wasi due to lack of shellYuta Saito
Notes: Merged: https://github.com/ruby/ruby/pull/5655
2022-03-14clarify meaning of version guards for Unicode version specs [ci skip]Martin Dürst
2022-03-13Fix guards for unicode versions specsBenoit Daloze
2022-03-13comment out failing Unicode/Emoji version checks temporarilyMartin Dürst
2022-03-13update specs to check for Unicode Version 14.0.0/Emoji Version 14.0Martin Dürst
2022-03-04sitelibdir makes no sense in ruby itselfNobuyoshi Nakada
2022-03-03Update to ruby/spec@82cd3a3Benoit Daloze
2022-02-28spec: skip ext's extension spec for --with-static-linked-extYuta Saito
`resolve_feature_path` doesn't return .so when the given ext is linked statically by --with-static-linked-ext Notes: Merged: https://github.com/ruby/ruby/pull/5582
2022-02-26Deprecate the unintentional ability to parse `Symbol`Nobuyoshi Nakada
2022-01-28Update to ruby/spec@902ab83Benoit Daloze