Граф коммитов

27 Коммитов

Автор SHA1 Сообщение Дата
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
ea9caafc07
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 SHIBATA 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 `pattern`s 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