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
0c450b8647
`begin ... end` is not a literal
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
f14aaa2b12
Guard < Ruby 3.0 for the repositories of default gems.
2020-12-23 13:44:47 +09:00
Koichi Sasada
7e44ade565
ruby_single_main_ractor should be clear before warn
...
rb_warn can produce T_HASA object and it should not use
transient heap.
2020-12-23 13:39:48 +09:00
Marc-Andre Lafortune
02233ed024
Adapt tool/search-cgvars.rb for MacOS
2020-12-22 22:25:41 -05:00
Marc-Andre Lafortune
3df3b47187
Add tool/search-cgvars.rb, thanks @ko1
2020-12-22 22:25:41 -05:00
Kazuhiro NISHIYAMA
082114da05
[DOC] Add doc to sharing_detection= [ci skip]
...
Before:
```
$ ri sharing_detection=
= .sharing_detection=
(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
sharing_detection=(b)
------------------------------------------------------------------------
Returns the sharing detection flag as a boolean value. It is false by
default.
```
After:
```
$ ri sharing_detection=
= .sharing_detection=
(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
sharing_detection=(b)
------------------------------------------------------------------------
Sets the sharing detection flag to b.
```
2020-12-23 11:13:50 +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
Marc-Andre Lafortune
3286380ebc
[ruby/etc] Refactor locks using mutex API
2020-12-22 19:46:07 -05:00
Kenta Murata
9636d14f6f
[memory_view] Acquire VM lock while running exported_object_registry_free
...
exported_object_registry is freed at exit, so this change is just in case.
2020-12-23 09:24:55 +09:00
Kenta Murata
01ab29cc28
[memory_view] Make some rb_memroy_view_t members const
2020-12-23 09:24:55 +09:00
Kenta Murata
db0385d657
[memory_view] Remove needless use of StringValueCStr
2020-12-23 09:24:54 +09:00
Kenta Murata
b3ea828c8e
[memory_view] Add mdview_release_view for test
2020-12-23 09:24:54 +09: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
Kenta Murata
05014dcb88
[memory_view][fiddle] Use bool for boolean return value
2020-12-23 09:05:07 +09:00
Marcus Stollsteimer
74a3569b59
NEWS: fix typos and grammar
2020-12-22 23:20:14 +01: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
Takeru Naito
be5faa2519
[ruby/irb] Make it possible to use measure even if it is installed as gem
...
Include the file that implements this command in the irb gem.
Co-Authored-By: scivola <scivola@users.noreply.github.com>
https://github.com/ruby/irb/commit/d8dfea5b57
2020-12-23 06:06:07 +09:00
Sutou Kouhei
32849dc1bb
fiddle: Update to 1.0.5
2020-12-23 05:49:52 +09:00
Marc-Andre Lafortune
228fa3ac6e
NEWS: Mention deprecation warnings not being shown by default
2020-12-22 13:48:13 -05:00
Marc-Andre Lafortune
fd745cc92c
NEWS: group keyword arguments related items together
2020-12-22 13:48:13 -05:00
Marc-Andre Lafortune
5a6d27fe22
NEWS: combine $SAFE and $KCODE, move lower
2020-12-22 13:48:13 -05:00
Marc-Andre Lafortune
1bd7427f29
NEWS: move error handling at end of section
2020-12-22 13:48:13 -05: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
git
487355873a
* 2020-12-23 [ci skip]
2020-12-23 02:37:59 +09:00
Kazuki Tsujimoto
b222a1a494
Fix a message in example code
...
Thanks to @zverok for the report.
2020-12-23 02:37:27 +09:00
Kazuki Tsujimoto
31b17a14ab
Make NoMatchingPatternError a subclass of StandardError
2020-12-23 02:31:02 +09:00
ima1zumi
53510d1e8a
[ruby/reline] [ruby/reline] Remove unused `attr_writer`
...
https://github.com/ruby/reline/commit/ecdc1b7116
https://github.com/ruby/reline/commit/a7922da16b
2020-12-22 23:45:43 +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
aycabta
0b14abe8e7
[ruby/irb] Suppress "shadowing outer" warning
...
https://github.com/ruby/irb/commit/27b149c599
2020-12-22 23:45:43 +09:00
aycabta
fbcdcbff0d
[ruby/irb] Version 1.2.9
...
https://github.com/ruby/irb/commit/9668e5fe6b
2020-12-22 23:45:43 +09:00
aycabta
4131cd05be
[ruby/irb] Support arg for measure command
...
https://github.com/ruby/irb/commit/b43f35d8f3
2020-12-22 23:45:43 +09:00
aycabta
47b26795d0
[ruby/irb] Change variables handling for compatibility
...
https://github.com/ruby/irb/commit/26fd1a75cf
2020-12-22 23:45:43 +09:00
Koichi Sasada
cae8bbfe62
pp is ractor-ready.
...
`@sharing_detection` is only one obstruction to support pp on
non-main ractors, so make it ractor-local.
2020-12-22 23:32:18 +09:00
Hiroshi SHIBATA
034c19ce28
Merge json-2.5.1
2020-12-22 21:51:15 +09:00
Hiroshi SHIBATA
9b9cbbbc17
Update library versions of the default gems.
...
They are followed up with
8fb02b7a97
2020-12-22 21:45:28 +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
f08cbdbf7d
Move the library to extensions for some of default gems
2020-12-22 20:55:41 +09:00
Samuel Williams
93a56a5e98
Update fiber scheduler documentation.
2020-12-22 23:51:02 +13: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