зеркало из https://github.com/github/ruby.git
Fix NEWS format [ci skip]
* doc/NEWS-2.5.0: append bracketed tags to the previous lines, not to be parsed as description lists, and expand braces for method references. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
61634b6768
Коммит
6897062003
|
@ -39,13 +39,12 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
* New methods:
|
* New methods:
|
||||||
|
|
||||||
* Exception#full_message to retrieve a String expression of an exception,
|
* Exception#full_message to retrieve a String expression of an exception,
|
||||||
formatted in the same way in which Ruby prints out an uncaught exception.
|
formatted in the same way in which Ruby prints out an uncaught
|
||||||
[Feature #14141] [experimental]
|
exception. [Feature #14141] [experimental]
|
||||||
|
|
||||||
* Dir
|
* Dir
|
||||||
|
|
||||||
* Dir.glob provides new optional keyword argument, :base.
|
* Dir.glob provides new optional keyword argument, +:base+ . [Feature #13056]
|
||||||
[Feature #13056]
|
|
||||||
* Dir.chdir (without block arg), Dir.open, Dir.new, Dir.mkdir, Dir.rmdir,
|
* Dir.chdir (without block arg), Dir.open, Dir.new, Dir.mkdir, Dir.rmdir,
|
||||||
Dir.empty? releases GVL
|
Dir.empty? releases GVL
|
||||||
|
|
||||||
|
@ -56,20 +55,21 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* Enumerable
|
* Enumerable
|
||||||
|
|
||||||
* Enumerable#{any?,all?,none?,one?} accept a pattern argument [Feature #11286]
|
* Enumerable#any?, Enumerable#all?, Enumerable#none? and Enumerable#one?
|
||||||
|
accept a pattern argument. [Feature #11286]
|
||||||
|
|
||||||
* File
|
* File
|
||||||
|
|
||||||
* File.open accepts :newline option to imply text mode. [Bug #13350]
|
* File.open accepts +:newline+ option to imply text mode. [Bug #13350]
|
||||||
* File#path raises an IOError for files opened with
|
* File#path raises an IOError for files opened with
|
||||||
File::Constants::TMPFILE option. [Feature #13568]
|
File::Constants::TMPFILE option. [Feature #13568]
|
||||||
* File.stat, File.exist?, and other rb_stat()-using methods release GVL
|
* File.stat, File.exist? and other <code>rb_stat()</code>-using methods
|
||||||
[Bug #13941]
|
release GVL. [Bug #13941]
|
||||||
* File.rename releases GVL [Feature #13951]
|
* File.rename releases GVL. [Feature #13951]
|
||||||
* File::Stat#{atime,mtime,ctime} support fractional second timestamps on
|
* File::Stat#atime, File::Stat#mtime and File::Stat#ctime support fractional
|
||||||
Windows 8 and later [Feature #13726]
|
second timestamps on Windows 8 and later. [Feature #13726]
|
||||||
* File::Stat#ino and File.indentical? support ReFS 128bit ino on Windows 8.1
|
* File::Stat#ino and File.indentical? support ReFS 128bit ino on Windows 8.1
|
||||||
and later [Feature #13731]
|
and later. [Feature #13731]
|
||||||
* File.readable?, File.readable_real?, File.writable?, File.writable_real?,
|
* File.readable?, File.readable_real?, File.writable?, File.writable_real?,
|
||||||
File.executable?, File.executable_real?, File.mkfifo, File.readlink,
|
File.executable?, File.executable_real?, File.mkfifo, File.readlink,
|
||||||
File.truncate, File#truncate, File.chmod, File.lchmod, File.chown,
|
File.truncate, File#truncate, File.chmod, File.lchmod, File.chown,
|
||||||
|
@ -101,13 +101,12 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* IO#close might raise an error with message "stream closed",
|
* IO#close might raise an error with message "stream closed",
|
||||||
but it is refined to "stream closed in another thread". The new message
|
but it is refined to "stream closed in another thread". The new message
|
||||||
is more clear for user.
|
is more clear for user. [Bug #13405]
|
||||||
[Bug #13405]
|
|
||||||
|
|
||||||
* Integer
|
* Integer
|
||||||
|
|
||||||
* Integer#{round,floor,ceil,truncate} always return an Integer.
|
* Integer#round, Integer#floor, Integer#ceil and Integer#truncate always
|
||||||
[Bug #13420]
|
return an Integer. [Bug #13420]
|
||||||
* Integer#pow accepts modulo argument for calculating modular
|
* Integer#pow accepts modulo argument for calculating modular
|
||||||
exponentiation. [Feature #12508] [Feature #11003]
|
exponentiation. [Feature #12508] [Feature #11003]
|
||||||
|
|
||||||
|
@ -130,14 +129,15 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* Module
|
* Module
|
||||||
|
|
||||||
* Module#{attr,attr_accessor,attr_reader,attr_writer} become public [Feature #14132]
|
* Module#attr, Module#attr_accessor, Module#attr_reader and Module#attr_writer
|
||||||
* Module#{define_method,alias_method,undef_method,remove_method} become public [Feature #14133]
|
become public. [Feature #14132]
|
||||||
|
* Module#define_method, Module#alias_method, Module#undef_method and
|
||||||
|
Module#remove_method become public. [Feature #14133]
|
||||||
|
|
||||||
* Numeric
|
* Numeric
|
||||||
|
|
||||||
* Numeric#step no longer hides errors from coerce method when
|
* Numeric#step no longer hides errors from coerce method when
|
||||||
given a step value which cannot be compared with #> to 0.
|
given a step value which cannot be compared with #> to 0. [Feature #7688]
|
||||||
[Feature #7688]
|
|
||||||
* Numerical comparison operators (<,<=,>=,>) no longer hide exceptions
|
* Numerical comparison operators (<,<=,>=,>) no longer hide exceptions
|
||||||
from #coerce method internally. Return nil in #coerce if the coercion is
|
from #coerce method internally. Return nil in #coerce if the coercion is
|
||||||
impossible. [Feature #7688]
|
impossible. [Feature #7688]
|
||||||
|
@ -153,8 +153,7 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
* Range
|
* Range
|
||||||
* Range#initialize no longer hides exceptions when comparing begin and
|
* Range#initialize no longer hides exceptions when comparing begin and
|
||||||
end with #<=> and raise a "bad value for range" ArgumentError
|
end with #<=> and raise a "bad value for range" ArgumentError
|
||||||
but instead lets the exception from the #<=> call go through.
|
but instead lets the exception from the #<=> call go through. [Feature #7688]
|
||||||
[Feature #7688]
|
|
||||||
|
|
||||||
* Regexp
|
* Regexp
|
||||||
|
|
||||||
|
@ -173,11 +172,11 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* String
|
* String
|
||||||
|
|
||||||
* String#-@ deduplicates unfrozen strings. Already-frozen
|
* <code>String#-@</code> deduplicates unfrozen strings. Already-frozen
|
||||||
strings remain unchanged for compatibility. [Feature #13077]
|
strings remain unchanged for compatibility. [Feature #13077]
|
||||||
* -"literal" (String#-@) optimized to return the same object
|
* <code>-"literal"</code> (<code>String#-@</code>) optimized to return the same object
|
||||||
(same as "literal".freeze in Ruby 2.1+) [Feature #13295]
|
(same as <code>"literal".freeze</code> in Ruby 2.1+) [Feature #13295]
|
||||||
* String#{casecmp,casecmp?} return nil for non-string arguments
|
* String#casecmp and String#casecmp? return nil for non-string arguments
|
||||||
instead of raising a TypeError. [Bug #13312]
|
instead of raising a TypeError. [Bug #13312]
|
||||||
* String#start_with? accepts a regexp [Feature #13712]
|
* String#start_with? accepts a regexp [Feature #13712]
|
||||||
|
|
||||||
|
@ -204,13 +203,11 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
* Thread#fetch [Feature #13009]
|
* Thread#fetch [Feature #13009]
|
||||||
|
|
||||||
* The default of Thread.report_on_exception is now true,
|
* The default of Thread.report_on_exception is now true,
|
||||||
showing unhandled exceptions terminating threads on $stderr.
|
showing unhandled exceptions terminating threads on $stderr. [Feature #14143]
|
||||||
[Feature #14143]
|
|
||||||
|
|
||||||
* Time
|
* Time
|
||||||
|
|
||||||
* Time.at receives 3rd argument which specifies the unit of 2nd argument.
|
* Time.at receives 3rd argument which specifies the unit of 2nd argument. [Feature #13919]
|
||||||
[Feature #13919]
|
|
||||||
|
|
||||||
* KeyError
|
* KeyError
|
||||||
|
|
||||||
|
@ -329,7 +326,7 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
* IPAddr
|
* IPAddr
|
||||||
|
|
||||||
* IPAddr no longer accepts invalid address mask. [Bug #13399]
|
* IPAddr no longer accepts invalid address mask. [Bug #13399]
|
||||||
* IPAddr#{ipv4_compat,ipv4_compat?} are marked for deprecation. [Bug #13769]
|
* IPAddr#ipv4_compat and IPAddr#ipv4_compat? are marked for deprecation. [Bug #13769]
|
||||||
|
|
||||||
* New methods:
|
* New methods:
|
||||||
|
|
||||||
|
@ -342,24 +339,23 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* Print backtrace and error message in reverse order [Feature #8661] [experimental]
|
* Print backtrace and error message in reverse order [Feature #8661] [experimental]
|
||||||
* `binding.irb` automatically requires irb and runs [Bug #13099] [experimental]
|
* `binding.irb` automatically requires irb and runs [Bug #13099] [experimental]
|
||||||
* `binding.irb` on its start shows source around the line where it was called
|
* `binding.irb` on its start shows source around the line where it was called [Feature #14124]
|
||||||
[Feature #14124]
|
|
||||||
|
|
||||||
* Matrix
|
* Matrix
|
||||||
|
|
||||||
* New methods:
|
* New methods:
|
||||||
|
|
||||||
* Matrix.combine and Matrix#combine [Feature #10903]
|
* Matrix.combine and Matrix#combine [Feature #10903]
|
||||||
* Matrix#{hadamard_product,entrywise_product}
|
* Matrix#hadamard_product and Matrix#entrywise_product
|
||||||
|
|
||||||
* Net::HTTP
|
* Net::HTTP
|
||||||
|
|
||||||
* Net::HTTP.new supports no_proxy parameter [Feature #11195]
|
* Net::HTTP.new supports no_proxy parameter [Feature #11195]
|
||||||
* Net::HTTP#{min_version,max_version} [Feature #9450]
|
* Net::HTTP#min_version and Net::HTTP#max_version [Feature #9450]
|
||||||
* Add more HTTP status classes
|
* Add more HTTP status classes
|
||||||
* Net::HTTP::STATUS_CODES is added as HTTP Status Code Repository [Misc #12935]
|
* Net::HTTP::STATUS_CODES is added as HTTP Status Code Repository [Misc #12935]
|
||||||
* Net::HTTP#{proxy_user,proxy_pass} reflect http_proxy environment variable
|
* Net::HTTP#proxy_user and Net::HTTP#proxy_pass reflect http_proxy environment
|
||||||
if the system's environment variable is multiuser safe. [Bug #12921]
|
variable if the system's environment variable is multiuser safe. [Bug #12921]
|
||||||
|
|
||||||
* open-uri
|
* open-uri
|
||||||
* URI.open method defined as an alias to open-uri's Kernel.open.
|
* URI.open method defined as an alias to open-uri's Kernel.open.
|
||||||
|
@ -514,8 +510,7 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* Logger.new("| command") had been working to open a command
|
* Logger.new("| command") had been working to open a command
|
||||||
unintentionally. It was prohibited, and now Logger#initialize
|
unintentionally. It was prohibited, and now Logger#initialize
|
||||||
treats a String argument only as a filename, as its specification.
|
treats a String argument only as a filename, as its specification. [Bug #14212]
|
||||||
[Bug #14212]
|
|
||||||
|
|
||||||
* Net::HTTP
|
* Net::HTTP
|
||||||
|
|
||||||
|
@ -557,11 +552,11 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
=== Miscellaneous changes
|
=== Miscellaneous changes
|
||||||
|
|
||||||
* Print backtrace and error message in reverse order if $stderr is unchanged and a tty.
|
* Print backtrace and error message in reverse order if $stderr is unchanged
|
||||||
[Feature #8661] [experimental]
|
and a tty. [Feature #8661] [experimental]
|
||||||
|
|
||||||
* Print error message in bold/underlined text if $stderr is unchanged and a tty.
|
* Print error message in bold/underlined text if $stderr is unchanged and a
|
||||||
[Feature #14140] [experimental]
|
tty. [Feature #14140] [experimental]
|
||||||
|
|
||||||
* configure option --with-ext now mandates its arguments. So for
|
* configure option --with-ext now mandates its arguments. So for
|
||||||
instance if you run ./configure --with-ext=openssl,+ then the
|
instance if you run ./configure --with-ext=openssl,+ then the
|
||||||
|
|
Загрузка…
Ссылка в новой задаче