summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-22 23:33:51 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-22 23:33:51 +0000
commit7c8a4774168d5d31b59d2b3a7aa1a0e2c8227041 (patch)
treedcccc1e43cff44e53678709f747fab5007217562 /NEWS
parent9f9c04262a736113fbdcc4bb6a970f47babe3a96 (diff)
* backport r39400-r39407 from trunk.
* NEWS: many additions * object.c: Add doc for Module.prepended git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS27
1 files changed, 26 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8693b2ac70..1d058cbd8b 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,10 @@ with all sufficient information, see the ChangeLog file.
=== Library updates (outstanding ones only)
* builtin classes
+ * ARGF
+ * added method:
+ * added ARGF#codepoints and ARGF#each_codepoint, like the corresponding
+ methods for IO.
* Array
* added method:
@@ -37,6 +41,7 @@ with all sufficient information, see the ChangeLog file.
* added Enumerator#size for lazy size evaluation.
* extended method:
* Enumerator.new accept an argument for lazy size evaluation.
+ * new class Enumerator::Lazy for lazy enumeration
* ENV
* aliased method:
@@ -104,6 +109,8 @@ with all sufficient information, see the ChangeLog file.
* added Module#prepend which is similar to Module#include,
however a method in the prepended module overrides the
corresponding method in the prepending module.
+ * added Module.prepended and Module.prepend_features, similar
+ to included and append_features.
* added Module#refine, which extends a class or module locally.
[experimental]
* extended method:
@@ -125,6 +132,9 @@ with all sufficient information, see the ChangeLog file.
* added method:
* added nil.to_h which returns {}
+ * ObjectSpace::WeakMap
+ * new low level class to hold weak references to objects.
+
* Proc
* incompatible change:
* removed Proc#== so two procs are == only when they are
@@ -140,6 +150,11 @@ with all sufficient information, see the ChangeLog file.
* added Range#bsearch for binary search.
* RubyVM (MRI specific)
+ * added RubyVM::InstructionSequence.of to get the instruction sequence
+ from a method or a block.
+ * added RubyVM::InstructionSequence#path, #absolute_path, #label,
+ #base_label and #first_lineno to retrieve information from where
+ the instruction sequence was defined.
* added Environment variables to specify stack usage:
* RUBY_THREAD_VM_STACK_SIZE: vm stack size used at thread creation.
default: 128KB (32bit CPU) or 256KB (64bit CPU).
@@ -187,6 +202,9 @@ with all sufficient information, see the ChangeLog file.
pending_interrupt? for asynchronous handling of exceptions
* added Thread#backtrace_locations which returns similar information of
Kernel#caller_locations.
+ * new class Thread::Backtrace::Location to hold backtrace location
+ information. These are returned by Thread#backtrace_locations and
+ Kernel#caller_locations.
* incompatible changes:
* Thread#join and Thread#value now raises a ThreadError if target thread
is the current or main thread.
@@ -421,6 +439,8 @@ with all sufficient information, see the ChangeLog file.
* Default source encoding is changed to UTF-8. (was US-ASCII)
+ * No warning for unused variables starting with '_'
+
=== Compatibility issues (excluding feature bug fixes)
* Array#values_at
@@ -445,7 +465,6 @@ with all sufficient information, see the ChangeLog file.
* IO#bytes
* ARGF#lines
* ARGF#chars
- * ARGF#codepoints
* ARGF#bytes
* StringIO#lines
* StringIO#chars
@@ -483,6 +502,12 @@ with all sufficient information, see the ChangeLog file.
* Kernel#respond_to? against a protected method now returns false
unless the second argument is true.
+ * Kernel#respond_to_missing?
+ * Kernel#initialize_clone
+ * Kernel#initialize_dup
+
+ These methods are now private.
+
* Dir.mktmpdir in lib/tmpdir.rb
See above.