aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [ripper] Quoted label without expression must be a local variableNobuyoshi Nakada2019-11-251-0/+3
| | | | | | | | | The difference from 0b8c73aa65add5c57b46b0cfdf4e661508802172 is to add the result of `string_add` event to marking objects. ```C RNODE($1)->nd_rval = add_mark_object(p, $$); ```
* Use realpath to try to fix failures with symlinksKazuhiro NISHIYAMA2019-11-231-0/+2
|
* Tracer.set_get_line_procs should support block and Proc objectaycabta2019-11-231-0/+103
| | | | | | Original Tracer.set_get_line_procs is implemented by "def set_get_line_procs(p = proc)". It means that original Tracer.set_get_line_procs supports block and Proc object.
* Tracer.add_filter should support block and Proc objectaycabta2019-11-231-0/+73
| | | | | Original Tracer.add_filter is implemented by "def add_filter(p = proc)". It means that original Tracer.add_filter supports block and Proc object.
* Skip test_validate_gemspec when tarball and git installed tooKazuhiro NISHIYAMA2019-11-231-1/+1
| | | | | | `git --version` failed as expected when git is not installed, but unexpectedly pass when git installed and pwd is not in git working directory. So use `git rev-parse` instead, and it failed when git installed too.
* Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptimeJeremy Evans2019-11-211-0/+11
| | | | | | | | | | | | | | | | Most of these formats were documented as supported, but were not actually supported. Document that %g and %G are supported. If %U/%W is specified without yday and mon/mday are not specified, then Date.strptime is used to get the appropriate yday. If cwyear is specifier without the year, or cwday and cweek are specified without mday and mon, then use Date.strptime and convert the resulting value to Time, since Time.make_time cannot handle those conversions Fixes [Bug #9836] Fixes [Bug #14241]
* Add test/reline/test_string_processing.rbaycabta2019-11-211-0/+23
|
* Use singleline/multiline instead of readline/reidlineaycabta2019-11-211-1/+1
|
* Refined inspection of argument forwardingNobuyoshi Nakada2019-11-211-2/+4
|
* Change argument `Proc` to `#call` defined object.manga_osyo2019-11-211-0/+24
| | | | This is the same as the behavior of Readline.
* Add tests of argument forwarding's parameters and inspectKazuhiro NISHIYAMA2019-11-201-0/+5
|
* Update representation (discussed on ruby tracker)zverok2019-11-201-20/+20
|
* Fix test_module.rbzverok2019-11-201-1/+1
|
* Method parameters inspectzverok2019-11-201-6/+63
| | | | | | | | | Example: def m(a, b=nil, *c, d:, e: nil, **rest, &block) end p method(:m) #=> #<Method: m(a, b=<default>, *c, d:, e: <default>, **rest, &block) ...>
* Generate history file path correctly when $HOME/.irbrc doesn't existaycabta2019-11-201-0/+40
|
* Fix memory corruption in Enumerable#reverse_each [ruby-dev:50867] [Bug #16354]Kazuki Tsujimoto2019-11-191-0/+13
|
* Revert "[ripper] Quoted label without expression must be a local variable"Nobuyoshi Nakada2019-11-201-3/+0
| | | | | This reverts commit 0b8c73aa65add5c57b46b0cfdf4e661508802172, which seems breaking RVALUE consistency check.
* Avoid needless object allocationKazuki Tsujimoto2019-11-192-1/+3
|
* Add a testKazuhiro NISHIYAMA2019-11-191-3/+23
| | | | | | and rename from b.rb [ruby-core:95055] [Bug #16177]
* [ripper] Quoted label without expression must be a local variableNobuyoshi Nakada2019-11-191-0/+3
|
* Prefer dedecated assertionsNobuyoshi Nakada2019-11-191-4/+4
|
* pack is not using invokebuiltin anymoreTakashi Kokubun2019-11-181-6/+3
|
* test/-ext-/string/test_fstring.rb: suppress a warning for taintYusuke Endoh2019-11-181-1/+6
|
* catch up last commit.Koichi Sasada2019-11-181-1/+1
| | | | Array#pack uses `opt_invokebuiltin_delegate_leave` now.
* More fixes for $SAFE/taint post mergingJeremy Evans2019-11-184-57/+29
|
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-1836-696/+130
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans2019-11-1814-232/+0
| | | | | | | | | | | | | | | | | This removes the security features added by $SAFE = 1, and warns for access or modification of $SAFE from Ruby-level, as well as warning when calling all public C functions related to $SAFE. This modifies some internal functions that took a safe level argument to no longer take the argument. rb_require_safe now warns, rb_require_string has been added as a version that takes a VALUE and does not warn. One public C function that still takes a safe level argument and that this doesn't warn for is rb_eval_cmd. We may want to consider adding an alternative method that does not take a safe level argument, and warn for rb_eval_cmd.
* Fix typosKazuhiro NISHIYAMA2019-11-1720-20/+20
|
* Implement em_set_mark and em_exchange_markaycabta2019-11-152-0/+36
|
* `#@1` is no longer an embedded variableNobuyoshi Nakada2019-11-142-1/+2
|
* test/ruby/test_proc.rb: suppress "method redefined" warningsYusuke Endoh2019-11-141-1/+4
|
* Suspend many fibers test on JIT for nowTakashi Kokubun2019-11-131-0/+1
| | | | | | | | https://github.com/ruby/ruby/runs/301411717 No C backtrace information and this is hard to fix immediately. As CI doesn't provide helpful information, this should be debugged locally or at least have more logs there.
* Skip tailcall test for MJITTakashi Kokubun2019-11-121-0/+1
| | | | failing in https://github.com/ruby/ruby/runs/300579218
* Avoid top-level search for nested constant reference from nil in defined?Dylan Thacker-Smith2019-11-131-0/+5
| | | | | | | | | | | | Fixes [Bug #16332] Constant access was changed to no longer allow top-level constant access through `nil`, but `defined?` wasn't changed at the same time to stay consistent. Use a separate defined type to distinguish between a constant referenced from the current lexical scope and one referenced from another namespace.
* Suppress warnings except for when last evaluationaycabta2019-11-131-0/+6
| | | | Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* Migrate Wercker MJIT tests to Actions (#2676)Takashi Kokubun2019-11-125-12/+0
| | | | | | | | | | | | | | | | | | | | * Migrate Wercker MJIT tests to Actions * Support pull request for testing * Capitalize other jobs too * Make it a command name for consistency [ci skip] * Remove wercker.yml * Add --jit-verbose=2 for debugging * Install MJIT headers * Separate install for sudo * Trigger build
* Show the name `Kernel#proc` in the warning messageNobuyoshi Nakada2019-11-121-2/+7
|
* Fixed `assert_equal` first argument to be expected.manga_osyo2019-11-121-4/+4
|
* Reline#readline and Reline#readmultiline to private.osyo-manga2019-11-121-2/+6
|
* Added assertions for realpath and realdirpathNobuyoshi Nakada2019-11-121-0/+6
| | | | | It is said that realpath(3) and realdirpath(3) on some platforms may return a relative path.
* Revert "Method reference operator"Nobuyoshi Nakada2019-11-127-73/+3
| | | | | This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b. [Feature #16275]
* Warn on `...` at EOLNobuyoshi Nakada2019-11-121-0/+7
|
* [ruby/bigdecimal] Remove taint checkingJeremy Evans2019-11-121-9/+0
| | | | | | | | This removes the taint checking. Taint support is deprecated in Ruby 2.7 and has no effect. I don't think removing the taint checks in earlier ruby versions will cause any problems. https://github.com/ruby/bigdecimal/commit/1918d466f3
* [ruby/psych] Remove taint supportJeremy Evans2019-11-121-131/+0
| | | | | | | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. I'm not sure if the untaint calls in deduplicate are still needed after the removal of tainting in the parser. If they are not needed, they should be removed. https://github.com/ruby/psych/commit/73c1a2b4e0
* Monitor#exit: check monitor ownership.Koichi Sasada2019-11-121-0/+23
| | | | | Monitor#exit should be called by only onwer Thread. However, there is not check for it.
* Clear current argument name at empty block argument [Bug #16343]Nobuyoshi Nakada2019-11-121-0/+20
|
* test/ruby/test_require.rb: Remove the tests of require with $SAFEYusuke Endoh2019-11-121-55/+0
| | | | | | | | | | The taint mechanism is decided to be removed at 2.7. [Feature #16131] So, this change removes the tests that expects a SecurityError when requiring a file under $SAFE >= 1. The reason why they should be removed in advance is because the upstream of rubygems has already removed a call to "untaint" method, which makes the tests fail.
* Skip test_validate_gemspec unless git installedKazuhiro NISHIYAMA2019-11-111-0/+1
|
* Revert "Warn EOF char in comment"NARUSE, Yui2019-11-112-15/+0
| | | | This reverts commit 69ec3f70fab0c1c537c68fb135cc315181b1d750.
* Revert "Elaborated EOF char message a little"NARUSE, Yui2019-11-112-4/+4
| | | | This reverts commit 6eaac7cfac668d6669be694fd7b723c4982ed218.