1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Jeremy Evans beae6cbf0f Fully separate positional arguments and keyword arguments
This removes the warnings added in 2.7, and changes the behavior
so that a final positional hash is not treated as keywords or
vice-versa.

To handle the arg_setup_block splat case correctly with keyword
arguments, we need to check if we are taking a keyword hash.
That case didn't have a test, but it affects real-world code,
so add a test for it.

This removes rb_empty_keyword_given_p() and related code, as
that is not needed in Ruby 3.  The empty keyword case is the
same as the no keyword case in Ruby 3.

This changes rb_scan_args to implement keyword argument
separation for C functions when the : character is used.
For backwards compatibility, it returns a duped hash.
This is a bad idea for performance, but not duping the hash
breaks at least Enumerator::ArithmeticSequence#inspect.

Instead of having RB_PASS_CALLED_KEYWORDS be a number,
simplify the code by just making it be rb_keyword_given_p().
2020-01-02 18:40:45 -08:00
..
-ext- Reword keyword arguments warning messages to convey these are deprecation warnings 2019-12-23 16:47:33 -05:00
base64
benchmark
bigdecimal More fixes for $SAFE/taint post merging 2019-11-18 01:00:25 +02:00
cgi Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
coverage compile.c: stop wrong peephole optimization when covearge is enabled 2019-12-04 10:40:54 +09:00
csv Remove unneeded exec bits from some files 2019-11-09 21:36:30 +09:00
date Fixed misspellings 2019-12-20 12:19:45 +09:00
dbm [ruby/dbm] Remove taint support 2019-10-26 07:03:33 +09:00
did_you_mean Port dd1dd86e6c 2019-12-23 00:47:41 -05:00
digest
drb Stop Thread.new in DRb::TimerIdConv::TimerHolder2#on_gc 2019-12-10 12:43:49 +09:00
dtrace
erb
etc
excludes Revert "Skip interruptible raw mode test on Travis-CI" 2019-12-18 00:08:21 +09:00
fiddle Fix "cannot find the function: strcpy()" error on arm32 on Travis CI. (#2686) 2019-12-05 14:17:16 +09:00
fileutils Revert "[ruby/fileutils] Fix #install with "X" mode option" 2019-11-30 17:58:39 +09:00
gdbm
io [ruby/io-console] Enable only interrupt bits on intr: true 2019-12-29 16:26:22 +09:00
irb Add load path and require for ruby/ruby 2020-01-01 02:04:41 +09:00
json Import json-2.3.0 from flori/json 2019-12-12 09:14:09 +09:00
lib test/lib/jit_support.rb: Update the regexp for icc 2019-12-05 23:46:42 +09:00
logger Fixed misspellings 2019-12-20 12:19:45 +09:00
matrix Add abs to Matrix (#2199) 2019-08-21 16:36:39 -04:00
misc
mkmf
monitor new_cond before mon_initialize 2019-12-04 13:36:41 +09:00
net Revert "lib/net/http/response.rb: support raw deflate correctly" 2019-12-16 23:39:10 +09:00
nkf
objspace
open-uri
openssl Get rid of false positive misspellings 2019-12-24 10:33:32 +09:00
optparse LoadError is not a subclass of StandardError 2019-11-29 11:25:23 +09:00
ostruct
pathname Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
psych [ruby/psych] Remove taint support 2019-11-12 10:35:47 +09:00
racc Fixed misspellings 2019-12-20 12:19:45 +09:00
rdoc [ruby/rdoc] Support newline in the middle of constant definition 2019-12-24 07:58:53 +09:00
readline text/readline/test_readline.rb - fix skip on Reline (#2743) 2019-12-31 00:29:58 -08:00
reline Add test_completion_with_indent_and_completer_quote_characters 2019-12-27 16:07:52 +09:00
resolv MinGW on Actions (#2791) 2019-12-30 23:19:31 -08:00
rexml
rinda Stop pool threads in test/rinda too 2019-12-09 13:46:23 +09:00
ripper Warn also numbered parameter like parameters 2019-12-20 01:25:34 +09:00
rss Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
ruby Fully separate positional arguments and keyword arguments 2020-01-02 18:40:45 -08:00
rubygems Merge RubyGems 3.1.2 2019-12-20 11:50:32 +09:00
sdbm
socket Test interfaces include localhost 2019-12-06 16:03:16 +09:00
stringio [ruby/stringio] Remove taint support 2019-10-31 16:24:02 +09:00
strscan Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
syslog
uri
webrick [ruby/webrick] Check the feature by itself, instead of the version number 2019-11-30 17:52:05 +09:00
win32ole Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
yaml
zlib [ruby/zlib] Fix setting mtime to zero in GzipWriter 2019-10-31 22:23:58 +09:00
runner.rb
test_abbrev.rb
test_delegate.rb Reword keyword arguments warning messages to convey these are deprecation warnings 2019-12-23 16:47:33 -05:00
test_extlibs.rb
test_find.rb
test_forwardable.rb [ruby/forwardable] Make def_*_delegator return name of method defined (Fixes #10) 2019-12-11 20:23:53 +09:00
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb Make prettyprint’s cycle detection aware of Delegator instances 2019-12-16 23:43:49 +09:00
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_time.rb Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime 2019-11-21 03:32:20 +02:00
test_timeout.rb
test_tmpdir.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_tracer.rb Use realpath to try to fix failures with symlinks 2019-11-23 11:41:27 +09:00
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb