Nobuyoshi Nakada
a139318538
Added macros for headers which are not included by ruby.h
2020-12-19 16:38:17 +09:00
Nobuyoshi Nakada
042c3e91fb
Check macros for headers
2020-12-19 16:38:17 +09:00
Nobuyoshi Nakada
197550c956
Renamed check_encoding.yml as check_misc.yml [ci skip]
2020-12-19 16:38:16 +09:00
Nobuyoshi Nakada
5c9d6ea6b4
Strip trailing spaces [ci skip]
2020-12-19 15:34:37 +09:00
Nobuyoshi Nakada
553d6fa0a0
[DOC] Marked dtrace arguments as description list [ci skip]
2020-12-19 15:34:37 +09:00
Nobuyoshi Nakada
a5832c9a37
[DOC] Fixed markups in dtrace_probes.rdoc [ci skip]
...
* `+` can enclose just a word.
* TIDYLINK with braces gets confused when other braces even inside
code precede.
2020-12-19 15:34:37 +09:00
Kazuhiro NISHIYAMA
144b11e03e
Fix warning: instance variable @head not initialized
and remove unused instance variable
2020-12-19 15:24:09 +09:00
Kenta Murata
e64af7d5ad
NEWS: Add an entry of Digest 3.0.0 [ci skip]
2020-12-19 15:08:54 +09:00
Kenta Murata
0cb556b457
[digest] Version 3.0.0
...
4bbd247a32
2020-12-19 15:08:01 +09:00
Kenta Murata
b66f52b0e3
[digest] Make digest Ractor safe
...
c13a024b85
9edca3f8be
378b56b6ca
2020-12-19 15:08:01 +09:00
Nobuyoshi Nakada
feacae193c
[digest] Added rb_digest_make_metadata to wrap metadata
...
7046fe6005
2020-12-19 15:08:01 +09:00
Yusuke Endoh
5b2cf7eac8
Partially reintroduce e042e8460b
and ...
...
34f0606217
Add a test for alias_method
2020-12-19 12:24:41 +09:00
Radosław Bułat
51bcd50915
Feature 17314: alias_method returns symbol
2020-12-19 12:23:58 +09:00
Nobuyoshi Nakada
34f6b22df0
Use rb_id_attrset without intermediate strings
2020-12-19 11:44:05 +09:00
Nobuyoshi Nakada
5616f2ee93
Added missing tests for public, private, protected and alias_method
2020-12-19 11:39:03 +09:00
Radosław Bułat
d40d95296d
Feature 17314: update docs and NEWS about attr* methods returning array of symbols
2020-12-19 09:22:26 +09:00
Koichi Sasada
76e8848037
unfreeze Ractor::MovedObject
...
Matz prefers to unfreeze the class.
[Feature #17401 ]
2020-12-19 05:57:12 +09:00
Koichi Sasada
80cb9165fa
add "copy: true" option for Ractor.make_shareable
...
Ractor.make_shareable(obj) tries to make obj a shareable object
by changing the attribute of obj and traversable objects from obj
(mainly freeze them).
"copy: true" option is more conservative approach by make deep
copied object and make it sharable. It doesn't affect any existing
objects.
2020-12-19 05:52:18 +09:00
Koichi Sasada
cee02d754d
fix refinements/prepend bug
...
replaced method entry should be invalidated.
[Bug #17386 ]
2020-12-19 04:33:04 +09:00
Koichi Sasada
04d62e6f62
fix method cache debug tool
2020-12-19 04:33:04 +09:00
Yusuke Endoh
0e79d4cde5
Added tests for [Feature #17314 ]
...
Partially reintroduce 34f0606217
2020-12-19 03:25:48 +09:00
Yusuke Endoh
aa7a020710
Revert "Revert "Use rb_id_attrset without intermediate strings""
...
This reverts commit 41c208d4a4
.
Reintroduce 66090b9d10
.
2020-12-19 03:20:09 +09:00
Yusuke Endoh
346bf0f5a5
spec/ruby/core/module/attr_*: Add version guards
2020-12-19 03:16:20 +09:00
Radosław Bułat
5944c4b3cf
attr_reader, attr_writer, attr_accessor and attr methods returns array of symbols ( #3935 )
...
Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
2020-12-19 03:11:35 +09:00
Kenta Murata
f6641d7376
NEWS: Add an entry of StringScanner 3.0.0 [ci skip]
2020-12-19 03:06:16 +09:00
Kenta Murata
b3b7f1e580
NEWS: Add an entry of StringIO 3.0.0 [ci skip]
2020-12-19 03:05:00 +09:00
Kenta Murata
f213a271a1
NEWS: fiddle 1.0.4 [ci skip]
2020-12-19 03:02:56 +09:00
Jeremy Evans
7e2dbbda35
Use category: :experimental in warnings that are related to experimental features
...
This adds rb_category_compile_warn in order to emit compiler warnings
with categories. Note that Ripper currently ignores the category
for these warnings, but by default it ignores the warnings completely,
so this shouldn't matter.
2020-12-18 09:54:11 -08:00
Jeremy Evans
05313c914b
Use category: :deprecated in warnings that are related to deprecation
...
Also document that both :deprecated and :experimental are supported
:category option values.
The locations where warnings were marked as deprecation warnings
was previously reviewed by shyouhei.
Comment a couple locations where deprecation warnings should probably
be used but are not currently used because deprecation warning
enablement has not occurred at the time they are called
(RUBY_FREE_MIN, RUBY_HEAP_MIN_SLOTS, -K).
Add assert_deprecated_warn to test assertions. Use this to simplify
some tests, and fix failing tests after marking some warnings with
deprecated category.
2020-12-18 09:54:11 -08:00
Jeremy Evans
6ced55b07c
Make warning_categories a map of category symbols to category numbers
...
Use this to simplify rb_warning_category_from_name.
This also adds support for using the :experimental category in
Kernel#warn and Warning.warn.
2020-12-18 09:54:11 -08:00
Jeremy Evans
52fb696ee7
Switch rb_category_warn{,ing} to accept an rb_warning_category_t
...
Since we decided to only allowing specific warning categories,
there is no reason to have an API that accepts a general string,
as it is more error-prone. Switch to only allowing the specific
warning categories.
As rb_category_warn{,ing} are public API, this requires making
rb_warning_category_t public API as well.
2020-12-18 09:54:11 -08:00
Kenta Murata
7b06085c7b
[bigdecimal] Fix test for d5ab8e8562
2020-12-19 02:44:20 +09:00
Kenta Murata
d5ab8e8562
[bigdecimal] Use rb_undef_alloc_func to undefine allocate
2020-12-19 02:29:31 +09:00
aycabta
c2a5594e27
[ruby/reline] Use cached prompt list when just moved the cursor
...
cfe619460b
2020-12-19 02:12:11 +09:00
aycabta
d4257c6152
[ruby/reline] Yank by em-kill-region correctly
...
This closes ruby/reline#106 .
2549a52e15
2020-12-19 02:12:11 +09:00
aycabta
af2c81e10c
[ruby/reline] Bind yank-pop correctly
...
3c74beac65
2020-12-19 02:12:11 +09:00
aycabta
671f2762fb
[ruby/reline] Add Enumerable to KillRing for debugging
...
d208874152
2020-12-19 02:12:11 +09:00
aycabta
dc61affd67
[ruby/reline] [ruby/irb] Call ripper only once when generating dynamic prompt
...
babb122a48
e6dbcb3b42
2020-12-19 02:12:11 +09:00
Koichi Sasada
e76b56f58e
support Ruby 2.x for openssl
2020-12-19 02:05:08 +09:00
Yusuke Endoh
ad76c8fb6b
Update TypeProf to 0.10.0
2020-12-19 00:53:47 +09:00
Nobuyoshi Nakada
19a98a8791
Fixed not to make non-literal expression shareable [Feature #17273 ]
...
Non-literal expression which is not a part of a literal expression
is not a subject of `shareable_literal_value: literal`.
2020-12-19 00:34:14 +09:00
git
6945597f6f
* 2020-12-19 [ci skip]
2020-12-19 00:04:41 +09:00
Radosław Bułat
ed5c09f384
Remove unused variable
2020-12-19 00:04:19 +09:00
Kenta Murata
c71934f8a5
[stringio] Version 3.0.0
...
831be01071
2020-12-18 22:00:07 +09:00
Kenta Murata
e1b5289a2b
[stringio] Add test-unit in the development dependencies
...
de010fc0e9
2020-12-18 22:00:07 +09:00
Kenta Murata
3d31944129
[stringio] Make stringio Ractor safe
...
ee3fec7512
18dcd045ef
18dcd045ef
2020-12-18 22:00:07 +09:00
Kenta Murata
14ca7f633c
[openssl] Fix dependencies
2020-12-18 21:58:41 +09:00
Koichi Sasada
b5588edc0a
openssl is ractor-safe
...
ossl_bn_ctx is C's global variable and it should be ractor-local
to make it ractor-safe.
2020-12-18 18:19:33 +09:00
Koichi Sasada
74ab2c3b46
finalizing should be checked before VM lock
2020-12-18 17:59:26 +09:00
Nobuyoshi Nakada
7d32bf7853
Removed a moved local variable
2020-12-18 17:56:08 +09:00