aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS.md
Commit message (Collapse)AuthorAgeFilesLines
* Update NEWS for TracePoint#enable target_thread default changeJeremy Evans2022-03-291-0/+4
|
* [DOC] Move the entry for [Feature #18571]Nobuyoshi Nakada2022-03-281-3/+5
|
* Fix a link [ci skip]Kazuhiro NISHIYAMA2022-03-281-0/+1
|
* Added entry of Psych changes for #18571Hiroshi SHIBATA2022-03-281-1/+3
|
* Update NEWS for {Kernel,TracePoint}#binding changeJeremy Evans2022-03-251-0/+9
|
* Update default gems list at 4c4a1e2035e08a627e71efd41d6654 [ci skip]git2022-03-241-1/+1
|
* Fix a link [ci skip]Kazuhiro NISHIYAMA2022-03-221-0/+1
|
* Add a NEWS entry about [Feature #18598] [ci skip]Shugo Maeda2022-03-181-0/+1
|
* Make Proc#parameters support lambda keyword for returning parameters as if ↵Jeremy Evans2022-03-171-0/+2
| | | | | | | | lambda This makes it easier to use Proc#parameters to build wrappers. Implements [Feature #15357]
* Update default gems list at fadc7a150c90ad44dee90985b19e79 [ci skip]git2022-03-171-0/+1
|
* Fix a link [ci skip]Kazuhiro NISHIYAMA2022-03-141-0/+1
|
* mention Unicode Version 14.0.0Martin Dürst2022-03-131-0/+2
|
* Update default gems list at bd1862330756b177ba189597b9de10 [ci skip]git2022-03-101-1/+1
|
* Update default gems list at 9c531ca524506f9de7bc4643fd6d89 [ci skip]git2022-03-071-0/+1
|
* Update default gems list at 7f7db124ee6a72ec178d4045387062 [ci skip]git2022-03-031-0/+1
|
* Update default gems list at eb40ff73bfc8afae1d87e214f31564 [ci skip]git2022-02-281-0/+1
|
* Update bundled gems list at 2022-02-23git2022-02-231-1/+1
|
* Fix links [ci skip]Kazuhiro NISHIYAMA2022-02-211-0/+1
|
* Add String#byteindex, String#byterindex, and MatchData#byteoffset (#5518)Shugo Maeda2022-02-191-0/+6
| | | | | | * Add String#byteindex, String#byterindex, and MatchData#byteoffset [Feature #13110] Co-authored-by: NARUSE, Yui <naruse@airemix.jp>
* Find pattern is no longer experimental [Feature #18585]Kazuki Tsujimoto2022-02-191-0/+4
|
* Mention Set as a new builtin class to NEWSAkinori MUSHA2022-02-181-0/+5
|
* Update default gems list at f07a2613e3f14ab713bc5ab8854110 [ci skip]git2022-02-101-0/+1
|
* Update bundled gems list at d4a8c04dc7bb1c9aa48eaf50dc6b18 [ci skip]git2022-02-021-0/+1
|
* Update default gems list at fc4fbeef28b1d243e45d7fc8d60778 [ci skip]git2022-02-011-0/+1
|
* [DOC] Fix a typo in the NEWS.mdKoichi ITO2022-01-311-1/+1
| | | Follow up of https://github.com/ruby/ruby/commit/fbb3cab.
* Add a NEWS entry about [Feature #16806]Takashi Kokubun2022-01-291-0/+5
|
* NEWS: `Fixnum` and `Bignum` are removed finally [Feature #12005]Nobuyoshi Nakada2022-01-251-0/+2
|
* Update default gems list at 328e6bf3b3a167529e5c64a281e773 [ci skip]git2022-01-241-0/+1
|
* Fix a link [ci skip]Kazuhiro NISHIYAMA2022-01-181-0/+1
|
* [ruby/erb] Revert "Remove safe_level and further positional arguments ↵Takashi Kokubun2022-01-171-5/+0
| | | | | | | | | | | | | | (https://github.com/ruby/erb/pull/7)" This reverts commit https://github.com/ruby/erb/commit/5133efa06f0603ae79292f3b2b942957bc8a442e. While we already handled this deprecation in many libraries, we noticed that some (e.g. sprockets) relied on the format of `ERB.version` and https://github.com/ruby/erb/commit/2b4182eb108b9e42fa30bcfa41931896132f88b8 broke such handling. Given that the `ERB.version` change was released at 3.1 and it's obviously new, I'll skip this removal in 3.2 and postpone this to a future version.
* Update NEWS.md about ERB.newTakashi Kokubun2022-01-151-0/+5
|
* Make Hash#shift return nil for empty hashJeremy Evans2022-01-141-0/+6
| | | | Fixes [Bug #16908]
* Fix constant assignment evaluation orderJeremy Evans2022-01-141-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the right hand side was always evaluated before the left hand side for constant assignments. For the following: ```ruby lhs::C = rhs ``` rhs was evaluated before lhs, which is inconsistant with attribute assignment (lhs.m = rhs), and apparently also does not conform to JIS 3017:2013 11.4.2.2.3. Fix this by changing evaluation order. Previously, the above compiled to: ``` 0000 putself ( 1)[Li] 0001 opt_send_without_block <calldata!mid:rhs, argc:0, FCALL|VCALL|ARGS_SIMPLE> 0003 dup 0004 putself 0005 opt_send_without_block <calldata!mid:lhs, argc:0, FCALL|VCALL|ARGS_SIMPLE> 0007 setconstant :C 0009 leave ``` After this change: ``` 0000 putself ( 1)[Li] 0001 opt_send_without_block <calldata!mid:lhs, argc:0, FCALL|VCALL|ARGS_SIMPLE> 0003 putself 0004 opt_send_without_block <calldata!mid:rhs, argc:0, FCALL|VCALL|ARGS_SIMPLE> 0006 swap 0007 topn 1 0009 swap 0010 setconstant :C 0012 leave ``` Note that if expr is not a module/class, then a TypeError is not raised until after the evaluation of rhs. This is because that error is raised by setconstant. If we wanted to raise TypeError before evaluation of rhs, we would have to add a VM instruction for calling vm_check_if_namespace. Changing assignment order for single assignments caused problems in the multiple assignment code, revealing that the issue also affected multiple assignment. Fix the multiple assignment code so left-to-right evaluation also works for constant assignments. Do some refactoring of the multiple assignment code to reduce duplication after adding support for constants. Rename struct masgn_attrasgn to masgn_lhs_node, since it now handles both constants and attributes. Add add_masgn_lhs_node static function for adding data for lhs attribute and constant setting. Fixes [Bug #15928]
* Add a Module#const_added callbackJean Boussier2022-01-141-0/+1
| | | | | | | | | | | | [Feature #17881] Works similarly to `method_added` but for constants. ```ruby Foo::BAR = 42 # call Foo.const_added(:FOO) class Foo::Baz; end # call Foo.const_added(:Baz) Foo.autoload(:Something, "path") # call Foo.const_added(:Something) ```
* add a NEWS entry of `Proc#dup`.Koichi Sasada2022-01-131-0/+4
|
* Fix typo [ci skip]Kazuhiro NISHIYAMA2022-01-071-1/+1
|
* Add bugs.ruby links.manga_osyo2022-01-071-0/+2
|
* Update bundled gems list at 2022-01-06git2022-01-061-0/+1
|
* NEWS: "taintedness" and "trustedness" methods are removedNobuyoshi Nakada2022-01-061-1/+6
|
* NEWS: Separate removed constants sectionNobuyoshi Nakada2022-01-061-1/+3
|
* NEWS: Links to the tickets to remove deprecated featuresNobuyoshi Nakada2022-01-051-3/+5
|
* NEWS: Removal of `Kernel#=~` [Feature #15231]Nobuyoshi Nakada2022-01-051-0/+2
|
* Add Module#refinements and Refinement#refined_class [Feature #12737]Shugo Maeda2022-01-051-0/+4
|
* Add Module.used_refinementsShugo Maeda2022-01-051-0/+3
|
* Update default gems list at 6f53425825eb71d71c7fdd424801a2 [ci skip]git2022-01-021-0/+1
|
* NEWS: Removed constantsNobuyoshi Nakada2022-01-021-0/+6
|
* Update default gems list at 6d1b406dc8dea6f618ae14899dc6b7 [ci skip]git2022-01-021-0/+1
|
* NEWS: Removed methodsNobuyoshi Nakada2021-12-311-0/+7
|
* NEWS: Removed C APIsNobuyoshi Nakada2021-12-311-0/+7
|
* Add support for anonymous rest and keyword rest argument forwardingJeremy Evans2021-12-301-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for the following syntax: ```ruby def foo(*) bar(*) end def baz(**) quux(**) end ``` This is a natural addition after the introduction of anonymous block forwarding. Anonymous rest and keyword rest arguments were already supported in method parameters, this just allows them to be used as arguments to other methods. The same advantages of anonymous block forwarding apply to rest and keyword rest argument forwarding. This has some minor changes to #parameters output. Now, instead of `[:rest], [:keyrest]`, you get `[:rest, :*], [:keyrest, :**]`. These were already used for `...` forwarding, so I think it makes it more consistent to include them in other cases. If we want to use `[:rest], [:keyrest]` in both cases, that is also possible. I don't think the previous behavior of `[:rest], [:keyrest]` in the non-... case and `[:rest, :*], [:keyrest, :**]` in the ... case makes sense, but if we did want that behavior, we'll have to make more substantial changes, such as using a different ID in the ... forwarding case. Implements [Feature #18351]