aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove duplicate declarationsNobuyoshi Nakada2021-07-281-2/+0
| | | | | Also defined in include/ruby/internal/core/rarray.h which always will be included.
* [ruby/zlib] Synchronize access to zstream to prevent segfault in ↵Jeremy Evans2021-07-282-1/+93
| | | | | | | | | | | | | | | | | multithreaded use I'm not sure whether this handles all multithreaded use cases, but this handles the example that crashes almost immediately and does 10,000,000 total deflates using 100 separate threads. To prevent the tests from taking forever, the committed test for this uses only 10,000 deflates across 10 separate threads, which still causes a segfault in the previous implementation almost immediately. Fixes [Bug #17803] https://github.com/ruby/zlib/commit/4b1023b3f2
* [ruby/readline] Improve the gem's descriptionMarcus Stollsteimer2021-07-281-11/+11
| | | | | | | Improve the language in the gem's summary and description; also remove U+00A0 (no-break space) characters from post-install box. https://github.com/ruby/readline/commit/5037cf7ffc
* [ruby/resolv-replace] gemspec: Drop executables directiveOlle Jonsson2021-07-281-2/+0
| | | | | | This gem exposes no executables. https://github.com/ruby/resolv-replace/commit/fa405185f7
* [ruby/resolv] Bump version to 0.2.1Hiroshi SHIBATA2021-07-281-1/+1
| | | | https://github.com/ruby/resolv/commit/095f1c003f
* [ruby/getoptlong] RDoc: escape to avoid links to the word SetOlle Jonsson2021-07-281-5/+5
| | | | | | We would like to avoid linking to the Set class for these words. https://github.com/ruby/getoptlong/commit/33b56d6141
* [ruby/getoptlong] gemspec: Drop executables directivesOlle Jonsson2021-07-281-2/+0
| | | | | | This gem exposes 0 executables. https://github.com/ruby/getoptlong/commit/4522163cbd
* Avoid pointless attempts to open .so file if already requiredJeremy Evans2021-07-281-1/+6
| | | | | | | | | | | | | | | | When attempting to require a file without an extension that has already been required or provided with an .so extension, only look for files with an .rb extension. There is no point in trying to find files with an .so extension, since we already know one has been loaded. Previously, attempting to require such a file scanned the load path twice, once for .rb and once for .so. Now it only scans once for .rb. The scan once for .rb cannot be avoided, since the .rb file would take precedence and should be loaded if it exists. Fixes [Bug #10902]
* [ruby/digest] Also drop to support Ruby 2.4Hiroshi SHIBATA2021-07-281-1/+1
| | | | https://github.com/ruby/digest/commit/360a7de366
* [ruby/digest] Use Gemfile instead of ↵Hiroshi SHIBATA2021-07-281-4/+0
| | | | | | Gem::Specification#add_development_dependency https://github.com/ruby/digest/commit/460a6f807e
* [ruby/digest] Drop to support Ruby 2.3Hiroshi SHIBATA2021-07-281-1/+1
| | | | https://github.com/ruby/digest/commit/23dc9c7425
* [ruby/digest] Use pend instead of skipHiroshi SHIBATA2021-07-281-1/+1
| | | | https://github.com/ruby/digest/commit/82fb618157
* [ruby/digest] gemspec: Avoid distributing extraneous filesOlle Jonsson2021-07-281-1/+1
| | | | https://github.com/ruby/digest/commit/0a451e0c94
* [ruby/digest] gemspec: Explicitly have 0 executablesOlle Jonsson2021-07-281-1/+1
| | | | https://github.com/ruby/digest/commit/086d54ba94
* [ruby/digest] Experiment: Use a .pre version in gemspecOlle Jonsson2021-07-281-1/+1
| | | | | | This makes it slightly more explicit that this is not a definite new version. https://github.com/ruby/digest/commit/2bb5bb78a3
* [ruby/digest] Experiment: bump patch versionOlle Jonsson2021-07-281-1/+1
| | | | | | This is a test, to see if the build failures are about the shipped Ruby master version of this gem. https://github.com/ruby/digest/commit/d2606b2cce
* Suppress "possibly useless use of * in void context" warningNobuyoshi Nakada2021-07-281-1/+1
|
* Revert "Fix potential hang when joining threads."Yusuke Endoh2021-07-284-55/+13
| | | | | | | | | | | This reverts commit 13f8521c630a15c87398dee0763e95f59c032a94. http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20210727T230009Z.fail.html.gz http://rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20210728T000009Z.fail.html.gz This revert is to confirm whether the commit is the cause. If the failures consistently occur after this revert, I'll reintroduce the commit.
* Update Capturing and Anchors sections of regexp documentionJeremy Evans2021-07-271-5/+31
| | | | | | | Document that only first 9 numbered capture groups can use the \n backreference syntax. Document \0 backreference. Document \K anchor. Fixes [Bug #14500]
* Make Float#floor with ndigits argument handle errorJeremy Evans2021-07-272-3/+16
| | | | | | | | | | | | | | The previous implementation could result in a returned float that is 1/(10**ndigits) too low. First try adding one before dividing, and if that results in a value that is greater than the initial number, then try the original calculation. Spec added for ciel, but the issue doesn't appear to affect ciel, at least not for the same number. If the issue does effect ciel, a similar fix could probably work for it. Fixes [Bug #18018]
* * 2021-07-28 [ci skip]git2021-07-281-1/+1
|
* Fix infinite loop in ensure after NoMemoryErrorJeremy Evans2021-07-272-1/+26
| | | | | | | | | | | | | | VM patch from wanabe. Test based on example from buzztaiki (Taiki Sugawara). Test fails when compiles with -DRUBY_DEBUG, as that can can use rb_bug instead of NoMemoryError, which doesn't allow testing this case. Test also fails on MingW, as RangeError is used instead of NoMemoryError. Skip the test in either case. Fixes [Bug #15779]
* [ruby/find] Add Errno::EINVAL to list of ignored errorsJeremy Evans2021-07-271-2/+2
| | | | | | | | | This error can occur on Windows for certain filenames on certain code pages. Fixes [Bug #14591] https://github.com/ruby/find/commit/0a474d1027
* Remove probably unintented symlinksNobuyoshi Nakada2021-07-273-3/+0
|
* Deal with Unicode ranges in the file emoji-sequences.txtMartin Dürst2021-07-274-1/+13
| | | | | Detect Unicode ranges and loop over them. This fixes issue #18028.
* Bump unicode version for Ruby 3.1Hiroshi SHIBATA2021-07-271-2/+2
|
* Fix test failure for parallel testingHiroshi SHIBATA2021-07-272-6/+4
|
* Added missing require for URI::WS classHiroshi SHIBATA2021-07-271-0/+1
|
* Adjust test/ruby/enc/test_emoji_breaks.rb to handle Emoji Version 13.1Martin Dürst2021-07-271-7/+8
| | | | | | | | | | Deal with the issue that the emoji files in emoji/13.1 have Unicode Emoji version 13.1, but at the same time the files in 13.0.0/ucd/emoji are still at Emoji version 13.0. Specifically: - Add a version attribute to TestEmojiBreaks::BreakFile - Take the version for emoji-variant-sequences.txt from the Unicode version, removing the last two characters. - Improve information in exceptions for file name and version mismatches.
* Change Unicode Emoji Version from 13.0 to 13.1Martin Dürst2021-07-271-1/+1
|
* [ruby/uri] User assert_ractor for test case of RactorHiroshi SHIBATA2021-07-271-2/+4
| | | | https://github.com/ruby/uri/commit/bbf8b44dba
* [ruby/uri] Add proper Ractor support to URIBenoit Daloze2021-07-2712-18/+60
| | | | | | | * Using a module to map scheme name to scheme class, which also works with Ractor. * No constant redefinition, no ObjectSpace, still fast lookup for initial schemes. https://github.com/ruby/uri/commit/883567fd81
* [ruby/uri] Revert "Fix to support Ruby 3.0 Ractor"Benoit Daloze2021-07-2712-45/+24
| | | | | | | * This reverts commit 1faa4fdc161d7aeebdb5de0c407b923beaecf898. * It has too many problems, see https://github.com/ruby/uri/pull/22 for discussion. https://github.com/ruby/uri/commit/b959da2dc9
* [ruby/uri] Fix to support Ruby 3.0 Ractorkvokka2021-07-2712-24/+45
| | | | https://github.com/ruby/uri/commit/1faa4fdc16
* Predefine recursive key IDNobuyoshi Nakada2021-07-272-2/+2
|
* Extracted repeatedly defined IDsNobuyoshi Nakada2021-07-272-43/+87
|
* Don't redefine #rb_intern over and over againNobuyoshi Nakada2021-07-271-25/+24
|
* Use predefined IDsNobuyoshi Nakada2021-07-272-4/+4
|
* Added intern_ids.rbNobuyoshi Nakada2021-07-272-10/+51
|
* Fix potential hang when joining threads.Samuel Williams2021-07-274-13/+55
| | | | | | | | | If the thread termination invokes user code after `th->status` becomes `THREAD_KILLED`, and the user unblock function causes that `th->status` to become something else (e.g. `THREAD_RUNNING`), threads waiting in `thread_join_sleep` will hang forever. We move the unblock function call to before the thread status is updated, and allow threads to join as soon as `th->value` becomes defined.
* Run in a separated process to run finalizers certainlyNobuyoshi Nakada2021-07-271-34/+12
|
* test/ruby/test_parse.rb: Prevent an "unused variable" warningYusuke Endoh2021-07-271-1/+1
|
* Try GC more during suppressing the warningNobuyoshi Nakada2021-07-271-2/+12
|
* Make GCed during suppressing the warningNobuyoshi Nakada2021-07-271-8/+14
| | | | | Consume the VM stack more, to make the target object get GCed with more probability during suppressing the warning.
* * 2021-07-27 [ci skip]git2021-07-271-1/+1
|
* [rubygems/rubygems] Remove the warning for not defining a gem server sourceDaniel Niknam2021-07-273-14/+5
| | | | | | | | Bundler has deprecated gemfiles without a global source and this feature is now obsolete. `Bundler::Definition#has_rubygems_remotes?` is removed because it's not used anymore. https://github.com/rubygems/rubygems/commit/d29dd2cb7b
* [rubygems/rubygems] Refactor Bundler::Dsl#check_rubygems_source_safety to ↵Daniel Niknam2021-07-272-6/+12
| | | | | | | | | | | | | | | | | improve readability `check_rubygems_source_safety` is responsible for: 1. if there are multiple global sources - for bundle 3.x raise an error - for bundle 2.x print a warning 2. print a warning if there is no explicit global source The second responsibility was added recently and now the logic could be extracted to improve readability. Conditions are still live in the `check_rubygems_source_safety` method since we don't want to call both functions always and that would help us achieve that. https://github.com/rubygems/rubygems/commit/f3d7e946ee
* [rubygems/rubygems] Deprecate Gemfile without an explicit global sourceDaniel Niknam2021-07-272-0/+24
| | | | | | Raise a warning when parsing a Gemfile and it doesn't have a global source. Gemfiles like this, specially now that rubygems sources are are no longer merged into a single source for security, are very confusing because they generate a different lockfile depending on the gems you have locally installed. This is because bundler always use an implicit global source that defaults to locally installed gems. https://github.com/rubygems/rubygems/commit/b7523ad21c
* [rubygems/rubygems] Explicitly define a global source for testsDaniel Niknam2021-07-2743-40/+324
| | | | | | This is in preparation for deprecating source-less gemfiles. https://github.com/rubygems/rubygems/commit/d6493fa3e2
* [rubygems/rubygems] Implement Bundler::SourceList#implicit_global_source?Daniel Niknam2021-07-272-0/+19
| | | | | | This method is created to tell whether any global source exist in the object or not and it will be used by `Bundler:Dsl` to print a warning if no global source has been defined in the Gemfile. https://github.com/rubygems/rubygems/commit/422fec4438