Commit graph

16449 commits

Author SHA1 Message Date
Yusuke Endoh
0e79d4cde5 Added tests for [Feature #17314]
Partially reintroduce 34f0606217
2020-12-19 03:25:48 +09: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
Kenta Murata
7b06085c7b
[bigdecimal] Fix test for d5ab8e8562 2020-12-19 02:44:20 +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
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
Kenta Murata
3d31944129
[stringio] Make stringio Ractor safe
ee3fec7512
18dcd045ef
18dcd045ef
2020-12-18 22:00:07 +09:00
Nobuyoshi Nakada
763d5f9c6b Removed old GC tuning environment variables deprecated since 2.1 2020-12-18 16:27:43 +09:00
Yusuke Endoh
c4e50b58d1 Revert "Added missing tests for public, private, protected and alias_method"
This reverts commit e042e8460b.
2020-12-18 16:08:24 +09:00
Yusuke Endoh
0a60ba923e Revert "Added tests for [Feature #17314]"
This reverts commit 34f0606217.
2020-12-18 16:08:24 +09:00
Nobuyoshi Nakada
8e03e3b0ba
Drop token info also for endless singleton method definition 2020-12-18 15:16:30 +09:00
Kenta Murata
985f0af257
[strscan] Make strscan Ractor safe (#17)
* Make strscan Ractor safe

* Add test-unit in the development dependencies

3c93c2bebe
2020-12-18 14:25:41 +09:00
Hiroshi SHIBATA
0e40cc9b19 Merge RubyGems 3.2.2 and Bundler 2.2.2 2020-12-18 13:33:18 +09:00
Nobuyoshi Nakada
34f0606217
Added tests for [Feature #17314] 2020-12-18 13:03:22 +09:00
Nobuyoshi Nakada
e042e8460b
Added missing tests for public, private, protected and alias_method 2020-12-18 12:59:01 +09:00
Koichi Sasada
51c2725dc6 use eval to create different Regexp objects
Only one warning is shown for the same Regexp object, so create
different objects to support repeating tests.

http://ci.rvm.jp/results/trunk-repeat20@phosphorus-docker/3290658
2020-12-18 09:12:26 +09:00
Yusuke Endoh
caef364cc5 test/ruby: suppress some warnings
follow up to 9908177857
2020-12-17 22:39:37 +09:00
Benoit Daloze
336fe648b0 [ruby/irb] Skip the few failing tests on TruffleRuby
22717844c0
2020-12-17 20:23:27 +09:00
aycabta
cdf2790aa0 [ruby/reline] Support longer than screen height on Windows
2a97ca9362
2020-12-17 20:17:22 +09:00
aycabta
2b8fa78176 [ruby/reline] Support longer than screen height
e83a3de9ed
2020-12-17 20:14:59 +09:00
Nobuyoshi Nakada
9908177857
test/ruby: Check warning messages at a finer granularity
Instead of suppressing all warnings wholly in each test scripts by
setting `$VERBOSE` to `nil` in `setup` methods.
2020-12-17 20:06:18 +09:00
Nobuyoshi Nakada
47328ad217
Ripper: Fixed erred token on wrong alias [Bug #17345] 2020-12-16 21:08:33 +09:00
Yusuke Endoh
c668772b14 test/ruby/test_enum.rb: Avoid "warning: assigned but unused variable" 2020-12-16 16:17:54 +09:00
Kenta Murata
1bafb3cb47
[memory_view] Make MemoryView API Ractor-safe (#3911)
* memory_view.c: make Ractor-safe

* test/ruby/test_memory_view.rb: Add test_ractor

* memory_view: fix typo

* memory_view.c: Use st_update in unregster_exported_object

* memory_view: update dependency
2020-12-16 13:43:56 +09:00
Nobuyoshi Nakada
ad8e82f708
Fixed marshal compatibility of Process::Status 2020-12-16 12:31:40 +09:00
Marc-Andre Lafortune
d5f0d338c7 Optimize Enumerable#grep{_v}
[Bug #17030]
2020-12-15 12:54:45 -05:00
Zoltán Mizsei
8f6cb5b70b
TEST: multiarch support for Haiku 2020-12-15 23:13:24 +09:00
Nobuyoshi Nakada
e0bdd54348 Ripper: Refined error callbacks [Bug #17345] 2020-12-15 21:36:23 +09:00
Kenta Murata
a86c147579
Import bigdecimal 2.0.2 (#3905)
* remove duplicated include

* Make BigDecimal#round with argument < 1 return Integer

Fixes [Bug #12780]

* Use a higher default precision for BigDecimal#power and #**

When a fractional power is given, increase the precision if the
precision isn't specified via power's second argument:

Float: increase by 15 (rough number of decimal precision in float)
BigDecimal: increase by adding similar precision modifier as done to
            calculate the base precision.
Rational: double the precision, since a BigDecimal is created, but
          the created BigDecimal uses the same precision.

Increasing the precision for these power calculations has the obvious
tradeoff of making the calculations slower.

Fixes Ruby Bug #17264

* Use DBLE_FIG for a Float value

* Version 2.0.1

Co-authored-by: pavel <pavel.rosicky@easy.cz>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2020-12-15 15:17:15 +09:00
Hiroshi SHIBATA
2fa9f3c032 Prepare to release rubygems-3.2.1 and bundler-2.2.1 2020-12-15 10:54:09 +09:00
Benoit Daloze
f5c89c1660 Deprecate Random::DEFAULT
* Closes [Feature #17351].
2020-12-14 20:29:50 +01:00
Hiroshi SHIBATA
c2a60fec2f
Merge Psych-3.2.1 from ruby/psych 2020-12-14 20:13:12 +09:00
Nobuyoshi Nakada
3323174727 Support shareable_constant_value: literal 2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
89e489d51d Make shareable_constant_value tri-state 2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
7060aeedbd shareable_constant_value: is effective only in comment-only line 2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
25cf1aca92 Added continued line case 2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
78cb9b627b Added false case 2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
d19601fb56 Test by Ractor.shareable? 2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
11d9983bc3 Make the value shareable deeply 2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
f43c71abe0 Implemented shareable_constant_value
It does shallow freeze only for now.
2020-12-14 19:19:16 +09:00
Nobuyoshi Nakada
b1bd223085 Support shareable_constant_value pragma 2020-12-14 19:19:16 +09:00
Yusuke Endoh
ab869d6b9b test/ruby/test_method_cache.rb: suppress "assigned but unused variable" 2020-12-14 15:56:13 +09:00
Koichi Sasada
0362b4c689 add tests for method cache. 2020-12-14 11:57:46 +09:00
Nobuyoshi Nakada
c7530f0d56
Wait testing/helper threads to terminate 2020-12-13 13:39:57 +09:00
Kazuki Tsujimoto
88f3ce12d3
Reintroduce expr in pat [Feature #17371] 2020-12-13 11:51:49 +09:00
Yusuke Endoh
efbef729b2 test/ruby/test_lambda.rb: prevent lambda(&proc_block) warnings 2020-12-12 23:11:47 +09:00
Koichi Sasada
124321e0c7 fix lambda's warning and tests
There are warning condition bugs and test bugs.
b53ccb9c69
2020-12-12 06:29:11 +09:00
nicholas a. evans
31e8de2920 Let Fiber#raise work with transferring fibers
This automatically choosess whether to use transfer on a transferring
fiber or resume on a yielding fiber.  If the fiber is resuming, it
raises a FiberError.
2020-12-12 10:18:19 +13:00
Nobuyoshi Nakada
eea756ac86
Strip trailing spaces [ci skip] 2020-12-11 23:14:36 +09:00