Граф коммитов

398 Коммитов

Автор SHA1 Сообщение Дата
Tim Smith 810b9c344a Resolve several markedown warnings
- Spaces before and after blocks.
- Single spaces after sentences everywhere

Signed-off-by: Tim Smith <tsmith@mondoo.com>
2022-04-19 08:32:37 +09:00
git 566fb7fa7d Update default gems list at 2aca566a10 [ci skip] 2022-04-15 21:35:19 +00:00
git 1f3448f524 Update bundled gems list at 8197ae35f9 [ci skip] 2022-04-06 14:57:47 +00:00
Benoit Daloze 573005983a Give some tips on how to find the missing ruby2_keywords 2022-04-05 11:54:57 +02:00
Benoit Daloze d3f659d3f9 Add NEWS entry for Bug #18625 to help adding ruby2_keywords in the missing places 2022-04-05 11:42:02 +02:00
git dcc3c2858f Update bundled gems list at e73d76027e [ci skip] 2022-04-02 10:29:56 +00:00
git 7dfea79ebf Update bundled gems list at b3a05827c7 [ci skip] 2022-04-01 05:44:35 +00:00
git f24abc0bb2 Update default gems list at 06f94d1784 [ci skip] 2022-04-01 04:57:20 +00:00
git f380a25520 Update default gems list at 8a38419b73 [ci skip] 2022-03-31 15:23:12 +00:00
Jeremy Evans 79b59fee16 Update NEWS for proc autosplat change 2022-03-30 11:39:27 -07:00
Jeremy Evans 5d43969e92 Update NEWS for TracePoint#enable target_thread default change 2022-03-29 18:33:16 -07:00
Nobuyoshi Nakada 282baa6943
[DOC] Move the entry for [Feature #18571] 2022-03-28 15:03:41 +09:00
Kazuhiro NISHIYAMA 4e580bd67a
Fix a link [ci skip] 2022-03-28 10:59:35 +09:00
Hiroshi SHIBATA c3555e3da4
Added entry of Psych changes for #18571 2022-03-28 10:43:10 +09:00
Jeremy Evans f79765abe8 Update NEWS for {Kernel,TracePoint}#binding change 2022-03-25 14:33:24 -07:00
git 04591e1be7 Update default gems list at 4c4a1e2035 [ci skip] 2022-03-24 12:39:01 +00:00
Kazuhiro NISHIYAMA bbd29fe0b6
Fix a link [ci skip] 2022-03-22 09:49:32 +09:00
Shugo Maeda 2fdfd499db
Add a NEWS entry about [Feature #18598] [ci skip] 2022-03-18 11:53:36 +09:00
Jeremy Evans b6804d62f8 Make Proc#parameters support lambda keyword for returning parameters as if lambda
This makes it easier to use Proc#parameters to build wrappers.

Implements [Feature #15357]
2022-03-17 11:52:02 -07:00
git df6f2b645f Update default gems list at fadc7a150c [ci skip] 2022-03-17 08:29:21 +00:00
Kazuhiro NISHIYAMA 9d6cc7e4c0
Fix a link [ci skip] 2022-03-14 07:52:40 +09:00
Martin Dürst 2672502457 mention Unicode Version 14.0.0 2022-03-13 09:19:52 +09:00
git 7f5440756e Update default gems list at bd18623307 [ci skip] 2022-03-10 13:59:25 +00:00
git ff7eb85125 Update default gems list at 9c531ca524 [ci skip] 2022-03-07 11:09:43 +00:00
git c1790f8c11 Update default gems list at 7f7db124ee [ci skip] 2022-03-03 08:56:31 +00:00
git bec492c77e Update default gems list at eb40ff73bf [ci skip] 2022-02-28 11:10:22 +00:00
git 43cc4f66c2 Update bundled gems list at 2022-02-23 2022-02-23 07:00:29 +00:00
Kazuhiro NISHIYAMA 1f3fe3801b
Fix links [ci skip] 2022-02-21 00:44:19 +09:00
Shugo Maeda c8817d6a3e
Add String#byteindex, String#byterindex, and MatchData#byteoffset (#5518)
* Add String#byteindex, String#byterindex, and MatchData#byteoffset [Feature #13110]

Co-authored-by: NARUSE, Yui <naruse@airemix.jp>
2022-02-19 19:10:00 +09:00
Kazuki Tsujimoto db6b23c76c
Find pattern is no longer experimental [Feature #18585] 2022-02-19 18:45:49 +09:00
Akinori MUSHA ac32b7023a Mention Set as a new builtin class to NEWS 2022-02-18 11:56:24 +09:00
git 66b9ca8426 Update default gems list at f07a2613e3 [ci skip] 2022-02-10 08:19:42 +00:00
git ea6b6f1ad3 Update bundled gems list at d4a8c04dc7 [ci skip] 2022-02-02 04:26:22 +00:00
git 804dca7b0c Update default gems list at fc4fbeef28 [ci skip] 2022-02-01 04:22:40 +00:00
Koichi ITO f924e05b68
[DOC] Fix a typo in the NEWS.md
Follow up of https://github.com/ruby/ruby/commit/fbb3cab.
2022-01-31 07:38:10 +09:00
Takashi Kokubun fbb3cab956
Add a NEWS entry about [Feature #16806] 2022-01-29 00:32:38 -08:00
Nobuyoshi Nakada e3b5cc8836
NEWS: `Fixnum` and `Bignum` are removed finally [Feature #12005] 2022-01-25 23:10:20 +09:00
git c6a19b77a2 Update default gems list at 328e6bf3b3 [ci skip] 2022-01-24 01:57:23 +00:00
Kazuhiro NISHIYAMA 54568c949b
Fix a link [ci skip] 2022-01-18 22:57:21 +09:00
Takashi Kokubun c0d18a1aa2
[ruby/erb] Revert "Remove safe_level and further positional arguments (https://github.com/ruby/erb/pull/7)"
This reverts commit 5133efa06f.

While we already handled this deprecation in many libraries, we noticed
that some (e.g. sprockets) relied on the format of `ERB.version` and
2b4182eb10 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.
2022-01-17 12:39:17 -08:00
Takashi Kokubun 728304093c
Update NEWS.md about ERB.new 2022-01-15 13:53:57 -08:00
Jeremy Evans a93cc3e23b Make Hash#shift return nil for empty hash
Fixes [Bug #16908]
2022-01-14 12:17:57 -08:00
Jeremy Evans ca3d405242 Fix constant assignment evaluation order
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]
2022-01-14 11:00:26 -08:00
Jean Boussier 8d05047d72 Add a Module#const_added callback
[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)
```
2022-01-14 11:30:07 +01:00
Koichi Sasada 9de380860d add a NEWS entry of `Proc#dup`. 2022-01-13 17:45:25 +09:00
Kazuhiro NISHIYAMA 533bc77170
Fix typo [ci skip] 2022-01-07 09:44:33 +09:00
manga_osyo 1bfccba775 Add bugs.ruby links. 2022-01-07 01:13:04 +09:00
git 2db7952e59 Update bundled gems list at 2022-01-06 2022-01-06 07:02:37 +00:00
Nobuyoshi Nakada 3e417a554b
NEWS: "taintedness" and "trustedness" methods are removed 2022-01-06 11:32:27 +09:00
Nobuyoshi Nakada ac0d27eb58
NEWS: Separate removed constants section 2022-01-06 11:20:55 +09:00