summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-14Symbol just represents a nameNobuyoshi Nakada
2019-05-13Update dependenciesNobuyoshi Nakada
2019-05-13Update the canonical repository for racc.Hiroshi SHIBATA
2019-05-13Fix typosKazuhiro NISHIYAMA
2019-05-13delegate.rb: don't look for methods on KernelÉtienne Barrié
Instead, look for instance methods of Kernel. Otherwise, instance methods of Module (which are methods of Kernel itself) are mistakenly believed to exist, and it fails when calling Kernel.instance_method(). Closes: https://github.com/ruby/ruby/pull/1422
2019-05-13Check that Reline exists on testaycabta
2019-05-13Skip tests depend on Readline's special behaviorsaycabta
2019-05-13Implement Reline::HISTORY as an expanded Arrayaycabta
2019-05-13Add attr_accessor for Reline's Config attrsaycabta
2019-05-13Reline.completion_proc= should raise ArgumentErroraycabta
When the value is not Proc.
2019-05-13Reline.completion_append_character= should be nilaycabta
When unknown value comes.
2019-05-13Add Reline.special_prefixes as stubaycabta
2019-05-13Implement Reline's class methods for compatibilityaycabta
- insert_text - redisplay - line_buffer - point - point= - vi_editing_mode - emacs_editing_mode - vi_editing_mode? - emacs_editing_mode? - get_screen_size
2019-05-13Add Reline.pre_input_hook interfaceaycabta
2019-05-13Implement Reline.input= and Reline.output=aycabta
2019-05-13Add ed_search_prev_history to Relineaycabta
2019-05-13Improve doc for Enumerable#include? and member?okuramasafumi
Existing doc for Enumerable#include? and member? has some problems. * `IO.constants` is not commonly used, and only some know that `SEEK_SET` is actually included in constants. * `IO.constants` is actually an Array, not the example is not appropriate for `Enumerable` module. So in this commit, the old example is replaced with new one. New example uses integer range, which is much simpler and easier to understand. Closes: https://github.com/ruby/ruby/pull/2168
2019-05-13Use LineEditor#reset on testaycabta
2019-05-13* 2019-05-13git
2019-05-13Split namespace of env-dependent I/O classesaycabta
2019-05-12Check INPUTRC env in Reline::Configaycabta
2019-05-12Change LineEditor instance in Reline to class varaycabta
2019-05-12Revert "Add a test for em_capitol_case of Reline"aycabta
This reverts commit b1767e56b158d8307412a0928a7ac2366541429d.
2019-05-12Add a test for em_capitol_case of Relineaycabta
2019-05-12* 2019-05-12git
2019-05-12Expect no conflict in the parserNobuyoshi Nakada
2019-05-10Propagate parser_params to rb_yytnamerrNobuyoshi Nakada
2019-05-10Adjust indentNobuyoshi Nakada
2019-05-1015f45ae4d1 and 56528da3e broke the darwin environment.Hiroshi SHIBATA
Revert "Propagate parser_params to rb_yytnamerr" This reverts commit 15f45ae4d12f14714ab3021b60887d8c7bf4b095.
2019-05-10Revert "Fix for bison 2.3"Hiroshi SHIBATA
This reverts commit 56528da3efb32bb773b22740c24450246b861e58.
2019-05-10Fix for bison 2.3Nobuyoshi Nakada
2019-05-10Propagate parser_params to rb_yytnamerrNobuyoshi Nakada
2019-05-10No longer svn & git-svn are usedNobuyoshi Nakada
2019-05-10Removed old names of internal methodsNobuyoshi Nakada
2019-05-10Suppress a warning in Psych&YAML with verbose modeNobuyoshi Nakada
2019-05-10Fix missing `\A`Kazuhiro NISHIYAMA
2019-05-10Add one more retry for win32ole event matcherTakashi Kokubun
to fix https://ci.appveyor.com/project/ruby/ruby/builds/24438615/job/yld1utsltxag9dr2
2019-05-10Do not access the internal memberNobuyoshi Nakada
2019-05-10* 2019-05-10git
2019-05-09add FROZEN to lldb debug outputAaron Patterson
2019-05-09Fallback to an invalid branch name if no branch foundNobuyoshi Nakada
2019-05-09Search a branch name at a detached headNobuyoshi Nakada
2019-05-09str_duplicate: Don't share with a frozen shared stringAlan Wu
This is a follow up for 3f9562015e651735bfc2fdd14e8f6963b673e22a. Before this commit, it was possible to create a shared string which shares with another shared string by passing a frozen shared string to `str_duplicate`. Such string looks like: ``` -------- ----------------- | root | ------ owns -----> | root's buffer | -------- ----------------- ^ ^ ^ ----------- | | | shared1 | ------ references ----- | ----------- | ^ | ----------- | | shared2 | ------ references --------- ----------- ``` This is bad news because `rb_fstring(shared2)` can make `shared1` independent, which severs the reference from `shared1` to `root`: ```c /* from fstr_update_callback() */ str = str_new_frozen(rb_cString, shared2); /* can return shared1 */ if (STR_SHARED_P(str)) { /* shared1 is also a shared string */ str_make_independent(str); /* no frozen check */ } ``` If `shared1` was the only reference to `root`, then `root` can be reclaimed by the GC, leaving `shared2` in a corrupted state: ``` ----------- -------------------- | shared1 | -------- owns --------> | shared1's buffer | ----------- -------------------- ^ | ----------- ------------------------- | shared2 | ------ references ----> | root's buffer (freed) | ----------- ------------------------- ``` Here is a reproduction script for the situation this commit fixes. ```ruby a = ('a' * 24).strip.freeze.strip -a p a 4.times { GC.start } p a ``` - string.c (str_duplicate): always share with the root string when the original is a shared string. - test_rb_str_dup.rb: specifically test `rb_str_dup` to make sure it does not try to share with a shared string. [Bug #15792] Closes: https://github.com/ruby/ruby/pull/2159
2019-05-09Push the current (topic) branch to the remote upstreamNobuyoshi Nakada
2019-05-09Show the commit command if dryrunNobuyoshi Nakada
2019-05-09require 'stringio'NARUSE, Yui
2019-05-09dryrun option is for `push`, not `git`Nobuyoshi Nakada
2019-05-08Pin finalizer tableAaron Patterson
Objects in the finalizer table stay pinned for now. In some cases, the key could move which would cause a miss when removing the object from the table (leading to a T_MOVED reference staying in the table).
2019-05-09* 2019-05-09git
2019-05-09* expand tabs.git