aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement vi_insert_at_bol and vi_add_at_eolaycabta2020-01-172-0/+46
|
* Add tests for vi_insert and vi_addaycabta2020-01-171-0/+32
|
* Separate numbered parameter scope in evalNobuyoshi Nakada2020-01-162-2/+8
| | | | [Feature #16432]
* Fixed the location of args node with numbered parameterNobuyoshi Nakada2020-01-162-1/+7
|
* Removed xmlrpc and net-telnet from the bundled gems.Hiroshi SHIBATA2020-01-164-8/+6
| | | | [Feature #16484][ruby-core:96682]
* Fix `String#partition`Nobuyoshi Nakada2020-01-162-1/+2
| | | | | Split with the matched part when the separator matches the empty part at the beginning. [Bug #11014]
* * 2020-01-16 [ci skip]git2020-01-161-1/+1
|
* `Regexp` in `MatchData` can be `nil`Nobuyoshi Nakada2020-01-162-0/+5
| | | | | | | `String#sub` with a string pattern defers creating a `Regexp` until `MatchData#regexp` creates a `Regexp` from the matched string. `Regexp#last_match(group_name)` accessed its content without creating the `Regexp` though. [Bug #16508]
* NEWS.md: mention "Freeze Regexp literals" [Feature #8948]Yusuke Endoh2020-01-151-0/+6
|
* NEWS.md: converted from NEWSYusuke Endoh2020-01-153-38/+36
| | | | and NEWS is deleted
* Update version guardKazuhiro NISHIYAMA2020-01-152-3/+3
| | | | fix up 98ef38ada43338c073f50a0093196f0356284625
* Freeze Regexp literalsJean Boussier2020-01-158-10/+25
| | | | | | | [Feature #8948] [Feature #16377] Since Regexp literals always reference the same instance, allowing to mutate them can lead to state leak.
* * 2020-01-15 [ci skip]git2020-01-151-1/+1
|
* Add option hash doc for GC stats.Koichi Sasada2020-01-151-0/+8
| | | | | | | | Add a description about optional hash objects for GC.stat and GC.latest_gc_info. [Bug #14408] The patch is provided by sho-h (Sho Hashimoto). Thank you so much.
* Use Reline.encoding_system_needs if existsaycabta2020-01-144-7/+20
|
* Remove an unused setting variableaycabta2020-01-141-1/+0
|
* Introduce an abstracted structure about the encoding of Relineaycabta2020-01-1410-30/+48
| | | | | | The command prompt on Windows always uses Unicode to take input and print output but most Reline implementation depends on Encoding.default_external. This commit introduces an abstracted structure about the encoding of Reline.
* [ruby/irb] Fix crashing when multiple open braces per lineBen2020-01-142-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/ruby/irb/issues/55 If we had put multiple open braces on a line the with no closing brace spaces_of_nest array keeps getting '0' added to it. This means that when we pop off of this array we are saying that we should be in position zero for the next line. This is an issue because we don't always want to be in position 0 after a closing brace. Example: ``` [[[ ] ] ] ``` In the above example the 'spaces_of_nest' array looks like this after the first line is entered: [0,0,0]. We really want to be indented 4 spaces for the 1st closing brace 2 for the 2nd and 0 for the 3rd. i.e. we want it to be: [0,2,4]. We also saw this issue with a heredoc inside of an array. ``` [<<FOO] hello FOO ``` https://github.com/ruby/irb/commit/80c69c8272
* [ruby/irb] Fix newline depth with multiple bracesBen2020-01-142-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes the check_newline_depth_difference method to multiple open braces on one line into account. Before this change we were subtracting from the depth in check_newline_depth_difference on every open brace. This is the right thing to do if the opening and closing brace are on the same line. For example in a method definition we have an opening and closing parentheses we want to add 1 to our depth, and then remove it. ``` def foo() end ``` However this isn't the correct behavior when the brace spans multiple lines. If a brace spans multiple lines we don't want to subtract from check_newline_depth_difference and we want to treat the braces the same way as we do `end` and allow check_corresponding_token_depth to pop the correct depth. Example of bad behavior: ``` def foo() [ ] puts 'bar' end ``` Example of desired behavior: ``` def foo() [ ] puts 'bar' end ``` https://github.com/ruby/irb/commit/7dc8af01e0
* Remove s390x from allow_failuresJun Aruga2020-01-141-1/+0
|
* * 2020-01-14 [ci skip]git2020-01-141-1/+1
|
* Simplify obj2ubits checksJohn Hawthorn2020-01-132-10/+10
| | | | | If this value is less than zero, then the mask check is guaranteed to fail as well, so we might as well rely on that.
* Avoid rb_check_string_type in month_argJohn Hawthorn2020-01-131-0/+4
| | | | | This will usually receive a fixnum so we should check that first instead of the more expensive rb_check_string_type check.
* Store "UTC" and "" fstring as globals in time.cJohn Hawthorn2020-01-131-6/+13
|
* Mention new feature of Hash#transform_keys [Feature #16273]Kazuhiro NISHIYAMA2020-01-131-0/+6
| | | | ref b25e27277dc39f25cfca4db8452d254f6cc8046e
* test-bundled-gems.rb: Use real paths for symlinksNobuyoshi Nakada2020-01-131-3/+3
|
* Checkout with git on cygwin for EOL codeNobuyoshi Nakada2020-01-131-2/+2
| | | | | | `shell: bash` runs bash on msys which prefers git on msys too, then checked out in CRLF mode. Cygwin sed doesn't consider the CR a part of EOL code, though.
* Fix syntax error in obj_free with hash size debug counter when ↵Lourens Naudé2020-01-131-1/+1
| | | | USE_DEBUG_COUNTER is enabled
* * 2020-01-13 [ci skip]git2020-01-131-1/+1
|
* reload AR table body for transient heap.Koichi Sasada2020-01-131-0/+1
| | | | | | ar_talbe (Hash representation for <=8 size) can use transient heap and the memory area can move. So we need to restore `pair' ptr after `func` call (which can run any programs) because of moving.
* Clean generated ChangeLog [ci skip]Nobuyoshi Nakada2020-01-121-1/+1
|
* Ignore existing ChangeLog file and generate always [ci skip]Nobuyoshi Nakada2020-01-121-0/+2
|
* vcs.rb: Allow to empty a part in commit logNobuyoshi Nakada2020-01-121-1/+1
|
* Added make target to export the ChangeLog fileNobuyoshi Nakada2020-01-121-0/+5
|
* * 2020-01-12 [ci skip]git2020-01-121-1/+1
|
* Allow failures with rss tests on test-bundled-gemsHiroshi SHIBATA2020-01-122-2/+4
|
* Also ignored cve_2014_8080_specHiroshi SHIBATA2020-01-121-24/+27
|
* Ignore rexml examples on ruby/specHiroshi SHIBATA2020-01-12104-1550/+1862
|
* Make rss library to the bundle gemsHiroshi SHIBATA2020-01-1292-23496/+5
| | | | [Feature #16485][ruby-core:96683]
* Make rexml library to the bundle gemsHiroshi SHIBATA2020-01-12160-46104/+4
| | | | [Feature #16485][ruby-core:96683]
* Get rid of use of magic number 'E'Nobuyoshi Nakada2020-01-111-4/+10
|
* Add branch option to checkout on pushKazuhiro NISHIYAMA2020-01-116-7/+9
|
* st_delete_wrap is no longer usedNobuyoshi Nakada2020-01-111-6/+0
|
* Warn when :newline precedes other newline optionsNobuyoshi Nakada2020-01-112-4/+13
|
* Added assertions for newline decoratorsNobuyoshi Nakada2020-01-112-1/+21
|
* * 2020-01-11 [ci skip]git2020-01-111-1/+1
|
* Let execution context local storage be an ID tableLourens Naudé2020-01-116-22/+42
|
* Fixed the wrong url for benchmarkHiroshi SHIBATA2020-01-101-1/+1
|
* Update the upstream repository of bundlerHiroshi SHIBATA2020-01-102-3/+3
|
* Reduced duplicate codeNobuyoshi Nakada2020-01-101-6/+1
|