Nobuyoshi Nakada
21e255913c
[ruby/stringio] Pass IOs as separate list for ruby 2.x
...
https://github.com/ruby/stringio/commit/74e39858eb
2021-03-08 09:35:25 +09:00
Hiroshi SHIBATA
c3c1800708
Prefer to use omit
2021-03-08 09:34:16 +09:00
Nobuyoshi Nakada
1d1b9e02d2
Removed a typo in a comment [ci skip]
2021-03-07 10:21:03 +09:00
Nobuyoshi Nakada
f6d5de8f33
[ruby/io-wait] Declare as Ractor-safe
...
Fixes https://bugs.ruby-lang.org/issues/17659
https://github.com/ruby/io-wait/commit/ba338b4764
2021-03-07 09:54:35 +09:00
Nobuyoshi Nakada
ea81fff564
[ruby/io-wait] bump up to 0.1.1
...
https://github.com/ruby/io-wait/commit/88db082d60
2021-03-07 09:54:35 +09:00
Nobuyoshi Nakada
ef9bde6516
[ruby/io-wait] Refined uncommon device type tests
...
https://github.com/ruby/io-wait/commit/0c73ebcf5d
2021-03-07 09:54:35 +09:00
Nobuyoshi Nakada
05d118feea
[ruby/io-wait] Fixed required_ruby_version
...
Before 3.0.0, io-wait has not been gemified.
https://github.com/ruby/io-wait/commit/6fed3da323
2021-03-07 09:54:35 +09:00
Nobuyoshi Nakada
3ba1580d80
[ruby/io-wait] Revise IO#wait arguments
...
https://github.com/ruby/io-wait/commit/0599f6d4d6
https://github.com/ruby/io-wait/commit/4e982aea1b
https://github.com/ruby/io-wait/commit/5b45685eb3
2021-03-07 09:54:35 +09:00
Jeremy Evans
68d028578a
Undef Enumerator::Chain#{feed,next,next_values,peek,peek_values}
...
Previously these methods were defined but raised TypeError, which
seems worse.
2021-03-06 13:56:16 -08:00
Jeremy Evans
e1d16a9e56
Make Enumerator#{+,chain} create lazy chain if any included enumerator is lazy
...
Implements [Feature #17347 ]
2021-03-06 13:56:16 -08:00
Jeremy Evans
bf40fe9fed
Fix calling enumerator methods such as with_index on Enumerator::Chain
...
This previously raised a TypeError. Wrap the Enumerator::Chain in
an Enumerator to work around the problem.
Fixes [Bug #17216 ]
2021-03-06 13:56:16 -08:00
git
13dc005347
* 2021-03-07 [ci skip]
2021-03-07 00:58:48 +09:00
Nobuyoshi Nakada
b3c53a8a88
Make Ractor stdio belonging to the Ractor [Bug #17672 ]
...
Defer making ractor stdio until ractor started.
Before ractor started, created objects belong to the caller ractor
instead of the created ractor.
2021-03-07 00:58:28 +09:00
Yusuke Endoh
8ccc12118e
Keep libpath length non-negative [Bug #16784 ]
...
When runtime_libruby_path does not include '/', it attempts to call
rb_str_resize with negative length. This change makes sure that the
length non-negative.
Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-03-06 00:50:09 +09:00
git
261b746dca
* 2021-03-06 [ci skip]
2021-03-06 00:18:47 +09:00
Jeremy Evans
14e1739ff3
[ruby/irb] Make save-history extension safe for concurrent use
...
This makes the save-history extension check for modifications to
the history file before saving it. If the history file was modified
after the history was loaded and before it was saved, append only
the new history lines to the history file.
This can result in more lines in the history file than SAVE_HISTORY
allows. However, that will be fixed the next time irb is run and
the history is saved.
Fixes [Bug #13654 ]
https://github.com/ruby/irb/commit/041ef53845
2021-03-06 00:18:32 +09:00
aycabta
182cde8dfb
[ruby/irb] Add a test for not continuing when endless range at eol
...
https://github.com/ruby/irb/commit/1020ac9c65
2021-03-05 22:03:11 +09:00
Jeremy Evans
2cc5827fdc
[ruby/irb] Do not continue line if last expression is an endless range
...
Fixes [Bug #14824 ]
https://github.com/ruby/irb/commit/63414f8465
2021-03-05 22:03:05 +09:00
卜部昌平
45b3a5f7de
rb_sym_interned_p: doesn't exist
...
Deleted decades ago in commit 6e0fed271c
Note also that we eventually ended up reinventing this exact same
functionality. It is called rb_check_id() now.
2021-03-05 17:37:16 +09:00
卜部昌平
7715d428f1
rb_enc_symname_type: indent
2021-03-05 16:33:29 +09:00
卜部昌平
0a43f0de27
rb_enc_symname_type: refactor reduce goto
...
A bit readable to me.
2021-03-05 16:33:29 +09:00
David Carlier
0ead818d81
Generating note.GNU-stack section for FreeBSD on x86.
...
Not enabling for ELF in general as not all platform support it
(e.g. NetBSD, implictly stack never executable).
2021-03-05 14:33:52 +13:00
git
99c3397860
* 2021-03-05 [ci skip]
2021-03-05 10:26:26 +09:00
David Carlier
c230ccdba6
coroutine arm64 generating note.GNU-stack section for linux.
2021-03-05 14:26:00 +13:00
Nobuyoshi Nakada
446d000e11
Strip trailing spaces [ci skip]
2021-03-04 11:40:43 +09:00
Nobuyoshi Nakada
dea08758be
Check for trailing spaces
2021-03-04 11:40:43 +09:00
git
1876782155
* 2021-03-04 [ci skip]
2021-03-04 11:31:57 +09:00
Nobuyoshi Nakada
bf089d786a
Fixed syntax error with gcc on macOS
...
Security/Authorization.h defines AuthorizationExternalForm by
using clang extension which allows variably modified types in a
file scope. As we just need high-level accessors only, include
Security/SecRandom.h instead.
2021-03-04 11:28:39 +09:00
git
68f515cf5e
* 2021-03-03 [ci skip]
2021-03-03 03:05:10 +09:00
Peter Zhu
0bd1bc559f
Don't use mmap on platforms that have large OS page sizes
2021-03-02 10:04:49 -08:00
Peter Zhu
6d834371c0
Fix typo
2021-03-02 10:04:49 -08:00
卜部昌平
33dc0a070a
RBASIC_SET_CLASS_RAW: follow strict aliasing rule
...
Instead of rather euphemistic struct cast, just reomve the const
qualifier and assign directly. According to ISO/IEC 9899:2018 section
6.5 paragraph 7, `VALUE` and `const VALUE` are allowed to alias (but two
distinct structs are not, even when their structures are the same).
[Bug #17540 ]
2021-03-02 17:47:28 +09:00
git
f7c342f875
* 2021-03-02 [ci skip]
2021-03-02 09:23:55 +09:00
Marc-Andre Lafortune
61f417ac7d
[lib/benchmark] Use $stdout instead of STDOUT [Bug #17600 ]
2021-03-01 19:23:21 -05:00
Benoit Daloze
80e2c45f55
Skip spec which does not work on mingw
...
* https://github.com/ruby/ruby/runs/1994688198
ruby 3.1.0dev (2021-02-27T16:42:17Z master 8305a48413
) [x64-mingw32]
C-API Thread function rb_thread_call_without_gvl runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO
Example took longer than the configured timeout of 60.0s
2021-02-28 12:24:42 +01:00
git
5c9079759d
* 2021-02-28 [ci skip]
2021-02-28 01:42:49 +09:00
Benoit Daloze
8305a48413
Add --timeout to try to find hanging spec
2021-02-27 17:42:17 +01:00
Benoit Daloze
36dde35e02
Update to ruby/spec@37e52e5
2021-02-27 13:00:26 +01:00
Jeremy Evans
dbea0be13d
[ruby/irb] Update help message for next context-mode of 4
...
While here, fixing tab/space issues in help message, and sync
rdoc for IRB class to match the help message.
https://github.com/ruby/irb/commit/ef8e3901cc
2021-02-27 06:51:12 +09:00
Aaron Patterson
d45466dc5b
Oops! Add another test and fix to_proc implementation
2021-02-26 10:06:56 -08:00
git
3d8e373a58
* 2021-02-27 [ci skip]
2021-02-27 02:59:14 +09:00
Aaron Patterson
0590e9b677
Fiddle::Function responds to to_proc
...
This lets us cast a Fiddle::Function to a block, allowing is to write
things like:
```ruby
f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
define_method :strcpy, &f
```
2021-02-26 09:57:13 -08:00
Aaron Patterson
cfc23903df
Revert "Add tests for bug 17652"
...
This reverts commit a9920e7782
.
2021-02-25 16:31:24 -08:00
aycabta
f0743dd2a4
[ruby/reline] Version 0.2.4
...
https://github.com/ruby/reline/commit/462f971bd3
2021-02-26 05:24:01 +09:00
git
04154b65e8
* 2021-02-26 [ci skip]
2021-02-26 04:02:09 +09:00
Peter Zhu
a9920e7782
Add tests for bug 17652
2021-02-25 11:01:50 -08:00
Peter Zhu
1c0e79e87b
Disable auto compaction on platforms that do not support it
2021-02-25 11:01:50 -08:00
Peter Zhu
1e13548953
Use mmap for allocating heap pages
2021-02-25 11:01:50 -08:00
aycabta
fda162c776
[ruby/irb] Version 1.3.4
...
https://github.com/ruby/irb/commit/ab9852ccc5
2021-02-25 22:11:48 +09:00
卜部昌平
294c244ac8
rb_random_int: ended before it begins
...
It existed since f3d022543e
until
9676023607
. No official releases included
the actual function. The declaration shall be deleted.
2021-02-25 16:26:54 +09:00