71704 Commits

Author SHA1 Message Date
Peter Zhu
c69bdcf80c [ruby/bigdecimal] Fix docs
rdoc parses f[i] as a link, which results in a broken link.

https://github.com/ruby/bigdecimal/commit/a18522e9ca
2022-04-18 10:29:25 +09:00
Nobuyoshi Nakada
92361ad9c6 [ruby/bigdecimal] Adjust a local variable type to exponent
https://github.com/ruby/bigdecimal/commit/70146fb6ad
2022-04-18 10:29:23 +09:00
David Rodríguez
e5a852b912 [ruby/tsort] Small tweaks for easier vendoring
Bundler vendors this file and we have some tools to automatically
prepend the `Bundler::` namespace so that the vendored version does not
collide with the stdlib version.

However, due to how methods are defined, it's hard for our vendoring
tool to do the right thing.

I think this makes the code simpler and things easier for us too.

https://github.com/ruby/tsort/commit/7088a7c814
2022-04-18 09:40:07 +09:00
git
8c4ed2d777 * 2022-04-18 [ci skip] 2022-04-18 09:18:41 +09:00
Nick Roma
d6238007bf Fixes grammar 2022-04-18 09:18:23 +09:00
Kazuhiro NISHIYAMA
50f3e93c80
Fix a typo 2022-04-17 20:57:46 +09:00
Nobuyoshi Nakada
be52c72889
Get rid of doubly caching 2022-04-17 18:57:26 +09:00
Nobuyoshi Nakada
2c6876f811
Get rid of magic numbers 2022-04-17 18:53:29 +09:00
Burdette Lamar
2b4b513ef0
[DOC] Enhanced RDoc for Regexp (#5812)
Treats:

    #fixed_encoding?
    #hash
    #==
    #=~
    #match
    #match?

Also, in regexp.rdoc:

    Changes heading from 'Special Global Variables' to 'Regexp Global Variables'.
    Add tiny section 'Regexp Interpolation'.
2022-04-16 15:20:03 -05:00
git
bde06ce33a * 2022-04-17 [ci skip] 2022-04-17 03:41:12 +09:00
John Hawthorn
7950c4eb2d Fix class ancestry checks for duped classes
Previously in some when classes were duped (specifically those with a
prepended module), they would not correctly have their "superclasses"
array or depth filled in.

This could cause ancestry checks (like is_a? and Module comparisons) to
return incorrect results.

This happened because rb_mod_init_copy builds origin classes in an order
that doesn't have the super linked list fully connected until it's
finished. This commit fixes the previous issue by calling
rb_class_update_superclasses before returning the cloned class. This is
similar to what's already done in make_metaclass.
2022-04-16 11:40:56 -07:00
David Rodríguez
e70e7f4ad3 [rubygems/rubygems] Fix test issues surfaced using a stricter behavior of FileUtils
We were trying to remove directories using `FileUtils.rm_f` which is
unexpected and does not remove anything. Changing to `FileUtils.rm_rf`
actually removes the directories properly. That itself showed other
issues:

* One test was actually removing the gem package it was about to
  install, since it was living in the cache folder. To fix that, avoid
  removing the cache folder, and only make sure the other directories
  are created automatically, which seems enough.

* Another test was actually removing an incorrect directory. Change it
  to remove the right one (the one that's asserted later to have been
  created).

https://github.com/rubygems/rubygems/commit/5538e7ff20
2022-04-16 22:58:34 +09:00
David Rodríguez
9a20bcd5c8 [rubygems/rubygems] I don't think this is necessary
https://github.com/rubygems/rubygems/commit/836f3e5aa5
2022-04-16 22:58:34 +09:00
Nobuyoshi Nakada
a3ef0746ce
Extract pipe_readlines method which reads from the pipeline 2022-04-16 17:13:24 +09:00
Nobuyoshi Nakada
b09e96341e
Simplify the condition expression to ignore commits 2022-04-16 16:45:46 +09:00
Nobuyoshi Nakada
492185e39c
Do not import any files under rakelib 2022-04-16 16:45:11 +09:00
BurdetteLamar
723debc9a9 [ruby/set] Repair format for What's Here
https://github.com/ruby/set/commit/292baacb60
2022-04-16 15:34:34 +09:00
Hiroshi SHIBATA
24d7ebfa7a
Revert "[ruby/stringio] Add push task to push built gems"
This reverts commit 22f79ae3f749ebe31c34c22d5b8699ffd81ab341.
2022-04-16 13:30:20 +09:00
Nobuyoshi Nakada
8a3663789c
Fix bundled gems installation when relative loading 2022-04-16 09:03:51 +09:00
Bobby McDonald
ccb0572ff9 [rubygems/rubygems] Add modern rubies to the platforms
https://github.com/rubygems/rubygems/commit/5462322f8f
2022-04-16 08:23:21 +09:00
Sutou Kouhei
22f79ae3f7 [ruby/stringio] Add push task to push built gems
https://github.com/ruby/stringio/commit/4431eefbad
2022-04-16 07:08:41 +09:00
git
566fb7fa7d Update default gems list at 2aca566a104ad42579be03374446fd [ci skip] 2022-04-15 21:35:19 +00:00
Sutou Kouhei
2aca566a10 [ruby/stringio] bump up to 3.0.2.pre1
https://github.com/ruby/stringio/commit/14ec9bc193
2022-04-16 06:34:31 +09:00
git
059e389ffc * 2022-04-16 [ci skip] 2022-04-16 03:31:37 +09:00
Burdette Lamar
e021754db0
[DOC] Enhanced RDoc for Regexp (#5807)
Treats:

    #source
    #inspect
    #to_s
    #casefold?
    #options
    #names
    #named_captures
2022-04-15 13:31:15 -05:00
Nobuyoshi Nakada
7f81f33547 Return false where sticky-bit is not provided [Bug #18734] 2022-04-15 17:52:10 +09:00
Nobuyoshi Nakada
9db7d95968 Compare predicate methods as a boolean value 2022-04-15 17:14:29 +09:00
Nobuyoshi Nakada
a0040af671 [Win32] Fix mode of character/pipe device stat [Bug #18732] 2022-04-15 17:14:29 +09:00
Peter Zhu
a0eb4b14d6 [ruby/nkf] Fix docs
rdoc parses "Z[0-3]" as a link to "0-3", this commit escapes these so
that they don't become links.

https://github.com/ruby/nkf/commit/269c10061b
2022-04-15 16:07:11 +09:00
Peter Zhu
da1695b926 [ruby/optparse] Fix broken links in docs
https://github.com/ruby/optparse/commit/2bea3b38c3
2022-04-15 14:21:28 +09:00
Peter Zhu
92614111c0 [ruby/rdoc] Fix links in docs
www.ruby-lang.org without the leading https:// will generate an
incorrect link because it will be treated as a relative link.

https://github.com/ruby/rdoc/commit/28f32149b6
2022-04-15 13:24:48 +09:00
Alan Wu
307cb57ba6 Fix build errors with development version of Clang
Maybe not the best idea for CI stability to use development versions of
Clang, but that does give us a preview of what's coming and gives us a
chance to make suggestions upstream.
2022-04-14 15:47:27 -04:00
git
b086116c0b * 2022-04-15 [ci skip] 2022-04-15 04:25:24 +09:00
Burdette Lamar
01395d84ab
More details for regexp literals (#5800) 2022-04-14 14:25:06 -05:00
Akshay Birajdar
8751c5c267 [DOC] Enhance documentation for Module#< & Module#> 2022-04-14 08:52:22 -04:00
Koichi Sasada
9b8ce6d34c fix to use node.gvl instead of node.ubf
The last parameter of `ccan_list_top()` is to acquire the pointer
of the top of element, so `node.ubf` is no problem. But this context
it accesses gvl list, so `node.gvl` is better.
2022-04-14 21:22:47 +09:00
Nobuyoshi Nakada
5397dd2e76 [ruby/rdoc] Apply matching word pairs to underscore-methods
Protected characters with `PROTECT_ATTR` should not have special
roles.

https://github.com/ruby/rdoc/commit/c318af0ea2
2022-04-14 16:37:14 +09:00
Peter Zhu
1a2490b564 [rubygems/rubygems] Fix formatting in docs
rdoc uses + for typewriter font rather than backticks.

https://github.com/rubygems/rubygems/commit/be320f1e0c
2022-04-14 16:24:09 +09:00
Nobuyoshi Nakada
295030969c
[DOC] Prefer RDOCLINK to the method name 2022-04-14 14:57:39 +09:00
Nobuyoshi Nakada
2ff41e97fa
[DOC] Now underscore methods can cross-reference 2022-04-14 12:55:44 +09:00
Nobuyoshi Nakada
e06100d969 [ruby/rdoc] Allow cross references to methods including underscores
As underscores are masked to "protect" from the conversion, consider
also `PROTECT_ATTR` as a word character.

https://github.com/ruby/rdoc/commit/db58bb5170
2022-04-14 12:51:30 +09:00
Nobuyoshi Nakada
5d45afdbbf
[DOC] Move the documentations of moved Symbol methods 2022-04-14 11:17:37 +09:00
S-H-GAMELINKS
3728f83b2d [DOC] Fix SymbolVariantsRelNotes link 2022-04-14 10:16:45 +09:00
Grant Hutchins
59c81274aa Use correct capitalization of "NaN" in docs 2022-04-13 15:44:36 -04:00
Stan Lo
629bad4aba Update PTY.spawn's document
Passing the optional env hash to PTY.spawn has been supported for years, but it's never documented.
More info: https://bugs.ruby-lang.org/issues/12312
2022-04-13 15:43:28 -04:00
Alex Matchneer
dbb227d3b6
[DOC] add missing size params in fiber scheduler.h (#5441) 2022-04-14 07:34:49 +12:00
Burdette Lamar
dfdc03248f
[DOC] Enhanced RDoc for Symbol (#5796)
Treats:
    #[]
    #length
    #empty?
    #upcase
    #downcase
    #capitalize
    #swapcase
    #start_with?
    #end_with?
    #encoding
    ::all_symbols
2022-04-13 13:45:18 -05:00
git
fde7952489 * 2022-04-14 [ci skip] 2022-04-14 00:11:43 +09:00
Jeremy Evans
0579486f15 [ruby/net-http] Update the content-length heading when decoding bodies
Previously, the content-encoding header was removed and the body
was modified, but the content-length header was not modified,
resulting in the content-length header not matching the body
length.

Don't delete content-length before yielding inflate body, as that
causes a switch to read the entire body instead of reading in
chunks.

Fixes [Bug #16672]

https://github.com/ruby/net-http/commit/58284e9710

Co-authored-by: st0012 <stan001212@gmail.com>
2022-04-14 00:11:26 +09:00
Peter Zhu
54b53e2c8f [ci skip] Fix docs 2022-04-13 10:43:23 -04:00