aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* time.c (find_time_t): fix round-to-zero bugYusuke Endoh2019-12-171-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | `find_time_t` did not work correctly for year older than the Epoch because it used C's integer division (which rounds negative to zero). For example, `TIme.new(1933)` returned a wrong time whose year is 1922 in Asia/Kuala_Lumpur because there is no 00:00:00 1st Jan. 1933 in the time zone. ``` $ TZ=Asia/Kuala_Lumpur ruby -e 'p Time.new(1933)' 1932-12-31 00:00:00 +0700 ``` This change fixes the issue by using `DIV` macro instead of `/`. Now `Time.new(1933)` returns a time in 1933. ``` $ TZ=Asia/Kuala_Lumpur ruby -e 'p Time.new(1933)' 1933-01-01 00:20:00 +0720 ``` [Bug #16159]
* close datasocket on stor of server sideNARUSE, Yui2019-12-171-1/+1
|
* ensure to close the data connection [Bug #16413]NARUSE, Yui2019-12-171-16/+28
|
* Check wether Readline.completion_append_character= existsaycabta2019-12-171-1/+1
|
* thread.c: avoid needless read after select|ppollEric Wong2019-12-161-4/+9
| | | | | We do not need to issue pipe|eventfd read(2) syscall unless select, ppoll|poll declares the FD needs reading.
* test/ruby/test_process.rb: suppress "unused variable" warningYusuke Endoh2019-12-171-1/+1
|
* * 2019-12-17 [ci skip]git2019-12-171-1/+1
|
* Make prettyprint’s cycle detection aware of Delegator instancesRichard Viney2019-12-162-0/+16
| | | | | | Fixes [Bug #13144] Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Revert "lib/net/http/response.rb: support raw deflate correctly"Yusuke Endoh2019-12-162-19/+19
| | | | | | | | | | | | | | | | This reverts commit 5105240b1e851410020b3b3f1a2bead7ffdd4291. In RFC 2616: ``` deflate The "zlib" format defined in RFC 1950 [31] in combination with the "deflate" compression mechanism described in RFC 1951 [29]. ``` So "Content-Encoding: deflate" means zlib format, not raw deflate. [Bug #11268]
* lib/net/http/response.rb: support raw deflate correctlyYusuke Endoh2019-12-162-19/+19
| | | | | | | | | | | | | | Net::HTTP had used `Zlib::Inflate.new(32 + Zlib::MAX_WBITS)` for all content encoding (deflate, zlib, and gzip). But the argument `32 + Zlib::MAX_WBITS` means zlib and gzip decoding with automatic header detection, so (raw) deflate compression had not been supported. This change makes it support raw deflate correctly by passing an argument `-Zlib::MAX_WBITS` (which means raw deflate) to `Zlib::Inflate.new`. All deflate-mode tests are fixed too. [Bug #11268]
* Enhancements for ENV docBurdetteLamar2019-12-161-46/+194
|
* Merge RubyGems 3.1.1 and update the NEWS entry for RubyGemsHiroshi SHIBATA2019-12-162-3/+3
|
* ensure cc->def == cc->me->def卜部昌平2019-12-163-18/+29
| | | | | | | The equation shall hold for every call cache. However prior to this changeset cc->me could be updated without also updating cc->def. Let's make it sure by introducing new macro named CC_SET_ME which sets cc->me and cc->def at once.
* Use CDN instead of raw.githubusercontent.comKazuhiro NISHIYAMA2019-12-161-1/+1
|
* Fix open without close [ci skip]Kazuhiro NISHIYAMA2019-12-161-1/+1
|
* Get rid of infinite recursion at loading transcoderNobuyoshi Nakada2019-12-161-1/+1
| | | | | Disable encoding US-ASCII path to filesystem on Windows too. [Bug #16392]
* Kernel#abort without arguments should print error infoNobuyoshi Nakada2019-12-164-5/+16
| | | | [Bug #16424]
* Update the NEWS entry for Bundler 2.1.0Hiroshi SHIBATA2019-12-161-2/+2
|
* * 2019-12-16 [ci skip]git2019-12-161-1/+1
|
* gc.h: Add SET_MACHINE_STACK_END specific for Powerpc64 (#1767)Breno Leitao2019-12-161-0/+2
| | | | | | | | | | | | | | | Currently we are not able to grab the correct end/top of the stack on powerpc64 due to the fact that it uses the fallback function. The fallback function does not return the correct top of the stack because it adds a new frame and the returned top of the stack contains this frame overhead that could be something around 112 bytes on Powerpc64. This patch simply gets the correct top of the stack pointer, which is always on r1 register according to both ABI v1 and ABI v2 (Little endian). Signed-off-by: Breno Leitao <leitao@debian.org>
* IO#set_encoding_by_bom should err when encoding is already setNobuyoshi Nakada2019-12-152-0/+14
| | | | Except for ASCII-8BIT. [Bug #16422]
* tool/gen-mailmap.rb: odaira is removed as he is added in upstreamYusuke Endoh2019-12-151-2/+0
| | | | https://github.com/ruby/ruby-commit-hook/commit/ddc83bea6fe6f4696e140b605db10ef0c922bba6
* tool/gen-mailmap.rb: Added for generating git `.mailmap` fileYusuke Endoh2019-12-151-0/+49
| | | | | `.mailmap` can be used To show canonical names and email addresses. It is helpful for statistics of committers.
* Add more debug infoKazuhiro NISHIYAMA2019-12-151-1/+8
| | | | | | | | | | | | | closed server doesn't have useful info. So call inspect before close. And add local debug code in comment. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191215T092405Z.fail.html.gz ``` 1) Failure: IMAPTest#test_connection_closed_without_greeting [/export/home/rubyci/chkbuild-tmp/tmp/build/20191215T092405Z/ruby/test/net/imap/test_imap.rb:483]: [Net::IMAP::Error] exception expected, not #<RuntimeError: {:e=>#<Errno::EINVAL: Invalid argument - connect(2) for [::1]:41748>, :server=>#<TCPServer:(closed)>, :port=>41748, :server_addr=>"::1"}>. ```
* Prepare to release rubygems-3.1.0Hiroshi SHIBATA2019-12-153-46/+7
|
* Delegate should be supported nowDavid Rodríguez2019-12-151-1/+1
| | | | Since `did_you_mean` dropped its dependency on it.
* Fixed test failures with gem command path on ruby core repo.Hiroshi SHIBATA2019-12-154-4/+8
|
* Vendor thor 1.0.0David Rodríguez2019-12-153-9/+44
|
* Prepare to release bundler-2.1.0Hiroshi SHIBATA2019-12-15146-456/+4682
|
* rand(beginless_range) raise Errno::EDOM instead of TypeErrorKazuhiro NISHIYAMA2019-12-152-2/+5
| | | | | | | | | | | | | | | | | | | | | same as `rand(endless_range)` Before: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 2: from -e:1:in `<main>' 1: from -e:1:in `rand' -e:1:in `-': nil can't be coerced into Integer (TypeError) ``` After: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 1: from -e:1:in `<main>' -e:1:in `rand': Numerical argument out of domain (Errno::EDOM) ```
* [DOC] Fixed the class name in FrozenError#receiverNobuyoshi Nakada2019-12-151-1/+10
|
* Revert "[DOC] Fixed the class name in FrozenError#receiver"Nobuyoshi Nakada2019-12-151-22/+10
| | | | | | This reverts commit 5f56a5fc9be9ea7b088795c2d3871c2352a020c2. `FrozenError.new(mesg, nil).receiver` should not raise an ArgumentError.
* * 2019-12-15 [ci skip]git2019-12-151-1/+1
|
* [DOC] Fixed the class name in FrozenError#receiverNobuyoshi Nakada2019-12-151-10/+22
|
* [DOC] Fixed the FrozenError.new result [ci skip]Nobuyoshi Nakada2019-12-151-1/+1
|
* Improve highlighting in RubyVM::AbstractSyntaxTree docs when using `ri`Benoit Daloze2019-12-141-1/+1
|
* Clarify in the documentation that RubyVM::AbstractSyntaxTree is not stable APIBenoit Daloze2019-12-141-0/+10
| | | | * See [Feature #14844].
* [Feature #13083] is already revertedKazuhiro NISHIYAMA2019-12-141-8/+0
|
* Update warnings in NEWSKazuhiro NISHIYAMA2019-12-141-5/+5
|
* Drop delegate dependencyYuki Nishijima2019-12-131-4/+3
| | | | | Original comment: https://github.com/ruby/did_you_mean/commit/2f26c9ee770f28da0942c42cbc9e5800535b75e1
* NEWS: fix pattern matching exampleMarcus Stollsteimer2019-12-131-2/+2
|
* * 2019-12-14 [ci skip]git2019-12-141-1/+1
|
* [ruby/irb] Restore environment variablesNobuyoshi Nakada2019-12-141-8/+10
| | | | https://github.com/ruby/irb/commit/236590882c
* Fixed a typoHiroshi SHIBATA2019-12-131-1/+1
|
* Added explicitly loading `Gem::Command` classHiroshi SHIBATA2019-12-131-0/+1
|
* warn should be a global functionNobuyoshi Nakada2019-12-131-2/+2
|
* Fix visibility as module_functionNobuyoshi Nakada2019-12-131-0/+1
|
* Add `Warning.[]` and `Warning.[]=`Nobuyoshi Nakada2019-12-132-0/+52
|
* Create backtrace location array directlyNobuyoshi Nakada2019-12-134-7/+7
|
* Moved Kernel#warn to warning.rbNobuyoshi Nakada2019-12-134-68/+78
|