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

* doc/NEWS-*: Update NEWS from their respective branches

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2013-02-22 23:57:58 +00:00
parent d52f95dc7a
commit 143a2f7ef1
5 changed files with 114 additions and 41 deletions

View file

@ -1,3 +1,7 @@
Sat Feb 23 08:57:46 2013 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* doc/NEWS-*: Update NEWS from their respective branches
Sat Feb 23 08:14:43 2013 Marc-Andre Lafortune <ruby-core@marc-andre.ca> Sat Feb 23 08:14:43 2013 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* NEWS: many additions for Ruby 2.0.0 * NEWS: many additions for Ruby 2.0.0

View file

@ -54,7 +54,7 @@ with all sufficient information, see the ChangeLog file.
* Array#flatten * Array#flatten
* Array#flatten! * Array#flatten!
Take an optional argument that determines the level of recursion Takes an optional argument that determines the level of recursion
to flatten. to flatten.
* Array#eql? * Array#eql?
@ -77,6 +77,7 @@ with all sufficient information, see the ChangeLog file.
* Array#reject * Array#reject
* Array#reject! * Array#reject!
* Array#delete_if * Array#delete_if
* Array#select
Return an enumerator if no block is given. Return an enumerator if no block is given.
@ -161,6 +162,10 @@ with all sufficient information, see the ChangeLog file.
New alias to #inject. New alias to #inject.
* Enumerable#to_a
Can take optional arguments and pass them to #each.
* Hash#eql? * Hash#eql?
* Hash#hash * Hash#hash
* Hash#== * Hash#==
@ -262,12 +267,17 @@ with all sufficient information, see the ChangeLog file.
* Regexp.union accepts an array of patterns. * Regexp.union accepts an array of patterns.
* String#bytes
New method
* String#bytesize * String#bytesize
New method, returning the size in bytes. (alias length and size) New method, returning the size in bytes. (alias length and size)
* String#chars * String#chars
* String#each_char * String#each_char
* String#lines
* String#partition * String#partition
* String#rpartition * String#rpartition
* String#start_with? * String#start_with?
@ -501,6 +511,15 @@ with all sufficient information, see the ChangeLog file.
always use Date.strptime() when you know what you are dealing always use Date.strptime() when you know what you are dealing
with. with.
* REXML
* REXML::Document.entity_expansion_limit=
New method to set the entity expansion limit. By default the limit is
set to 10000. See the following URL for details.
http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
* stringio * stringio
* StringIO#each_byte * StringIO#each_byte

View file

@ -1,6 +1,6 @@
# -*- rdoc -*- # -*- rdoc -*-
= NEWS for RDoc 1.9.1 = NEWS for Ruby 1.9.1
This document is a list of user visible feature changes made between This document is a list of user visible feature changes made between
releases except for bug fixes. releases except for bug fixes.
@ -335,6 +335,11 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
o Numeric#upto, #downto, #times, #step o Numeric#upto, #downto, #times, #step
o Numeric#real?, Complex#real? o Numeric#real?, Complex#real?
o Numeric#magnitude o Numeric#magnitude
o Numeric#round
* Float
o Float#round
* Integer
o Integer#round
* Rational / Complex * Rational / Complex
o They are in the core library now o They are in the core library now
* Math * Math

View file

@ -1,5 +1,4 @@
# -*- rdoc -*- # -*- rdoc -*-
= NEWS for Ruby 1.9.2 = NEWS for Ruby 1.9.2
This document is a list of user visible feature changes made between This document is a list of user visible feature changes made between
@ -15,7 +14,7 @@ with all sufficient information, see the ChangeLog file.
* builtin classes * builtin classes
* Array * Array
* new method: * new methods:
* Array#keep_if * Array#keep_if
* Array#repeated_combination * Array#repeated_combination
* Array#repeated_permutation * Array#repeated_permutation
@ -24,11 +23,11 @@ with all sufficient information, see the ChangeLog file.
* Array#select! * Array#select!
* Array#sort_by! * Array#sort_by!
* extended methods: * extended method:
* Array#{uniq,uniq!,product} can take a block. * Array#{uniq,uniq!,product} can take a block.
* Complex * Complex
* new methods: * new method:
* Complex#rationalize * Complex#rationalize
* Dir * Dir
@ -51,7 +50,7 @@ with all sufficient information, see the ChangeLog file.
* ascii_compatible? * ascii_compatible?
* Enumerable * Enumerable
* New methods: * new methods:
* Enumerable#chunk * Enumerable#chunk
* Enumerable#collect_concat * Enumerable#collect_concat
* Enumerable#each_entry * Enumerable#each_entry
@ -66,7 +65,7 @@ with all sufficient information, see the ChangeLog file.
* Enumerator#feed * Enumerator#feed
* StopIteration#result * StopIteration#result
* extended methods: * extended method:
* #with_index accepts an optional argument that specifies the * #with_index accepts an optional argument that specifies the
index number to start with, defaulted to 0. index number to start with, defaulted to 0.
@ -86,14 +85,13 @@ with all sufficient information, see the ChangeLog file.
* new constants: * new constants:
* Float::INFINITY * Float::INFINITY
* Float::NAN * Float::NAN
* new methods: * new method:
* Float#rationalize * Float#rationalize
* File * File
* new methods: * new methods:
* File.realpath * File.realpath
* File.realdirpath * File.realdirpath
* File#size
* GC::Profiler * GC::Profiler
* new method: * new method:
@ -105,14 +103,14 @@ with all sufficient information, see the ChangeLog file.
* Hash#select! * Hash#select!
* IO * IO
* new method: * new methods:
* IO#autoclose= * IO#autoclose=
* IO#autoclose? * IO#autoclose?
* IO#fdatasync * IO#fdatasync
* IO#codepoints * IO#codepoints
* IO#each_codepoint * IO#each_codepoint
* extended methods: * extended method:
* IO.pipe can take a block. * IO.pipe can take a block.
* new modules: * new modules:
@ -121,7 +119,7 @@ with all sufficient information, see the ChangeLog file.
They are used to extend non-blocking exceptions. They are used to extend non-blocking exceptions.
* Integer * Integer
* new methods: * new method:
* Integer#rationalize * Integer#rationalize
* Kernel * Kernel
@ -130,7 +128,7 @@ with all sufficient information, see the ChangeLog file.
* Kernel#singleton_class * Kernel#singleton_class
* Kernel#require_relative * Kernel#require_relative
* extended methods: * extended method:
* Kernel#respond_to? can be used to detect methods not implemented. * Kernel#respond_to? can be used to detect methods not implemented.
For example, Process.respond_to?(:fork) returns false on Windows. For example, Process.respond_to?(:fork) returns false on Windows.
@ -148,11 +146,15 @@ with all sufficient information, see the ChangeLog file.
platforms. platforms.
* MatchData * MatchData
* New method: * new method:
* MatchData#== * MatchData#==
* Method
* new method:
* Method#parameters
* NilClass * NilClass
* new methods: * new method:
* NilClass#rationalize * NilClass#rationalize
* Object * Object
@ -161,18 +163,20 @@ with all sufficient information, see the ChangeLog file.
* printf() supports %a/%A format. * printf() supports %a/%A format.
* Proc * Proc
* new method:
* Proc#parameters
* extended method: * extended method:
* Proc#source_location returns location even if receiver is a method * Proc#source_location returns location even if receiver is a method
defined by attr_reader / attr_writer / attr_accessor. defined by attr_reader / attr_writer / attr_accessor.
* Process * Process
* extended methods: * extended method:
* Process.spawn accepts [:child, FD] for a redirect target. * Process.spawn accepts [:child, FD] for a redirect target.
* Random (new class to generate pseudo-random numbers) * Random (new class to generate pseudo-random numbers)
* Rational * Rational
* new methods: * new method:
* Rational#rationalize * Rational#rationalize
* String * String
@ -185,22 +189,27 @@ with all sufficient information, see the ChangeLog file.
* Thread#set_trace_func * Thread#set_trace_func
* Time * Time
* extended feature: * extended features:
* time_t restriction is removed to represent before 1901 and after 2038. * time_t restriction is removed to represent before 1901 and after 2038.
Proleptic Gregorian calendar is used for old dates. Proleptic Gregorian calendar is used for old dates.
* Time.new have optional arguments to specify date with time offset. * Time.new have optional arguments to specify date with time offset.
* Time#getlocal, Time#localtime have optional time offset argument. * Time#getlocal, Time#localtime have optional time offset argument.
* new method: * new methods:
* Time#to_r * Time#to_r
* Time#subsec * Time#subsec
* Time#round * Time#round
* incompatible changes: * incompatible change:
* The year argument of Time.{utc,gm,local,mktime} is now interpreted as * The year argument of Time.{utc,gm,local,mktime} is now interpreted as
the value itself. For example, Time.utc(99) means the year 99 AD, the value itself. For example, Time.utc(99) means the year 99 AD,
not 1999 AD. not 1999 AD.
* UnboundMethod
* new method:
* UnboundMethod#parameters
* digest * digest
* new methods: * new methods:
* Digest::Class.base64digest * Digest::Class.base64digest

View file

@ -1,5 +1,4 @@
# -*- rdoc -*- # -*- rdoc -*-
= NEWS for Ruby 1.9.3 = NEWS for Ruby 1.9.3
This document is a list of user visible feature changes made between This document is a list of user visible feature changes made between
@ -15,6 +14,13 @@ with all sufficient information, see the ChangeLog file.
* Ruby's License is changed from a dual license with GPLv2 * Ruby's License is changed from a dual license with GPLv2
to a dual license with 2-clause BSDL. to a dual license with 2-clause BSDL.
=== Known platform dependent issues
==== OS X Lion
* You have to configure ruby with '--with-gcc=gcc-4.2' if you're using
Xcode 4.1, or, if you're using Xcode 4.2, you have to configure ruby
with '--with-gcc=clang'.
=== C API updates === C API updates
* rb_scan_args() is enhanced with support for option hash argument * rb_scan_args() is enhanced with support for option hash argument
@ -23,6 +29,9 @@ with all sufficient information, see the ChangeLog file.
* ruby_vm_at_exit() added. This enables extension libs to hook a VM * ruby_vm_at_exit() added. This enables extension libs to hook a VM
termination. termination.
* rb_reserved_fd_p() added. If you want to close all file descriptors,
check using this API. [ruby-core:37759]
=== Library updates (outstanding ones only) === Library updates (outstanding ones only)
* builtin classes * builtin classes
@ -103,16 +112,34 @@ with all sufficient information, see the ChangeLog file.
the platform don't support supplementary groups concept. the platform don't support supplementary groups concept.
* bigdecimal * bigdecimal
* BigDecimal#power and BigDecimal#** support non-integral exponent. * BigDecimal#power and BigDecimal#** support non-integral exponent.
* Kernel.BigDecimal and BigDecimal.new now accept instances of Integer, * Kernel.BigDecimal and BigDecimal.new now accept instances of Integer,
Rational, and Float. If you pass a Rational or a Float to them, you must Rational, Float, and BigDecimal. If you pass a Rational or a Float to
specify the precision to produce the digits of a BigDecimal. them, you must specify the precision to produce the digits of a BigDecimal.
* The behavior of BigDecimal#coerce with a Rational is changed. It uses * The behavior of BigDecimal#coerce with a Rational is changed. It uses
the precision of the receiver BigDecimal to produce the digits of a the precision of the receiver BigDecimal to produce the digits of a
BigDecimal from the given Rational. BigDecimal from the given Rational.
* bigdecimal/util
* BigDecimal#to_d and Integer#to_d are added.
* Float#to_d accepts a precision.
* Rational#to_d raises ArgumentError when passing zero or negative
precision.
* Rational#to_d
* Zero and an implicit precision is deprecated.
This feature is removed at the next release of bigdecimal.
* A negative precision isn't supported.
Be careful it is an incompatible change.
* date * date
* Accepts flonum explicitly with limitations. * Accepts flonum explicitly with limitations.
@ -165,6 +192,9 @@ with all sufficient information, see the ChangeLog file.
* IO#winsize * IO#winsize
* IO.console * IO.console
* json
* updated to v1.5.4.
* matrix * matrix
* new classes: * new classes:
* Matrix::EigenvalueDecomposition * Matrix::EigenvalueDecomposition
@ -213,9 +243,13 @@ with all sufficient information, see the ChangeLog file.
http.request_post('/continue', 'body=BODY', 'expect' => '100-continue') http.request_post('/continue', 'body=BODY', 'expect' => '100-continue')
* new method: * new method:
* Net::HTTPRequest#set_form: Added to support * Net::HTTPRequest#set_form): Added to support
both application/x-www-form-urlencoded and multipart/form-data. both application/x-www-form-urlencoded and multipart/form-data.
* objspace
* new method:
* ObjectSpace::memsize_of_all
* openssl * openssl
* PKey::RSA and PKey::DSA now use the generic X.509 encoding scheme * PKey::RSA and PKey::DSA now use the generic X.509 encoding scheme
(e.g. used in a X.509 certificate's Subject Public Key Info) when (e.g. used in a X.509 certificate's Subject Public Key Info) when
@ -237,18 +271,18 @@ with all sufficient information, see the ChangeLog file.
* support for bash/zsh completion. * support for bash/zsh completion.
* Rake * Rake
* Rake has been upgraded from 0.8.7 to 0.9.2.1. For full release notes see * Rake has been upgraded from 0.8.7 to 0.9.2.2. For full release notes see
https://github.com/jimweirich/rake/blob/master/CHANGES https://github.com/jimweirich/rake/blob/master/CHANGES
* RDoc * RDoc
* RDoc has been upgraded from 2.5.8 to 3.8. For full release notes see * RDoc has been upgraded to version 3.9.4. For full release notes see
http://docs.seattlerb.org/rdoc/History_txt.html http://docs.seattlerb.org/rdoc/History_txt.html
* rexml * rexml
* Support Ruby native encoding mechanism and iconv dependency is dropped. * Support Ruby native encoding mechanism and iconv dependency is dropped.
* RubyGems * RubyGems
* RubyGems has been upgraded to version 1.8.5.1. For full release notes see * RubyGems has been upgraded to version 1.8.10. For full release notes see
http://rubygems.rubyforge.org/rubygems-update/History_txt.html http://rubygems.rubyforge.org/rubygems-update/History_txt.html
* stringio * stringio
@ -302,4 +336,6 @@ with all sufficient information, see the ChangeLog file.
=== Compatibility issues (excluding feature bug fixes) === Compatibility issues (excluding feature bug fixes)
None * Rational#to_d
See above.