aycabta
917050220a
[ruby/irb] Use Exception#full_message to show backtrace in the correct order
...
[Bug #17466 ]
https://github.com/ruby/irb/commit/1c76845cca
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI
ed3264d37a
[ruby/irb] refactoring an error handling in `IRB::Inspector`
...
* moved rescue clause to `#inspect_value` to catch all failures in inspectors
* test with all (currently five kind of) inspect modes
- tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject`
https://github.com/ruby/irb/commit/9d112fab8e
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI
f594775230
[ruby/irb] do not escape a predicate method for doc namespace
...
* Fixes #88
https://github.com/ruby/irb/commit/d431a30af4
2021-01-08 13:25:18 +09:00
Kenta Murata
82f6085b3e
[ruby/bigdecimal] Fix trailing zero handling in rb_uint64_convert_to_BigDecimal
...
https://github.com/ruby/bigdecimal/commit/2056604d56
2021-01-07 10:20:40 +09:00
Kenta Murata
698d7947c3
[ruby/bigdecimal] Include TestBigDecimalBase in TestBigDecimalUtil
...
https://github.com/ruby/bigdecimal/commit/f732201df1
2021-01-07 10:19:46 +09:00
Nobuyoshi Nakada
069649389c
strip trailing spaces [ci skip]
2021-01-06 17:34:18 +09:00
Takashi Kokubun
d9fdca81ac
600x larger timeout for Reline
...
I didn't notice it's msec. 2.5s is too short.
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3311385
2021-01-05 23:02:32 -08:00
Adam Hess
e13f41e02d
[ruby/ostruct] Allow ostruct to return a value on super ( #4028 )
...
This fixes cases where you can super in something that inherits from OpenStruct
Co-authored-by: John Hawthorn <john@hawthorn.email>
2021-01-05 18:34:45 -05:00
Nobuyoshi Nakada
ead8d89bd7
[ruby/io-console] Ignore chomp! result and return the modified string
...
https://github.com/ruby/io-console/commit/09e5ccc729
2021-01-05 21:26:11 +09:00
aycabta
0123bc9d38
[ruby/irb] Use error tokens if there are no correct tokens in the same place
...
For example, the broken code "%www" will result in only one error token.
https://github.com/ruby/irb/commit/9fa39a7cf3
2021-01-05 18:06:43 +09:00
aycabta
5a1866caff
[ruby/irb] Use Ripper::Lexer#scan to take broken tokens
...
ref. https://github.com/ruby/reline/pull/242
https://github.com/ruby/irb/commit/54f90cb6c9
2021-01-05 18:06:34 +09:00
aycabta
505e01fe12
[ruby/irb] Heredoc may contain multiple newlines in a single token
...
Use the start token as the indentation criteria so that it works properly in
heredoc.
ref. https://github.com/ruby/reline/pull/242
https://github.com/ruby/irb/commit/9704808dfd
2021-01-05 18:06:26 +09:00
aycabta
5012512398
[ruby/irb] Handle indentations related to keyword "do" correctly
...
This fixes ruby/irb#158 .
https://github.com/ruby/irb/commit/964643400b
2021-01-05 18:06:10 +09:00
aycabta
e72a6ed45f
[ruby/irb] Escape invalid byte sequence in Exception
...
This fixes ruby/irb#141 .
https://github.com/ruby/irb/commit/0815317d42
2021-01-05 18:05:06 +09:00
aycabta
cce72a2411
[ruby/irb] Newline in oneliner def doesn't reset indent
...
This closes ruby/irb#132 .
https://github.com/ruby/irb/commit/43456dcf5e
2021-01-05 18:04:45 +09:00
aycabta
515d6b47ad
[ruby/irb] Stringify when a non-object is passed to PP#text
...
If a nested object is passed to #pp, it may be sometimes passed to the #text
method as an object without being stringified.
This is fixed on the Ruby main repository;
433a3be86a
but it was a bug of Ripper so still needs this workaround for using irb
as a gem on Ruby 3.0.0 or earlier.
Co-authored-by: k0kubun <takashikkbn@gmail.com>
https://github.com/ruby/irb/commit/8d13df22ee
2021-01-04 20:14:31 -08:00
Takashi Kokubun
7a3322a0fd
Fix broken JIT of getinlinecache
...
e7fc353f04
reverted vm_ic_hit_p's signature change made in 53babf35ef
,
which broke JIT compilation of getinlinecache.
To make sure it doesn't happen again, I separated vm_inlined_ic_hit_p to
make the intention clear.
2021-01-04 13:09:08 -08:00
Koichi Sasada
e7fc353f04
enable constant cache on ractors
...
constant cache `IC` is accessed by non-atomic manner and there are
thread-safety issues, so Ruby 3.0 disables to use const cache on
non-main ractors.
This patch enables it by introducing `imemo_constcache` and allocates
it by every re-fill of const cache like `imemo_callcache`.
[Bug #17510 ]
Now `IC` only has one entry `IC::entry` and it points to
`iseq_inline_constant_cache_entry`, managed by T_IMEMO object.
`IC` is atomic data structure so `rb_mjit_before_vm_ic_update()` and
`rb_mjit_after_vm_ic_update()` is not needed.
2021-01-05 02:27:58 +09:00
Hiroshi SHIBATA
5537adf719
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +09:00
Nobuyoshi Nakada
35c3a24c8c
Fixed error message when % at EOF
2021-01-04 12:11:37 +09:00
Nobuyoshi Nakada
f4be7a510e
Added tests for Time#getlocal with UTC offset
2021-01-03 23:56:04 +09:00
Takashi Kokubun
4724bf856f
Avoid hanging on --jit-wait after MJIT.pause
...
When a worker is stopped, nobody will JIT a method for you.
2021-01-03 00:05:38 -08:00
zverok
b8d33df1d9
Add Enumerable#compact and Enumerator::Lazy#compact
2021-01-02 17:27:24 +09:00
Kenta Murata
c2c0147538
[ruby/bigdecimal] Fix test for Ruby 2.4
...
Ruby 2.4 does not have RbConfig::LIMITS.
https://github.com/ruby/bigdecimal/commit/c8087523b0
2021-01-02 00:54:09 +09:00
Kenta Murata
448a67cd81
[ruby/bigdecimal] Implement special conversions for 64-bit integers
...
This change improves the conversion speed from small integers.
```
Comparison:
big_n9
master: 4003688.9 i/s
bigdecimal 3.0.0: 1270551.0 i/s - 3.15x slower
big_n19
master: 5410096.4 i/s
bigdecimal 3.0.0: 1000250.3 i/s - 5.41x slower
```
https://github.com/ruby/bigdecimal/commit/3429bd7e6f
2021-01-02 00:54:09 +09:00
Kenta Murata
5ee6830abe
[ruby/bigdecimal] Fix test_limit
...
Keep the default value of BigDecimal.limit by BigDecimal.save_limit
to avoid failures of the other test methods due to the unexpected limit.
https://github.com/ruby/bigdecimal/commit/bdc1cc6585
2021-01-02 00:30:57 +09:00
Nobuyoshi Nakada
ab32e98f98
Added AST assertions for method definition arguments [Bug #17495 ]
2021-01-01 14:48:46 +09:00
Nobuyoshi Nakada
1e51027763
Added AST tests for endless method definitions
2021-01-01 14:45:00 +09:00
Nobuyoshi Nakada
20a8425aa0
Make any hash values fixable [Bug #17488 ]
...
As hnum is an unsigned st_index_t, the result of RSHIFT may not be
in the fixable range.
Co-authored-by: NeoCat <neocat@neocat.jp>
2020-12-31 12:11:45 +09:00
Takashi Kokubun
15c129d087
Try increasing SMTP's read_timeout for --jit-wait
...
for random hangs like:
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302796
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302188
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3301293
2020-12-29 22:02:48 -08:00
Takashi Kokubun
8e231ffa8c
Increase timeout for reline with --jit-wait
...
for failures like:
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-130509
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-165132
http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201228-015519
2020-12-29 20:06:53 -08:00
Nobuhiro IMAI
9b7ceb6765
irb: add more syntax errors colorizing support ( #3967 )
2020-12-28 23:07:20 -08:00
Takashi Kokubun
af9d4ee133
[ruby/irb] Fix failing tests
...
https://github.com/ruby/irb/commit/7723ade899
2020-12-28 23:01:01 -08:00
Nobuyoshi Nakada
c8010fcec0
Dup kwrest hash when merging other keyword arguments [Bug #17481 ]
2020-12-28 01:52:18 +09:00
Nobuyoshi Nakada
92f9f998fb
test/test_trick.rb: fixed the position to add timeout
2020-12-25 22:23:53 +09:00
Yusuke Endoh
a01d28fed7
test/test_trick.rb: increase timeout of some tests
...
http://rubyci.s3.amazonaws.com/raspbian10-armv7l/ruby-master/log/20201225T071824Z.fail.html.gz
2020-12-25 21:58:50 +09:00
Nobuyoshi Nakada
caae14d90b
test_trick.rb: Make the encoding explicit for code written in UTF-8
2020-12-25 15:57:41 +09:00
Yusuke Endoh
09216f63ba
test/test_trick.rb: Add a test file for TRICK entries ( #3988 )
...
* test/test_trick.rb: Add a test file for TRICK entries
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2020-12-25 15:22:37 +09:00
aycabta
9a7647d9eb
[ruby/reline] Doesn't contain terminate spaces by cw
...
This closes ruby/reline#233 .
https://github.com/ruby/reline/commit/4c3f2e2eae
2020-12-24 23:26:22 +09:00
aycabta
78421319d0
[ruby/reline] Use #bytesize for vi_replace_char
...
This closes ruby/reline#228 .
https://github.com/ruby/reline/commit/8205fa0b00
2020-12-24 23:26:22 +09:00
aycabta
0db9842b2c
[ruby/reline] Delete the last char of a line by dw
...
This closes ruby/reline#229 .
https://github.com/ruby/reline/commit/3f0ae689c4
2020-12-24 23:26:22 +09:00
aycabta
634b231f33
[ruby/reline] Discard prompt cache by changing mode icon
...
https://github.com/ruby/reline/commit/bfeda8a79b
2020-12-24 23:26:22 +09:00
Nobuyoshi Nakada
bdbbfd1fa5
Store errno in struct rb_process_status
...
To propagate errno in the fiber thread scheduler hook.
Returns nil when no terminated process.
2020-12-24 22:59:37 +09:00
Marc-Andre Lafortune
7ca2ca9e32
Remove unneeded code
2020-12-24 04:58:40 -05:00
Yusuke Endoh
8e1c0b2f93
dir.c: chdir conflict should raise only when called in different thread
...
... and keep it as a warning (like 2.7) when it is called in the same
thread. [Bug #15661 ]
2020-12-24 14:34:40 +09:00
Koichi Sasada
6f29716f9f
shareable_constant_value: experimental_copy
...
"experimental_everything" makes the assigned value, it means
the assignment change the state of assigned value.
"experimental_copy" tries to make a deep copy and make copyied object
sharable.
2020-12-24 14:28:47 +09:00
Jeremy Evans
1e215a66d2
Fix class of method in Method#inspect for singleton classes of classes
...
Previously, due to a change to fix bug 15608, Method#inspect output
changed for class methods:
Ruby 2.7
"#<Method: String.prepend(*)>"
Before change:
"#<Method: #<Class:Object>(Module)#prepend(*)>"
This is wrong because the Method object was created from String and
not Object. This is because the fix for bug 15608 assumed it was
being called on the singleton class of a instance, and would skip
the first singleton class until it got to the class itself. For
class methods, this results in always using the superclass. Fix
behavior to not skip until the superclass if the singleton class
is the singleton class of a module or class.
After change:
"#<Method: #<Class:Object>(Module)#prepend(*)>"
Fixes [Bug #17428 ]
2020-12-23 19:29:19 -08:00
Yusuke Endoh
f755926ddd
test/ruby/test_module.rb: not depend on the order of method definitions
2020-12-24 10:15:15 +09:00
Nobuyoshi Nakada
4a8ff22f0c
Reset paren_nest at tAREF and tASET [Bug #17431 ]
2020-12-24 01:39:52 +09:00
Yusuke Endoh
3a81daaf8d
Module#public_class_method also accepts a symbol array as an argument
...
I'm unsure if this is intentional, but add a document anyway.
[Feature #17314 ]
2020-12-24 00:15:29 +09:00
aycabta
129ecb43e5
[ruby/irb] Fix error_message for assert_dynamic_prompt
...
https://github.com/ruby/irb/commit/b12dfb6298
2020-12-23 21:26:25 +09:00
Hiroshi SHIBATA
8259d88938
[ruby/psych] Skip test_ractor.rb with ruby/psych repo
...
Because ruby/psych still uses minitest. minitest didn't support
assert_ractor provided by test suite of ruby/ruby repo.
https://github.com/ruby/psych/commit/7da26358f1
2020-12-23 19:45:54 +09:00
Marc-Andre Lafortune
daec109f42
[ruby/psych] Optimize cache with `compare_by_identity`
...
Using `compare_by_identity` gives a 4x performance boost on cache hits.
Benchmark in https://github.com/JuanitoFatas/fast-ruby/issues/189
2020-12-23 01:08:38 -05:00
Marc-Andre Lafortune
c5a445d577
[ruby/psych] Make Ractor-ready.
...
Config is Ractor-local.
Benchmarking reveals that using `Ractor.local_storage` for storing cache
is similar to accessing a constant (~15% slower).
2020-12-23 01:08:38 -05:00
Nobuyoshi Nakada
8a1e12499b
Ensure non-literal expressions shareable if `leteral`
2020-12-23 13:50:42 +09:00
Nobuyoshi Nakada
c0a2d95cf3
Update rb_ractor_ensure_shareable
...
* Fixed use of rb_ractor_shareable_p
* Raise Ractor::IsolationError
2020-12-23 13:50:42 +09:00
Nobuyoshi Nakada
b2aa21b868
Split the test
2020-12-23 13:50:42 +09:00
Nobuyoshi Nakada
d1c7db9d00
Added assertions
2020-12-23 13:50:42 +09:00
Nobuyoshi Nakada
e70206f570
Added dedicated helper methods
2020-12-23 13:50:42 +09:00
Nobuyoshi Nakada
7a094146e6
Changed shareable literal semantics [Feature #17397 ]
...
When `literal`, check if the literal about to be assigned to a
constant is ractor-shareable, otherwise raise `Ractor::Error` at
runtime instead of `SyntaxError`.
2020-12-23 13:50:42 +09:00
Hiroshi SHIBATA
339227363c
Merge RubyGems 3.2.3 and Bundler 2.2.3
2020-12-23 10:17:41 +09:00
Nobuyoshi Nakada
733ed1e184
ripper: fix bad label parameter handling [Bug #17425 ]
2020-12-23 09:56:35 +09:00
Marc-Andre Lafortune
cd63f0358f
[ruby/etc] Make Ractor safe
2020-12-22 19:46:07 -05:00
Kenta Murata
74652e640a
[memory_view][fiddle] Rename len to byte_size in rb_memory_view_t
2020-12-23 09:24:53 +09:00
aycabta
841d22ea47
[ruby/reline] [ruby/irb] Handle multiple newlines in a token correctly
...
Co-authored-by: manga_osyo <manga.osyo@gmail.com>
Co-authored-by: ima1zumi <mariimaizumi5@gmail.com>
https://github.com/ruby/irb/commit/c59a9be82f
https://github.com/ruby/reline/commit/a7922da16b
2020-12-23 06:06:07 +09:00
Delton Ding
f1591b3858
Add verbose nil in testing
2020-12-23 03:27:14 +09:00
Delton Ding
c6d7e02b90
Enable `Fiber.current` and `Fiber#alive?` call inside ractor
2020-12-23 03:27:14 +09:00
Kazuki Tsujimoto
31b17a14ab
Make NoMatchingPatternError a subclass of StandardError
2020-12-23 02:31:02 +09:00
ima1zumi
299f5708a2
[ruby/reline] Fixed an exception occurred when ambiguous width character was passed to `#calculate_width` [Bug #17405 ]
...
https://github.com/ruby/reline/commit/f79b4c857f
2020-12-22 23:45:43 +09:00
aycabta
b52bc4a9c2
[ruby/reline] Support isearch-terminators
...
https://github.com/ruby/reline/commit/a7922da16b
2020-12-22 23:45:43 +09:00
aycabta
294552ca6c
[ruby/reline] Render refreshed prompt just after i-search finished
...
https://github.com/ruby/reline/commit/0d3188fe34
2020-12-22 23:45:43 +09:00
Akinori MUSHA
96b8816793
Import set 1.0.1
...
- Eliminate warnings
- Convert rdoc to markdown
2020-12-22 21:41:44 +09:00
Hiroshi SHIBATA
edb76e8765
Prepare to release json-2.5.0
2020-12-22 19:44:27 +09:00
Marc-Andre Lafortune
f2f00e24fa
[ruby/date] Make Ractor-compatible
2020-12-22 03:12:51 -05:00
卜部昌平
fa356a798a
Enumerator.new: raise unless block given
...
Has been deprecated since c73b6bd7eb
.
[Feature #17116 ] [ruby-dev:50945]
2020-12-22 13:52:03 +09:00
Akinori MUSHA
3fa4bd8292
Import set 1.0.0
...
- SortedSet has been removed for dependency and performance reasons.
- Set#join is added as a shorthand for `.to_a.join`.
- Set#<=> is added.
https://github.com/ruby/set/blob/v1.0.0/CHANGELOG.md
2020-12-22 12:20:21 +09:00
Koichi Sasada
520dcbd600
reset cache before iterating
...
cee02d754d
resets pCMC and `me`
will be a invalidated and continuing the invalidated `me`,
it will break the data structure. This patch tris to clear
all methods of specified class before manipulating the `me`s.
[Issue #17417 ]
2020-12-22 06:09:30 +09:00
Kenta Murata
14d7d1df25
[json] Make json Ractor safe
2020-12-21 22:10:43 +09:00
Kenta Murata
98cc15ed1e
[json] Stop using prototype objects
2020-12-21 22:10:33 +09:00
Nobuyoshi Nakada
d84dd66da0
Fixed a typo in an error class name
2020-12-21 18:17:45 +09:00
Hiroshi SHIBATA
391343e828
[ruby/rdoc] Guard for WEBrick
...
https://github.com/ruby/rdoc/commit/b1e7129e05
2020-12-21 16:21:46 +09:00
Nobuyoshi Nakada
8680ae9cbd
irb: Removed unused variables
2020-12-20 19:36:24 +09:00
Nobuyoshi Nakada
5b98b2ce39
win32: Use UTF-8 as filesystem encoding [Feature #12654 ]
...
Co-Authored-By: Dāvis Mosāns <davispuh@gmail.com>
2020-12-20 18:34:04 +09:00
Nobuyoshi Nakada
feea436feb
irb: Define extension command only on the given object
...
Not to interfer in class variables.
2020-12-20 18:26:38 +09:00
Nobuyoshi Nakada
0fad9a9e30
Set non-verbose mode as well as tty mode
2020-12-20 17:15:02 +09:00
aycabta
59b84fbf2e
Set :DEFAULT to PROMPT_MODE for CI
2020-12-20 17:07:24 +09:00
aycabta
216a087e93
Suppress errors related to using variables that are not directly related to testing
2020-12-20 16:48:47 +09:00
aycabta
9f08e3c703
[ruby/irb] Add measure command
...
You can use "measure" command to check performance in IRB like below:
irb(main):001:0> 3
=> 3
irb(main):002:0> measure
TIME is added.
=> nil
irb(main):003:0> 3
processing time: 0.000058s
=> 3
irb(main):004:0> measure :off
=> nil
irb(main):005:0> 3
=> 3
You can set "measure :on" by "IRB.conf[:MEASURE] = true" in .irbrc, and, also,
set custom performance check method:
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |context, code, line_no, &block|
time = Time.now
result = block.()
now = Time.now
puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE]
result
}
https://github.com/ruby/irb/commit/3899eaf2e2
2020-12-20 16:23:59 +09:00
Marc-Andre Lafortune
6343a81129
[ruby/ostruct] Add Ractor test
2020-12-19 17:13:08 -05:00
Marc-Andre Lafortune
67e062b523
[ruby/matrix] Add Ractor test
...
This reverts commit cacdf2681d
.
2020-12-19 17:13:08 -05:00
Kenta Murata
de80b92891
[pathname] Make Pathname Ractor safe ( #3940 )
2020-12-20 00:40:47 +09:00
Kenta Murata
8355a3e17b
[bigdecimal] Fix deprecation warning test
2020-12-19 22:13:59 +09:00
Kenta Murata
df3deb3baa
[bigdecimal] Add BigDecimal#n_significant_digits
...
https://github.com/ruby/bigdecimal/commit/981dc48f95
https://github.com/ruby/bigdecimal/commit/9ecf880ec04
2020-12-19 22:13:59 +09:00
Kenta Murata
654f6fbf19
[bigdecimal] Make BigDecimal#precs deprecated
...
https://github.com/ruby/bigdecimal/commit/7e80e6e145
https://github.com/ruby/bigdecimal/commit/0ed7846e8c
2020-12-19 22:13:58 +09:00
Kenta Murata
ff9e40811c
[bigdecimal] Add BigDecimal#precision
...
https://github.com/ruby/bigdecimal/commit/458eb66c49
2020-12-19 22:13:58 +09:00
Kenta Murata
928a06723d
[bigdecimal] Make bigdecimal Ractor safe
...
https://github.com/ruby/bigdecimal/commit/93fc392640
https://github.com/ruby/bigdecimal/commit/a90d13c4d0
2020-12-19 22:13:57 +09:00
Kenta Murata
e1424c3501
[bigdecimal] Fix the default precision of Float#to_d
...
Fix https://github.com/ruby/bigdecimal/issues/70
[Bug #13331 ]
https://github.com/ruby/bigdecimal/commit/aa536cd4b5
2020-12-19 22:13:53 +09:00
Yusuke Endoh
4735a5b9d2
test/ruby/test_module.rb: Avoid "warning: method redefined"
2020-12-19 21:19:16 +09:00
Yusuke Endoh
1ba8d63b49
Recommit 34f0606217
2020-12-19 18:22:44 +09:00
Nobuhiro IMAI
e33eb09b76
ripper: fix `#tok` on some error events [Bug 17345]
...
sorting alias target by event arity, and setup suitable `Elem` for error.
2020-12-19 17:32:39 +09:00
Hiroshi SHIBATA
349e79bae0
Try to test with rake-13.0.2 again.
...
[ruby/fileutils] Make verbose output go to stdout instead of stderr
This reverts commit 510df47f5f
.
2020-12-19 16:53:18 +09:00
Kenta Murata
b66f52b0e3
[digest] Make digest Ractor safe
...
https://github.com/ruby/digest/commit/c13a024b85
https://github.com/ruby/digest/commit/9edca3f8be
https://github.com/ruby/digest/commit/378b56b6ca
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
Nobuyoshi Nakada
5616f2ee93
Added missing tests for public, private, protected and alias_method
2020-12-19 11:39:03 +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
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 .
https://github.com/ruby/reline/commit/2549a52e15
2020-12-19 02:12:11 +09:00
aycabta
af2c81e10c
[ruby/reline] Bind yank-pop correctly
...
https://github.com/ruby/reline/commit/3c74beac65
2020-12-19 02:12:11 +09:00
aycabta
671f2762fb
[ruby/reline] Add Enumerable to KillRing for debugging
...
https://github.com/ruby/reline/commit/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
...
https://github.com/ruby/stringio/commit/ee3fec7512
https://github.com/ruby/stringio/commit/18dcd045ef
https://github.com/ruby/stringio/commit/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
https://github.com/ruby/strscan/commit/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
...
https://github.com/ruby/irb/commit/22717844c0
2020-12-17 20:23:27 +09:00
aycabta
cdf2790aa0
[ruby/reline] Support longer than screen height on Windows
...
https://github.com/ruby/reline/commit/2a97ca9362
2020-12-17 20:17:22 +09:00
aycabta
2b8fa78176
[ruby/reline] Support longer than screen height
...
https://github.com/ruby/reline/commit/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