36 Commits
Author SHA1 Message Date
Hiroshi SHIBATA fdad6b5dcf [DOC] Restore glob documentation lost in consolidation
Dir.glob's block form, Dir[]'s multiple pattern arguments, matching
only directories by a trailing slash, and the note that '**' without
a following slash is equivalent to '*' were dropped when the glob
documentation was consolidated into doc/file/filename_globbing.md
(GH-17265). Restore them, with examples verified against the current
source tree.
2026-07-10 07:15:29 +09:00
Burdette Lamar 4530a17f58 [DOC] Harmonize glob methods (#17265) 2026-06-15 10:16:41 +09:00
Burdette Lamar b524f22719 [DOC] Harmonize fnmatch methods 2026-06-11 13:14:34 +09:00
Peter Zhu 491e38902c [DOC] Fix links to What's Here
The RDoc link format has changed so these are all broken links.
2026-01-26 17:18:19 -05:00
tomoya ishida b536c6a849 [DOC] Remove _emphasis_ in code blocks which is not handled as emphasis anymore (#15901) 2026-01-19 04:59:09 +09:00
Jean Boussier e4bcb64be1 [Doc] prefer encoding objects over encoding names 2025-12-20 14:12:35 +01:00
Nobuyoshi Nakada d0a8f6baa7 [DOC] Fix call-seq of Dir.glob
`patterns` may be an array but not the rest argument.
2025-05-20 22:12:58 +09:00
Nobuyoshi Nakada e433e6515e [DOC] Exclude 'Class' and 'Module' from RDoc's autolinking 2025-01-02 12:36:06 +09:00
Nobuyoshi Nakada b4ec22fe6c [DOC] Exclude 'Method' from RDoc's autolinking 2025-01-02 12:23:49 +09:00
Koichi Sasada 9180e33ca3 show warning for unused block
With verbopse mode (-w), the interpreter shows a warning if
a block is passed to a method which does not use the given block.

Warning on:

* the invoked method is written in C
* the invoked method is not `initialize`
* not invoked with `super`
* the first time on the call-site with the invoked method
  (`obj.foo{}` will be warned once if `foo` is same method)

[Feature #15554]

`Primitive.attr! :use_block` is introduced to declare that primitive
functions (written in C) will use passed block.

For minitest, test needs some tweak, so use
https://github.com/minitest/minitest/commit/ea9caafc0754b1d6236a490d59e624b53209734a
for `test-bundled-gems`.
2024-04-15 12:08:07 +09:00
Nobuyoshi Nakada caa9881fde [DOC] Fix doc/regexp.rdoc links
- Rename regexp.rdoc to exclude from "Pages".  This file is for to be
  included in the "class Regexp" document, but it also appeared as a
  separate page duplicately.
- Fix links on case-sensitive filesystems.
- Fix to use rdoc-ref instead of converted HTML page names.
2023-11-14 15:56:57 +09:00
Kentaro Takeyama f72ddd92be [rubygems/rubygems] Bundler: Update bundle-outdated(1) man
Updated output examples to current format since the output format has changed since version 2.2.0.dev

https://github.com/rubygems/rubygems/commit/48d98f906a
2023-07-24 23:58:06 +00:00
Burdette Lamar 210caa777b More RDoc for Dir.glob (#8088) 2023-07-20 16:50:45 -04:00
Burdette Lamar 2e6a8a8610 [DOC] Dir doc (#8014) 2023-07-04 09:23:24 -04:00
Jaeson Lauritzen 7e1788e180 fix typo in dir documentation (#6002) 2022-06-10 22:22:16 -07:00
Burdette Lamar 0cb43034b4 Repair format for What's Here in Dir (#5737) 2022-03-30 14:14:36 -05:00
Nobuyoshi Nakada dfa17f46a8 [DOC] prefer rdoc references over generated URLs 2022-02-19 15:14:01 +09:00
Jeremy Evans 5917f49ad0 Fix documentation for Dir.glob
Dir.glob("*", File::FNM_DOTMATCH) no longer includes ".." in the
returned array as of Ruby 3.1.

Fixes [Bug #18436]
2022-01-04 12:38:50 -08:00
Nobuyoshi Nakada f3812e6ce6 [DOC] Needs call-seq directives [ci skip] 2021-11-05 09:58:46 +09:00
Nobuyoshi Nakada 53e2bba0dd [DOC] Markup the literal false, and constant [ci skip] 2021-11-05 09:58:45 +09:00
Burdette Lamar 94dea77cd6 Links for What's Here sections (#4827)
Makes What's Here sections in Time and Dir link to What's Here for super and included modules (like all the others).
2021-09-13 10:37:15 -05:00
Hiroshi SHIBATAandJosh Soref bfec03f5fe Match parens for hidden files parenthetical
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2021-08-31 21:02:13 +09:00
Henrik Nyh 19ab24a064 [DOC] Fix a typo in Dir.fnmatch 2021-08-27 09:16:25 +09:00
Nobuyoshi Nakada 9ca3051660 [DOC] fixed the default value of flags [ci skip] 2021-07-01 14:45:47 +09:00
Nobuyoshi Nakada 9692aeedf1 [DOC] expanded patterns in examples of File.fnmatch [ci skip] 2021-07-01 14:45:47 +09:00
Nobuyoshi Nakada 26fcec5ae5 [DOC] fix metacharacter markups [ci skip] 2021-06-07 20:44:05 +09:00
Nobuyoshi Nakada 4bd538e847 dir.rb: moved class rdoc from dir.c 2021-06-07 20:44:05 +09:00
Nobuyoshi Nakada a35d137a37 [DOC] Moved File.fnmatch? to dir.rb
So that no longer disturbed by C comment delimiters.
2021-05-21 09:01:01 +09:00
Nobuyoshi Nakada 135d369096 [DOC] more precise description of "**" in Dir.glob pattern [ci skip] 2020-10-27 08:55:10 +09:00
Nobuyoshi Nakada 507af75415 [DOC] Expanded glob patterns for Dir.glob
No longer need to get rid of C block comments in builtin ruby
script comments.
2020-10-26 09:09:45 +09:00
Nobuyoshi Nakada e880d075f8 [DOC] refined "**" description in Dir.glob [ci skip]
As same as the description for `File.fnmatch`.
[Bug #17283]
2020-10-25 21:24:23 +09:00
Nobuyoshi Nakada 63aadc237f [Feature #16254] Use Primitive.func style 2020-06-19 18:46:55 +09:00
Nobuyoshi Nakada d863f4bccd [Feature #16254] Use __builtin.func style 2020-06-19 18:46:55 +09:00
Nobuyoshi Nakada 827e88119c Moved Dir.[] to dir.rb 2020-04-06 22:22:25 +09:00
Nobuyoshi Nakada 60e25e37d4 Moved Dir.glob to dir.rb 2020-04-06 22:22:25 +09:00
Nobuyoshi Nakada 310054b240 Moved Dir.open and Dir#initialize to dir.rb 2020-04-06 22:22:25 +09:00