[前][次][番号順一覧][スレッド一覧]

ruby-changes:27359

From: marcandre <ko1@a...>
Date: Sat, 23 Feb 2013 08:59:39 +0900 (JST)
Subject: [ruby-changes:27359] marcandRe: r39411 (ruby_2_0_0): * backport r39410 from trunk

marcandre	2013-02-23 08:59:29 +0900 (Sat, 23 Feb 2013)

  New Revision: 39411

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39411

  Log:
    * backport r39410 from trunk
    
        * doc/NEWS-*: Update NEWS from their respective branches

  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/doc/NEWS-1.8.7
    branches/ruby_2_0_0/doc/NEWS-1.9.1
    branches/ruby_2_0_0/doc/NEWS-1.9.2
    branches/ruby_2_0_0/doc/NEWS-1.9.3

Index: ruby_2_0_0/doc/NEWS-1.9.1
===================================================================
--- ruby_2_0_0/doc/NEWS-1.9.1	(revision 39410)
+++ ruby_2_0_0/doc/NEWS-1.9.1	(revision 39411)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L1
 # -*- 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.
@@ -33,18 +33,18 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L33
 * 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.
@@ -73,7 +73,7 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L73
           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
@@ -96,7 +96,7 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L96
           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,
@@ -170,7 +170,7 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L170
     * 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
@@ -211,15 +211,15 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L211
     * 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
@@ -265,7 +265,7 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L265
 
     * 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
@@ -335,6 +335,11 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L335
           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
@@ -388,7 +393,7 @@ See doc/NEWS-1.8.7 for changes between 1 https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.1#L393
           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:
Index: ruby_2_0_0/doc/NEWS-1.9.2
===================================================================
--- ruby_2_0_0/doc/NEWS-1.9.2	(revision 39410)
+++ ruby_2_0_0/doc/NEWS-1.9.2	(revision 39411)
@@ -1,5 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L1
 # -*- rdoc -*-
-
 = NEWS for Ruby 1.9.2
 
 This document is a list of user visible feature changes made between
@@ -15,7 +14,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L14
 * builtin classes
 
   * Array
-    * new method:
+    * new methods:
       * Array#keep_if
       * Array#repeated_combination
       * Array#repeated_permutation
@@ -24,11 +23,11 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L23
       * 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
@@ -51,7 +50,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L50
       * ascii_compatible?
 
   * Enumerable
-    * New methods:
+    * new methods:
       * Enumerable#chunk
       * Enumerable#collect_concat
       * Enumerable#each_entry
@@ -66,7 +65,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L65
       * 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.
 
@@ -86,14 +85,13 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L85
     * 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:
@@ -105,14 +103,14 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L103
       * 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:
@@ -121,7 +119,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L119
         They are used to extend non-blocking exceptions.
 
   * Integer
-    * new methods:
+    * new method:
       * Integer#rationalize
 
   * Kernel
@@ -130,7 +128,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L128
       * 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.
 
@@ -148,11 +146,15 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L146
         platforms.
 
   * MatchData
-    * New method:
+    * new method:
       * MatchData#==
 
+  * Method
+    * new method:
+      * Method#parameters
+
   * NilClass
-    * new methods:
+    * new method:
       * NilClass#rationalize
 
   * Object
@@ -161,18 +163,20 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L163
       * 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
@@ -185,22 +189,27 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.2#L189
       * 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
Index: ruby_2_0_0/doc/NEWS-1.9.3
===================================================================
--- ruby_2_0_0/doc/NEWS-1.9.3	(revision 39410)
+++ ruby_2_0_0/doc/NEWS-1.9.3	(revision 39411)
@@ -1,5 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L1
 # -*- rdoc -*-
-
 = NEWS for Ruby 1.9.3
 
 This document is a list of user visible feature changes made between
@@ -15,6 +14,13 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L14
 * Ruby's License is changed from a dual license with GPLv2
   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
 
 * rb_scan_args() is enhanced with support for option hash argument
@@ -23,6 +29,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L29
 * ruby_vm_at_exit() added.  This enables extension libs to hook a VM
   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)
 
 * builtin classes
@@ -103,16 +112,34 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L112
       the platform don't support supplementary groups concept.
 
 * bigdecimal
+
   * BigDecimal#power and BigDecimal#** support non-integral exponent.
 
   * 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
-    specify the precision to produce the digits of a BigDecimal.
+    Rational, Float, and BigDecimal.  If you pass a Rational or a Float to
+    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 precision of the receiver BigDecimal to produce the digits of a
     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
 
   * Accepts flonum explicitly with limitations.
@@ -165,6 +192,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L192
     * IO#winsize
     * IO.console
 
+* json
+  * updated to v1.5.4.
+
 * matrix
   * new classes:
     * Matrix::EigenvalueDecomposition
@@ -213,9 +243,13 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L243
       http.request_post('/continue', 'body=BODY', 'expect' => '100-continue')
 
   * 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.
 
+* objspace
+  * new method:
+    * ObjectSpace::memsize_of_all
+
 * openssl
   * 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
@@ -237,18 +271,18 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L271
   * support for bash/zsh completion.
 
 * 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
 
 * 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
 
 * rexml
   * Support Ruby native encoding mechanism and iconv dependency is dropped.
 
 * 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
 
 * stringio
@@ -302,4 +336,6 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.9.3#L336
 
 === Compatibility issues (excluding feature bug fixes)
 
-  None
+  * Rational#to_d
+
+    See above.
Index: ruby_2_0_0/doc/NEWS-1.8.7
===================================================================
--- ruby_2_0_0/doc/NEWS-1.8.7	(revision 39410)
+++ ruby_2_0_0/doc/NEWS-1.8.7	(revision 39411)
@@ -54,7 +54,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.8.7#L54
   * 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?
@@ -77,6 +77,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.8.7#L77
   * Array#reject
   * Array#reject!
   * Array#delete_if
+  * Array#select
 
     Return an enumerator if no block is given.
 
@@ -161,6 +162,10 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.8.7#L162
 
     New alias to #inject.
 
+  * Enumerable#to_a
+
+    Can take optional arguments and pass them to #each.
+
   * Hash#eql?
   * Hash#hash
   * Hash#==
@@ -262,12 +267,17 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.8.7#L267
 
   * 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?
@@ -501,6 +511,15 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/doc/NEWS-1.8.7#L511
     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
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 39410)
+++ ruby_2_0_0/ChangeLog	(revision 39411)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Sat Feb 23 08:57:46 2013  Marc-Andre Lafortune  <ruby-core@m...>
+
+    * backport r39410 from trunk
+
+	* doc/NEWS-*: Update NEWS from their respective branches
+
 Sat Feb 23 08:14:43 2013  Marc-Andre Lafortune  <ruby-core@m...>
 
 	* backport r39400-r39407 from trunk.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]