summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-09[ruby/rdoc] Support crossref of methods with multiple argumentsPeter Zhu
For example, consider the following markup: C1#m(a, b) Before this patch, it generated this HTML: <p><a href=\"C1.html#method-i-m\"><code>C1#m</code></a>(a, b)</p> Which places the method arguments outside of the link. Now it generates this HTML: <a href=\"C1.html#method-i-m\"><code>C1#m(a, b)</code></a> https://github.com/ruby/rdoc/commit/05a2b2222b
2022-03-09exts.mk.tmpl: propagate MINIRUBY to enc.mk even though invoking from exts.mkYuta Saito
This is another attempt to fix out-of-src build with --with-static-linked-ext. The first attempt was 4f1888bda70981d9f5b1bf55ab692e0ce18e79f4 but reverted because it broke out-of-src build from pre-generated sources via `make dist`. This patch fixes the second trans C source gen, mentioned in the previous commit message, by passing MINIRUBY as well as when invoking from common.mk Notes: Merged: https://github.com/ruby/ruby/pull/5627
2022-03-09[DOC] Fix default offset of String#byterindexKazuhiro NISHIYAMA
2022-03-09* 2022-03-09 [ci skip]git
2022-03-08[DOC] RDoc for character selectors (#5632)Burdette Lamar
This file will be a link target for methods doc that cites character selectors (e.g., String#tr), It covers only the character selector; +replacement+ is discussed at String#tr (which will be revised and simplified); multiple selectors will be discussed at String#delete and String#count. Co-authored-by: Peter Zhu <peter@peterzhu.ca> Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-08Added release option to sync only released version of the default gemsHiroshi SHIBATA
2022-03-08test/io/console/test_io_console.rb: parens neededYusuke Endoh
2022-03-08Skip three tests on FreeBSD 13Yusuke Endoh
Some tests that use signals frequently fail randomly on FreeBSD 13. Maybe something around signals has changed in FreeBSD 13. This change skips them tentatively.
2022-03-07[DOC] Enhanced RDoc for String #tr and #tr! (#5626)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-08* 2022-03-08 [ci skip]git
2022-03-08[rubygems/rubygems] Add newline to validate_platforms! message when platform ↵Alex Gittemeier
is missing When I run bundle install with BUNDLE_DEPLOYMENT=true in the environment on a different platform than I usually do development, I get the following output to the console (wrapped exactly as shown): Your bundle only supports platforms ["x86_64-darwin-19"] but your local platform is x86_64-linux. Add the current platform to the lockfile with `bundle lock --add-platform x86_64-linux` and try again. Because the way the message wraps, its not as simple as copying the suggested command to the clipboard because it contains a newline: $ bundle lock Writing lockfile to [...]/Gemfile.lock $ --add-platform x86_64-linux Adding a newline right before the command forces the command in the error message to be on the same line, which facilitates copy-pasting the command in the message. https://github.com/rubygems/rubygems/commit/4cf6989b11
2022-03-07Use rb_ary_unshare for shared array in rb_ary_replacePeter Zhu
rb_ary_unshare will perform FL_UNSET_SHARED and rb_ary_decrement_share.
2022-03-07[DOC] Fix documentation typo for Process#clock_gettimeThierry Joyal
Fixes [Misc #18610] Notes: Merged: https://github.com/ruby/ruby/pull/5625
2022-03-07Update default gems list at 9c531ca524506f9de7bc4643fd6d89 [ci skip]git
2022-03-07[ruby/ostruct] Drop unused directives from gemspec ↵Olle Jonsson
(https://github.com/ruby/ostruct/pull/39) This gem exposes no executables. https://github.com/ruby/ostruct/commit/a1242f7ebe
2022-03-07[ruby/ostruct] v0.5.3Marc-André Lafortune
https://github.com/ruby/ostruct/commit/322efd0e61
2022-03-07[ruby/ostruct] Fix class and method as attribute namesLadislav Gallay
https://github.com/ruby/ostruct/commit/7258535073
2022-03-07[DOC] Change to guidance on lists in What's Here section (#5618)Burdette Lamar
Currently, the guide says a "What's Here" section should have a labeled list for the methods. Such a list can render very differently in different browsers, and are often erratic in their indentation of continuation lines. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-07* 2022-03-07 [ci skip]git
2022-03-07[rubygems/rubygems] Update README.md.ttBrad Gessler
Reduce the number of steps required to install a gem from two steps to one by using `bundle add` https://github.com/rubygems/rubygems/commit/2c968420cd
2022-03-06* 2022-03-06 [ci skip]git
2022-03-06[rubygems/rubygems] Make `--strict` flag of `update` and `outdated` commands ↵David Rodríguez
consistent Previously they had slightly different behavior when combined with conservative updating flags. The correct behavior is the `--update-strict` option, so `--script` now does that, The `--update-strict` option is left there for now but I will deprecate it later. https://github.com/rubygems/rubygems/commit/ab42046229
2022-03-05* 2022-03-05 [ci skip]git
2022-03-05Mention removed gems since 3.1 [ci skip]Kazuhiro NISHIYAMA
2022-03-04Remove gdbm related code from Travis CIKazuhiro NISHIYAMA
The related extensions have been removed. Related: https://github.com/ruby/ruby/pull/4619
2022-03-04sitelibdir makes no sense in ruby itselfNobuyoshi Nakada
2022-03-04Fix typos [ci skip]Kazuhiro NISHIYAMA
2022-03-03Dedup superclass array in leaf sibling classesJohn Hawthorn
Previously, we would build a new `superclasses` array for each class, even though for all immediate subclasses of a class, the array is identical. This avoids duplicating the arrays on leaf classes (those without subclasses) by calculating and storing a "superclasses including self" array on a class when it's first inherited and sharing that among all superclasses. An additional trick used is that the "superclass array including self" is valid as "self"'s superclass array. It just has it's own class at the end. We can use this to avoid an extra pointer of storage and can use one bit of a flag to track that we've "upgraded" the array. Notes: Merged: https://github.com/ruby/ruby/pull/5604
2022-03-04* 2022-03-04 [ci skip]git
2022-03-03Doc: fix documentation typo for Array#minRogerio Bordignon
Notes: Merged: https://github.com/ruby/ruby/pull/5621
2022-03-03Update to ruby/spec@82cd3a3Benoit Daloze
2022-03-03Update to ruby/mspec@bd47c2aBenoit Daloze
2022-03-03Update default gems list at 7f7db124ee6a72ec178d4045387062 [ci skip]git
2022-03-03[ruby/cgi] Bump up v0.3.2Hiroshi SHIBATA
https://github.com/ruby/cgi/commit/734dfdf1b4
2022-03-03[DOC] mark `rb_str_init` as `:nodoc:`Nobuyoshi Nakada
Otherwise, an empty entry will be generated as `String::new` along with the one from doc/string.rb.
2022-03-03[DOC] Rename doc/*.rb as doc/*.rdocNobuyoshi Nakada
With `:markup: ruby` directive so that they are parsed as ruby scripts.
2022-03-03* 2022-03-03 [ci skip]git
2022-03-02[DOC] Addition to encoding.rdoc (#5617)Burdette Lamar
Adds section "Transcoding a Stream," listing relevant methods in IO. Moves an example from section "String Encoding Example" to the new section. Removes header "String Encoding Example" for now-empty section. Changes items in section "Transcoding a String" from labeled list items to bullet list items. (Labeled list items are sometimes rendered with strange indentations for continued lines, and are always rendered with different indentations for the items.) Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-02[MSWin] Allow gems with VS2022 for VS2019 build ruby [Misc #18362]Nobuyoshi Nakada
Although not sure if it is really compatible, let’s give it a try.
2022-03-02Exclude binstubs testsNobuyoshi Nakada
When relative loading is enabled, the executable ruby is expected installed at the same directory as the binstub.
2022-03-02Revert "enc/depend: fix out-of-src build with --with-static-linked-ext" (#5616)Nobuyoshi Nakada
This reverts commit 32ad8df9d1e07e1b2435a8890d070802fcd2989f, which broke out-of-src build with the pre-generated transcoder sources. Notes: Merged-By: nobu <nobu@ruby-lang.org>
2022-03-02vm_method.c: avoid signature mismatch in rb_f_notimplement callYuta Saito
`rb_f_notimplement` has a similar signature with arity=-1, but it has an extra marker argument to distinguish it from other methods in compile-time type check in rb_define_method. This trick is introduced to override a given arity to be -1 since https://github.com/ruby/ruby/commit/9ef51b0b89a10c8c401cb9f2337e47a25be72cbe However, the trailing extra argument introduces a signature mismatch between caller and callee expectation. This patch adds rb_f_notimplement_internal, which has canonical arity=-1 signature, and makes rb_define_method family to inserts a method entry with rb_f_notimplement_internal instead of rb_f_notimplement. Notes: Merged: https://github.com/ruby/ruby/pull/5612
2022-03-02[ruby/rdoc] Use `Marshal.load io` instead of `Marshal.load io.read`Kazuhiro NISHIYAMA
https://github.com/ruby/rdoc/commit/135198a31c
2022-03-02dir.c: use self-made IFTODT in rb_pathtype_t if availableYuta Saito
dir.c defines IFTODT if the system doesn't have it. The macro is used when comparing with rb_pathtype_t's cases. rb_pathtype_t's cases are defined by DT_XXX macro if they are available, or defined using IFTODT. Most POSIX-compatible platforms have both IFTODT and DT_XXX and most of other platforms like MinGW have neither of them. On those platforms, DT_XXX-oriented rb_pathtype_t is always compared with values converted by system's IFTODT, and emulated-IFTODT-oriented rb_pathtype_t is always compared with values converted by emulated-IFTODT. However, when IFTODT is *not defined* and DT_XXX is *defined*, like on wasi-libc, DT_XXX-oriented rb_pathtype_t was compared with values converted by emulated-IFTODT, and they are not guaranteed to be compatible. This patch fixes such a situation by using emulated-IFTODT to define rb_pathtype_t when either IFTODT or DT_XXX is not available. Notes: Merged: https://github.com/ruby/ruby/pull/5614
2022-03-02enc/depend: fix out-of-src build with --with-static-linked-extYuta Saito
When out-of-src build, at the beginning of a build, `make -f enc.mk srcs` generates trans C sources under build dir. On the other hand, enc/trans/*.o were built from trans C sources generated under srcdir due to the following auto-generated rules from enc/depend. ``` encsrcdir = ../src/enc ... enc/trans/big5.$(OBJEXT): $(encsrcdir)/trans/big5.c ``` Therefore, trans C sources are generated twice under srcdir and build dir during a build. Ideally, trans C sources have always been built before compilation of enc/trans/*.o because the source generation is prereq, so making enc/trans/*.o doesn't trigger trans C source generation and shouldn't require MINIRUBY as a make arg for enc.mk. However, the second trans C source gen is unintentionally triggered by enc/trans/*.o, so `make -f enc.mk libencs` requires MINIRUBY for now. When no `--with-static-linked-ext`, `make -f enc.mk libencs` is triggered from common.mk with MINIRUBY, so there is no problem. But when `--with-static-linked-ext`, libencs should be statically-linked to ruby, so `make -f enc.mk libencs` is triggered from exts.mk, and exts.mk invokes it without MINIRUBY. Therefore, when out-of-src build and with `--with-static-linked-ext`, the second trans C source gen fails due to missing MINIRUBY. This issue is deterministically reproducible without -j because common.mk's `main` rule also has libencs prerequisite. This patch supresses the second trans C source gen. Notes: Merged: https://github.com/ruby/ruby/pull/5611
2022-03-02Using macros to check iseq elementS.H
Notes: Merged: https://github.com/ruby/ruby/pull/5558 Merged-By: nobu <nobu@ruby-lang.org>
2022-03-01Wrap ruby_abi_version in `extern "C"` for C++Peter Zhu
Make ruby_abi_version have C linkage so that the symbol can be found in the shared object.
2022-03-01Close files in examples in io.c (#5615)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-01[DOC] Add encoding external/internal example to encoding.rdoc (#5610)Burdette Lamar
* Add encoding external/internal example to encoding.rdoc * Add encoding external/internal example to encoding.rdoc * Update doc/encoding.rdoc I think there may be some more of these that I've recently put into io.c. Will check tomorrow and create new PR if so. Co-authored-by: Peter Zhu <peter@peterzhu.ca> Co-authored-by: Peter Zhu <peter@peterzhu.ca> Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-01Show embed status of array when len is 0 in objspace dumpPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/5609