summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-24Add Yuta Saito (katei) as the platform maintainer of WebAssembly/WASIYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/5702
2022-03-24extlibs.rb: Add fallback `Colorize`Nobuyoshi Nakada
To get rid of an unnecessary dependency for the case using in other repositories. Notes: Merged: https://github.com/ruby/ruby/pull/5701
2022-03-24extlibs.rb: Enclose `Vars` in `ExtLibs` classNobuyoshi Nakada
To get rid of an unnecessary top-level constant for the case using as a library. Notes: Merged: https://github.com/ruby/ruby/pull/5701
2022-03-24extlibs.rb: Extract ExtLibs#processNobuyoshi Nakada
For the case using this script as a library. - `ExtLibs#process` reads and processes an extlibs file. - `ExtLibs#process_under` processes all extlibs files under the given directory. - `Extlibs.run` parses `ARGV` and lets an instance process the directories. Notes: Merged: https://github.com/ruby/ruby/pull/5701
2022-03-24regint.h: Reduce the frequency of rb_thread_check_intsYusuke Endoh
edc8576a65b7082597d45a694434261ec3ac0d9e checks interrupt at every backtrack, which brought significant overhead. This change makes the check only once every 128 backtracks. Notes: Merged: https://github.com/ruby/ruby/pull/5697
2022-03-24Now all extension libraries must consider the ABI headerNobuyoshi Nakada
2022-03-24[DOC] Remove mis-synced bundler directoryNobuyoshi Nakada
2022-03-24[rubygems/rubygems] Avoid crash in test teardownDavid Rodríguez
If an exception happens during test `setup` method, the `teardown` method will still be run for cleaning up, but if some other errors occurs then, it will hide the original error. This is happening sometimes in CI where restoring original gem hooks is failing because the error in `setup` happened before the variable holding the original hooks was initialized. This commit moves initialization of `@orig_hooks` to the beginning of the `setup` method to avoid this issue. https://github.com/rubygems/rubygems/commit/8524d2b74d
2022-03-24* 2022-03-24 [ci skip]git
2022-03-24[rubygems/rubygems] Improve RDoc setupDavid Rodríguez
Completely exclude the full bundler folder. The actual Bundler docs are excluded anyways by ruby-core (by bundler/lib/bundler/.document, bundler/lib/bundler/man/.document), I guess because bundler docs are not in RDoc format? Running RDoc in the repo root before these changes takes about 5 minutes on my machine, while after these changes takes about 15 seconds. https://github.com/rubygems/rubygems/commit/8b1802447a
2022-03-23Raise ArgumentError when calling Enumberable#inject without block or argumentsJeremy Evans
Previously, this would work as expected if the enumerable contained 0 or 1 element, and would raise LocalJumpError otherwise. That inconsistent behavior is likely to lead to bugs. Fixes [Bug #18635] Notes: Merged: https://github.com/ruby/ruby/pull/5690
2022-03-23[rubygems/rubygems] Make `rescue` clause more specificDavid Rodríguez
This is hiding a real bundler issue as a "network error". It's more helpful to get a proper bug report, with stack trace and so on. So stop re-raising errors when evaluating unmarshaled responses as network errors, and only raise Marshal errors when the Marshal format is invalid, not whenever marshalled gemspecs can't be loaded because that may hide actual client errors, like missing `YAML` constants. https://github.com/rubygems/rubygems/commit/05ea907e1c
2022-03-22[DOC] Enhanced RDoc for String (#5685)Burdette Lamar
Treats: #chars #codepoints #each_char #each_codepoint #each_grapheme_cluster #grapheme_clusters Also, corrects a passage in #unicode_normalize that mentioned module UnicodeNormalize, whose doc (:nodoc:, actually) says not to mention it. Notes: Merged-By: BurdetteLamar <[email protected]>
2022-03-23Need to reconfigure and rebuild everything when abi.h changedNobuyoshi Nakada
2022-03-23* 2022-03-23 [ci skip]git
2022-03-23[rubygems/rubygems] Fix a test for `bin/bundle update --bundler` to pass on ↵Jun Aruga
ruby/ruby. Consider the case that the latest Bundler version on RubyGems is higher than the `system_bundler_version` (= `Bundler::VERSION`) in `make test-bundler` on ruby/ruby. See <https://bugs.ruby-lang.org/issues/18643>. https://github.com/rubygems/rubygems/commit/bfa2f72cfa
2022-03-22[Feature #18634] Implement Arrays on Variable Width AllocationPeter Zhu
This commit implements arrays on Variable Width Allocation. This allows longer arrays to be embedded (i.e. contents directly follow the object header) which improves performance through better cache locality. Notes: Merged: https://github.com/ruby/ruby/pull/5660
2022-03-22[DOC] re-count test suites run by `make check` [ci skip]Nobuyoshi Nakada
2022-03-22Fix a link [ci skip]Kazuhiro NISHIYAMA
2022-03-21[DOC] Use RDoc inclusions in string.c (#5683)Burdette Lamar
As @peterzhu2118 and @duerst have pointed out, putting string method's RDoc into doc/ (which allows non-ASCII in examples) makes the "click to toggle source" feature not work for that method. This PR moves the primary method doc back into string.c, then includes RDoc from doc/string/*.rdoc, and also removes doc/string.rdoc. The affected methods are: ::new #bytes #each_byte #each_line #split The call-seq is in string.c because it works there; it did not work when the call-seq is in doc/string/*.rdoc. This PR also updates the relevant guidance in doc/documentation_guide.rdoc. Notes: Merged-By: BurdetteLamar <[email protected]>
2022-03-21Fix Markdown syntax in spec/README.mdBenoit Daloze
2022-03-22[DOC] Move old NEWS files to a separate directoryNobuyoshi Nakada
2022-03-22* 2022-03-22 [ci skip]git
2022-03-22[ruby/rdoc] Expand the enclosing tree of the current fileNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/f9f90ef2ff
2022-03-22[ruby/rdoc] Fold files in the page directoryNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/b7b4cdab6c
2022-03-22[ruby/rdoc] Add test_generate_pageNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/c870284163
2022-03-20[ruby/rdoc] Allow method source code to scroll [ci skip]Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/1bb0496c53
2022-03-20[ruby/rdoc] Use the custom style `details summary` only in `nav-section`Nobuyoshi Nakada
https://github.com/ruby/rdoc/commit/7736d3a89c
2022-03-20* 2022-03-20 [ci skip]git
2022-03-20[DOC] make internally used classes/methods nodocNobuyoshi Nakada
Empty class documents are generated even with `:stopdoc:`.
2022-03-19Make a dedecated assertion to clarify failed assertionsNobuyoshi Nakada
2022-03-19* 2022-03-19 [ci skip]git
2022-03-18[DOC] Enhanced RDoc for String (#5675)Burdette Lamar
Treats: #split #each_line #lines #each_byte #bytes Notes: Merged-By: BurdetteLamar <[email protected]>
2022-03-18[Bug #18627] Fix crash when including modulePeter Zhu
During lazy sweeping, the iclass could be a dead object that has not yet been swept. However, the chain of superclasses of the iclass could already have been swept (and become a new object), which would cause a crash when trying to read the object. Notes: Merged: https://github.com/ruby/ruby/pull/5671
2022-03-17Encourage arity argument in Proc#curry documentation for procs with variable ↵Jeremy Evans
arguments This uses similar language to that used in Method#curry.
2022-03-18Add a NEWS entry about [Feature #18598] [ci skip]Shugo Maeda
2022-03-18Add String#bytespliceShugo Maeda
Notes: Merged: https://github.com/ruby/ruby/pull/5584
2022-03-17Revert "Faster rb_class_superclass"John Hawthorn
This reverts commit 29b68b89a0c0ea7de46c058fab746550398151f0. Notes: Merged: https://github.com/ruby/ruby/pull/5678
2022-03-17Make Proc#parameters support lambda keyword for returning parameters as if ↵Jeremy Evans
lambda This makes it easier to use Proc#parameters to build wrappers. Implements [Feature #15357] Notes: Merged: https://github.com/ruby/ruby/pull/5677
2022-03-17Faster rb_class_superclassJohn Hawthorn
This uses the RCLASS_SUPERCLASSES array to quickly find the next SUPERCLASS of klass which is a T_CLASS. Notes: Merged: https://github.com/ruby/ruby/pull/5662
2022-03-18* 2022-03-18 [ci skip]git
2022-03-18Fix potential memory leak at fiber poolNobuyoshi Nakada
Do not "allocate then wrap". It leaks the allocated memory if failed to create the wrapper. Notes: Merged: https://github.com/ruby/ruby/pull/5668
2022-03-18Fix compilation error with `RB_EXPERIMENTAL_FIBER_POOL`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5668
2022-03-18A positional Hash is not keyword arguments [Bug #18632]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5676
2022-03-17A positional Hash is not keyword arguments [Bug #18632]Nobuyoshi Nakada
2022-03-17spec: skip specs where set TZ environment variable for WASIYuta Saito
WASI doesn't respect TZ env var for now Notes: Merged: https://github.com/ruby/ruby/pull/5673
2022-03-17spec: disable a part of Kernel.open spec where spawns a process for WASIYuta Saito
WASI doesn't provide a way to spawn a new process Notes: Merged: https://github.com/ruby/ruby/pull/5672
2022-03-17Update default gems list at fadc7a150c90ad44dee90985b19e79 [ci skip]git
2022-03-17[ruby/logger] bump version to 1.5.1Hiroshi SHIBATA
https://github.com/ruby/logger/commit/c4a4155ab7
2022-03-17Update the test for [Feature #18615]Nobuyoshi Nakada