aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Hash#transform_values should return a plain new HashNobuyoshi Nakada2020-01-102-4/+15
| | | | [Bug #16498]
* add missing #include卜部昌平2020-01-101-0/+1
|
* avoid undefined behaviour when n==0卜部昌平2020-01-102-7/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ISO/IEC 9899:1999 section 6.5.7 states that "If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is undefined". So we have to take care of such situations. This has not been a problem because contemporary C compilers are extraordinary smart to compile the series of shifts into a single ROTLQ/ROTRQ machine instruction. In contrast to what C says those instructions have fully defined behaviour for all possible inputs. Hence it has been quite difficult to observe the undefined-ness of such situations. But undefined is undefined. We should not rely on such target-specific assumptions. We are fixing the situation by carefully avoiding shifts with out-of- range values. At least GCC since 4.6.3 and Clang since 8.0 can issue the exact same instructions like before the changeset. Also in case of Intel processors, there supposedly be intrinsics named _rotr/_rotl that do exactly what we need. They, in practice, are absent on Clang before 9.x so we cannot blindly use. But we can at least save MSVC. See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57157 https://bugs.llvm.org/show_bug.cgi?id=17332
* more use of MSC_VERSION_SINCE卜部昌平2020-01-101-16/+18
| | | | | | Replaces `#ifdef _MSC_VER` with more accurate version checks. Also, `defined(_WIN64) && defined(__AVX2__)` is redundant because there is no such tihng like a 32bit AVX2 machine.
* fix Windows breakage卜部昌平2020-01-101-2/+2
| | | | | | Fixing typo revealed that _BitScanReverse is BSR, which behaves differently than LZCNT. What we want here is LZCNT so we have to emulate.
* fix typos卜部昌平2020-01-101-3/+3
|
* Ensure seed data to be clearedNobuyoshi Nakada2020-01-101-23/+14
| | | | To prevent from leaking the seed data.
* Fill siphash salt directly with random dataNobuyoshi Nakada2020-01-101-0/+6
| | | | | Expanding less random data with MT is not needed when it succeeded.
* Update dependencies for c6b26f5ccf9296f7fbb23c055401c4f55d32efa0Nobuyoshi Nakada2020-01-101-0/+6
|
* * 2020-01-10 [ci skip]git2020-01-101-1/+1
|
* Fix warnings for URI.encode and URI.decodeJeremy Evans2020-01-091-2/+2
| | | | | | Use __callee__ to display the called method. Fixes [Bug #16469]