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

1039 Коммитов

Автор SHA1 Сообщение Дата
git faad2bc6e1 Update default gems list at c90b5303a2 [ci skip] 2024-06-07 19:55:15 +00:00
git 07a8d02c0c Update bundled gems list as of 2024-06-01 2024-06-02 06:59:30 +00:00
Tanaka Akira 767aa0cdb6 move `Tempfile.create(anonymous: true)` entry. 2024-06-01 18:14:29 +09:00
Tanaka Akira 1eb651fb50 described about `Tempfile.create(anonymous: true)`. 2024-06-01 15:18:31 +09:00
Jeremy Evans 89486c79bb
Make error messages clear blocks/keywords are disallowed in index assignment
Blocks and keywords are allowed in regular index.

Also update NEWS to make this more clear.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-05-31 08:22:40 -07:00
git bc8a9cc156 Update default gems list at b0e6446b9f [ci skip] 2024-05-29 14:46:42 +00:00
Étienne Barrié 1376881e9a Stop marking chilled strings as frozen
They were initially made frozen to avoid false positives for cases such
as:

    str = str.dup if str.frozen?

But this may cause bugs and is generally confusing for users.

[Feature #20205]

Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
2024-05-28 07:32:33 +02:00
Sampat Badhe e49d68bf27 correct typo [ci skip] 2024-05-24 17:00:15 +09:00
git aad09104b7 Update default gems list at 2cc047df9a [ci skip] 2024-05-23 01:18:20 +00:00
git 5613d6e95b Update bundled gems list as of 2024-05-22 2024-05-22 06:59:19 +00:00
git 8248268434 Update bundled gems list at 7f0e26b7f9 [ci skip] 2024-05-20 09:10:55 +00:00
git 8acec5b6e8 Update bundled gems list at 10d02e71d1 [ci skip] 2024-05-17 08:40:30 +00:00
git 44f50f4179 Update default gems list at 4a1e4436a9 [ci skip] 2024-05-14 08:19:43 +00:00
git 3ec5a9325f Update default gems list at afdfff933f [ci skip] 2024-05-10 17:10:55 +00:00
git 8b3280bebd Update default gems list at fba7bdb710 [ci skip] 2024-05-09 09:53:28 +00:00
git 6bff0707e8 Update bundled gems list as of 2024-05-08 2024-05-09 06:59:48 +00:00
git ad9c89fab8 Update default gems list at 548a72e537 [ci skip] 2024-05-08 14:22:18 +00:00
git e1e6b4972f Update bundled gems list as of 2024-05-07 2024-05-07 06:59:36 +00:00
git 5398a46889 Update default gems list at 93cffcf961 [ci skip] 2024-05-05 11:12:41 +00:00
git 0968b462b6 Update default gems list at 008f2b9b6a [ci skip] 2024-05-02 16:29:17 +00:00
git c8bec79216 Update default gems list at fef6f5f2e1 [ci skip] 2024-05-01 15:20:48 +00:00
git 90db9c87a3 Update default gems list at dbb1ba88eb [ci skip] 2024-04-29 13:36:59 +00:00
git 392b811baf Update default gems list at 3872e54039 [ci skip] 2024-04-26 21:01:55 +00:00
git 729e08cb18 Update default gems list at 981a8e89a3 [ci skip] 2024-04-23 15:29:13 +00:00
git 2f8128986a Update default gems list at a51139230b [ci skip] 2024-04-18 18:37:53 +00:00
Kazuhiro NISHIYAMA 9e0c6311e1
Update refs [ci skip] 2024-04-18 08:10:34 +09:00
Jean Boussier d31eda8eb6 Add NEWS entry for [[Feature #20429]]
Followup: https://github.com/ruby/ruby/pull/10532
2024-04-17 10:07:57 +02:00
git e8f3ea3f87 Update default gems list at 8e341d81c9 [ci skip] 2024-04-16 12:44:04 +00:00
Kouhei Yanagita 4fcf007e85 [DOC] Update NEWS.md [Misc #18984] 2024-04-16 11:01:16 +09:00
git b6a10a1518 Update default gems list at fc363944b4 [ci skip] 2024-04-15 05:07:51 +00:00
Koichi Sasada 9180e33ca3 show warning for unused block
With verbopse mode (-w), the interpreter shows a warning if
a block is passed to a method which does not use the given block.

Warning on:

* the invoked method is written in C
* the invoked method is not `initialize`
* not invoked with `super`
* the first time on the call-site with the invoked method
  (`obj.foo{}` will be warned once if `foo` is same method)

[Feature #15554]

`Primitive.attr! :use_block` is introduced to declare that primitive
functions (written in C) will use passed block.

For minitest, test needs some tweak, so use
ea9caafc07
for `test-bundled-gems`.
2024-04-15 12:08:07 +09:00
Vivek Gupta e9fd34750f
[DOC] Typo fix in NEWS.md
Fix https://github.com/ruby/ruby/pull/10366
2024-04-11 12:16:47 +09:00
git 88355da673 Update default gems list at 6846b98576 [ci skip] 2024-04-09 13:48:19 +00:00
git c6c75f3399 Update default gems list at f2ac26d914 [ci skip] 2024-04-05 21:44:54 +00:00
Peter Zhu dbe8886f4d Remove deprecated function rb_gc_force_recycle
This function has been deprecated since Ruby 3.1, so we should remove it
for Ruby 3.4.
2024-04-05 11:39:54 -04:00
git b60bf35cc7 Update bundled gems list as of 2024-04-05 2024-04-05 06:59:50 +00:00
git bdfbeb90c9 Update default gems list at ab65148c78 [ci skip] 2024-04-04 03:48:12 +00:00
git 457a30df85 Update bundled gems list at a65d49ce77 [ci skip] 2024-04-02 02:22:51 +00:00
git a6d8837d2b Update bundled gems list as of 2024-03-29 2024-03-30 06:58:50 +00:00
git 6498c43995 Update bundled gems list as of 2024-03-26 2024-03-27 06:59:42 +00:00
git 9b921f6622 Update default gems list at daf1d7bfef [ci skip] 2024-03-25 12:14:37 +00:00
git a15b2443a5 Update bundled gems list as of 2024-03-22 2024-03-23 06:59:22 +00:00
Kazuhiro NISHIYAMA 35fe4b0480
Sort links [ci skip] 2024-03-22 10:09:14 +09:00
Peter Zhu 75d9019e6f [DOC] Fix link in NEWS.md 2024-03-21 14:14:25 -04:00
Peter Zhu 0546764c30 [DOC] Add link in NEWS.md 2024-03-21 14:12:55 -04:00
git 92f72221f1 Update default gems list at c5ac18bbf4 [ci skip] 2024-03-21 04:39:19 +00:00
git f5dc9c98e5 Update default gems list at ee1ad009f3 [ci skip] 2024-03-21 04:05:48 +00:00
git 5c2937733c Update default gems list at d7bc6f0eff [ci skip] 2024-03-19 14:18:56 +00:00
Étienne Barrié 12be40ae6b Implement chilled strings
[Feature #20205]

As a path toward enabling frozen string literals by default in the future,
this commit introduce "chilled strings". From a user perspective chilled
strings pretend to be frozen, but on the first attempt to mutate them,
they lose their frozen status and emit a warning rather than to raise a
`FrozenError`.

Implementation wise, `rb_compile_option_struct.frozen_string_literal` is
no longer a boolean but a tri-state of `enabled/disabled/unset`.

When code is compiled with frozen string literals neither explictly enabled
or disabled, string literals are compiled with a new `putchilledstring`
instruction. This instruction is identical to `putstring` except it marks
the String with the `STR_CHILLED (FL_USER3)` and `FL_FREEZE` flags.

Chilled strings have the `FL_FREEZE` flag as to minimize the need to check
for chilled strings across the codebase, and to improve compatibility with
C extensions.

Notes:
  - `String#freeze`: clears the chilled flag.
  - `String#-@`: acts as if the string was mutable.
  - `String#+@`: acts as if the string was mutable.
  - `String#clone`: copies the chilled flag.

Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
2024-03-19 09:26:49 +01:00
git 6c18b2474d Update default gems list at 0985e58790 [ci skip] 2024-03-19 02:17:51 +00:00