summaryrefslogtreecommitdiff
path: root/NEWS
blob: 06e1c81ff9a20a231d81285bf2de853312185e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# -*- rdoc -*-

= NEWS for Ruby 2.3.0

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

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.

== Changes since the 2.2.0 release

=== Language changes

=== Core classes updates (outstanding ones only)

* Enumerable

  * Enumerable#grep_v is added as inverse version of Enumerable#grep.
    [Feature #11049]
  * Enumerable#chunk_while [Feature #10769]

* Numeric

  * Numeric#positive? and Numeric#negative? are added, which return
    true when the receiver is positive and negative respectively.
    [Feature #11151]

* IO

  * new mode flag File::SHARE_DELETE is available.
    this flag means to permit deleting opened file on Windows, but currently
    this affect only files opened as binary.  [Feature #11218]

* Thread
  * Thread#name, Thread#name are added to handle thread names [Feature #11251]

=== Core classes compatibility issues (excluding feature bug fixes)

* Array
  * Array#select!, Array#keep_if, Array#reject!, and Array#delete_if
    no longer changes the receiver array instantly every time the
    block is called.  [Feature #10714]

  * Array#flatten and Array#flatten! no longer try to call #to_ary
    method on elements beyond the given level.  [Bug #10748]

* Enumerable
  * Enumerable#chunk and Enumerable#slice_before no longer takes the
    initial_state argument.  [Feature #10958]
    Use a local variable instead to maintain a state.

* File::Stat
  * On Windows File::Stat#ino always returned 0, but now returns
    BY_HANDLE_FILE_INFORMATION.nFileIndexHigh/Low.

* IO
  * IO#close doesn't raise when the IO object is closed.  [Feature #10718]

* pack/unpack (Array/String)
  * j and J directives for pointer width integer type.  [Feature #11215]


=== Stdlib updates (outstanding ones only)

* Socket
  * Socket#accept_nonblock and Socket#connect_nonblock supports
    `exception :false` to return symbols.
    Ditto for TCPServer#accept_nonblock, UNIXServer#accept_nonblock.

* ObjectSpace (objspace)
  * ObjectSpace.count_imemo_objects is added.
  * ObjectSpace.internal_class_of is added.
  * ObjectSpace.internal_super_of is added.

* OpenSSL
  * OpenSSL::SSL::SSLSocket#accept_nonblock and
    OpenSSL::SSL::SSLSocket#connect_nonblock supports `exception: false`.

* io/wait
  * IO#wait_readable no longer checks FIONREAD, it may be used for
    non-bytestream IO such as listen sockets.

=== Stdlib compatibility issues (excluding feature bug fixes)

* lib/webrick/utils.rb
 * removed unused argument. https://github.com/ruby/ruby/pull/356

* lib/drb/drb.rb
 * removed unused argument. https://github.com/ruby/ruby/pull/515

* lib/base64.rb
 * Base64.urlsafe_encode64: added a "padding" option to suppress
   the padding character ("=").
 * Base64.urlsafe_decode64: now it accepts not only correctly-padded
   input but also unpadded input.

* lib/matrix.rb
 * Add Vector#round. https://github.com/ruby/ruby/pull/802

* ext/coverage/coverage.c
  * Coverage.peek_result: new method to allow coverage to be captured without
    stopping the coverage tool.

* Net::Telnet
  * Net::Telnet is extracted to net-telnet gem. It's unmaintain code.

* Rake
  * Rake is removed from stdlib.

=== Built-in global variables compatibility issues

=== C API updates

=== Build system updates

=== Implementation changes