1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

65300 commits

Author SHA1 Message Date
Nobuyoshi Nakada
416956afa6
Set verbose flag at retrying 2021-02-14 17:47:46 +09:00
Nobuyoshi Nakada
0dad341006
Directory mapping for default gems
To uniform directory structures, sometimes files are gathered in
different directory than the upstreams, executable files in
`libexec` for instance.  Re-map these files to consistent with the
upstreams.
2021-02-14 17:41:26 +09:00
Nobuyoshi Nakada
504d6dc429
Revert following rbinstall.rb changes
Because unexpected names are listed in gemspec files.

* "Fix gemspec only case"
  fc56b96b09

* "Refined installation of gemspecs placed other than ext and lib"
  31f4dec637
2021-02-14 16:57:08 +09:00
Vít Ondruch
ff527e7e32
Remove binstubs which are generated by Gem::Installer now.
There is no real reason to carry these around, since they can be
generated during the installation. The `Gem::Installer` generates up to
date date stubs, where the racc stubs were of older format and
regenerated anyway.
2021-02-14 14:09:08 +09:00
Vít Ondruch
763b8fed3d
Use UnpackedInstaller to install default gems.
Use UnpackedInstaller for installation of default gems similarly it is
already used to install bundled gems.

This allows to reuse RubyGems functionality instead of custom code full
of exceptions.
2021-02-14 14:09:05 +09:00
Nobuyoshi Nakada
fc56b96b09
Fix gemspec only case 2021-02-14 13:20:22 +09:00
git
07a8f09b9f * 2021-02-14 [ci skip] 2021-02-14 11:07:03 +09:00
Nobuyoshi Nakada
31f4dec637
Refined installation of gemspecs placed other than ext and lib 2021-02-14 11:05:23 +09:00
Koichi Sasada
813fe4c256 opt_equality_by_mid for rb_equal_opt
This patch improves the performance of sequential and parallel
execution of rb_equal() (and rb_eql()).
[Bug ]

rb_equal_opt (and rb_eql_opt) does not have own cd and it waste
a time to initialize cd. This patch introduces opt_equality_by_mid()
to check equality without cd.

Furthermore, current master uses "static" cd on rb_equal_opt
(and rb_eql_opt) and it hurts CPU caches on multi-thread execution.
Now they are gone so there are no bottleneck on parallel execution.
2021-02-13 11:51:33 +09:00
git
81995797bb * 2021-02-13 [ci skip] 2021-02-13 04:24:19 +09:00
Peter Zhu
15dbaa0b54 [Fixes ] Mark and move the previous ep 2021-02-12 11:23:57 -08:00
Nobuyoshi Nakada
1f0e0dfb22
Thread::Queue.new should accept an Enumerable [Feature ]
Enumerable implements #to_a but not #to_array.
2021-02-12 12:21:49 +09:00
Nobuyoshi Nakada
e8b210542b
Define rb_to_array which converts with to_a 2021-02-12 12:15:57 +09:00
Sarun Rattanasiri
1a3b68e7c1
correct the result of casecmp? examples [ci skip] 2021-02-12 06:56:51 +09:00
Jeremy Evans
2d877327e1 Make a cyclic prepend not modify ancestors for the receiver
Check for cyclic prepend before making any changes.  This requires
scanning the module ancestor chain twice, but in general modules
do not have large numbers of ancestors.
2021-02-11 07:45:52 -08:00
git
b83ad02997 * 2021-02-12 [ci skip] 2021-02-12 00:02:33 +09:00
Nobuyoshi Nakada
b83b27cddb [ruby/irb] Fix inverse separator condition
https://github.com/ruby/irb/commit/33f933196f
2021-02-12 00:02:16 +09:00
Nobuyoshi Nakada
aea40f44aa
Fixed time_t conversion modifiers for debug 2021-02-11 23:53:29 +09:00
Nobuyoshi Nakada
81f17857a7
Merged too-short salt conditions instead of UNREACHABLE_RETURN 2021-02-11 22:25:31 +09:00
Nobuyoshi Nakada
f3f78f9654
[DOC] Improved regexp.rdoc [ci skip]
* Sub-sectioned "Repetition" section
* Added examples of "Possessive match"
2021-02-11 22:20:41 +09:00
Nobuyoshi Nakada
8544f51ef7
Comment in sh needs to be the beginning of a word 2021-02-11 22:18:11 +09:00
aycabta
6eb5b3ac27 [ruby/irb] The command "irb_info" should show RUBY_PLATFORM
https://github.com/ruby/irb/commit/39d1cd874f
2021-02-11 20:36:43 +09:00
aycabta
b2d2d25b94 [ruby/irb] Suppress colorize on Windows tests
https://github.com/ruby/irb/commit/5be9354cf9
2021-02-11 20:31:29 +09:00
aycabta
d77a42fbfd [ruby/irb] Suppress error when File::ALT_SEPARATOR is nil
https://github.com/ruby/irb/commit/96accf3b95
2021-02-11 20:27:25 +09:00
Chris Seaton
c3b2bb0969
The Queue constructor should take an initial set of objects
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-02-11 19:14:18 +09:00
Takashi Kokubun
a0216b1acf
Do not run File.write while Ractors are running
also make sure all local variables have the __bmdv_ prefix.
2021-02-11 00:25:46 -08:00
Takashi Kokubun
27382eb9fc
Add a benchmark-driver runner for Ractor ()
* Add a benchmark-driver runner for Ractor

* Process.clock_gettime(Process:CLOCK_MONOTONIC) could be slow

in Ruby 3.0 Ractor

* Fetching Time could also be slow

* Fix a comment

* Assert overriding a private method
2021-02-10 21:24:25 -08:00
S-H-GAMELINKS
9e66c511ff Fix 404 link 2021-02-11 13:33:21 +09:00
Jeremy Evans
c03b723f56 Update class documentation for StringScanner
The [] wasn't being displayed, and try to fix formatting for bol?
and << (even if they aren't linked).

Fixes [Bug ]
2021-02-10 08:17:07 -08:00
git
b7333b4449 * 2021-02-11 [ci skip] 2021-02-11 00:56:12 +09:00
Jeremy Evans
fc83b4896e Don't document that Thread#group can return nil
Thread's are assigned a group at initialization, and no API exists
for them to unassign them from a group without assigning them to
another group.

Fixes [Bug ]
2021-02-10 07:55:53 -08:00
Nobuyoshi Nakada
e271a3d4af
[DOC] Update README files to use autoreconf [ci skip] 2021-02-10 21:11:53 +09:00
Nobuyoshi Nakada
4b6347ab39 Compile debugging code for time always 2021-02-10 19:45:14 +09:00
Nobuyoshi Nakada
ef59a781d7 Fixed the signature of find_time_numguess_getter 2021-02-10 19:45:14 +09:00
Nobuyoshi Nakada
3acc81d9e4 Fixed race in dtoa [Bug ]
Fixed the race condition when replacing `freelist` entry with its
chained next element.  At acquiring an entry, hold the entry once
with the special value, then release by replacing it with the next
element again after acquired.  If another thread is holding the
same entry at that time, spinning until the entry gets released.

Co-Authored-By: Koichi Sasada <ko1@atdot.net>
2021-02-10 19:44:47 +09:00
Nobuyoshi Nakada
ad2c7f8a1e
Simple benchmark of Float#to_s 2021-02-10 19:42:00 +09:00
卜部昌平
281dfacb5d .github/workflows/compilers.yml: clang-13
LLVM made release/122.x branch.  Its master is now version 12.
2021-02-10 12:54:05 +09:00
Hiroshi SHIBATA
e72757a311 [ruby/zlib] Don't use gemspec for gem dependecy
https://github.com/ruby/zlib/commit/7d3d19710f
2021-02-10 12:49:33 +09:00
Hiroshi SHIBATA
231f0f6f45 [ruby/zlib] test-unit didn't provide __name__ attribute
https://github.com/ruby/zlib/commit/7d3fc1f325
2021-02-10 12:49:16 +09:00
Jeremy Evans
49d3830f44 Fix documentation for Module#ruby2_keywords
It returns nil, not self.

Fixes [Bug ]
2021-02-09 14:47:36 -08:00
Use amazing-print instead
189bf0106f Fix broken link
The document should point to doc/syntax/comments.rdoc (with an "s") as there currently no `doc/syntax/comment.rdoc`
2021-02-09 13:16:32 -08:00
git
bb10f81c90 * 2021-02-10 [ci skip] 2021-02-10 04:40:53 +09:00
Yusuke Endoh
66394aec98 vm_dump.c: Dump machine registers on RISC-V Linux
Fixes [Bug ]

Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-02-10 04:39:41 +09:00
Use amazing-print instead
e7a831de8e Improve the wording surrounding Proc#isolate
This change moves the statement that `Proc#isolate` isn't yet exposed for Ruby users to the first time the method is mentioned. This is so that readers don't waste time trying to look it up in Ruby docs.

There was also unnecessary duplication:
```
Paragraph 1: "Given block will be isolated from outer scope by Proc#isolate."
Paragraph 2: "Given block will be isolated by Proc#isolate method"
```
So I combined the two sentences and slightly improved the wording for clarity.
2021-02-09 08:22:37 -05:00
Nobuyoshi Nakada
6bb103f012
[ruby/console] Updated depend 2021-02-09 17:49:28 +09:00
Nobuyoshi Nakada
5bfca88f76
[ruby/io-console] Fixed typo 2021-02-09 17:39:00 +09:00
Nobuyoshi Nakada
df4f8aa248
[ruby/io-console] Fixed regression against 3.0 2021-02-09 17:38:52 +09:00
Nobuyoshi Nakada
96441b91a6
Define macro for fiber/scheduler.h 2021-02-09 17:15:29 +09:00
Nobuyoshi Nakada
e7416b4c7e
Updated pre-prototype declarations 2021-02-09 17:11:14 +09:00
Nobuyoshi Nakada
8776606b1d
strip trailing spaces [ci skip] 2021-02-09 16:59:15 +09:00