aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [DOC] non-nil `$,`,`$;` will be deprecated [ci skip]Kazuhiro NISHIYAMA2019-06-181-2/+2
| | | | | | | | ``` % ruby -e '$,=""; $;=""' -e:1: warning: non-nil $, will be deprecated -e:1: warning: non-nil $; will be deprecated ```
* Fix memory leakNobuyoshi Nakada2019-06-181-1/+4
| | | | | | | * string.c (str_make_independent_expand): free independent buffer. [Bug# 15935] Co-Authored-By: luke-gru (Luke Gruber) <luke.gru@gmail.com>
* * expand tabs.git2019-06-181-1/+1
|
* String#b: Don't depend on dependent stringAlan Wu2019-06-182-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | Registering a string that depend on a dependent string as fstring can lead to use-after-free. See c06ddfe and 3f95620 for details. The following script triggers use-after-free on trunk, 2.4.6, 2.5.5 and 2.6.3. Credits to @wanabe for using eval as a cross-version way of registering a fstring. ```ruby a = ('j' * 24).b.b eval('', binding, a) p a 4.times { GC.start } p a ``` - string.c (str_replace_shared_without_enc): when given a dependent string, depend on the root of the dependent string. [Bug #15934]
* * 2019-06-18git2019-06-181-1/+1
|
* Update documentation for File.executable{,_real}? to mention Windows issuesJeremy Evans2019-06-171-0/+8
| | | | Fixes [Bug #15664]
* Support Bison 3 in ripperNobuyoshi Nakada2019-06-171-0/+1
|
* Fix wrong "void value expression" errorNobuyoshi Nakada2019-06-172-4/+4
| | | | | | * parse.y (value_expr_check): `then` or `else` only `if` is not a void value expression, as the counterpart is evaluated as `nil`. [Bug #15932]
* Fix wrong "void value expression" errorNobuyoshi Nakada2019-06-172-12/+28
| | | | | | * parse.y (value_expr_check): if either of `then` or `else` statements is not a void value expression, the whole `if` is not also a void value expression. [Bug #15932]
* * 2019-06-17git2019-06-171-1/+1
|
* Support Bison 3Nobuyoshi Nakada2019-06-173-1/+17
|
* Fix memory leakNobuyoshi Nakada2019-06-162-1/+8
| | | | | | | | | | | | | | * string.c (str_replace_shared_without_enc): free previous buffer before replaced. * parse.y (gettable): make sure in advance that the `__FILE__` object shares a fstring, to get rid of replacement with the fstring later. TODO: this hack may be needed in other places. [Bug #15916] Co-Authored-By: luke-gru (Luke Gruber) <luke.gru@gmail.com>
* * expand tabs.git2019-06-161-6/+6
|
* Revert "Make constant assignments more conforming to JIS X 3017:2013 11.4.2.2.3"Yusuke Endoh2019-06-162-21/+8
| | | | | | | This reverts commit 44caca11cfa6bea01a1ef738846183f1a56d5658. The change caused a build failure. http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2102153
* * expand tabs.git2019-06-161-8/+8
|
* Make constant assignments more conforming to JIS X 3017:2013 11.4.2.2.3Yuki Yugui Sonoda2019-06-162-8/+21
| | | | | compile.c (NODE_CDECL): Evaluate the module before the value test/ruby/test_const.rb (test_evaluation_order): added a test case
* Implement line_no correctlyaycabta2019-06-162-7/+7
|
* tool/redmine-backporter.rb: Change redmine git revisions URL path.nagachika2019-06-161-2/+2
|
* * 2019-06-16git2019-06-161-1/+1
|
* tool/redmine-backporter.rb: Add parens to fix condition for svn revision search.nagachika2019-06-161-1/+1
|
* Revert github/pull/2230, commit missNobuyoshi Nakada2019-06-152-47/+1
|
* Prefer `enum yytokentype` to intNobuyoshi Nakada2019-06-152-5/+5
|
* Test for blank lines between leadinig dot method chainsJosh Cheek2019-06-151-0/+32
|
* Multiline method chain with leading dot works for blank linesJosh Cheek2019-06-152-2/+3
|
* Remove blank line I accidentally addedJosh Cheek2019-06-151-1/+0
|
* Test comments between multiline method chainJosh Cheek2019-06-151-0/+7
|
* Rename LINEND to EMPTYLNJosh Cheek2019-06-151-4/+4
|
* Omg, it works!Josh Cheek2019-06-151-1/+8
| | | | | | I'll rename it and squash this commit later, just wanted to make sure I couldn't lose it (took a long time to come up with).
* * 2019-06-15git2019-06-151-1/+1
|
* test/net/imap/test_imap.rb: wait for the server thread to startYusuke Endoh2019-06-151-14/+29
| | | | | | | | | In some slow CI environments, the invocation of a thread seems very slow. This causes a test failure to attempt to connect a server that does not start yet. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190615T002420Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190611T022407Z.fail.html.gz
* An operator is not allowed just after `|>`Nobuyoshi Nakada2019-06-142-4/+5
| | | | https://twitter.com/yukihiro_matz/status/1139454774640726019
* Pipeline operator is experimental [ci skip]Kazuhiro NISHIYAMA2019-06-141-1/+1
|
* irb.rb: [DOC] the default prompt includes :PROMPT_N [ci skip]Nobuyoshi Nakada2019-06-141-0/+1
|
* Use Exception#full_message for tracebackNobuyoshi Nakada2019-06-141-7/+1
|
* Remove debug printaycabta2019-06-141-4/+0
|
* Set allow_escape_code for promptaycabta2019-06-141-10/+10
|
* Use Reline.prompt_proc in IRBaycabta2019-06-143-6/+29
|
* * 2019-06-14git2019-06-141-1/+1
|
* Add Reline.prompt_procaycabta2019-06-142-12/+72
|
* test/webrick/test_ssl_server.rb: Use EnvUtil.timeout for timeout scale factorYusuke Endoh2019-06-131-1/+1
| | | | | | | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190613T091708Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190612T011708Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190611T211707Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190604T171708Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190529T091707Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190528T031708Z.fail.html.gz
* test/lib/test/unit/assertions.rb (assert_cpu_usage_low): tweak the waitYusuke Endoh2019-06-131-1/+1
| | | | | | | It still fails randomly. https://rubyci.org/logs/rubyci.s3.amazonaws.com/amazon2/ruby-master/log/20190613T093003Z.fail.html.gz https://rubyci.org/logs/mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-master/log/20190613T051547Z.fail.html.gz
* Continue to the next line beginning with a pipelineNobuyoshi Nakada2019-06-132-1/+3
|
* parse.y: moved pipeline to exprNobuyoshi Nakada2019-06-132-18/+32
| | | | To allow arguments without parentheses.
* Add pipeline operator [Feature #15799]Nobuyoshi Nakada2019-06-136-1/+47
|
* IO#set_encoding_by_bomNobuyoshi Nakada2019-06-133-3/+56
| | | | | * io.c (rb_io_set_encoding_by_bom): IO#set_encoding_by_bom to set the encoding by BOM if exists. [Bug #15210]
* * expand tabs.git2019-06-131-1/+1
|
* remove 2 redundant calls to rb_str_dupLuke Gruber2019-06-132-2/+2
| | | | | | Because `rb_class_path` calls `rb_str_dup` already. Closes: https://github.com/ruby/ruby/pull/2232
* squeeze space [ci skip]Kazuhiro NISHIYAMA2019-06-131-1/+1
|
* add comments to mention sort.reverse!Martin Dürst2019-06-132-0/+9
| | | | | | For array.c (Array#sort) and enum.c (Enumerable#sort_by), add comments mentioning that sort.reverse! / sort_by { ... }.reverse! can/should be used to reverse the result. [ci skip]
* Clarify the Ruby version support status in IRB moreTakashi Kokubun2019-06-131-13/+19
|