Граф коммитов

59445 Коммитов

Автор SHA1 Сообщение Дата
Kazuhiro NISHIYAMA 8b921813aa
Fix open without close [ci skip] 2019-12-16 16:58:21 +09:00
Nobuyoshi Nakada 04e95f8985 Get rid of infinite recursion at loading transcoder
Disable encoding US-ASCII path to filesystem on Windows too.
[Bug #16392]
2019-12-16 16:16:54 +09:00
Nobuyoshi Nakada d2f04d332f Kernel#abort without arguments should print error info
[Bug #16424]
2019-12-16 14:55:59 +09:00
Hiroshi SHIBATA 1e80a208cc
Update the NEWS entry for Bundler 2.1.0 2019-12-16 10:09:16 +09:00
git 2344d8ac9a * 2019-12-16 [ci skip] 2019-12-16 10:05:44 +09:00
Breno Leitao f47c38245f gc.h: Add SET_MACHINE_STACK_END specific for Powerpc64 (#1767)
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>
2019-12-16 10:05:21 +09:00
Nobuyoshi Nakada e8c62836a6
IO#set_encoding_by_bom should err when encoding is already set
Except for ASCII-8BIT.  [Bug #16422]
2019-12-15 23:13:16 +09:00
Yusuke Endoh eeb99fb525 tool/gen-mailmap.rb: odaira is removed as he is added in upstream
ddc83bea6f
2019-12-15 22:19:45 +09:00
Yusuke Endoh 48bab6fe1e tool/gen-mailmap.rb: Added for generating git `.mailmap` file
`.mailmap` can be used To show canonical names and email addresses.
It is helpful for statistics of committers.
2019-12-15 22:06:13 +09:00
Kazuhiro NISHIYAMA a83c46e3fd
Add more debug info
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"}>.
```
2019-12-15 20:09:24 +09:00
Hiroshi SHIBATA 980ddca47e
Prepare to release rubygems-3.1.0 2019-12-15 16:48:52 +09:00
David Rodríguez 9f43160014 Delegate should be supported now
Since `did_you_mean` dropped its dependency on it.
2019-12-15 16:41:10 +09:00
Hiroshi SHIBATA 286cb3395f Fixed test failures with gem command path on ruby core repo. 2019-12-15 16:41:10 +09:00
David Rodríguez 0fab900538 Vendor thor 1.0.0 2019-12-15 16:41:10 +09:00
Hiroshi SHIBATA 38002a8adb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
Kazuhiro NISHIYAMA e2b192f7d5
rand(beginless_range) raise Errno::EDOM instead of TypeError
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)
```
2019-12-15 14:47:36 +09:00
Nobuyoshi Nakada db2ea9b0c5
[DOC] Fixed the class name in FrozenError#receiver 2019-12-15 00:21:19 +09:00
Nobuyoshi Nakada 38b9d213f1
Revert "[DOC] Fixed the class name in FrozenError#receiver"
This reverts commit 5f56a5fc9b.
`FrozenError.new(mesg, nil).receiver` should not raise an
ArgumentError.
2019-12-15 00:19:02 +09:00
git 52b1ba0b02 * 2019-12-15 [ci skip] 2019-12-15 00:15:23 +09:00
Nobuyoshi Nakada 5f56a5fc9b
[DOC] Fixed the class name in FrozenError#receiver 2019-12-15 00:14:16 +09:00
Nobuyoshi Nakada 33f0ef44fd
[DOC] Fixed the FrozenError.new result [ci skip] 2019-12-15 00:14:16 +09:00
Benoit Daloze 9e02568363 Improve highlighting in RubyVM::AbstractSyntaxTree docs when using `ri` 2019-12-14 12:26:30 +01:00
Benoit Daloze b4b22b9278 Clarify in the documentation that RubyVM::AbstractSyntaxTree is not stable API
* See [Feature #14844].
2019-12-14 12:21:40 +01:00
Kazuhiro NISHIYAMA 4cc83f9ac6
[Feature #13083] is already reverted 2019-12-14 16:05:49 +09:00
Kazuhiro NISHIYAMA 90cdcefa78
Update warnings in NEWS 2019-12-14 16:05:15 +09:00
Yuki Nishijima e2708068ad Drop delegate dependency
Original comment:
  2f26c9ee77
2019-12-13 21:40:52 -05:00
Marcus Stollsteimer f3240eb67d NEWS: fix pattern matching example 2019-12-13 22:07:59 +01:00
git 835703c69f * 2019-12-14 [ci skip] 2019-12-14 00:40:25 +09:00
Nobuyoshi Nakada 84b873e381 [ruby/irb] Restore environment variables
https://github.com/ruby/irb/commit/236590882c
2019-12-14 00:39:53 +09:00
Hiroshi SHIBATA ab1f3d63b0
Fixed a typo 2019-12-13 22:10:28 +09:00
Hiroshi SHIBATA 2ef5f012c1
Added explicitly loading `Gem::Command` class 2019-12-13 22:00:28 +09:00
Nobuyoshi Nakada eb512c5a95
warn should be a global function 2019-12-13 21:38:50 +09:00
Nobuyoshi Nakada a2e8712349
Fix visibility as module_function 2019-12-13 20:51:58 +09:00
Nobuyoshi Nakada 6183addf6a Add `Warning.[]` and `Warning.[]=` 2019-12-13 20:47:07 +09:00
Nobuyoshi Nakada f3b1b645ed Create backtrace location array directly 2019-12-13 20:47:07 +09:00
Nobuyoshi Nakada 0b5268afbc Moved Kernel#warn to warning.rb 2019-12-13 20:47:07 +09:00
Hiroshi SHIBATA 82cc2843a9
Prepare to release RubyGems 3.1.0 final version. 2019-12-13 20:19:33 +09:00
Kazuhiro NISHIYAMA 26774351dc
Ignore error of `apt-get update` in MJIT workflow too 2019-12-13 18:06:36 +09:00
Kazuhiro NISHIYAMA d5c73681f8
Ignore error of `apt-get update` on GitHub Actions 2019-12-13 18:04:21 +09:00
Koichi Sasada 97a17a51b8 readable function names for inline functions.
Now, C functions written by __builtin_cexpr!(code) and others are
named as "__builtin_inline#{n}". However, it is difficult to know
what the function is. This patch rename them into
"__builtin_foo_#{lineno}" when cexpr! is in 'foo' method.
2019-12-13 17:55:45 +09:00
Matt Valentine-House 1140625cd3
Allow more than one major version number in target_os 2019-12-13 08:58:42 +09:00
aycabta c2dfc6d869 Show a menu before a document
IRB should show a menu first if a completed list has plural items. But just
shows document without menu if a completed list with plural items includes a
perfect matched item. The behavior is a bug. This commit fixes it.
2019-12-13 08:54:22 +09:00
Nobuyoshi Nakada b8d6c883b3
Improved the test for Thread#inspect [Feature #16412] 2019-12-13 08:52:07 +09:00
git fa5f7a8f7e * 2019-12-13 [ci skip] 2019-12-13 00:05:20 +09:00
aycabta 69b6f8fd04 Check wether TestReadline is defined 2019-12-13 00:04:44 +09:00
Nobuyoshi Nakada 93b27c69cc
Show the failed message too 2019-12-12 23:26:35 +09:00
Kazuhiro NISHIYAMA 68321dd1fa
Move `rescue` for debug into block of assert_raise 2019-12-12 22:05:14 +09:00
Nobuyoshi Nakada dd60856f8d
[cygwin] fix File.absolute_path? test
Paths start with the root are absolute on cygwin, regardless the
drive letter.
2019-12-12 20:53:59 +09:00
Nobuyoshi Nakada b6f25318c5
Cygwin path cannot be mapped to a UNC as-is 2019-12-12 20:53:02 +09:00
Kazuhiro NISHIYAMA c20dd2f754
Add more debug info when Errno::EINVAL
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191212T072406Z.fail.html.gz
2019-12-12 17:38:27 +09:00