aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Avoid triggering autoload in Module#const_defined?(String)Jean Boussier2019-05-071-0/+6
| | | | [Bug #15780]
* Fix use of numbered parameter inside proc that is default value of optargJeremy Evans2019-05-051-0/+2
| | | | | | | | | | | | | | | | This allows cases such as: ```ruby m ->(a = ->{@1}) {a} m.call.call(1) m2 ->(a: ->{@1}) {a} m2.call.call(2) ``` Previously, this would cause a syntax error. [Bug#15789]
* Fix a case where numbered parameters should not be allowedJeremy Evans2019-05-051-0/+2
| | | | | | | | | | | | | | | | | | Because `proc{|| @1}` is a syntax error, the following should also be syntax errors: ```ruby proc { | | @1} ``` ```ruby proc { |; a| @1 } ``` This fixes both cases. [Bug #15825]
* parse.y: duplicated when clause warningNobuyoshi Nakada2019-05-051-3/+14
| | | | | * parse.y (case_args): moved "duplicated when clause" warning from compile phase, so that `ruby -wc` shows them.
* ignore test_RangeErrorMasatoshi SEKI2019-05-041-8/+0
|
* add DRb::WeakIdConv (Bug #15711)Masatoshi SEKI2019-05-041-0/+17
|
* Silence a (probable) debug printNobuyoshi Nakada2019-05-011-0/+2
|
* Windows simply causes an error to open invalid pathNAKAMURA Usaku2019-05-011-1/+19
|
* Add exception support in `Range#first`.manga_osyo2019-05-011-0/+2
| | | | Closes: https://github.com/ruby/ruby/pull/2163
* Skip on Windows now when using reline because it causes hang of whole testsNAKAMURA Usaku2019-04-301-1/+2
|
* Use Ripper for IRBaycabta2019-04-301-108/+0
| | | | | The debug option of IRB is deleted because it's just for IRB's pure Ruby parser.
* Use Encoding::UTF_8 if RELINE_TEST_ENCODING doesn't existaycabta2019-04-301-3/+1
|
* Use Encoding::UTF_8 if Encoding.default_external is Encoding::IBM437aycabta2019-04-301-0/+2
|
* Add Reline as a fallback library for Readlineaycabta2019-04-306-0/+2690
| | | | | | | | | | | | | * lib/reine.rb, lib/reline/*: Reline is a readline stdlib compatible library. * lib/readline.rb: Readline uses a fallback to Reline when ext/readline doesn't exist. * tool/sync_default_gems.rb: add ruby/reline as a default gem. * appveyor.yml: add "set RELINE_TEST_ENCODING=Windows-31J" for test suit of Reline, and add "--exclude readline" to "nmake test-all" on Visual Studio builds because of strange behavior. * spec/ruby/library/readline/spec_helper.rb: skip Reline as with RbReadline.
* Disallow also CR in here-doc identifierNobuyoshi Nakada2019-04-291-0/+6
| | | | | | * parse.y (heredoc_identifier): CR in here-document identifier might or might not result in a syntax error, by the EOL code. make a syntax error regardless of the EOL code.
* Make only `mesg` can be assigned with default `fname`Nobuyoshi Nakada2019-04-291-1/+3
|
* parse.y: fix here-doc identifier with newlineNobuyoshi Nakada2019-04-291-4/+3
| | | | | | | | | | | | | | | * parse.y (heredoc_identifier): quoted here-document identifier must end within the same line. the only corner case that here-document identifier can contain a newline is that the closing qoute is placed at the beginning of the next line, and has been warned since 2.4. ```ruby <<"EOS " # warning: here document identifier ends with a newline EOS ```
* numeric.c: Extend Integer#[] to support range argumentsYusuke Endoh2019-04-281-0/+25
| | | | | | | | | | | ```` 0b01001101[2, 4] #=> 0b0011 0b01001100[2..5] #=> 0b0011 0b01001100[2...6] #=> 0b0011 ^^^^ ```` [Feature #8842]
* test/ruby/test_integer.rb: Add a sane test for Integer#[]Yusuke Endoh2019-04-281-0/+14
|
* make sync-default-gems GEM=irbTakashi Kokubun2019-04-281-0/+1
| | | | | | from https://github.com/ruby/irb/commit/e8e79d569ed59fe4ed4fbca968917ce799f02a5e. This colorizes Range object on IRB inspect.
* make sync-default-gems GEM=irbTakashi Kokubun2019-04-281-7/+2
| | | | | | | from https://github.com/ruby/irb/commit/96f05e726879e9858eb015c8d043c9f52b864ff9. Just syncing newer test changes so that conflicts do not happen when trunk is modified and we need to backport that to ruby/irb.
* make sync-default-gems GEM=irbTakashi Kokubun2019-04-281-13/+9
| | | | | | from https://github.com/ruby/irb/commit/44301d382794d91e2caa16dd4efe62439e0041d8. This includes some fixes for string interpolation highlight fixes.
* Update rubygems with latest upstream changesDavid Rodríguez2019-04-2812-55/+149
| | | | Closes: https://github.com/ruby/ruby/pull/2154
* Always mark the string returned by File.realpath as taintedJeremy Evans2019-04-281-1/+1
| | | | | | | | | | | | | | | | | This string can include elements that were not in either string passed to File.realpath, even if one of the strings is an absolute path, due to symlinks: ```ruby Dir.mkdir('b') unless File.directory?('b') File.write('b/a', '') unless File.file?('b/a') File.symlink('b', 'c') unless File.symlink?('c') path = File.realpath('c/a'.untaint, Dir.pwd.untaint) path # "/home/testr/ruby/b/a" path.tainted? # should be true, as 'b' comes from file system ``` [Bug #15803]
* * remove trailing spaces.git2019-04-281-1/+1
|
* make sync-default-gems GEM=irbTakashi Kokubun2019-04-281-0/+1
| | | | | | | | | from https://github.com/ruby/irb/commit/89e9add06da3fd5f9ce91a2f5fa0b0190aa5d42f. This adds syntax highlight support for Module on inspect. In addition to that, I'm adding a trailing space in test_color.rb for testing ruby-commit-hook's auto-style.
* make sync-default-gems GEM=irbTakashi Kokubun2019-04-274-5/+6
| | | | | Synced from https://github.com/ruby/irb/commit/5feb361ed80736efa5b2c2b629837ec2a5fc2cdb. This includes a support to colorize named Class instance on IRB inspect.
* Get rid of indirect sharingNobuyoshi Nakada2019-04-271-0/+9
| | | | | | | | | * string.c (str_duplicate): share the root shared string if the original string is already sharing, so that all shared strings refer the root shared string directly. indirect sharing can cause a dangling pointer. [Bug #15792]
* Isolate TestGCCompact from JIT testingTakashi Kokubun2019-04-272-0/+2
| | | | | | | | Wercker seems to randomly fail https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cc3c1c423fcb70008db9b64?step=5cc3c46a03f4460007da0659 To help debugging, let me isolate the impact from GC.compact in the JIT testing on Wercker.
* make sync-default-gems GEM=irbTakashi Kokubun2019-04-271-1/+1
| | | | Backport changes from ruby/irb.
* suppress warning in test/irbnaruse2019-04-272-1/+4
| | | | | | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20190421T040003Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Re-committing https://github.com/ruby/ruby/commit/7f09b5e9da8f83f84c5b6ae7a644a562811fec73
* Revert "Class instance should be also colorable on IRB"Takashi Kokubun2019-04-261-1/+0
| | | | | | This reverts commit 6669c966d2744f21315047d1725ad4494d15b8ba. It seems to make tests fail... let me fix this later.
* Class instance should be also colorable on IRBTakashi Kokubun2019-04-261-0/+1
| | | | | | inspect. Change is made with: `$ make -C .ruby sync-default-gems GEM=irb`
* make sync-default-gems GEM=irbTakashi Kokubun2019-04-266-8/+151
| | | | from https://github.com/ruby/irb/commit/e6739d8c66dc78562930adb0b96935c9b38acf74
* Hide internal IDsNobuyoshi Nakada2019-04-262-0/+8
| | | | | | | | * parse.y (internal_id): number the ID serial for internal use by counting down from the neary maximum value, not to accidentally match permanent IDs. [Bug #15768]
* Syntax-highlight yield in IRBTakashi Kokubun2019-04-261-0/+1
|
* Support highlighting Regexp in inspectTakashi Kokubun2019-04-261-0/+2
|
* Force IRB::Color to recognize TERMTakashi Kokubun2019-04-261-1/+19
| | | | Closes: https://github.com/ruby/ruby/pull/2150
* Colorize IRB's inspect resultTakashi Kokubun2019-04-261-0/+14
| | | | Closes: https://github.com/ruby/ruby/pull/2150
* Colorize IRB's code_around_bindingTakashi Kokubun2019-04-262-2/+41
| | | | Closes: https://github.com/ruby/ruby/pull/2150
* add DRbObject dereference test (Preparation for investigation of Bug #15711)Masatoshi SEKI2019-04-251-0/+47
|
* Fix typos [ci skip]Kazuhiro NISHIYAMA2019-04-251-7/+7
|
* Defer setting gc_stress until inits doneNobuyoshi Nakada2019-04-241-0/+4
| | | | [Bug #15784]
* Fix complex hash keys to work with compactionAaron Patterson2019-04-231-0/+7
| | | | | | | | | For example when an array containing objects is a hash key, the contents of the array may move which can cause the hash value for the array to change. This commit makes the default `hash` value based off the object id, so the hash value will remain stable. Fixes test/shell/test_command_processor.rb
* Revert "IRB is improved with Reline and RDoc, take 2"Nobuyoshi Nakada2019-04-236-2683/+0
| | | | | Accidentally merged when 89271d4a3733bc5e70e9c56b4bd12f277e699c42 "Adjusted indents".
* IRB is improved with Reline and RDoc, take 2aycabta2019-04-236-0/+2683
|
* Disallow numbered parameter as the default value of optional argumentSeiei Miyagi2019-04-231-0/+1
| | | | [Fix GH-2139] [Bug #15783]
* Fix internal error of `->x:@2{}`Seiei Miyagi2019-04-231-0/+1
| | | | [Fix GH-2139] [Bug #15783]
* Use github url instead of ViewVC.SHIBATA Hiroshi2019-04-221-1/+1
|
* Revert "IRB is improved with Reline and RDoc"aycabta2019-04-217-3830/+0
| | | | | | This reverts commit 7f273ac6d0f05208b5b228da95205e20c0e8286c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e