aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* shareable_constant_value: experimental_copyKoichi Sasada2020-12-241-0/+13
| | | | | | | "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.
* Fix class of method in Method#inspect for singleton classes of classesJeremy Evans2020-12-231-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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]
* test/ruby/test_module.rb: not depend on the order of method definitionsYusuke Endoh2020-12-241-5/+5
|
* Reset paren_nest at tAREF and tASET [Bug #17431]Nobuyoshi Nakada2020-12-241-0/+18
|
* Module#public_class_method also accepts a symbol array as an argumentYusuke Endoh2020-12-241-1/+23
| | | | | I'm unsure if this is intentional, but add a document anyway. [Feature #17314]
* [ruby/irb] Fix error_message for assert_dynamic_promptaycabta2020-12-231-2/+8
| | | | https://github.com/ruby/irb/commit/b12dfb6298
* [ruby/psych] Skip test_ractor.rb with ruby/psych repoHiroshi SHIBATA2020-12-231-1/+1
| | | | | | | 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
* [ruby/psych] Optimize cache with `compare_by_identity`Marc-Andre Lafortune2020-12-231-0/+3
| | | | | Using `compare_by_identity` gives a 4x performance boost on cache hits. Benchmark in https://github.com/JuanitoFatas/fast-ruby/issues/189
* [ruby/psych] Make Ractor-ready.Marc-Andre Lafortune2020-12-231-0/+47
| | | | | | | Config is Ractor-local. Benchmarking reveals that using `Ractor.local_storage` for storing cache is similar to accessing a constant (~15% slower).
* Ensure non-literal expressions shareable if `leteral`Nobuyoshi Nakada2020-12-231-4/+6
|
* Update rb_ractor_ensure_shareableNobuyoshi Nakada2020-12-231-4/+6
| | | | | * Fixed use of rb_ractor_shareable_p * Raise Ractor::IsolationError
* Split the testNobuyoshi Nakada2020-12-231-1/+15
|
* Added assertionsNobuyoshi Nakada2020-12-231-1/+21
|
* Added dedicated helper methodsNobuyoshi Nakada2020-12-231-16/+33
|
* Changed shareable literal semantics [Feature #17397]Nobuyoshi Nakada2020-12-231-5/+7
| | | | | | 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`.
* Merge RubyGems 3.2.3 and Bundler 2.2.3Hiroshi SHIBATA2020-12-237-122/+173
|
* ripper: fix bad label parameter handling [Bug #17425]Nobuyoshi Nakada2020-12-231-15/+16
|
* [ruby/etc] Make Ractor safeMarc-Andre Lafortune2020-12-221-0/+23
|
* [memory_view][fiddle] Rename len to byte_size in rb_memory_view_tKenta Murata2020-12-232-6/+6
|
* [ruby/reline] [ruby/irb] Handle multiple newlines in a token correctlyaycabta2020-12-231-2/+53
| | | | | | | | | 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
* Add verbose nil in testingDelton Ding2020-12-231-0/+1
|
* Enable `Fiber.current` and `Fiber#alive?` call inside ractorDelton Ding2020-12-231-0/+22
|
* Make NoMatchingPatternError a subclass of StandardErrorKazuki Tsujimoto2020-12-231-0/+4
|
* [ruby/reline] Fixed an exception occurred when ambiguous width character was ↵ima1zumi2020-12-221-0/+4
| | | | | | passed to `#calculate_width` [Bug #17405] https://github.com/ruby/reline/commit/f79b4c857f
* [ruby/reline] Support isearch-terminatorsaycabta2020-12-221-0/+30
| | | | https://github.com/ruby/reline/commit/a7922da16b
* [ruby/reline] Render refreshed prompt just after i-search finishedaycabta2020-12-221-0/+11
| | | | https://github.com/ruby/reline/commit/0d3188fe34
* Import set 1.0.1Akinori MUSHA2020-12-222-2/+8
| | | | | - Eliminate warnings - Convert rdoc to markdown
* Prepare to release json-2.5.0Hiroshi SHIBATA2020-12-222-6/+2
|
* [ruby/date] Make Ractor-compatibleMarc-Andre Lafortune2020-12-221-0/+27
|
* Enumerator.new: raise unless block given卜部昌平2020-12-221-10/+4
| | | | | Has been deprecated since c73b6bd7ebd01133538c645566944132dbde4d13. [Feature #17116] [ruby-dev:50945]
* Import set 1.0.0Akinori MUSHA2020-12-223-0/+53
| | | | | | | | - 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
* reset cache before iteratingKoichi Sasada2020-12-221-6/+26
| | | | | | | | cee02d754d76563635c1db90d2ab6c01f8492470 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]
* [json] Make json Ractor safeKenta Murata2020-12-211-0/+34
|
* [json] Stop using prototype objectsKenta Murata2020-12-211-36/+3
|
* Fixed a typo in an error class nameNobuyoshi Nakada2020-12-211-1/+1
|
* [ruby/rdoc] Guard for WEBrickHiroshi SHIBATA2020-12-211-1/+1
| | | | https://github.com/ruby/rdoc/commit/b1e7129e05
* irb: Removed unused variablesv3_0_0_rc1Nobuyoshi Nakada2020-12-201-2/+0
|
* win32: Use UTF-8 as filesystem encoding [Feature #12654]Nobuyoshi Nakada2020-12-201-37/+16
| | | | Co-Authored-By: Dāvis Mosāns <davispuh@gmail.com>
* irb: Define extension command only on the given objectNobuyoshi Nakada2020-12-201-1/+3
| | | | Not to interfer in class variables.
* Set non-verbose mode as well as tty modeNobuyoshi Nakada2020-12-201-0/+4
|
* Set :DEFAULT to PROMPT_MODE for CIaycabta2020-12-201-20/+8
|
* Suppress errors related to using variables that are not directly related to ↵aycabta2020-12-201-4/+20
| | | | testing
* [ruby/irb] Add measure commandaycabta2020-12-201-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [ruby/ostruct] Add Ractor testMarc-Andre Lafortune2020-12-191-12/+11
|
* [ruby/matrix] Add Ractor testMarc-Andre Lafortune2020-12-191-9/+9
| | | | This reverts commit cacdf2681dcc7c431973f33a18979b10566ec2f9.
* [pathname] Make Pathname Ractor safe (#3940)Kenta Murata2020-12-201-0/+22
|
* [bigdecimal] Fix deprecation warning testKenta Murata2020-12-191-0/+4
|
* [bigdecimal] Add BigDecimal#n_significant_digitsKenta Murata2020-12-191-0/+51
| | | | | https://github.com/ruby/bigdecimal/commit/981dc48f95 https://github.com/ruby/bigdecimal/commit/9ecf880ec04
* [bigdecimal] Make BigDecimal#precs deprecatedKenta Murata2020-12-191-6/+16
| | | | | https://github.com/ruby/bigdecimal/commit/7e80e6e145 https://github.com/ruby/bigdecimal/commit/0ed7846e8c
* [bigdecimal] Add BigDecimal#precisionKenta Murata2020-12-191-0/+49
| | | | https://github.com/ruby/bigdecimal/commit/458eb66c49