NEWS.md 2.3 KB
Newer Older
Y
Yusuke Endoh 已提交
1 2
# NEWS for Ruby 2.8.0 (tentative; to be 3.0.0)

3 4
This document is a list of user visible feature changes
since the **2.7.0** release, except for bug fixes.
Y
Yusuke Endoh 已提交
5 6 7 8 9 10

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 or Redmine
(e.g. `https://bugs.ruby-lang.org/issues/$FEATURE_OR_BUG_NUMBER`).

11
## Language changes
Y
Yusuke Endoh 已提交
12

13 14
* $SAFE is now a normal global variable with no special behavior.
  [[Feature #16131]]
15

16 17
* yield in singleton class definitions in methods is now a SyntaxError.
  [[Feature #15575]]
18

19
## Command line options
Y
Yusuke Endoh 已提交
20

21
## Core classes updates (outstanding ones only)
Y
Yusuke Endoh 已提交
22

23 24 25 26 27 28 29
* Dir

    * Modified method

        * Dir.glob and Dir.[] now sort the results by default, and
          accept `sort:` keyword option.  [[Feature #8709]]

30
* Hash
Y
Yusuke Endoh 已提交
31

32
    * Modified method
Y
Yusuke Endoh 已提交
33

34
        * Hash#transform_keys now accepts a hash that maps keys to new
35
          keys.  [[Feature #16274]]
Y
Yusuke Endoh 已提交
36

37 38 39 40 41 42 43
* Symbol

    * Modified method

        * Symbol#to_proc now returns a lambda Proc.
          [[Feature #16260]]

44
## Stdlib updates (outstanding ones only)
Y
Yusuke Endoh 已提交
45

46 47 48 49
* Net::HTTP

    * New method

50
        * Add Net::HTTP#verify_hostname= and Net::HTTP#verify_hostname
51
          to skip hostname verification.  [[Feature #16555]]
52

53
## Compatibility issues (excluding feature bug fixes)
Y
Yusuke Endoh 已提交
54

55
* Regexp literals are frozen [[Feature #8948]] [[Feature #16377]]
56

57
    ```ruby
58 59
    /foo/.frozen? #=> true
    ```
60

61
* Bundled gems
62

63 64 65 66
    * net-telnet and xmlrpc have been removed from the bundled gems.
      If you are interested in maintaining them, please comment on
      your plan to https://github.com/ruby/xmlrpc
      or https://github.com/ruby/net-telnet.
67

68
## Stdlib compatibility issues (excluding feature bug fixes)
Y
Yusuke Endoh 已提交
69

70
## C API updates
Y
Yusuke Endoh 已提交
71

72
## Implementation improvements
Y
Yusuke Endoh 已提交
73

74
## Miscellaneous changes
75 76


77
[Feature #8709]:  https://bugs.ruby-lang.org/issues/8709
78
[Feature #8948]:  https://bugs.ruby-lang.org/issues/8948
79 80
[Feature #15575]: https://bugs.ruby-lang.org/issues/15575
[Feature #16131]: https://bugs.ruby-lang.org/issues/16131
81
[Feature #16260]: https://bugs.ruby-lang.org/issues/16260
82 83
[Feature #16274]: https://bugs.ruby-lang.org/issues/16274
[Feature #16377]: https://bugs.ruby-lang.org/issues/16377
84
[Feature #16555]: https://bugs.ruby-lang.org/issues/16555