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

61038 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 04a55763fa
[DOC] Split "How to run a part of the test suite" [ci skip] 2020-04-24 18:32:41 +09:00
aycabta 9fb20711fd [ruby/reline] Treat home dir correctly
https://github.com/ruby/reline/commit/9b1327d2f4
2020-04-24 16:46:36 +09:00
aycabta 81b0b79197 [ruby/reline] Support XDG_CONFIG_HOME
In the XDG Specification, if ~/.config/readline/inputrc exists, then ~/.inputrc
should not be read, but for compatibility with GNU Readline, if ~/.inputrc
exists, then it is given priority.

https://github.com/ruby/reline/commit/97f1e7db04
2020-04-24 16:45:07 +09:00
git 71f84018b7 * 2020-04-24 [ci skip] 2020-04-24 12:23:01 +09:00
Nobuyoshi Nakada cf90df22c7
[DOC] Separated Method#[] from Method#call [Bug #16813] [ci skip] 2020-04-24 11:18:27 +09:00
Nobuyoshi Nakada ac2106acc2
[DOC] Fixed explanation for Method#>> [Bug #16813] [ci skip] 2020-04-24 11:16:19 +09:00
Nobuyoshi Nakada 0f5ae7a200
Fixed inverted current thread condition [Bug #16808] 2020-04-23 22:19:28 +09:00
Nobuyoshi Nakada a52a459b16 Truncate too long thread name before setting [Bug #16808] 2020-04-23 21:42:21 +09:00
Hiroshi SHIBATA 03e4eeabbf
Skip the initialization of XDG_DATA_HOME with Permission denied 2020-04-23 21:11:21 +09:00
Hiroshi SHIBATA 5c6269c459
Support XDG_* (#2174)
* Support XDG_CONFIG_HOME for gemrc.

* Support XDG_DATA_HOME for .gem

* Added test for XDG_DATA_HOME

* Do not reuse environmental variable.

* Unify .rdoc path to RDoc.home.

* Support XDG_DATA_HOME for .rdoc

* Ignore exists?

* Extracted config_home path

* Use XDG_CONFIG_HOME for default credential path

* Fixed inconsistency location.

* Fixed the broken tests.

* Support XDG_CONFIG_HOME for irbrc

* Introduce Gem.cache_home as XDG_CACHE_HOME

* Use Gem.cache_home instead of Gem.config_home for the credential file of RubyGems.

* Initialized the old configurations

* Fixed test failure related the configuration initialization

* restore XDG_DATA_HOME

* Fixed the broken examples of bundler with XDG_*

* Do not modify environmental variable on test file

* Use XDG_DATA_HOME insted of XDG_CACHE_HOME for credential file

* stub out Gem.data_home

* Move dir accessor to defaults.rb file

* Use XDG_DATA_HOME for signed gem features

* Use XDG_DATA_HOME for spec cache

* Do not rely on Gem.user_home

* Gem.user_home is always exists. Don't need to use FileUitls.mkdir_p

* Bump support version to RubyGems 3.2.0+

* Removed the needless fallback configuration

* Fixed the inconsistency methods that are find_config_file and config_file

* Use Gem.configuration.credentials_path instead of hard-coded path

* gem_path is always provided

* Removed the duplicated code of find_home

* Also removed the duplicated code of user_home

* use Gem::UNTAINT instead of untaint for surpressing the warnings

* Use File.directory

* Restore XDG_DATA_HOME

* Use File.write
2020-04-23 19:16:06 +09:00
Burdette Lamar f563f3c5ef
RDoc enhancements for Hash[]. 2020-04-23 20:46:20 +12:00
Nobuyoshi Nakada 14e013cdbb [ruby/rdoc] Drop old rubies
* `RbConfig::CONFIG['ridir']` has been set since 1.9.2

* `ENV["HOME"]` has been defaulted to `USERPROFILE` since 1.9.0,
  and backported to 1.8.5 or later.

https://github.com/ruby/rdoc/commit/a3a614e676
2020-04-23 15:13:27 +09:00
Nobuyoshi Nakada d1f50b9872
Initialize the class variable for Minitest::Unit.current_repeat_count 2020-04-23 10:44:27 +09:00
Nobuyoshi Nakada 2e87488d13
Expand retrying test file names to realpath
As well as worker processes do in Test::Unit::Worker#run.
2020-04-23 10:25:09 +09:00
Nobuyoshi Nakada 74c8aaef7d
Just call search_method_protect [Bug #16669] 2020-04-23 10:24:49 +09:00
Nobuyoshi Nakada da5bd0047d
Test for [Bug #16669] 2020-04-23 09:43:30 +09:00
Nobuyoshi Nakada de9d6a7a8c
Split test_defined 2020-04-23 09:39:42 +09:00
Koichi Sasada 8119bcbfc0 rb_method_entry() returns valid me.
search_method() can return invalid method, but vm_defined() checks
it as valid method entry. This is why defined?(foo) if foo is undef'ed.
To solve this problem, check invalidation and return NULL.
[Bug #16669]
https://twitter.com/kamipo/status/1252881930103558144

Tests will be merged by nobu soon.
2020-04-23 02:21:38 +09:00
git 492e8599c6 * 2020-04-23 [ci skip] 2020-04-23 01:41:21 +09:00
Kazuhiro NISHIYAMA 6292271ef7
Fix permission of PATH
https://github.com/ruby/actions/runs/608526685?check_suite_focus=true
`warning: Insecure world writable dir /home/runner/.config in PATH, mode 040777`
2020-04-23 01:40:24 +09:00
Nobuyoshi Nakada 1997e10f6c
Made parentheses mandatory in endless method defition
Even for empty argument list, not to be confusing with a writer
method name.
2020-04-22 20:44:46 +09:00
Nobuyoshi Nakada 1fe5bffefd
Disallow R-assign in endless def 2020-04-22 20:44:43 +09:00
Nobuyoshi Nakada 02ad393cd6
Revert "Allow simple R-assign in endless def"
This reverts commit 67bcac879a.
2020-04-22 18:56:06 +09:00
Nobuyoshi Nakada d6ec8da689
Update benchmark-driver version 2020-04-22 16:13:42 +09:00
Nobuyoshi Nakada f00b923193
Revert "* remove trailing spaces. [ci skip]"
This reverts commit 6b04c48048.
Trailing spaces separate paragraphs in RDoc format.
2020-04-22 15:27:32 +09:00
Nobuyoshi Nakada 5ce7835520
Update benchmark-driver version 2020-04-22 10:01:11 +09:00
S.H 17083011ee
support builtin for Kernel#Float
# Iteration per second (i/s)

|             |compare-ruby|built-ruby|
|:------------|-----------:|---------:|
|float        |     30.395M|   38.314M|
|             |           -|     1.26x|
|float_true   |      3.833M|   27.322M|
|             |           -|     7.13x|
|float_false  |      4.182M|   24.938M|
|             |           -|     5.96x|
2020-04-22 09:49:13 +09:00
Yusuke Endoh ad63ae6619 .github/workflows/mingw.yml: add `shell: bash` for PR checkout
as well as e62aead269
2020-04-22 02:43:07 +09:00
Yusuke Endoh 92afac8f33 configure.ac: Automatically add -D__ANDROID_API=ver on Android 2020-04-22 02:31:37 +09:00
git cebf575de8 * 2020-04-22 [ci skip] 2020-04-22 02:05:33 +09:00
Yusuke Endoh 7d918be633 test/ruby/test_fiber.rb: Skip the problematic test_stack_size on riscv
Since it is impossible to detect stack overflow of C functions robustly,
the test is a bit unreasonable.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20200421T120018Z.fail.html.gz
2020-04-22 02:05:12 +09:00
Nobuyoshi Nakada 22226324f7
LEGAL: fixed links to the old-style BSD license [ci skip] 2020-04-21 21:36:58 +09:00
git 6b04c48048 * remove trailing spaces. [ci skip] 2020-04-21 21:12:00 +09:00
Nobuyoshi Nakada cb47ae58d3
LEGAL: moved the old-style BSD license and linked [ci skip] 2020-04-21 21:05:48 +09:00
Nobuyoshi Nakada 61afd2a2d0
LEGAL: moved the MIT license and linked [ci skip] 2020-04-21 21:05:48 +09:00
Nobuyoshi Nakada 405d8014c5
LEGAL: made license names themselves links [ci skip] 2020-04-21 21:05:42 +09:00
Nobuyoshi Nakada 3ef09c6e66
eval_error.c: default nil as "reverse" is now false [Feature #8661] 2020-04-21 19:29:16 +09:00
Nobuyoshi Nakada bf11bf31e2
NEWS.md: the order of backtrace [Feature #8661] [ci skip] 2020-04-21 19:29:16 +09:00
Yusuke Endoh 487d0c99d5 eval_error.c: revert the "reversed" backtrace [Feature #8661]
Now, the order is good, old-fashioned style:

```
$ ./local/bin/ruby -e 'def foo; raise; end
def bar; foo; end
def baz; bar; end
def qux; baz; end
qux
'
-e:1:in `foo': unhandled exception
	from -e:2:in `bar'
	from -e:3:in `baz'
	from -e:4:in `qux'
	from -e:5:in `<main>'
```
2020-04-21 17:39:32 +09:00
卜部昌平 c63b5c6179 rb_memerror: abort immediately
Ditto for adab82b9a7.  TRY_WITH_GC was
found innocent.
2020-04-21 16:30:33 +09:00
Nobuyoshi Nakada dc9089b51f
Fixed a typo [ci skip] 2020-04-21 13:35:31 +09:00
卜部昌平 32623150cd reroute redefinition of NDEBUG
NDEBUG can be defined via a command-line argument.  Should take care of
such situations.
2020-04-21 13:07:19 +09:00
卜部昌平 735e035bf5 __GNUC__ is too lax
Ditto for 4b853932ea
2020-04-21 13:07:02 +09:00
卜部昌平 adab82b9a7 TRY_WITH_GC: abort immediately
NoMemoryError is observed on icc but I fail to reproduce so far.  Let me
see the backtrace on CI.
2020-04-21 12:59:35 +09:00
Kazuhiro NISHIYAMA 4b86194177
Fix typos [ci skip] 2020-04-21 12:38:36 +09:00
Hiroshi SHIBATA b9962f0e89
Fixed incorrect man path with ruby installation path
[Bug #15359][ruby-core:90164]
2020-04-21 06:53:29 +09:00
Yusuke Endoh 8e51794265 test/ruby/test_refinement.rb: extend the timeout
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20200420T083601Z.fail.html.gz
2020-04-21 00:06:53 +09:00
git 7a0ac279b7 * 2020-04-21 [ci skip] 2020-04-21 00:00:23 +09:00
Yusuke Endoh 6985bfb72c vm_dump.c: Do not show C backtrace on riscv
Currently, objdump -W miniruby emits some errors on riscv, so I guess
that DWARF is corrupted.
2020-04-20 23:59:05 +09:00
Yusuke Endoh 847e25975c Skip JIT tests on riscv64 due to SEGV of cc1 2020-04-20 22:48:10 +09:00