aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/ipaddr] Expose IPAddr::VERSIONJean Boussier2022-02-102-1/+6
| | | | | | | An almost universal convention for gems is to expose Namespace::VERSION which makes it much easier when debugging etc. https://github.com/ruby/ipaddr/commit/587ae6996e
* Fix Range#include? for beginless exclusive string rangesJeremy Evans2022-02-092-0/+7
| | | | | | | | | Previously, include? would return true for the end of the range, when it should return false because the range is exclusive. Research and Analysis by Victor Shepelev. Fixes [Bug #18577]
* objspace: Hide identhash containing internal objsJohn Hawthorn2022-02-092-15/+31
| | | | | | | | | | | | Inside ObjectSpace.reachable_objects_from we keep an internal identhash in order to de-duplicate reachable objects when wrapping them as InternalObject. Previously this hash was not hidden, making it possible to leak references to those internal objects to Ruby if using ObjectSpace.each_object. This commit solves this by hiding the hash. To simplify collection of values, we instead now just use the hash as a set of visited objects, and collect an Array (not hidden) of values to be returned.
* [rubygems/rubygems] Fix typo in multiple gemfiles warningSven Schwyn2022-02-102-3/+3
| | | | https://github.com/rubygems/rubygems/commit/bc69d19097
* LLVM 15 begun.卜部昌平2022-02-101-2/+3
| | | | See also https://github.com/llvm/llvm-project/commit/a2601c98873376bbbeff4b6eddf0f4d920535f8b
* * 2022-02-10 [ci skip]git2022-02-101-1/+1
|
* st.c: Do not clear entries_bound when calling Hash#shift for empty hashYusuke Endoh2022-02-102-1/+13
| | | | | | | | | | | | tab->entries_bound is used to check if the bins are full in rebuild_table_if_necessary. Hash#shift against an empty hash assigned 0 to tab->entries_bound, but didn't clear the bins. Thus, the table is not rebuilt even when the bins are full. Attempting to add a new element into full-bin hash gets stuck. This change stops clearing tab->entries_bound in Hash#shift. [Bug #18578]
* [ruby/rdoc] Simplify attribute exclusiveness conditionsNobuyoshi Nakada2022-02-091-24/+4
| | | | https://github.com/ruby/rdoc/commit/45e33c4b85
* [ruby/rdoc] Get rid of ruby-mode.el confusionsNobuyoshi Nakada2022-02-092-2/+3
| | | | https://github.com/ruby/rdoc/commit/63fac51198
* [ruby/rdoc] Allow cross references to negation operator methodNobuyoshi Nakada2022-02-092-2/+2
| | | | https://github.com/ruby/rdoc/commit/69cafb213a
* [ruby/rdoc] Allow cross references to logical operator methodsNobuyoshi Nakada2022-02-092-2/+2
| | | | https://github.com/ruby/rdoc/commit/17c0da304d
* [ruby/rdoc] Skip parentheses on singleton class declarationSoutaro Matsumoto2022-02-092-1/+37
| | | | https://github.com/ruby/rdoc/commit/b6c6d4f978
* [ruby/rdoc] Allow cross references to backtick methodNobuyoshi Nakada2022-02-092-2/+2
| | | | https://github.com/ruby/rdoc/commit/52c33157f1
* [ruby/rdoc] Allow cross references to operator methodsNobuyoshi Nakada2022-02-092-22/+24
| | | | | | | Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross reference targets. https://github.com/ruby/rdoc/commit/5d332a4128
* [ruby/rdoc] Support all struct definition functionsNobuyoshi Nakada2022-02-092-71/+105
| | | | | | | | Currently only `rb_struct_define_without_accessor` is supported by https://github.com/ruby/rdoc/pull/73. We should support other three functions too. https://github.com/ruby/rdoc/commit/d42288f06c
* * 2022-02-09 [ci skip]git2022-02-091-1/+1
|
* [DOC] Prefer the original file names over generated namesNobuyoshi Nakada2022-02-091-1/+1
| | | | | Should also the label in an explicit `rdoc-ref:` link be converted in the future?
* [DOC] Adjustments to links in array.c (#5532)Burdette Lamar2022-02-081-13/+14
| | | Mostly suppressing links to itself.
* Remove extraneous "." in String#+@ documentationPaarth Madan2022-02-081-1/+1
|
* * 2022-02-08 [ci skip]git2022-02-081-1/+1
|
* [DOC] Fix broken links to operator methodsNobuyoshi Nakada2022-02-082-2/+2
| | | | | Once https://github.com/ruby/rdoc/pull/865 is merged, these hacks are no longer needed.
* [DOC] Fix broken links to case_mapping.rdocNobuyoshi Nakada2022-02-081-11/+11
|
* [DOC] Fix broken links to literals.rdocNobuyoshi Nakada2022-02-089-13/+13
|
* [DOC] Simplify links to global methodsNobuyoshi Nakada2022-02-086-7/+7
|
* [DOC] Replace with IO@ModesPeter Zhu2022-02-072-6/+6
|
* [DOC] Remove extra periodPeter Zhu2022-02-071-1/+1
|
* [DOC] Remove extra closing curly bracketPeter Zhu2022-02-071-1/+1
|
* [DOC] Use RDoc link style for links in the same class/modulePeter Zhu2022-02-0710-185/+185
| | | | | | | | | | I used this regex: (?<=\[)#(?:class|module)-([A-Za-z]+)-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2
* [DOC] Use RDoc link style for links to other classes/modulesPeter Zhu2022-02-079-29/+29
| | | | | | | | | | I used this regex: ([A-Za-z]+)\.html#(?:class|module)-[A-Za-z]+-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2
* [DOC] Fix links in documentation for File and IOPeter Zhu2022-02-072-5/+5
| | | | Fixes some typos and dead links.
* [rubygems/rubygems] Fix missing rdoc for Gem::Versionnicholas a. evans2022-02-071-2/+3
| | | | | | | | | | | | | | | The rdoc for Gem::Version is available here: * https://docs.ruby-lang.org/en/3.0/Gem/Version.html However it is currently missing from: * https://ruby-doc.org/stdlib-3.1.0/libdoc/rubygems/rdoc/Gem/Version.html * https://docs.ruby-lang.org/en/3.1/Gem/Version.html * https://docs.ruby-lang.org/en/master/Gem/Version.html * `ri Gem::Version` with `ri --version` => 6.4.0 and `gem --version` => 3.3.5 * `yard ri Gem::Version` with `yard --version` => 0.9.27 https://github.com/rubygems/rubygems/commit/c10e5dd884
* Appveyor: Link vcpkg DLLs except for readlineNobuyoshi Nakada2022-02-071-1/+3
|
* [MSWin] Link all vcpkg DLLs except for readlineNobuyoshi Nakada2022-02-071-1/+3
|
* [MSWin] Install libyaml using vcpkgNobuyoshi Nakada2022-02-071-2/+4
|
* Improve links to labels in string.c and struct.c (#5531)Burdette Lamar2022-02-062-12/+9
|
* * 2022-02-07 [ci skip]git2022-02-071-1/+1
|
* [MSWin] Install libffi using vcpkgNobuyoshi Nakada2022-02-062-4/+12
|
* [MSWin] Cache installed vcpkg packagesNobuyoshi Nakada2022-02-061-0/+7
|
* Appveyor: Try readline extensionNobuyoshi Nakada2022-02-061-2/+0
|
* Appveyor: DBM extensions have not been bundled alreadyNobuyoshi Nakada2022-02-061-1/+1
|
* Fold command line itemsNobuyoshi Nakada2022-02-062-5/+30
|
* Fix TAG_THROW through require [Bug #18562]John Hawthorn2022-02-052-1/+22
| | | | | | | | | | Previously this was being incorrectly swapped with TAG_RAISE in the next line. This would end up checking the T_IMEMO throw_data to the exception handling (which calls Module#===). This happened to not break existing tests because Module#=== returned false when klass is NULL. This commit handles throw from require correctly by jumping to the tag retaining the TAG_THROW state.
* {DOC] Enhanced RDoc for io.c (#5529)Burdette Lamar2022-02-051-25/+30
| | | Changes parameter name from simple opts to open_opts or enc_opts when appropriate; leaves the name unchanged when more than one kind of option is allowed.
* * 2022-02-06 [ci skip]git2022-02-061-1/+1
|
* support concurrent btest executionKoichi Sasada2022-02-065-325/+480
| | | | | | | | | | | | | | | | | | | | | | | | * `-j` option for concurrent test with threads * `-jN` uses N threads * `-j` uses nproc/2 threads * Introduce `BT` struct to manage configurations * Introduce `Assertion` to manage all assertions * Remove all toplevel instance variables * Show elapsed seconds at last ``` $ time make btest ... real 0m37.319s user 0m26.221s sys 0m16.534s $ time make btest TESTOPTS=-j ... real 0m11.812s user 0m36.667s sys 0m21.872s ```
* [Bug #18501] Fire write barrier after hash has been writtenAaron Patterson2022-02-041-5/+15
| | | | | | | | | | | | | | | | | Before this change the write barrier was executed before the key and value were actually reachable via the Hash. This could cause inconsistencies in object coloration which would lead to accidental collection of dup'd keys. Example: 1. Object O is grey, Object P is white. 2. Write barrier fires O -> P 3. Write barrier does nothing 4. Malloc happens, which starts GC 5. GC colors O black 6. P is written in to O (now we have O -> P reference) 7. P is now accidentally treated as garbage
* * 2022-02-05 [ci skip]git2022-02-051-1/+1
|
* [DOC] Enhanced RDoc for io.c (#5527)Burdette Lamar2022-02-041-129/+115
| | | | | | | | | | | | Treats: IO.binread (abbreviated to be like IO.binwrite). IO.write IO.binwrite IO.copystream IO#external_encoding IO#internal_encoding IO#set_encoding
* [DOC] Enhanced RDoc for io.c (#5511)Burdette Lamar2022-02-041-97/+206
| | | | | | | | | Treats: IO.foreach IO.readlines IO.read IO.binread
* Add documentation for regexp emoji named character propertyMax Leopold2022-02-041-0/+1
|