Nobuyoshi Nakada
b426de9e8e
[DOC] Prefer local rdoc links
...
- ensures exact same version
- avoid generated URLs
- no external access
- concise
2022-03-16 19:12:34 +09:00
Nobuyoshi Nakada
4d93b6299c
Initialize mutex for crypt(3) statically
...
Assuming that all platforms, where only `crypt` is available but
not `crypt_r`, are POSIX-base.
2022-03-16 18:51:34 +09:00
Nobuyoshi Nakada
f91ea23324
Honor if `_Bool` is available
...
`AC_HEADER_STDBOOL` rejects stdbool.h in c2x, which is not
conforming to C99.
2022-03-16 17:50:13 +09:00
Martin Dürst
151208a19b
Revert "Fix version check to use Emoji version for emoji-variation-sequences.txt"
...
This reverts commit 48f1e8c5d8
.
2022-03-16 15:18:30 +09:00
Martin Dürst
e85547ae81
Revert "Allow `.0` version mismatch to pass the tests"
...
This reverts commit fc6e4ce62b
.
2022-03-16 15:17:30 +09:00
Martin Dürst
6d603cfde1
add Unicode auxiliary files and Unicode UCD emoji files download for ALWAYS_UPDATE_UNICODE
2022-03-16 15:15:44 +09:00
Nobuyoshi Nakada
ebcbca96fb
[ruby/rdoc] Fix full name of known class
...
Properly set the name of `File::Constants`, which is the only name
with a namespace in `RDoc::KNOWN_CLASSES`, and fixes longstanding bug
that `File::Constants` becomes `File::File::Constants`.
When it is generated by `rb_file_const` in dir.c, `name` is set to the
qualified name as same as `full_name`, and generated in the normal way
in file.c later, already set `full_name` is cleared and `name` will be
constructed from the enclosing namespace and the `name`. It will
results in duplicated namespace, `File::File::Constants`.
https://github.com/ruby/rdoc/commit/3a8d6df562
2022-03-16 15:05:41 +09:00
Koichi Sasada
fc6e4ce62b
Allow `.0` version mismatch to pass the tests
...
With `make update-unicode`, some tests failed with the following error
due to header mismatch.
* `RbConfig::CONFIG['UNICODE_EMOJI_VERSION']` => 14.0
* the header line is `# emoji-variation-sequences-14.0.0.txt`
So the last `.0` is mismatch.
This patch allows additional `.0` in the header line.
Please revert this patch when a correct patach is merged.
```
1) Error:
TestEmojiBreaks#test_embedded_emoji:
RuntimeError: File Name Mismatch: line: # emoji-variation-sequences-14.0.0.txt, expected filename: emoji-variation-sequences.txt
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:88:in `block (2 levels) in read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:82:in `foreach'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:82:in `block in read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:79:in `each'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:79:in `read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:111:in `all_tests'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:127:in `test_embedded_emoji'
2) Error:
TestEmojiBreaks#test_mixed_emoji:
RuntimeError: File Name Mismatch: line: # emoji-variation-sequences-14.0.0.txt, expected filename: emoji-variation-sequences.txt
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:88:in `block (2 levels) in read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:82:in `foreach'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:82:in `block in read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:79:in `each'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:79:in `read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:111:in `all_tests'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:139:in `test_mixed_emoji'
3) Error:
TestEmojiBreaks#test_single_emoji:
RuntimeError: File Name Mismatch: line: # emoji-variation-sequences-14.0.0.txt, expected filename: emoji-variation-sequences.txt
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:88:in `block (2 levels) in read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:82:in `foreach'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:82:in `block in read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:79:in `each'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:79:in `read_data'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:111:in `all_tests'
/tmp/ruby/v3/src/trunk/test/ruby/enc/test_emoji_breaks.rb:117:in `test_single_emoji'
```
2022-03-16 11:30:37 +09:00
YO4
5d90c60109
Avoid console input behavior in windows 10 [Bug #18588 ]
...
When ANSI versions of PeekConsoleInput read multibyte charactor
partially, subsequent ReadFile returns wrong data on newer Windows
10 versions (probably since Windows Terminal introduced). To
avoid this, use Unicode version of of PeekConsoleInput/ReadConsole.
2022-03-16 10:28:35 +09:00
Martin Dürst
48f1e8c5d8
Fix version check to use Emoji version for emoji-variation-sequences.txt
2022-03-16 08:46:04 +09:00
Martin Dürst
56d9d78f14
Remove Unicode 13.0.0 related files
2022-03-16 08:30:04 +09:00
git
bc62cbd563
* 2022-03-16 [ci skip]
2022-03-16 00:50:14 +09:00
John Hawthorn
d76ba1c219
Fast rb_class_inherited_p
...
This uses the superclass table recently introduced to implement fast
inheritance checking between classes (ex. Foo < Bar).
This is almost identical to what we do in class_search_class_ancestor
(as called by rb_obj_is_kind_of) except that we are checking both
directions: ie. both whether Foo < Bar and whether Bar < Foo.
2022-03-15 08:49:53 -07:00
Kazuhiro NISHIYAMA
7aabdbe837
[rubygems/rubygems] Fix a typo
...
https://github.com/rubygems/rubygems/commit/3e06a91435
2022-03-15 11:37:43 +09:00
Yuta Saito
459bbdeb74
wasm/README.md: add manual config.guess download and autoconf steps
...
Autoconf distributed with Ubuntu 22.04 is very old and doesn't support
WASI as an OS, so add instructions to download the latest config.guess,
then run `./autogen.sh`.
See also: 2297012efd
2022-03-15 10:25:12 +09:00
S-H-GAMELINKS
f27770679f
[DOC]Fix FreeBSD Bugzilla link
2022-03-15 09:23:57 +09:00
Nobuyoshi Nakada
b85457c710
[rubygems/rubygems] [DOC] Enable Gem::Package example
...
Other code must not be between the doc and class definition.
https://github.com/rubygems/rubygems/commit/366784aae5
2022-03-15 08:40:35 +09:00
xtkoba
63b1633f86
[ruby/win32ole] Get rid of potential undefined behavior
...
See https://bugs.llvm.org/show_bug.cgi?id=50236
https://github.com/ruby/win32ole/commit/019ec2b3cb
2022-03-15 08:33:40 +09:00
Nobuyoshi Nakada
aa347cbe65
[ruby/win32ole] Rename toplevel WIN32OLE_* classes
...
https://github.com/ruby/win32ole/commit/bc7deb6a6a
2022-03-15 08:20:47 +09:00
David Rodríguez
6a8bc90278
[rubygems/rubygems] Report Github Actions CI provider within user agent string
...
See
https://docs.github.com/es/actions/learn-github-actions/environment-variables#default-environment-variables .
So that we can show stats about it at https://ecosystem.rubytogether.org
https://github.com/rubygems/rubygems/commit/48d6dc68f8
2022-03-15 04:44:33 +09:00
git
b7fe052a06
* 2022-03-15 [ci skip]
2022-03-15 01:18:16 +09:00
Nobuyoshi Nakada
41d63d3130
[rubygems/rubygems] Move `:stopdoc:` directive
...
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.
https://github.com/rubygems/rubygems/commit/34e8c1ee06
2022-03-15 01:18:03 +09:00
Yuta Saito
b1bcad5e3a
spec: skip '~' test for wasi due to lack of shell
2022-03-14 23:05:15 +09:00
Yuta Saito
fe2e5c13f9
spec: skip ruby_exe tests for wasi due to lack of subprocess
2022-03-14 23:04:13 +09:00
Peter Zhu
412991268f
Assume that refcnt of shared root is non-negative
...
The refcnt of a shared root array should always be non-negative.
2022-03-14 09:45:24 -04:00
Peter Zhu
45786667ec
Assume that shared_root exists in rb_ary_decrement_share
...
All callers of rb_ary_decrement_share guarantee that
shared_root is not 0.
2022-03-14 09:45:18 -04:00
Ivo Anjo
7348db866a
[DOC] Remove outdated note from WeakRef#initialize
...
The note
> Raises an ArgumentError if the given +orig+ is immutable, such as Symbol,
> Integer, or Float.
has not been true since #2313 (GH-2313, Feature #16035 ) when
@casperisfine enabled storing non-finalizable objects in the underlying
`ObjectSpace::WeakMap`.
On Ruby 2.7+, `WeakRef.new(1) + 1` works fine and the result is the
expected 2.
2022-03-14 10:50:52 +01:00
Nobuyoshi Nakada
e859a218fd
[DOC] hide `UnicodeNormalize` in module index
2022-03-14 15:01:20 +09:00
Nobuyoshi Nakada
0bf194fb33
[ruby/rdoc] Start with open when only one visible class/module
...
https://github.com/ruby/rdoc/commit/6bb93001db
2022-03-14 14:48:13 +09:00
Nobuyoshi Nakada
976431d9ed
[ruby/rdoc] Fold class and module index
...
https://github.com/ruby/rdoc/commit/4c7c46fcc4
2022-03-14 14:48:12 +09:00
Nobuyoshi Nakada
a884431624
[ruby/forwardable] Move `:stopdoc:` directive
...
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.
https://github.com/ruby/forwardable/commit/34cd2ac4a1
2022-03-14 14:44:46 +09:00
Nobuyoshi Nakada
8760b270ed
[ruby/irb] Move `:stopdoc:` directive
...
If this is at the top level, it stops the documentation of the
entire module, but not only the part in this file.
https://github.com/ruby/irb/commit/86c41b06ad
2022-03-14 14:40:28 +09:00
Kazuhiro NISHIYAMA
3c59913a05
Fix failures
...
http://ci.rvm.jp/results/trunk-no-mjit@phosphorus-docker/3870646
```
1) Error:
TestEmojiBreaks#test_single_emoji:
RuntimeError: File Name Mismatch: line: # emoji-variation-sequences-14.0.0.txt, expected filename: emoji-variation-sequences.txt
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:84:in `block (2 levels) in read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:82:in `foreach'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:82:in `block in read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:79:in `each'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:79:in `read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:105:in `all_tests'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:111:in `test_single_emoji'
2) Error:
TestEmojiBreaks#test_mixed_emoji:
RuntimeError: File Name Mismatch: line: # emoji-variation-sequences-14.0.0.txt, expected filename: emoji-variation-sequences.txt
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:84:in `block (2 levels) in read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:82:in `foreach'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:82:in `block in read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:79:in `each'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:79:in `read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:105:in `all_tests'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:133:in `test_mixed_emoji'
3) Error:
TestEmojiBreaks#test_embedded_emoji:
RuntimeError: File Name Mismatch: line: # emoji-variation-sequences-14.0.0.txt, expected filename: emoji-variation-sequences.txt
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:84:in `block (2 levels) in read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:82:in `foreach'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:82:in `block in read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:79:in `each'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:79:in `read_data'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:105:in `all_tests'
/tmp/ruby/v3/src/trunk-no-mjit/test/ruby/enc/test_emoji_breaks.rb:121:in `test_embedded_emoji'
make: *** [uncommon.mk:823: yes-test-all] Error 3
```
2022-03-14 08:57:06 +09:00
Martin Dürst
267f0089d3
clarify meaning of version guards for Unicode version specs [ci skip]
2022-03-14 08:39:06 +09:00
Kazuhiro NISHIYAMA
9d6cc7e4c0
Fix a link [ci skip]
2022-03-14 07:52:40 +09:00
git
a6799d7305
* 2022-03-14 [ci skip]
2022-03-14 05:43:34 +09:00
Paul Kuruvilla
840bef0e2c
[rubygems/rubygems] Remove extra closing bracket in version warning
...
https://github.com/rubygems/rubygems/commit/a3b9f19080
2022-03-14 05:43:17 +09:00
Benoit Daloze
1b571d0abf
Fix guards for unicode versions specs
2022-03-13 13:27:47 +01:00
Nobuyoshi Nakada
416c63c118
[ruby/rdoc] Refine `pretty_print`
...
https://github.com/ruby/rdoc/commit/acb91ea74a
2022-03-13 21:15:08 +09:00
Nobuyoshi Nakada
2af8b04eca
Fix conversion macro for `size_t`
2022-03-13 21:10:33 +09:00
Nobuyoshi Nakada
e081f333fe
Fix experimental Fiber::Pool definition
...
Toplevel `Pool` is too generic, and `struct fiber_pool` does not
seem compatible with `rb_fiber_t`.
2022-03-13 21:09:17 +09:00
Nobuyoshi Nakada
0bcc3bd6ab
[ruby/rdoc] Clean documents for backwards compatibility
...
https://github.com/ruby/rdoc/commit/23e61a208e
2022-03-13 19:56:42 +09:00
Martin Dürst
45187a0fcd
comment out failing Unicode/Emoji version checks temporarily
2022-03-13 10:52:24 +09:00
Martin Dürst
8f59482f5d
add some tests for Unicode Version 14.0.0
2022-03-13 09:19:52 +09:00
Martin Dürst
9b545b0caf
update specs to check for Unicode Version 14.0.0/Emoji Version 14.0
2022-03-13 09:19:52 +09:00
Martin Dürst
2672502457
mention Unicode Version 14.0.0
2022-03-13 09:19:52 +09:00
Martin Dürst
8e1f3a96ae
switch UNICODE_BETA back to NO
2022-03-13 09:19:52 +09:00
Martin Dürst
45e0711f29
update Unicode Version to 14.0.0 and Emoji version to 14.0
2022-03-13 09:19:52 +09:00
git
db57b07086
* 2022-03-13 [ci skip]
2022-03-13 02:15:59 +09:00
Peter Zhu
06594e7134
Fix crash on GC stress and RGENGC_CHECK_MODE=2
...
rb_ary_reset could leave the array in a bad state since it frees memory
but does not unset any flags. This can cause a crash on GC stress. This
commit changes rb_ary_reset to set the array as an empty embedded array.
2022-03-12 12:15:24 -05:00