HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/doc/ruby/html/NEWS-2_0_0.html
<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">

<title>NEWS-2.0.0 - RDoc Documentation</title>

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
</script>

<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<link href="./css/fonts.css" rel="stylesheet">
<link href="./css/rdoc.css" rel="stylesheet">




<body id="top" role="document" class="file">
<nav role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2>
    <a href="./index.html" rel="home">Home</a>
  </h2>

  <div id="table-of-contents-navigation">
    <a href="./table_of_contents.html#pages">Pages</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  
<div class="nav-section">
  <h3>Table of Contents</h3>

  <ul class="link-list" role="directory">
    <li><a href="#label-NEWS+for+Ruby+2.0.0">NEWS for Ruby 2.0.0</a>
    <li><a href="#label-Changes+since+the+1.9.3+release">Changes since the 1.9.3 release</a>
    <li><a href="#label-Language+changes">Language changes</a>
    <li><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)</a>
    <li><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)</a>
    <li><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-C+API+updates">C API updates</a>
  </ul>
</div>


  <div id="project-metadata">
    <div id="fileindex-section" class="nav-section">
  <h3>Pages</h3>

  <ul class="link-list">
  
    <li><a href="./CONTRIBUTING_md.html">CONTRIBUTING</a>
  
    <li><a href="./COPYING.html">COPYING</a>
  
    <li><a href="./COPYING_ja.html">COPYING.ja</a>
  
    <li><a href="./LEGAL.html">LEGAL</a>
  
    <li><a href="./NEWS.html">NEWS</a>
  
    <li><a href="./NEWS-1_8_7.html">NEWS-1.8.7</a>
  
    <li><a href="./NEWS-1_9_1.html">NEWS-1.9.1</a>
  
    <li><a href="./NEWS-1_9_2.html">NEWS-1.9.2</a>
  
    <li><a href="./NEWS-1_9_3.html">NEWS-1.9.3</a>
  
    <li><a href="./NEWS-2_0_0.html">NEWS-2.0.0</a>
  
    <li><a href="./NEWS-2_1_0.html">NEWS-2.1.0</a>
  
    <li><a href="./NEWS-2_2_0.html">NEWS-2.2.0</a>
  
    <li><a href="./NEWS-2_3_0.html">NEWS-2.3.0</a>
  
    <li><a href="./NEWS-2_4_0.html">NEWS-2.4.0</a>
  
    <li><a href="./NEWS-2_5_0.html">NEWS-2.5.0</a>
  
    <li><a href="./NEWS-2_6_0.html">NEWS-2.6.0</a>
  
    <li><a href="./README_ja_md.html">README.ja</a>
  
    <li><a href="./README_md.html">README</a>
  
    <li><a href="./bug_triaging_rdoc.html">bug_triaging</a>
  
    <li><a href="./contributing_rdoc.html">contributing</a>
  
    <li><a href="./contributors_rdoc.html">contributors</a>
  
    <li><a href="./dtrace_probes_rdoc.html">dtrace_probes</a>
  
    <li><a href="./extension_ja_rdoc.html">extension.ja</a>
  
    <li><a href="./extension_rdoc.html">extension</a>
  
    <li><a href="./globals_rdoc.html">globals</a>
  
    <li><a href="./keywords_rdoc.html">keywords</a>
  
    <li><a href="./lib/racc/pre-setup.html">pre-setup</a>
  
    <li><a href="./lib/racc/rdoc/grammar_en_rdoc.html">grammar.en</a>
  
    <li><a href="./maintainers_rdoc.html">maintainers</a>
  
    <li><a href="./marshal_rdoc.html">marshal</a>
  
    <li><a href="./regexp_rdoc.html">regexp</a>
  
    <li><a href="./security_rdoc.html">security</a>
  
    <li><a href="./signals_rdoc.html">signals</a>
  
    <li><a href="./standard_library_rdoc.html">standard_library</a>
  
    <li><a href="./syntax_rdoc.html">syntax</a>
  
    <li><a href="./syntax/assignment_rdoc.html">assignment</a>
  
    <li><a href="./syntax/calling_methods_rdoc.html">calling_methods</a>
  
    <li><a href="./syntax/comments_rdoc.html">comments</a>
  
    <li><a href="./syntax/control_expressions_rdoc.html">control_expressions</a>
  
    <li><a href="./syntax/exceptions_rdoc.html">exceptions</a>
  
    <li><a href="./syntax/literals_rdoc.html">literals</a>
  
    <li><a href="./syntax/methods_rdoc.html">methods</a>
  
    <li><a href="./syntax/miscellaneous_rdoc.html">miscellaneous</a>
  
    <li><a href="./syntax/modules_and_classes_rdoc.html">modules_and_classes</a>
  
    <li><a href="./syntax/precedence_rdoc.html">precedence</a>
  
    <li><a href="./syntax/refinements_rdoc.html">refinements</a>
  
    <li><a href="./win32/README_win32.html">README.win32</a>
  
  </ul>
</div>

  </div>
</nav>

<main role="main" aria-label="Page NEWS-2.0.0">

<h1 id="label-NEWS+for+Ruby+2.0.0"><a href="NEWS.html">NEWS</a> for Ruby 2.0.0<span><a href="#label-NEWS+for+Ruby+2.0.0">&para;</a> <a href="#top">&uarr;</a></span></h1>

<p>This document is a list of user visible feature changes made between releases except for bug fixes.</p>

<p>Note that each entry is kept so brief that no reason behind or reference information is supplied with.  For a full list of changes with all sufficient information, see the ChangeLog file.</p>

<h2 id="label-Changes+since+the+1.9.3+release">Changes since the 1.9.3 release<span><a href="#label-Changes+since+the+1.9.3+release">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Language+changes">Language changes<span><a href="#label-Language+changes">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>Added keyword arguments.</p>
</li><li>
<p>Added %i and %I for symbol list creation (similar to %w and %W).</p>
</li><li>
<p>Default source encoding is changed to UTF-8. (was US-ASCII)</p>
</li><li>
<p>No warning for unused variables starting with &#39;_&#39;</p>
</li></ul>

<h3 id="label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)<span><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="ARGF.html"><code>ARGF</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="ARGF.html#method-i-codepoints"><code>ARGF#codepoints</code></a> and <a href="ARGF.html#method-i-each_codepoint"><code>ARGF#each_codepoint</code></a>, like the corresponding methods for <a href="IO.html"><code>IO</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Array.html"><code>Array</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Array.html#method-i-bsearch"><code>Array#bsearch</code></a> for binary search.</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p>random parameter of <a href="Array.html#method-i-shuffle-21"><code>Array#shuffle!</code></a> and <a href="Array.html#method-i-sample"><code>Array#sample</code></a> now will be called with one argument, maximum value.</p>
</li><li>
<p>when given <a href="Range.html"><code>Range</code></a> arguments, <a href="Array.html#method-i-values_at"><code>Array#values_at</code></a> now returns nil for each value that is out-of-range.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Enumerable.html"><code>Enumerable</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Enumerable.html#method-i-lazy"><code>Enumerable#lazy</code></a> method for lazy enumeration.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Enumerator.html"><code>Enumerator</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Enumerator.html#method-i-size"><code>Enumerator#size</code></a> for lazy size evaluation.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="Enumerator.html#method-c-new"><code>Enumerator.new</code></a> accept an argument for lazy size evaluation.</p>
</li></ul>
</li><li>
<p>new class <a href="Enumerator/Lazy.html"><code>Enumerator::Lazy</code></a> for lazy enumeration</p>
</li></ul>
</li><li>
<p><a href="ENV.html"><code>ENV</code></a></p>
<ul><li>
<p>aliased method:</p>
<ul><li>
<p><a href="ENV.html#method-c-to_h"><code>ENV.to_h</code></a> is a new alias for <a href="ENV.html#method-c-to_hash"><code>ENV.to_hash</code></a></p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Fiber.html"><code>Fiber</code></a></p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="Fiber.html#method-i-resume"><code>Fiber#resume</code></a> cannot resume a fiber which invokes “Fiber#transfer”.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="File.html"><code>File</code></a></p>
<ul><li>
<p>extended method:</p>
<ul><li>
<p><a href="File.html#method-c-fnmatch-3F"><code>File.fnmatch?</code></a> now expands braces in the pattern if File::FNM_EXTGLOB option is given.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="GC.html"><code>GC</code></a></p>
<ul><li>
<p>improvements:</p>
<ul><li>
<p>introduced the bitmap marking which suppresses to copy a memory page with Copy-on-Write.</p>
</li><li>
<p>introduced the non-recursive marking which avoids unexpected stack overflow.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="GC/Profiler.html"><code>GC::Profiler</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="GC/Profiler.html#method-c-raw_data"><code>GC::Profiler.raw_data</code></a> which returns raw profile data for <a href="GC.html"><code>GC</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Hash.html"><code>Hash</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Hash.html#method-i-to_h"><code>Hash#to_h</code></a> as explicit conversion method, like <a href="Array.html#method-i-to_a"><code>Array#to_a</code></a>.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="Hash.html#method-i-default_proc-3D"><code>Hash#default_proc=</code></a> can be passed nil to clear the default proc.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="IO.html"><code>IO</code></a></p>
<ul><li>
<p>deprecated methods:</p>
<ul><li>
<p><a href="IO.html#method-i-lines"><code>IO#lines</code></a>, bytes, chars and codepoints are deprecated.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Kernel.html"><code>Kernel</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added Kernel#Hash conversion method like Array() or Float().</p>
</li><li>
<p>added Kernel#__dir__ which returns the absolute path of the directory of the file from which this method is called.</p>
</li><li>
<p>added <a href="Kernel.html#method-i-caller_locations"><code>Kernel#caller_locations</code></a> which returns an array of frame information objects.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="Kernel.html#method-i-warn"><code>Kernel#warn</code></a> accepts multiple args in like puts.</p>
</li><li>
<p><a href="Kernel.html#method-i-caller"><code>Kernel#caller</code></a> accepts second optional argument `n&#39; which specify required caller size.</p>
</li><li>
<p>Kernel#to_enum and enum_for accept a block for lazy size evaluation.</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p>system() and exec() close non-standard file descriptors (The default of :close_others option is changed to true by default.)</p>
</li><li>
<p>respond_to? against a protected method now returns false unless the second argument is true.</p>
</li><li>
<p>__callee__ has returned to the original behavior, and now returns the called name but not the original name in an aliased method.</p>
</li><li>
<p>Kernel#inspect does not call to_s anymore (it used to call redefined to_s).</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="LoadError.html"><code>LoadError</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="LoadError.html#attribute-i-path"><code>LoadError#path</code></a> method to return the file name that could not be loaded.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Module.html"><code>Module</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Module.html#method-i-prepend"><code>Module#prepend</code></a> which is similar to <a href="Module.html#method-i-include"><code>Module#include</code></a>, however a method in the prepended module overrides the corresponding method in the prepending module.</p>
</li><li>
<p>added <a href="Module.html#method-i-prepended"><code>Module.prepended</code></a> and <a href="Module.html#method-i-prepend_features"><code>Module.prepend_features</code></a>, similar to included and append_features.</p>
</li><li>
<p>added <a href="Module.html#method-i-refine"><code>Module#refine</code></a>, which extends a class or module locally.</p>
<dl class="rdoc-list label-list"><dt>experimental
<dd></dd></dl>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="Module.html#method-i-define_method"><code>Module#define_method</code></a> accepts a <a href="UnboundMethod.html"><code>UnboundMethod</code></a> from a <a href="Module.html"><code>Module</code></a>.</p>
</li><li>
<p><a href="Module.html#method-i-const_get"><code>Module#const_get</code></a> accepts a qualified constant string, e.g. Object.const_get(“Foo::Bar::Baz”)</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Mutex.html"><code>Mutex</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Mutex.html#method-i-owned-3F"><code>Mutex#owned?</code></a> which returns the mutex is held by current thread or not. [experimental]</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="Mutex.html#method-i-lock"><code>Mutex#lock</code></a>, <a href="Mutex.html#method-i-unlock"><code>Mutex#unlock</code></a>, <a href="Mutex.html#method-i-try_lock"><code>Mutex#try_lock</code></a>, <a href="Mutex.html#method-i-synchronize"><code>Mutex#synchronize</code></a> and <a href="Mutex.html#method-i-sleep"><code>Mutex#sleep</code></a> are no longer allowed to be used from trap handler and raise a <a href="ThreadError.html"><code>ThreadError</code></a> in such case.</p>
</li><li>
<p><a href="Mutex.html#method-i-sleep"><code>Mutex#sleep</code></a> may spurious wakeup. Check after wakeup.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="NilClass.html"><code>NilClass</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added nil.to_h which returns {}</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="ObjectSpace/WeakMap.html"><code>ObjectSpace::WeakMap</code></a></p>
<ul><li>
<p>new low level class to hold weak references to objects.</p>
</li></ul>
</li><li>
<p><a href="Proc.html"><code>Proc</code></a></p>
<ul><li>
<p>incompatible change:</p>
<ul><li>
<p>removed Proc#== and eql? so two procs are == only when they are the same object.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Process.html"><code>Process</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added getsid for getting session id (unix only).</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Range.html"><code>Range</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Range.html#method-i-size"><code>Range#size</code></a> for lazy size evaluation.</p>
</li><li>
<p>added <a href="Range.html#method-i-bsearch"><code>Range#bsearch</code></a> for binary search.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="RubyVM.html"><code>RubyVM</code></a> (MRI specific)</p>
<ul><li>
<p>added <a href="RubyVM/InstructionSequence.html#method-c-of"><code>RubyVM::InstructionSequence.of</code></a> to get the instruction sequence from a method or a block.</p>
</li><li>
<p>added <a href="RubyVM/InstructionSequence.html#method-i-path"><code>RubyVM::InstructionSequence#path</code></a>, absolute_path, label, base_label and first_lineno to retrieve information from where the instruction sequence was defined.</p>
</li><li>
<p>added Environment variables to specify stack usage:</p>
<ul><li>
<p>RUBY_THREAD_VM_STACK_SIZE: vm stack size used at thread creation. default: 128KB (32bit CPU) or 256KB (64bit CPU).</p>
</li><li>
<p>RUBY_THREAD_MACHINE_STACK_SIZE: machine stack size used at thread creation. default: 512KB or 1024KB.</p>
</li><li>
<p>RUBY_FIBER_VM_STACK_SIZE: vm stack size used at fiber creation. default: 64KB or 128KB.</p>
</li><li>
<p>RUBY_FIBER_MACHINE_STACK_SIZE: machine stack size used at fiber creation. default: 256KB or 512KB.</p>
</li></ul>

<p>These variables are checked only at launched time.</p>
</li><li>
<p>added constant DEFAULT_PARAMS to get above default parameters.</p>
</li></ul>
</li><li>
<p><a href="Signal.html"><code>Signal</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Signal.html#method-c-signame"><code>Signal.signame</code></a> which returns signal name</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="Signal.html#method-c-trap"><code>Signal.trap</code></a> raises <a href="ArgumentError.html"><code>ArgumentError</code></a> when :SEGV, :BUS, :ILL, :FPE, :VTALRM are specified.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="String.html"><code>String</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="String.html#method-i-b"><code>String#b</code></a> returning a copied string whose encoding is ASCII-8BIT.</p>
</li></ul>
</li><li>
<p>change return value:</p>
<ul><li>
<p><a href="String.html#method-i-lines"><code>String#lines</code></a> now returns an array instead of an enumerator.</p>
</li><li>
<p><a href="String.html#method-i-chars"><code>String#chars</code></a> now returns an array instead of an enumerator.</p>
</li><li>
<p><a href="String.html#method-i-codepoints"><code>String#codepoints</code></a> now returns an array instead of an enumerator.</p>
</li><li>
<p><a href="String.html#method-i-bytes"><code>String#bytes</code></a> now returns an array instead of an enumerator.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Struct.html"><code>Struct</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Struct.html#method-i-to_h"><code>Struct#to_h</code></a> returning values with keys corresponding to the instance variable names.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Thread.html"><code>Thread</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="Thread.html#method-i-thread_variable_get"><code>Thread#thread_variable_get</code></a> for getting thread local variables (these are different than <a href="Fiber.html"><code>Fiber</code></a> local variables).</p>
</li><li>
<p>added <a href="Thread.html#method-i-thread_variable_set"><code>Thread#thread_variable_set</code></a> for setting thread local variables.</p>
</li><li>
<p>added <a href="Thread.html#method-i-thread_variables"><code>Thread#thread_variables</code></a> for getting a list of the thread local variable keys.</p>
</li><li>
<p>added <a href="Thread.html#method-i-thread_variable-3F"><code>Thread#thread_variable?</code></a> for testing to see if a particular thread variable has been set.</p>
</li><li>
<p>added <a href="Thread.html#method-c-handle_interrupt"><code>Thread.handle_interrupt</code></a> as well as instance and singleton methods pending_interrupt? for asynchronous handling of exceptions</p>
</li><li>
<p>added <a href="Thread.html#method-i-backtrace_locations"><code>Thread#backtrace_locations</code></a> which returns similar information of <a href="Kernel.html#method-i-caller_locations"><code>Kernel#caller_locations</code></a>.</p>
</li></ul>
</li><li>
<p>new class <a href="Thread/Backtrace/Location.html"><code>Thread::Backtrace::Location</code></a> to hold backtrace location information. These are returned by <a href="Thread.html#method-i-backtrace_locations"><code>Thread#backtrace_locations</code></a> and <a href="Kernel.html#method-i-caller_locations"><code>Kernel#caller_locations</code></a>.</p>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="Thread.html#method-i-join"><code>Thread#join</code></a> and <a href="Thread.html#method-i-value"><code>Thread#value</code></a> now raises a <a href="ThreadError.html"><code>ThreadError</code></a> if target thread is the current or main thread.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="Time.html"><code>Time</code></a></p>
<ul><li>
<p>change return value:</p>
<ul><li>
<p><a href="Time.html#method-i-to_s"><code>Time#to_s</code></a> now returns US-ASCII encoding instead of BINARY.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="TracePoint.html"><code>TracePoint</code></a></p>
<ul><li>
<p>new class. This class is replacement of set_trace_func. Easy to use and efficient implementation.</p>
</li></ul>
</li><li>
<p>toplevel</p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added main.define_method which defines a global function.</p>
</li><li>
<p>added main.using, which imports refinements into the current file or eval string. [experimental]</p>
</li></ul>
</li></ul>
</li></ul>

<h3 id="label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)<span><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="Array.html#method-i-values_at"><code>Array#values_at</code></a></p>

<p>See above.</p>
</li><li>
<p><a href="String.html#method-i-lines"><code>String#lines</code></a></p>
</li><li>
<p><a href="String.html#method-i-chars"><code>String#chars</code></a></p>
</li><li>
<p><a href="String.html#method-i-codepoints"><code>String#codepoints</code></a></p>
</li><li>
<p><a href="String.html#method-i-bytes"><code>String#bytes</code></a></p>

<p>These methods no longer return an <a href="Enumerator.html"><code>Enumerator</code></a>, although passing a block is still supported for backwards compatibility.</p>

<p>Code like str.lines.with_index(1) { |line, lineno| … } no longer works because str.lines returns an array.  Replace lines with each_line in such cases.</p>
</li><li>
<p><a href="IO.html#method-i-lines"><code>IO#lines</code></a></p>
</li><li>
<p><a href="IO.html#method-i-chars"><code>IO#chars</code></a></p>
</li><li>
<p><a href="IO.html#method-i-codepoints"><code>IO#codepoints</code></a></p>
</li><li>
<p><a href="IO.html#method-i-bytes"><code>IO#bytes</code></a></p>
</li><li>
<p><a href="ARGF.html#method-i-lines"><code>ARGF#lines</code></a></p>
</li><li>
<p><a href="ARGF.html#method-i-chars"><code>ARGF#chars</code></a></p>
</li><li>
<p><a href="ARGF.html#method-i-bytes"><code>ARGF#bytes</code></a></p>
</li><li>
<p><a href="StringIO.html#method-i-lines"><code>StringIO#lines</code></a></p>
</li><li>
<p><a href="StringIO.html#method-i-chars"><code>StringIO#chars</code></a></p>
</li><li>
<p><a href="StringIO.html#method-i-codepoints"><code>StringIO#codepoints</code></a></p>
</li><li>
<p><a href="StringIO.html#method-i-bytes"><code>StringIO#bytes</code></a></p>
</li><li>
<p><a href="Zlib/GzipReader.html#method-i-lines"><code>Zlib::GzipReader#lines</code></a></p>
</li><li>
<p><a href="Zlib/GzipReader.html#method-i-bytes"><code>Zlib::GzipReader#bytes</code></a></p>

<p>These methods are deprecated in favor of each_line, each_byte, each_char and each_codepoint.</p>
</li><li>
<p>Proc#==</p>
</li><li>
<p><a href="Object.html#method-i-eql-3F"><code>Proc#eql?</code></a></p>

<p>These methods were removed. Two procs are == only when they are the same object.</p>
</li><li>
<p>Fixnum</p>
</li><li>
<p>Bignum</p>
</li><li>
<p><a href="Float.html"><code>Float</code></a></p>

<p>Fixnums, Bignums and Floats are frozen.</p>
</li><li>
<p><a href="Signal.html#method-c-trap"><code>Signal.trap</code></a></p>

<p>See above.</p>
</li><li>
<p>Merge Onigmo. <a href="https://github.com/k-takata/Onigmo">github.com/k-takata/Onigmo</a></p>
</li><li>
<p>The :close_others option is true by default for system() and exec(). Also, the close-on-exec flag is set by default for all new file descriptors. This means file descriptors doesn&#39;t inherit to spawned process unless explicitly requested such as system(…, fd=&gt;fd).</p>
</li><li>
<p>Kernel#respond_to? against a protected method now returns false unless the second argument is true.</p>
</li><li>
<p>Kernel#respond_to_missing?</p>
</li><li>
<p>Kernel#initialize_clone</p>
</li><li>
<p>Kernel#initialize_dup</p>

<p>These methods are now private.</p>
</li><li>
<p><a href="Thread.html#method-i-join"><code>Thread#join</code></a>, <a href="Thread.html#method-i-value"><code>Thread#value</code></a></p>

<p>See above.</p>
</li><li>
<p><a href="Mutex.html#method-i-lock"><code>Mutex#lock</code></a>, <a href="Mutex.html#method-i-unlock"><code>Mutex#unlock</code></a>, <a href="Mutex.html#method-i-try_lock"><code>Mutex#try_lock</code></a>, <a href="Mutex.html#method-i-synchronize"><code>Mutex#synchronize</code></a> and <a href="Mutex.html#method-i-sleep"><code>Mutex#sleep</code></a></p>

<p>See above.</p>
</li></ul>

<h3 id="label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)<span><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>cgi</p>
<ul><li>
<p>Add HTML5 tag maker.</p>
</li><li>
<p><a href="CGI.html#method-i-header"><code>CGI#header</code></a> has been renamed to <a href="CGI.html#method-i-http_header"><code>CGI#http_header</code></a> and aliased to <a href="CGI.html#method-i-header"><code>CGI#header</code></a>.</p>
</li><li>
<p>When HTML5 tagmaker called, overwrite <a href="CGI.html#method-i-header"><code>CGI#header</code></a>, <a href="CGI.html#method-i-header"><code>CGI#header</code></a> function is to create a &lt;header&gt; element.</p>
</li></ul>
</li><li>
<p><a href="CSV.html"><code>CSV</code></a></p>
<ul><li>
<p>Removed CSV::dump and CSV::load to protect users from dangerous serialization vulnerability</p>
</li></ul>
</li><li>
<p>iconv</p>
<ul><li>
<p>Iconv has been removed. Use <a href="String.html#method-i-encode"><code>String#encode</code></a> instead.</p>
</li></ul>
</li><li>
<p>io/console</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p>added <a href="IO.html#method-i-cooked"><code>IO#cooked</code></a> which sets the terminal to cooked mode within the given block.</p>
</li><li>
<p>added <a href="IO.html#method-i-cooked-21"><code>IO#cooked!</code></a> which sets the terminal to cooked.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="IO.html#method-i-raw"><code>IO#raw</code></a>, <a href="IO.html#method-i-raw-21"><code>IO#raw!</code></a>, and <a href="IO.html#method-i-getch"><code>IO#getch</code></a> accept keyword arguments, :min and :time.</p>
</li></ul>
</li></ul>
</li><li>
<p>io/wait</p>
<ul><li>
<p>new features:</p>
<ul><li>
<p>added <a href="IO.html#method-i-wait_writable"><code>IO#wait_writable</code></a> method.</p>
</li><li>
<p>added <a href="IO.html#method-i-wait_readable"><code>IO#wait_readable</code></a> method as alias of <a href="IO.html#method-i-wait"><code>IO#wait</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p>json</p>
<ul><li>
<p>updated to 1.7.7.</p>
</li></ul>
</li><li>
<p>net/http</p>
<ul><li>
<p>new features:</p>
<ul><li>
<p>Proxies are now automatically detected from the http_proxy environment variable.  See <a href="Net/HTTP.html#method-c-new"><code>Net::HTTP::new</code></a> for details.</p>
</li><li>
<p>gzip and deflate compression are now requested for all requests by default.  See <a href="Net/HTTP.html"><code>Net::HTTP</code></a> for details.</p>
</li><li>
<p>SSL sessions are now reused across connections for a single instance. This speeds up connection by using a previously negotiated session.</p>
</li><li>
<p>Requests may be created from a <a href="URI.html"><code>URI</code></a> which sets the request_uri and host header of the request (but does not change the host connected to).</p>
</li><li>
<p>Responses contain the <a href="URI.html"><code>URI</code></a> requested which allows easier implementation of redirect following.</p>
</li></ul>
</li><li>
<p>new methods:</p>
<ul><li>
<p><a href="Net/HTTP.html#attribute-i-local_host"><code>Net::HTTP#local_host</code></a></p>
</li><li>
<p><a href="Net/HTTP.html#attribute-i-local_host"><code>Net::HTTP#local_host=</code></a></p>
</li><li>
<p><a href="Net/HTTP.html#attribute-i-local_port"><code>Net::HTTP#local_port</code></a></p>
</li><li>
<p><a href="Net/HTTP.html#attribute-i-local_port"><code>Net::HTTP#local_port=</code></a></p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="Net/HTTP.html#method-i-connect"><code>Net::HTTP#connect</code></a> uses local_host and local_port if specified.</p>
</li></ul>
</li></ul>
</li><li>
<p>net/imap</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p><a href="Net/IMAP.html#method-c-default_port"><code>Net::IMAP.default_port</code></a></p>
</li><li>
<p><a href="Net/IMAP.html#method-c-default_imap_port"><code>Net::IMAP.default_imap_port</code></a></p>
</li><li>
<p><a href="Net/IMAP.html#method-c-default_tls_port"><code>Net::IMAP.default_tls_port</code></a></p>
</li><li>
<p><a href="Net/IMAP.html#method-c-default_ssl_port"><code>Net::IMAP.default_ssl_port</code></a></p>
</li><li>
<p><a href="Net/IMAP.html#method-c-default_imaps_port"><code>Net::IMAP.default_imaps_port</code></a></p>
</li></ul>
</li></ul>
</li><li>
<p>objspace</p>
<ul><li>
<p>new method:</p>
<ul><li>
<p><a href="ObjectSpace.html#method-c-reachable_objects_from"><code>ObjectSpace.reachable_objects_from(obj)</code></a></p>
</li></ul>
</li></ul>
</li><li>
<p>openssl</p>
<ul><li>
<p>Consistently raise an error when trying to encode nil values. All instances of <a href="OpenSSL/ASN1/Primitive.html"><code>OpenSSL::ASN1::Primitive</code></a> now raise <a href="TypeError.html"><code>TypeError</code></a> when calling to_der on an instance whose value is nil. All instances of <a href="OpenSSL/ASN1/Constructive.html"><code>OpenSSL::ASN1::Constructive</code></a> raise <a href="NoMethodError.html"><code>NoMethodError</code></a> in the same case. Constructing such values is still permitted.</p>
</li><li>
<p>TLS 1.1 &amp; 1.2 support by setting OpenSSL::SSL::SSLContext#ssl_version to :TLSv1_2, :TLSv1_2_server, :TLSv1_2_client or :TLSv1_1, :TLSv1_1_server :TLSv1_1_client. The version being effectively used can be queried with OpenSSL::SSL#ssl_version. Furthermore, it is also possible to blacklist the new TLS versions with OpenSSL::SSL:OP_NO_TLSv1_1 and OpenSSL::SSL::OP_NO_TLSv1_2.</p>
</li><li>
<p>Added <a href="OpenSSL/SSL/SSLContext.html#attribute-i-renegotiation_cb"><code>OpenSSL::SSL::SSLContext#renegotiation_cb</code></a>. A user-defined callback may be set which gets called whenever a new handshake is negotiated. This also allows to programmatically decline (client) renegotiation attempts.</p>
</li><li>
<p>Support for “0/n” splitting of records as BEAST mitigation via OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS.</p>
</li><li>
<p>The default options for <a href="OpenSSL/SSL/SSLContext.html"><code>OpenSSL::SSL::SSLContext</code></a> have changed to OpenSSL::SSL::OP_ALL &amp; ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS instead of OpenSSL::SSL::OP_ALL only. This enables the countermeasure for the BEAST attack by default.</p>
</li><li>
<p><a href="OpenSSL.html"><code>OpenSSL</code></a> requires passwords for decrypting PEM-encoded files to be at least four characters long. This led to awkward situations where an export with a password with fewer than four characters was possible, but accessing the file afterwards failed. <a href="OpenSSL/PKey/RSA.html"><code>OpenSSL::PKey::RSA</code></a>, <a href="OpenSSL/PKey/DSA.html"><code>OpenSSL::PKey::DSA</code></a> and <a href="OpenSSL/PKey/EC.html"><code>OpenSSL::PKey::EC</code></a> therefore now enforce the same check when exporting a private key to PEM with a password - it has to be at least four characters long.</p>
</li><li>
<p>SSL/TLS support for the Next Protocol Negotiation extension. Supported with <a href="OpenSSL.html"><code>OpenSSL</code></a> 1.0.1 and higher.</p>
</li><li>
<p>OpenSSL::OPENSSL_FIPS allows client applications to detect whether <a href="OpenSSL.html"><code>OpenSSL</code></a> is FIPS-enabled. <a href="OpenSSL.html#method-c-fips_mode-3D"><code>OpenSSL.fips_mode=</code></a> allows turning on and off FIPS mode manually in order to adapt to situations where FIPS mode would be an explicit requirement.</p>
</li><li>
<p>Authenticated Encryption with Associated <a href="Data.html"><code>Data</code></a> (AEAD) is supported via Cipher#auth_data= and Cipher#auth_tag/Cipher#auth_tag=. Currently (<a href="OpenSSL.html"><code>OpenSSL</code></a> 1.0.1c), only GCM mode is supported.</p>
</li></ul>
</li><li>
<p>ostruct</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p><a href="OpenStruct.html#method-i-5B-5D"><code>OpenStruct#[]</code></a>, []=</p>
</li><li>
<p><a href="OpenStruct.html#method-i-each_pair"><code>OpenStruct#each_pair</code></a></p>
</li><li>
<p><a href="OpenStruct.html#method-i-eql-3F"><code>OpenStruct#eql?</code></a></p>
</li><li>
<p><a href="OpenStruct.html#method-i-hash"><code>OpenStruct#hash</code></a></p>
</li><li>
<p><a href="OpenStruct.html#method-i-to_h"><code>OpenStruct#to_h</code></a> converts the struct to a hash.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="OpenStruct.html#method-c-new"><code>OpenStruct.new</code></a> also accepts an <a href="OpenStruct.html"><code>OpenStruct</code></a> / <a href="Struct.html"><code>Struct</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p>pathname</p>
<ul><li>
<p>extended method:</p>
<ul><li>
<p><a href="Pathname.html#method-i-find"><code>Pathname#find</code></a> returns an enumerator if no block is given.</p>
</li></ul>
</li></ul>
</li><li>
<p>rake</p>
<ul><li>
<p>rake has been updated to version 0.9.5.</p>

<p>This version is backwards-compatible with previous rake versions and contains many bug fixes.</p>

<p>See <a href="http://rake.rubyforge.org/doc/release_notes/rake-0_9_5_rdoc.html">rake.rubyforge.org/doc/release_notes/rake-0_9_5_rdoc.html</a> for a list of changes in rake 0.9.3, 0.9.4 and 0.9.5.</p>
</li></ul>
</li><li>
<p><a href="RDoc.html"><code>RDoc</code></a></p>
<ul><li>
<p><a href="RDoc.html"><code>RDoc</code></a> has been updated to version 4.0</p>

<p>This version is largely backwards-compatible with previous rdoc versions. The most notable change is an update to the ri data format (ri data must be regenerated for gems shared across rdoc versions).  Further API changes are internal and won&#39;t affect most users.</p>

<p>Notable changes include:</p>
<ul><li>
<p>Page support for ri.  Try `ri ruby:` for a list of pages in ruby or `ri ruby:syntax/literals` for the syntax documentation for literals.</p>

<p>This also works for gems such as `ri rspec:README` for the rspec gem&#39;s README file.</p>
</li><li>
<p>Markdown support.  See ri <a href="RDoc/Markdown.html"><code>RDoc::Markdown</code></a> for details.</p>
</li></ul>

<p>See <a href="https://github.com/rdoc/rdoc/blob/master/History.rdoc">github.com/rdoc/rdoc/blob/master/History.rdoc</a> for a full list of changes in rdoc 4.0.</p>
</li></ul>
</li><li>
<p>resolv</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p><a href="Resolv/DNS.html#method-i-timeouts-3D"><code>Resolv::DNS#timeouts=</code></a></p>
</li><li>
<p>Resolv::DNS::Config#timeouts=</p>
</li></ul>
</li></ul>
</li><li>
<p>rexml</p>
<ul><li>
<p><a href="REXML/Document.html#method-i-write"><code>REXML::Document#write</code></a> supports <a href="Hash.html"><code>Hash</code></a> arguments.</p>
</li><li>
<p><a href="REXML/Document.html#method-i-write"><code>REXML::Document#write</code></a> supports new :encoding option. It changes <a href="XML.html"><code>XML</code></a> document encoding. Without :encoding option, encoding in <a href="XML.html"><code>XML</code></a> declaration is used for <a href="XML.html"><code>XML</code></a> document encoding.</p>
</li></ul>
</li><li>
<p>RubyGems</p>
<ul><li>
<p>Updated to 2.0.0</p>

<p>RubyGems 2.0.0 features the following improvements:</p>
<ul><li>
<p>Improved support for default gems shipping with ruby 2.0.0+</p>
</li><li>
<p>A gem can have arbitrary metadata through <a href="Gem/Specification.html#attribute-i-metadata"><code>Gem::Specification#metadata</code></a></p>
</li><li>
<p>`gem search` now defaults to –remote and is anchored like gem list.</p>
</li><li>
<p>Added –document to replace –rdoc and –ri.  Use –no-document to disable documentation, –document=rdoc to only generate rdoc.</p>
</li><li>
<p>Only ri-format documentation is generated by default.</p>
</li><li>
<p>`gem server` uses <a href="RDoc/Servlet.html"><code>RDoc::Servlet</code></a> from <a href="RDoc.html"><code>RDoc</code></a> 4.0 to generate HTML documentation.</p>
</li></ul>

<p>For an expanded list of updates and bug fixes see: <a href="https://github.com/rubygems/rubygems/blob/master/History.txt">github.com/rubygems/rubygems/blob/master/History.txt</a></p>
</li></ul>
</li><li>
<p>shellwords</p>
<ul><li>
<p><a href="Shellwords.html#method-i-shellescape"><code>Shellwords#shellescape</code></a> now stringifies the given object using to_s.</p>
</li><li>
<p><a href="Shellwords.html#method-i-shelljoin"><code>Shellwords#shelljoin</code></a> accepts non-string objects in the given array, each of which is stringified using to_s.</p>
</li></ul>
</li><li>
<p>stringio</p>
<ul><li>
<p>deprecated methods:</p>
<ul><li>
<p><a href="StringIO.html#method-i-lines"><code>StringIO#lines</code></a>, bytes, chars and codepoints are deprecated.</p>
</li></ul>
</li></ul>
</li><li>
<p>syslog</p>
<ul><li>
<p>Added <a href="Syslog/Logger.html"><code>Syslog::Logger</code></a> which provides a <a href="Logger.html"><code>Logger</code></a> API atop <a href="Syslog.html"><code>Syslog</code></a>.</p>
</li><li>
<p>Syslog::Priority, <a href="Syslog/Level.html"><code>Syslog::Level</code></a>, <a href="Syslog/Option.html"><code>Syslog::Option</code></a> and <a href="Syslog/Macros.html"><code>Syslog::Macros</code></a> are introduced for easy detection of available constants on a running system.</p>
</li></ul>
</li><li>
<p>tmpdir</p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="Dir.html#method-c-mktmpdir"><code>Dir.mktmpdir</code></a> uses <a href="FileUtils.html#method-c-remove_entry"><code>FileUtils.remove_entry</code></a> instead of <a href="FileUtils.html#method-c-remove_entry_secure"><code>FileUtils.remove_entry_secure</code></a>.  This means that applications should not change the permission of the created temporary directory to make writable from other users.</p>
</li></ul>
</li></ul>
</li><li>
<p>yaml</p>
<ul><li>
<p><a href="YAML/Syck.html"><code>Syck</code></a> has been removed.  YAML now completely depends on libyaml being installed.</p>
</li><li>
<p>libyaml is now bundled with ruby, for cases where the library is not installed locally.</p>
</li></ul>
</li><li>
<p>zlib</p>
<ul><li>
<p>Added streaming support for <a href="Zlib/Inflate.html"><code>Zlib::Inflate</code></a> and <a href="Zlib/Deflate.html"><code>Zlib::Deflate</code></a>.  This allows processing of a stream without the use of large amounts of memory.</p>
</li><li>
<p>Added support for the new deflate strategies Zlib::RLE and Zlib::FIXED.</p>
</li><li>
<p><a href="Zlib.html"><code>Zlib</code></a> streams are now processed without the GVL.  This allows gzip, zlib and deflate streams to be processed in parallel.</p>
</li><li>
<p>deprecated methods:</p>
<ul><li>
<p><a href="Zlib/GzipReader.html#method-i-lines"><code>Zlib::GzipReader#lines</code></a> and bytes are deprecated.</p>
</li></ul>
</li></ul>
</li></ul>

<h3 id="label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)<span><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="OpenStruct.html"><code>OpenStruct</code></a> new methods can conflict with custom attributes named “each_pair”, “eql?”, “hash” or “to_h”.</p>
</li><li>
<p><a href="Dir.html#method-c-mktmpdir"><code>Dir.mktmpdir</code></a> in lib/tmpdir.rb</p>

<p>See above.</p>
</li></ul>

<h3 id="label-C+API+updates">C API updates<span><a href="#label-C+API+updates">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>NUM2SHORT() and NUM2USHORT() added. They are similar to NUM2INT, but short.</p>
</li><li>
<p>rb_newobj_of() and NEWOBJ_OF() added. They create a new object of a given class.</p>
</li></ul>

</main>



<footer id="validator-badges" role="contentinfo">
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
  <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.1.
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
</footer>