Skip to content

Commit

Permalink
* doc/NEWS-*: Update NEWS from their respective branches
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
marcandre committed Feb 22, 2013
1 parent d52f95d commit 143a2f7
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 41 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Feb 23 08:57:46 2013 Marc-Andre Lafortune <[email protected]>

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

Sat Feb 23 08:14:43 2013 Marc-Andre Lafortune <[email protected]>

* NEWS: many additions for Ruby 2.0.0
Expand Down
21 changes: 20 additions & 1 deletion doc/NEWS-1.8.7
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ with all sufficient information, see the ChangeLog file.
* 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.

* Array#eql?
Expand All @@ -77,6 +77,7 @@ with all sufficient information, see the ChangeLog file.
* Array#reject
* Array#reject!
* Array#delete_if
* Array#select

Return an enumerator if no block is given.

Expand Down Expand Up @@ -161,6 +162,10 @@ with all sufficient information, see the ChangeLog file.

New alias to #inject.

* Enumerable#to_a

Can take optional arguments and pass them to #each.

* Hash#eql?
* Hash#hash
* Hash#==
Expand Down Expand Up @@ -262,12 +267,17 @@ with all sufficient information, see the ChangeLog file.

* Regexp.union accepts an array of patterns.

* String#bytes

New method

* String#bytesize

New method, returning the size in bytes. (alias length and size)

* String#chars
* String#each_char
* String#lines
* String#partition
* String#rpartition
* String#start_with?
Expand Down Expand Up @@ -501,6 +511,15 @@ with all sufficient information, see the ChangeLog file.
always use Date.strptime() when you know what you are dealing
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#each_byte
Expand Down
31 changes: 18 additions & 13 deletions doc/NEWS-1.9.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- 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
releases except for bug fixes.
Expand Down Expand Up @@ -33,18 +33,18 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
* builtin classes and objects

* Kernel and Object
o Kernel#methods and #singleton_methods used to return an
o Kernel#methods and #singleton_methods used to return an
array of strings but now they return an array of symbols.
* Class and Module
o Module#attr works as Module#attr_reader by default.
Optional boolean argument is obsolete.
o Module#instance_methods, #private_instance_methods and
#public_instance_methods used to return an array of
#public_instance_methods used to return an array of
strings but now they return an array of symbols.
o Extra subclassing check when binding UnboundMethods

* Exceptions
o Exceptions are equal to each other if they belong to
o Exceptions are equal to each other if they belong to
the same class and have the same message and backtrace.
o SystemStackError used to be a subclass of StandardError
but not it is a direct subclass of Exception.
Expand Down Expand Up @@ -73,7 +73,7 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
o Most of the changes in Hash apply to hash like interfaces
such as ENV and *DBM.
* IO operations
o Many methods used to act byte-wise but now some of those act
o Many methods used to act byte-wise but now some of those act
character-wise. You can use alternate byte-wise methods.
o IO#getc
o Non-blocking IO
Expand All @@ -96,7 +96,7 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
o IO#internal_encoding, IO#external_encoding,
IO#set_encoding
o IO.pipe takes encoding option
o Directive %u behaves like %d for negative values in
o Directive %u behaves like %d for negative values in
printf-style formatting.
* File and Dir operations
o #to_path is called as necessary in File.path, File.chmod,
Expand Down Expand Up @@ -170,7 +170,7 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
* Pathname
o No longer has #to_str nor #=~.
* time and date
o Time.parse and Date.parse interprets slashed numerical dates
o Time.parse and Date.parse interprets slashed numerical dates
as "dd/mm/yyyy".
* Readline
o If Readline uses libedit, Readline::HISTORY[0] returns the
Expand Down Expand Up @@ -211,15 +211,15 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
* New syntax and semantics
o Magic comments to declare in which encoding your source
code is written
o New literal hash syntax and new syntax for hash style
arguments
o New literal hash syntax and new syntax for hash style
arguments
o New syntax for lambdas
o .() and calling Procs without #call/#[]
o Block in block arguments
o Block local variables
o Mandatory arguments after optional arguments allowed
o Multiple splats allowed
o #[] can take splatted arguments, hash style arguments
o #[] can take splatted arguments, hash style arguments
and a block.
o New directives in printf-style formatted strings (%).
o Newlines allowed before ternary colon operator (:) and
Expand Down Expand Up @@ -265,7 +265,7 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.

* Enumerable and Enumerator
o Enumerator#enum_cons and Enumerator#enum_slice are
removed. Use #each_cons and #each_slice without a block.
removed. Use #each_cons and #each_slice without a block.
o Enumerable#each_with_index can take optional arguments
and passes them to #each.
o Enumerable#each_with_object
Expand Down Expand Up @@ -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#real?, Complex#real?
o Numeric#magnitude
o Numeric#round
* Float
o Float#round
* Integer
o Integer#round
* Rational / Complex
o They are in the core library now
* Math
Expand Down Expand Up @@ -388,7 +393,7 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
o Readline.emacs_editing_mode?
o Readline::HISTORY.clear
* Tk
o TkXXX widget classes are removed and redefined as aliases of
o TkXXX widget classes are removed and redefined as aliases of
Tk::XXX classes.
* RDoc
o Updated to version 2.2.2. See:
Expand Down
47 changes: 28 additions & 19 deletions doc/NEWS-1.9.2
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- rdoc -*-

= NEWS for Ruby 1.9.2

This document is a list of user visible feature changes made between
Expand All @@ -15,7 +14,7 @@ with all sufficient information, see the ChangeLog file.
* builtin classes

* Array
* new method:
* new methods:
* Array#keep_if
* Array#repeated_combination
* Array#repeated_permutation
Expand All @@ -24,11 +23,11 @@ with all sufficient information, see the ChangeLog file.
* Array#select!
* Array#sort_by!

* extended methods:
* extended method:
* Array#{uniq,uniq!,product} can take a block.

* Complex
* new methods:
* new method:
* Complex#rationalize

* Dir
Expand All @@ -51,7 +50,7 @@ with all sufficient information, see the ChangeLog file.
* ascii_compatible?

* Enumerable
* New methods:
* new methods:
* Enumerable#chunk
* Enumerable#collect_concat
* Enumerable#each_entry
Expand All @@ -66,7 +65,7 @@ with all sufficient information, see the ChangeLog file.
* Enumerator#feed
* StopIteration#result

* extended methods:
* extended method:
* #with_index accepts an optional argument that specifies the
index number to start with, defaulted to 0.

Expand All @@ -86,14 +85,13 @@ with all sufficient information, see the ChangeLog file.
* new constants:
* Float::INFINITY
* Float::NAN
* new methods:
* new method:
* Float#rationalize

* File
* new methods:
* File.realpath
* File.realdirpath
* File#size

* GC::Profiler
* new method:
Expand All @@ -105,14 +103,14 @@ with all sufficient information, see the ChangeLog file.
* Hash#select!

* IO
* new method:
* new methods:
* IO#autoclose=
* IO#autoclose?
* IO#fdatasync
* IO#codepoints
* IO#each_codepoint

* extended methods:
* extended method:
* IO.pipe can take a block.

* new modules:
Expand All @@ -121,7 +119,7 @@ with all sufficient information, see the ChangeLog file.
They are used to extend non-blocking exceptions.

* Integer
* new methods:
* new method:
* Integer#rationalize

* Kernel
Expand All @@ -130,7 +128,7 @@ with all sufficient information, see the ChangeLog file.
* Kernel#singleton_class
* Kernel#require_relative

* extended methods:
* extended method:
* Kernel#respond_to? can be used to detect methods not implemented.
For example, Process.respond_to?(:fork) returns false on Windows.

Expand All @@ -148,11 +146,15 @@ with all sufficient information, see the ChangeLog file.
platforms.

* MatchData
* New method:
* new method:
* MatchData#==

* Method
* new method:
* Method#parameters

* NilClass
* new methods:
* new method:
* NilClass#rationalize

* Object
Expand All @@ -161,18 +163,20 @@ with all sufficient information, see the ChangeLog file.
* printf() supports %a/%A format.

* Proc
* new method:
* Proc#parameters
* extended method:
* Proc#source_location returns location even if receiver is a method
defined by attr_reader / attr_writer / attr_accessor.

* Process
* extended methods:
* extended method:
* Process.spawn accepts [:child, FD] for a redirect target.

* Random (new class to generate pseudo-random numbers)

* Rational
* new methods:
* new method:
* Rational#rationalize

* String
Expand All @@ -185,22 +189,27 @@ with all sufficient information, see the ChangeLog file.
* Thread#set_trace_func

* Time
* extended feature:
* extended features:
* time_t restriction is removed to represent before 1901 and after 2038.
Proleptic Gregorian calendar is used for old dates.
* Time.new have optional arguments to specify date with time offset.
* Time#getlocal, Time#localtime have optional time offset argument.

* new method:
* new methods:
* Time#to_r
* Time#subsec
* Time#round

* incompatible changes:
* incompatible change:
* 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,
not 1999 AD.

* UnboundMethod
* new method:
* UnboundMethod#parameters


* digest
* new methods:
* Digest::Class.base64digest
Expand Down
Loading

0 comments on commit 143a2f7

Please sign in to comment.