- 03 9月, 2020 8 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 John Hawthorn 提交于
Previously, when an object is first initialized, ROBJECT_EMBED isn't set. This means that for brand new objects, ROBJECT_NUMIV(obj) is 0 and ROBJECT_IV_INDEX_TBL(obj) is NULL. Previously, this combination meant that the inline cache would never be initialized when setting an ivar on an object for the first time since iv_index_tbl was NULL, and if it were it would never be used because ROBJECT_NUMIV was 0. Both cases always fell through to the generic rb_ivar_set which would then set the ROBJECT_EMBED flag and initialize the ivar array. This commit changes rb_class_allocate_instance to set the ROBJECT_EMBED flag on the object initially and to initialize all members of the embedded array to Qundef. This allows the inline cache to be set correctly on first use and to be used on future uses. This moves rb_class_allocate_instance to gc.c, so that it has access to newobj_of. This seems appropriate given that there are other allocating methods in this file (ex. rb_data_object_wrap, rb_imemo_new).
-
由 eileencodes 提交于
PR https://github.com/ruby/ruby/pull/3418 added a category to `rb_warn_deprecated_to_remove` but not to `rb_warn_deprecated`. This adds the same code to `rb_warn_deprecated` so that those warnings also get a category. This change also adds tests for `rb_warn_deprecated` and updates the tests for `rb_warn_deprecated_to_remove` to have clearer names. I've fixed the call to `rb_method_entry` as we need to be using the instance method, not singleton. Feature: https://bugs.ruby-lang.org/issues/17122
-
由 Burdette Lamar 提交于
Methods: any? all? one? none? sum shuffle! shuffle sample
-
由 Jeremy Evans 提交于
Fixes [Bug #17139]
-
由 git 提交于
-
由 Jeremy Evans 提交于
This method is explicitly documented to not access the filesystem, and the only way to get the correct behavior for a case where the filesystem's case sensitivity differs from the operating system default would be to access the filesystem. Fixes [Bug #15417]
-
- 02 9月, 2020 14 次提交
-
-
由 Nobuyoshi Nakada 提交于
-
由 Nobuyoshi Nakada 提交于
-
由 Marc-Andre Lafortune 提交于
Fixes [Bug #14895]
-
由 Peter Zhu 提交于
This error is about wb unprotected objects, not old objects.
-
由 Alan Wu 提交于
This makes the binary 272 bytes smaller on -O3 GCC 10.2.0.
-
由 Marc-Andre Lafortune 提交于
Reverted in e080a4cd
-
由 eileencodes 提交于
This change adds a `category` kwarg to make it easier to monkey patch `Warning.warn`. Warnings already have a category, but that warning isn't exposed. This implements a way to get the category so that warnings with a specific category, like deprecated, can be treated differently than other warnings in an application. The change here does an arity check on the method to support backwards compatibility for applications that may already have a warning monkey patch. For our usecase we want to `raise` for deprecation warnings in order to get the behavior for the next Ruby version. For example, now that we fixed all our warnings and deployed Ruby 2.7 to production, we want to be able to have deprecation warnings behave like they would in 3.0: raise an error. For other warnings, like uninialized constants, that behavior won't be removed from Ruby in the next version, so we don't need to raise errors. Co-authored-by: NAaron Patterson <tenderlove@ruby-lang.org>
-
由 Jeremy Evans 提交于
-
由 Jeremy Evans 提交于
This reverts commit 8900a255.
-
由 Jeremy Evans 提交于
This reverts commit 05bf811c.
-
由 Burdette Lamar 提交于
Methods considered: count flatten! flatten cycle permutation combination repeated_permutation repeated_combination product take take_while drop drop_while
-
由 git 提交于
-
由 Nobuyoshi Nakada 提交于
-
由 Nobuyoshi Nakada 提交于
-
- 01 9月, 2020 15 次提交
-
-
由 Jeremy Evans 提交于
The previous attempt to fix this in b87df1bf reversed the argument order instead of just fixing the quote escaping. From Takahiro Kambe. Fixes [Bug #15178]
-
由 David Rodríguez 提交于
`rm_rf` does not support globbing, so not all files get deleted.
-
由 Nobuyoshi Nakada 提交于
-
由 Peter Zhu 提交于
Ruby strings don't always have a null terminator, so we can't use it as a regular C string. By reading only the first len bytes of the Ruby string, we won't read past the end of the Ruby string.
-
由 Koichi Sasada 提交于
RUBY_DEBUG=ci envval shows more information on rb_bug().
-
由 Nobuyoshi Nakada 提交于
winflexbison3 v2.5.23.20200829 seems to install nothing.
-
由 Hiroshi SHIBATA 提交于
-
由 Hiroshi SHIBATA 提交于
-
由 Hiroshi SHIBATA 提交于
-
由 Hiroshi SHIBATA 提交于
86737c50 3e1aea46
-
由 卜部昌平 提交于
Requested by Naruse.
-
由 Burdette Lamar 提交于
Methods considered: & intersection | union max min minmax uniq! uniq compact! compact
-
由 Burdette Lamar 提交于
Methods: + concat * assoc rassoc == eql? hash include? <=> - difference
-
由 git 提交于
-
由 Burdette Lamar 提交于
Methods considered: delete_at slice! reject! reject delete_if zip transpose replace clear fill
-
- 31 8月, 2020 3 次提交
-
-
由 Nobuyoshi Nakada 提交于
[Feature #15547] [Fix GH-2071]
-
-
由 Nobuyoshi Nakada 提交于
`$KCODE` has been deprecated and not effective since years ago. https://github.com/ruby/strscan/commit/7c4dbd4cb3
-