summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/NEWS-1.8.721
-rw-r--r--doc/NEWS-1.9.131
-rw-r--r--doc/NEWS-1.9.247
-rw-r--r--doc/NEWS-1.9.352
4 files changed, 110 insertions, 41 deletions
diff --git a/doc/NEWS-1.8.7 b/doc/NEWS-1.8.7
index 91862e9..51fb5f1 100644
--- a/doc/NEWS-1.8.7
+++ b/doc/NEWS-1.8.7
@@ -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?
@@ -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.
@@ -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#==
@@ -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?
@@ -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
diff --git a/doc/NEWS-1.9.1 b/doc/NEWS-1.9.1
index 5b85383..fb11026 100644
--- a/doc/NEWS-1.9.1
+++ b/doc/NEWS-1.9.1
@@ -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.
@@ -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.
@@ -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
@@ -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,
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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:
diff --git a/doc/NEWS-1.9.2 b/doc/NEWS-1.9.2
index 17e2f26..9cf58c9 100644
--- a/doc/NEWS-1.9.2
+++ b/doc/NEWS-1.9.2
@@ -1,5 +1,4 @@
# -*- 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 ChangeLog file.
* 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 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
@@ -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
@@ -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.
@@ -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:
@@ -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:
@@ -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
@@ -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.
@@ -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
@@ -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
@@ -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
diff --git a/doc/NEWS-1.9.3 b/doc/NEWS-1.9.3
index e372b66..484660f 100644
--- a/doc/NEWS-1.9.3
+++ b/doc/NEWS-1.9.3
@@ -1,5 +1,4 @@
# -*- 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 ChangeLog file.
* 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 ChangeLog file.
* 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 ChangeLog file.
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 ChangeLog file.
* 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 ChangeLog file.
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 ChangeLog file.
* 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 ChangeLog file.
=== Compatibility issues (excluding feature bug fixes)
- None
+ * Rational#to_d
+
+ See above.