1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed RDoc formatting [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-05-18 20:42:20 +09:00
parent cf31e98079
commit 185f49f90c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
5 changed files with 56 additions and 78 deletions

View file

@ -116,8 +116,7 @@ with all sufficient information, see the ChangeLog file.
corresponding method in the prepending module. corresponding method in the prepending module.
* added Module.prepended and Module.prepend_features, similar * added Module.prepended and Module.prepend_features, similar
to included and append_features. to included and append_features.
* added Module#refine, which extends a class or module locally. * added Module#refine, which extends a class or module locally. [experimental]
[experimental]
* extended method: * extended method:
* Module#define_method accepts a UnboundMethod from a Module. * Module#define_method accepts a UnboundMethod from a Module.
* Module#const_get accepts a qualified constant string, e.g. * Module#const_get accepts a qualified constant string, e.g.

View file

@ -250,8 +250,7 @@ with all sufficient information, see the ChangeLog file.
* Logger::Application is extracted to logger-application gem. It's unmaintain code. * Logger::Application is extracted to logger-application gem. It's unmaintain code.
* ObjectSpace (after requiring "objspace") * ObjectSpace (after requiring "objspace")
* ObjectSpace.memsize_of(obj) returns a size includes sizeof(RVALUE). * ObjectSpace.memsize_of(obj) returns a size includes sizeof(RVALUE). [Bug #8984]
[Bug #8984]
* Prime * Prime
* incompatible changes: * incompatible changes:
@ -353,8 +352,7 @@ with all sufficient information, see the ChangeLog file.
* VM * VM
* Use frozen string literals for Hash#[] and Hash#[]= * Use frozen string literals for Hash#[] and Hash#[]=
* Fast keyword arguments passing [Feature #10440] * Fast keyword arguments passing [Feature #10440]
* Allow to receive huge splatted array by a rest argument * Allow to receive huge splatted array by a rest argument [Feature #10440]
[Feature #10440]
* Process * Process
* Process creation methods, such as spawn(), uses vfork() system call. * Process creation methods, such as spawn(), uses vfork() system call.

View file

@ -16,20 +16,19 @@ with all sufficient information, see the ChangeLog file or Redmine
* frozen-string-literal pragma: * frozen-string-literal pragma:
* new pragma, frozen-string-literal has been experimentally introduced. * new pragma, frozen-string-literal has been experimentally introduced. [Feature #8976]
[Feature #8976]
* besides, --enable/--disable=frozen-string-literal options also have * besides, --enable/--disable=frozen-string-literal options also have
been introduced. [Feature #8976] been introduced. [Feature #8976]
* command line options --debug or --debug=frozen-string-literal enable * command line options --debug or --debug=frozen-string-literal enable
additional debugging mode which shows created location with at frozen additional debugging mode which shows created location with at frozen
object error (RuntimeError). object error (RuntimeError). [Feature #11725]
[Feature #11725]
* safe navigation operator: * safe navigation operator:
* new method call syntax, `object&.foo', method #foo is called on * new method call syntax, `object&.foo', method #foo is called on
`object' if it is not nil. `object' if it is not nil. [Feature #11537]
this is similar to `try!' in Active Support, except:
This is similar to `try!' in Active Support, except:
* method name is syntactically required * method name is syntactically required
obj.try! {} # valid obj.try! {} # valid
obj&. {} # syntax error obj&. {} # syntax error
@ -38,7 +37,6 @@ with all sufficient information, see the ChangeLog file or Redmine
obj&.foo(bar()) # bar() is conditionally evaluated obj&.foo(bar()) # bar() is conditionally evaluated
* attribute assignment is valid * attribute assignment is valid
obj&.attr += 1 obj&.attr += 1
[Feature #11537]
* the did_you_mean gem: * the did_you_mean gem:
@ -53,15 +51,13 @@ with all sufficient information, see the ChangeLog file or Redmine
* indented here document: * indented here document:
* new string literal, here document starts with `<<~`. * new string literal, here document starts with `<<~`.
refer doc/syntax/literals.rdoc for more details. refer doc/syntax/literals.rdoc for more details. [Feature #9098]
[Feature #9098]
=== Core classes updates (outstanding ones only) === Core classes updates (outstanding ones only)
* ARGF * ARGF
* ARGF.read_nonblock supports `exception: false' like IO#read_nonblock. * ARGF.read_nonblock supports `exception: false' like IO#read_nonblock. [Feature #11358]
[Feature #11358]
* Array * Array
@ -78,8 +74,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Enumerable * Enumerable
* Enumerable#grep_v is added as inverse version of Enumerable#grep. * Enumerable#grep_v is added as inverse version of Enumerable#grep. [Feature #11049]
[Feature #11049]
* Enumerable#chunk_while [Feature #10769] * Enumerable#chunk_while [Feature #10769]
* Enumerator::Lazy * Enumerator::Lazy
@ -105,8 +100,7 @@ with all sufficient information, see the ChangeLog file or Redmine
this affect only files opened as binary. [Feature #11218] this affect only files opened as binary. [Feature #11218]
* new option parameter `flags' is added. * new option parameter `flags' is added.
this parameter is bitwise-ORed to oflags generated by normal mode argument. this parameter is bitwise-ORed to oflags generated by normal mode argument. [Feature #11253]
[Feature #11253]
* IO#advise no longer raises Errno::ENOSYS in cases where it was * IO#advise no longer raises Errno::ENOSYS in cases where it was
detected at build time but not available at runtime. [Feature #11806] detected at build time but not available at runtime. [Feature #11806]
@ -125,8 +119,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Numeric * Numeric
* Numeric#positive? and Numeric#negative? are added, which return * Numeric#positive? and Numeric#negative? are added, which return
true when the receiver is positive and negative respectively. true when the receiver is positive and negative respectively. [Feature #11151]
[Feature #11151]
* Proc * Proc
@ -152,11 +145,9 @@ with all sufficient information, see the ChangeLog file or Redmine
* String * String
* String#+@ and String#-@ are added to get mutable/frozen strings. * String#+@ and String#-@ are added to get mutable/frozen strings. [Feature #11782]
[Feature #11782]
* String.new now accepts new option parameter `encoding'. * String.new now accepts new option parameter `encoding'. [Feature #11785]
[Feature #11785]
* Struct * Struct
* Struct#dig [Feature #11688] * Struct#dig [Feature #11688]
@ -233,12 +224,10 @@ with all sufficient information, see the ChangeLog file or Redmine
* OpenSSL * OpenSSL
* OpenSSL::SSL::SSLSocket#accept_nonblock and * OpenSSL::SSL::SSLSocket#accept_nonblock and
OpenSSL::SSL::SSLSocket#connect_nonblock supports `exception: false`. OpenSSL::SSL::SSLSocket#connect_nonblock supports `exception: false`. [Feature #10532]
[Feature #10532]
* Pathname * Pathname
* Pathname#descend and Pathname#ascend supported blockless form. * Pathname#descend and Pathname#ascend supported blockless form. [Feature #11052]
[Feature #11052]
* Socket * Socket
* Socket#connect_nonblock, Socket#accept_nonblock, * Socket#connect_nonblock, Socket#accept_nonblock,
@ -246,8 +235,7 @@ with all sufficient information, see the ChangeLog file or Redmine
BasicSocket#recv_nonblock, BasicSocket#recvmsg_nonblock, BasicSocket#recv_nonblock, BasicSocket#recvmsg_nonblock,
BasicSocket#sendmsg_nonblock all support `exception: false` to return BasicSocket#sendmsg_nonblock all support `exception: false` to return
:wait_readable or :wait_writable symbols instead of raising :wait_readable or :wait_writable symbols instead of raising
IO::WaitReadable or IO::WaitWritable exceptions IO::WaitReadable or IO::WaitWritable exceptions [Feature #10532] [Feature #11229]
[Feature #10532] [Feature #11229]
* BasicSocket#recv and BasicSocket#recv_nonblock allow an output * BasicSocket#recv and BasicSocket#recv_nonblock allow an output
String buffer argument like IO#read and IO#read_nonblock to reduce String buffer argument like IO#read and IO#read_nonblock to reduce
GC overhead [Feature #11242] GC overhead [Feature #11242]
@ -255,8 +243,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* StringIO * StringIO
* In read-only mode, StringIO#set_encoding no longer sets the encoding * In read-only mode, StringIO#set_encoding no longer sets the encoding
of its buffer string. Setting the encoding of the string directly of its buffer string. Setting the encoding of the string directly
without StringIO#set_encoding may cause unpredictable behavior now. without StringIO#set_encoding may cause unpredictable behavior now. [Bug #11827]
[Bug #11827]
* timeout * timeout
* Object#timeout is now warned as deprecated when called. * Object#timeout is now warned as deprecated when called.
@ -297,8 +284,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* default value of Net::HTTP#open_timeout is now 60 (was nil). * default value of Net::HTTP#open_timeout is now 60 (was nil).
* Net::Telnet * Net::Telnet
* Net::Telnet is extracted to net-telnet gem. It's unmaintain code. * Net::Telnet is extracted to net-telnet gem. It's unmaintain code. [Feature #11083]
[Feature #11083]
* Psych * Psych
* Updated to Psych 2.0.17 * Updated to Psych 2.0.17
@ -330,8 +316,7 @@ with all sufficient information, see the ChangeLog file or Redmine
class is already defined but its superclass does not match the given class is already defined but its superclass does not match the given
superclass, as well as definitions in ruby level. superclass, as well as definitions in ruby level.
* rb_timespec_now() is added to fetch current datetime as struct timespec. * rb_timespec_now() is added to fetch current datetime as struct timespec. [Feature #11558]
[Feature #11558]
* rb_time_timespec_new() is added to create a time object with epoch, * rb_time_timespec_new() is added to create a time object with epoch,
nanosecond, and UTC/localtime/time offset arguments. [Feature #11558] nanosecond, and UTC/localtime/time offset arguments. [Feature #11558]
@ -354,11 +339,9 @@ with all sufficient information, see the ChangeLog file or Redmine
=== Implementation improvements === Implementation improvements
* Optimize Proc#call to eliminate method frame construction. * Optimize Proc#call to eliminate method frame construction. [Feature #11569]
[Feature #11569]
* Reconsidering method entry data structure. * Reconsidering method entry data structure. [Bug #11278]
[Bug #11278]
* Introducing new table data structure for ID keys tables used by * Introducing new table data structure for ID keys tables used by
method table and so on. New table structure is simple and fast method table and so on. New table structure is simple and fast
@ -367,13 +350,11 @@ with all sufficient information, see the ChangeLog file or Redmine
* Machine code level tuning for object allocation and method calling * Machine code level tuning for object allocation and method calling
code. r52099, r52254 code. r52099, r52254
* RubyVM::InstructionSequence is extended for future improvement. * RubyVM::InstructionSequence is extended for future improvement. [Feature #11788]
[Feature #11788]
* Case dispatch is now optimized for all special constant literals * Case dispatch is now optimized for all special constant literals
including nil, true, and false. Previously, only literal strings, including nil, true, and false. Previously, only literal strings,
symbols, integers and floats compiled to optimized case dispatch. symbols, integers and floats compiled to optimized case dispatch. [Feature #11769]
[Feature #11769]
* Instance variables on non-pure Ruby classes (T_DATA, T_FILE, * Instance variables on non-pure Ruby classes (T_DATA, T_FILE,
etc..) is less expensive to store than before. [Feature #11170] etc..) is less expensive to store than before. [Feature #11170]
@ -382,8 +363,7 @@ with all sufficient information, see the ChangeLog file or Redmine
constant-time. Previously, Struct elements beyond the first 10 constant-time. Previously, Struct elements beyond the first 10
elements used a linear scan. [Feature #10585] elements used a linear scan. [Feature #10585]
* The Set class got several speed up. * The Set class got several speed up. [Misc #10754], [r52591]
[Misc #10754], [r52591]
* Socket and I/O-related improvements * Socket and I/O-related improvements
@ -397,8 +377,8 @@ with all sufficient information, see the ChangeLog file or Redmine
addition to reducing expensive exceptions. [Feature #11044] addition to reducing expensive exceptions. [Feature #11044]
* (Linux-only) waiting on a single FD anywhere in the stdlib no longer * (Linux-only) waiting on a single FD anywhere in the stdlib no longer
uses select(2), making it immune to slowdowns with high-numbered FDs. uses select(2), making it immune to slowdowns with high-numbered
[Feature #11081] [Feature #11377] FDs. [Feature #11081] [Feature #11377]
* CGI.escapeHTML is optimized with C extension. * CGI.escapeHTML is optimized with C extension.
https://github.com/ruby/ruby/pull/1164 https://github.com/ruby/ruby/pull/1164

View file

@ -14,16 +14,13 @@ with all sufficient information, see the ChangeLog file or Redmine
=== Language changes === Language changes
* Multiple assignment in conditional expression is now allowed. * Multiple assignment in conditional expression is now allowed. [Feature #10617]
[Feature #10617]
* Refinements is enabled at method by Symbol#to_proc. [Feature #9451] * Refinements is enabled at method by Symbol#to_proc. [Feature #9451]
* Refinements is enabled with Kernel#send and BasicObject#__send__. * Refinements is enabled with Kernel#send and BasicObject#__send__. [Feature #11476]
[Feature #11476]
* Rescue modifier now applicable to method arguments. * Rescue modifier now applicable to method arguments. [Feature #12686]
[Feature #12686]
* Toplevel return is now allowed. [Feature #4840] * Toplevel return is now allowed. [Feature #4840]
@ -32,17 +29,21 @@ with all sufficient information, see the ChangeLog file or Redmine
* Array * Array
* Array#concat [Feature #12333] * Array#concat [Feature #12333]
Now takes multiple arguments. Now takes multiple arguments.
* Array#max and Array#min. [Feature #12172] * Array#max and Array#min. [Feature #12172]
This may cause a tiny incompatibility: if you redefine This may cause a tiny incompatibility: if you redefine
Enumerable#max and call max to an Array, your redefinition will be Enumerable#max and call max to an Array, your redefinition will be
now ignored. You should also redefine Array#max. now ignored. You should also redefine Array#max.
* Array#pack [Feature #12754] * Array#pack [Feature #12754]
Now takes optional argument `buffer:' to reuse already allocated buffer. Now takes optional argument `buffer:' to reuse already allocated buffer.
* Array#sum [Feature #12217] * Array#sum [Feature #12217]
This is different from Enumerable#sum in that Array#sum doesn't depend on This is different from Enumerable#sum in that Array#sum doesn't depend on
the definition of each method. the definition of each method.
@ -56,8 +57,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Enumerable * Enumerable
* Enumerable#chunk called without a block now return an Enumerator * Enumerable#chunk called without a block now return an Enumerator [Feature #2172]
[Feature #2172]
* Enumerable#sum [Feature #12217] * Enumerable#sum [Feature #12217]
* Enumerable#uniq [Feature #11090] * Enumerable#uniq [Feature #11090]
@ -95,6 +95,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Integer#round now takes an optional keyword argument, half option, and the * Integer#round now takes an optional keyword argument, half option, and the
default behavior is round-up now. [Bug #12548] [Bug #12958] default behavior is round-up now. [Bug #12548] [Bug #12958]
half option can be one of :even, :up, and :down. [Feature #12953] half option can be one of :even, :up, and :down. [Feature #12953]
* IO * IO
@ -104,8 +105,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Kernel * Kernel
* Kernel#clone now takes an optional keyword argument, freeze flag. * Kernel#clone now takes an optional keyword argument, freeze flag. [Feature #12300]
[Feature #12300]
* MatchData * MatchData
@ -138,6 +138,7 @@ with all sufficient information, see the ChangeLog file or Redmine
for UTR #51 Unicode Emoji, Version 4.0 emoji zwj sequences. for UTR #51 Unicode Emoji, Version 4.0 emoji zwj sequences.
* Regexp#match? [Feature #8110] * Regexp#match? [Feature #8110]
This returns bool and doesn't save backref. This returns bool and doesn't save backref.
* Update to Onigmo 6.0.0. * Update to Onigmo 6.0.0.
@ -153,6 +154,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* String#casecmp? [Feature #12786] * String#casecmp? [Feature #12786]
* String#concat, String#prepend [Feature #12333] * String#concat, String#prepend [Feature #12333]
Now takes multiple arguments. Now takes multiple arguments.
* String#each_line, String#lines now takes an optional keyword argument, * String#each_line, String#lines now takes an optional keyword argument,
@ -189,8 +191,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Thread * Thread
* Thread#report_on_exception and Thread.report_on_exception * Thread#report_on_exception and Thread.report_on_exception [Feature #6647]
[Feature #6647]
* TracePoint * TracePoint
@ -200,8 +201,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* New module named Warning is introduced. By default it has only * New module named Warning is introduced. By default it has only
one singleton method, named warn. This makes it possible for one singleton method, named warn. This makes it possible for
3rd-party libraries to control the way warnings are handled. 3rd-party libraries to control the way warnings are handled. [Feature #12299]
[Feature #12299]
=== Stdlib updates (outstanding ones only) === Stdlib updates (outstanding ones only)
@ -215,8 +215,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* IPAddr * IPAddr
* IPAddr#== and IPAddr#<=> no longer raise an exception if coercion fails. * IPAddr#== and IPAddr#<=> no longer raise an exception if coercion fails. [Bug #12799]
[Bug #12799]
* IRB * IRB
@ -256,8 +255,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Readline * Readline
* Readline.quoting_detection_proc and Readline.quoting_detection_proc= * Readline.quoting_detection_proc and Readline.quoting_detection_proc= [Feature #12659]
[Feature #12659]
* REXML * REXML
@ -267,8 +265,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* set * set
* New methods: Set#compare_by_identity and Set#compare_by_identity?. * New methods: Set#compare_by_identity and Set#compare_by_identity?. [Feature #12210]
[Feature #12210]
* WEBrick * WEBrick
@ -277,6 +274,7 @@ with all sufficient information, see the ChangeLog file or Redmine
=== Compatibility issues (excluding feature bug fixes) === Compatibility issues (excluding feature bug fixes)
* Array#sum and Enumerable#sum are implemented. [Feature #12217] * Array#sum and Enumerable#sum are implemented. [Feature #12217]
Ruby itself has no compatibility problem because Ruby didn't have sum method Ruby itself has no compatibility problem because Ruby didn't have sum method
for arrays before Ruby 2.4. for arrays before Ruby 2.4.
However many third party gems, activesupport, facets, simple_stats, etc, However many third party gems, activesupport, facets, simple_stats, etc,
@ -286,6 +284,7 @@ with all sufficient information, see the ChangeLog file or Redmine
be perfectly compatible with all of them. be perfectly compatible with all of them.
* Fixnum and Bignum are unified into Integer [Feature #12005] * Fixnum and Bignum are unified into Integer [Feature #12005]
Fixnum class and Bignum class is removed. Fixnum class and Bignum class is removed.
Integer class is changed from abstract class to concrete class. Integer class is changed from abstract class to concrete class.
For example, 0 is an instance of Integer: 0.class returns Integer. For example, 0 is an instance of Integer: 0.class returns Integer.
@ -300,6 +299,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* String/Symbol#upcase/downcase/swapcase/capitalize(!) now work for all of * String/Symbol#upcase/downcase/swapcase/capitalize(!) now work for all of
Unicode, not only for ASCII. [Feature #10085] Unicode, not only for ASCII. [Feature #10085]
No change is needed if the data is in ASCII anyway or if the limitation No change is needed if the data is in ASCII anyway or if the limitation
to ASCII was only tolerated while waiting for a more extensive implementation. to ASCII was only tolerated while waiting for a more extensive implementation.
A change (using the :ascii option) is needed in cases where Unicode data A change (using the :ascii option) is needed in cases where Unicode data
@ -307,6 +307,7 @@ with all sufficient information, see the ChangeLog file or Redmine
A good example of this are internationalized domain names. A good example of this are internationalized domain names.
* TRUE / FALSE / NIL * TRUE / FALSE / NIL
These constants are now obsoleted. [Feature #12574] These constants are now obsoleted. [Feature #12574]
Use true / false / nil resp. instead. Use true / false / nil resp. instead.
@ -332,8 +333,7 @@ with all sufficient information, see the ChangeLog file or Redmine
* Shellwords.shellwords (shellsplit) treats the backslash as escape * Shellwords.shellwords (shellsplit) treats the backslash as escape
character only when followed by one of the following characters: character only when followed by one of the following characters:
$ ` " \ <newline> $ ` " \ <newline> [Bug #10055]
[Bug #10055]
* Time * Time
@ -348,11 +348,13 @@ with all sufficient information, see the ChangeLog file or Redmine
* Tk * Tk
* Tk is removed from stdlib. [Feature #8539] * Tk is removed from stdlib. [Feature #8539]
https://github.com/ruby/tk is the new upstream. https://github.com/ruby/tk is the new upstream.
* XMLRPC * XMLRPC
* XMLRPC is removed from stdlib, and bundled as gem. [Feature #12160][ruby-core:74239] * XMLRPC is removed from stdlib, and bundled as gem. [Feature #12160][ruby-core:74239]
https://github.com/ruby/xmlrpc is the new upstream. https://github.com/ruby/xmlrpc is the new upstream.
* Zlib * Zlib
@ -390,8 +392,8 @@ with all sufficient information, see the ChangeLog file or Redmine
=== Miscellaneous changes === Miscellaneous changes
* ChangeLog is removed from the repository. * ChangeLog is removed from the repository.
It is generated from commit messages in Subversion by `make dist`. It is generated from commit messages in Subversion by `make dist`.
Also note that now people should follow Git style commit message. Also note that now people should follow Git style commit message.
The template is written at The template is written at {Short (50 chars or less) summary of
[Short (50 chars or less) summary of changes](https://git-scm.com/book/ch5-2.html). changes}[https://git-scm.com/book/ch5-2.html]. [Feature #12283]
[Feature #12283]

View file

@ -238,8 +238,7 @@ sufficient information, see the ChangeLog file or Redmine
as an endless range. as an endless range.
* Access and setting of <code>$SAFE</code> will now always display a warning. * Access and setting of <code>$SAFE</code> will now always display a warning.
<code>$SAFE</code> will become a normal global variable in Ruby 3.0. <code>$SAFE</code> will become a normal global variable in Ruby 3.0. [Feature #16131]
[Feature #16131]
* <code>Object#{taint,untaint,trust,untrust}</code> and related functions in the C-API * <code>Object#{taint,untaint,trust,untrust}</code> and related functions in the C-API
no longer have an effect (all objects are always considered untainted), and will now no longer have an effect (all objects are always considered untainted), and will now