61004 Commits

Author SHA1 Message Date
S.H
034b8472ba
remove unused rb_str_clear define (#3059) 2020-04-25 20:39:44 -07:00
Kazuhiro NISHIYAMA
63fe3739dd
Fix errors when RDoc::RI::Paths::HOMEDIR is nil
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20200425T175405Z.fail.html.gz
```
  4) Error:
TestRDocServlet#test_asset:
NoMethodError: undefined method `replace' for nil:NilClass
    /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:48:in `setup'

  5) Error:
TestRDocServlet#test_asset:
NoMethodError: undefined method `replace' for nil:NilClass
    /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:63:in `teardown'
```
...
```
 74) Error:
TestRDocServlet#test_store_for_site:
NoMethodError: undefined method `replace' for nil:NilClass
    /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:48:in `setup'

 75) Error:
TestRDocServlet#test_store_for_site:
NoMethodError: undefined method `replace' for nil:NilClass
    /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:63:in `teardown'
```
2020-04-26 11:07:42 +09:00
git
9fd3f2432e * 2020-04-26 [ci skip] 2020-04-26 02:01:35 +09:00
Sorah Fukumori
7ccb7a992d
[DOC] explicit_bzero exists in modern Linux
[ci skip]
2020-04-26 02:00:45 +09:00
Nobuyoshi Nakada
fefb5fafbc
More enums are mandatory for rp in lldb_cruby.py 2020-04-25 17:52:27 +09:00
Nobuyoshi Nakada
7c88bb3eba
fetch-bundled_gems.rb: Fixed the position of -c 2020-04-25 13:56:24 +09:00
Nobuyoshi Nakada
f12f9f511d
fetch-bundled_gems.rb: Quiet detached HEAD advice 2020-04-25 13:16:40 +09:00
Hiroshi SHIBATA
c2700379ad
git co is alias of git checkout 2020-04-25 12:15:01 +09:00
Nobuyoshi Nakada
42ac3f79ba
Assert that typed data is distinguished from non-typed 2020-04-25 09:29:27 +09:00
Nobuyoshi Nakada
cc8f55e9e3 [ruby/rdoc] HOME is preserved by RDoc::TestCase
https://github.com/ruby/rdoc/commit/6c4801d1f6
2020-04-25 02:49:37 +09:00
Nobuyoshi Nakada
ae235db25d [ruby/rdoc] Should teardown in reverse order of setup
https://github.com/ruby/rdoc/commit/00fb4dd2a3
2020-04-25 02:49:35 +09:00
git
cf5b3d6798 * 2020-04-25 [ci skip] 2020-04-25 02:36:24 +09:00
Nobuyoshi Nakada
c6020ba277
Clear cached XDG path names 2020-04-25 02:35:57 +09:00
Nobuyoshi Nakada
21598b0cc2
Fixed a typo [ci skip] 2020-04-24 23:24:19 +09:00
Hiroshi SHIBATA
c5b17b0354
Remove and Restore the original HOME dir (#3057) 2020-04-24 21:22:05 +09:00
Nobuyoshi Nakada
5b8c36dfb2
[DOC] Added GNU make specific targets [ci skip] 2020-04-24 18:32:47 +09:00
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 67bcac879a2e0ddfb4e7bbd7cb5e5401422de76a.
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 6b04c480487ab64d73e1254be2412e722b7b8bd8.
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 e62aead26909e83f2c8b940186047f0a88b9f2d6
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