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

75303 Коммитов

Автор SHA1 Сообщение Дата
Kazuhiro NISHIYAMA 65ce6795fe
Sort by URL [ci skip] 2022-12-19 14:39:02 +09:00
Hiroshi SHIBATA 9a48459393
Added notable changes for the default gems 2022-12-19 14:22:18 +09:00
Nobuyoshi Nakada c41a7012ca
Use pthread API if the target platform doesn't support TLS attribute 2022-12-19 14:09:30 +09:00
Takashi Kokubun 4de514da38 Revert "Mentioned https://github.com/ruby/ruby/pull/6086 to NEWS"
This reverts commit 6229c02d6b.

Nothing has been changed in RubyVM.stat on normal Ruby build. It seems
confusing to say that something has been changed there. The flag is
supposed to be enabled only by CRuby developers, and it's not efficient
enough for public consumption.
2022-12-18 21:04:10 -08:00
Nobuyoshi Nakada d64e10228d
Fix guess_diff type
`unsigned_time_t` has the same size as `time_t`, but it doesn't mean
these types are same except for signedness.  For instance, while
`long` and `long long` has the same size and `time_t` is defined as
the latter on 64bit OpenBSD, `unsigned_time_t` has been defined as
`long`.
2022-12-19 13:14:46 +09:00
Hiroshi SHIBATA df4820e749
Added some changes that are only exists on GitHub to NEWS 2022-12-19 12:10:02 +09:00
Hiroshi SHIBATA 40ec3762d2
Mentioned https://github.com/ruby/date/pull/80 2022-12-19 11:45:23 +09:00
Hiroshi SHIBATA 289d99cc62
Merge Time class sections on NEWS 2022-12-19 11:43:56 +09:00
Hiroshi SHIBATA 6229c02d6b
Mentioned https://github.com/ruby/ruby/pull/6086 to NEWS 2022-12-19 11:38:25 +09:00
Hiroshi SHIBATA 63a9b72c17
Removed empty section 2022-12-19 11:34:17 +09:00
卜部昌平 34d43ed9f5 typo in doc [ci skip] 2022-12-19 11:20:55 +09:00
卜部昌平 47a6e7b518 Note about Regexp.linera_time? [ci skip] 2022-12-19 11:05:55 +09:00
git e123695fbc Update default gems list at 08d21b4bd2 [ci skip] 2022-12-19 01:51:11 +00:00
Hiroshi SHIBATA 08d21b4bd2
[ruby/net-http] Bump version to 0.3.2
https://github.com/ruby/net-http/commit/b8bdb7248e
2022-12-19 10:50:21 +09:00
Hiroshi SHIBATA 1998d97908
[ruby/date] Bump version to 3.3.3
https://github.com/ruby/date/commit/ea3644a7c4
2022-12-19 10:50:21 +09:00
Samuel Williams 6073782627
Disable SEH workaround on __MINGW64__ only. (#6957) 2022-12-19 13:45:50 +13:00
Alyssa Ross d4315284e9 [rubygems/rubygems] Add bundle lock --update --bundler
bundle lock --update can do everything that bundle update can do, but
it doesn't actually install gems. This is especially useful for
generating a lockfile on a machine that doesn't have the libraries
available to be able to build native extensions.

But, there was no parallel for bundle update --bundler. So let's add
one.

https://github.com/rubygems/rubygems/commit/7fc00bd2a5
2022-12-18 19:17:42 +00:00
BurdetteLamar ede7c035d5 [ruby/net-http] Adding links to references
https://github.com/ruby/net-http/commit/6dfe6f411a
2022-12-18 15:37:45 +00:00
Nobuyoshi Nakada 7e93f7ceb7
Suppress cross tool warning for pkg-config [ci skip]
It is used from mkmf.rb on target environments.
2022-12-18 14:24:14 +09:00
Mike Dalessio e7bffe0c4b configure.ac: add miniruby to PREP when cross-compiling to darwin
miniruby is used to resolve symbols in ext bundles

https://bugs.ruby-lang.org/issues/19239

Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
2022-12-18 11:56:53 +08:00
Nobuyoshi Nakada c316a5f2f1 [ruby/date] Adjust format [ci skip]
https://github.com/ruby/date/commit/71c35b4054
2022-12-18 03:03:54 +00:00
Nobuyoshi Nakada b8cc0992c6 [ruby/date] Extract `head_match_p` and abbreviated name length constants
https://github.com/ruby/date/commit/3f666fa882
2022-12-18 02:58:51 +00:00
Nobuyoshi Nakada df49bf8150 [ruby/date] Consider the length of string to parse
https://github.com/ruby/date/commit/3bfed83ce7
2022-12-18 02:58:50 +00:00
Nobuyoshi Nakada 49dc424ff3 [ruby/date] Remove `extz_pats` table
https://github.com/ruby/date/commit/945e26e243
2022-12-18 02:58:49 +00:00
Nobuyoshi Nakada 70c905963e [ruby/date] Remove `merid_names` table
https://github.com/ruby/date/commit/7fe2bd5f94
2022-12-18 02:58:48 +00:00
Nobuyoshi Nakada 6efeaabef0 [ruby/date] Match abbreviated day and month names with head of full names
https://github.com/ruby/date/commit/a45f8f03c9
2022-12-18 02:58:47 +00:00
John Hawthorn ea3d3c4552 Use FL_TEST_RAW in rb_hash_default_value
We should always have a T_HASH here, so we can use FL_TEST_RAW to avoid
checking whether we may have an immediate value.

I expect this to be a very small performance improvement (perf stat
./miniruby benchmark/hash_aref_miss.rb shows a ~1% improvement). It also
removes 9 instructions from rb_hash_default_value on x86_64.
2022-12-17 14:51:49 -08:00
John Hawthorn fbaa5db44a Use a BOP for Hash#default
On a hash miss we need to call default if it is redefined in order to
return the default value to be used. Previously we checked this with
rb_method_basic_definition_p, which avoids the method call but requires
a method lookup.

This commit replaces the previous check with BASIC_OP_UNREDEFINED_P and
a new BOP_DEFAULT. We still need to fall back to
rb_method_basic_definition_p when called on a subclasss of hash.

    |                |compare-ruby|built-ruby|
    |:---------------|-----------:|---------:|
    |hash_aref_miss  |       2.692|     3.531|
    |                |           -|     1.31x|

Co-authored-by: Daniel Colson <danieljamescolson@gmail.com>
Co-authored-by: "Ian C. Anderson" <ian@iancanderson.com>
Co-authored-by: Jack McCracken <me@jackmc.xyz>
2022-12-17 14:51:49 -08:00
Mau Magnaguagno 632beec01f
MJIT: Refactor BitField dereference byte and bitmask (#6955)
Prefer Array#unpack1 and Enumerable#sum.
I think the bitmask formula ``2 ** @width - 1`` would be clearer, but not faster for such small integers.
2022-12-17 13:06:50 -08:00
Peter Zhu 6e3bc67103 Hard crash when allocating in GC when RUBY_DEBUG
Not all builds have RGENGC_CHECK_MODE set, so it should also crash when
RUBY_DEBUG is set.
2022-12-17 09:18:54 -05:00
Peter Zhu 965f4259db Move check for GC to xmalloc and xcalloc
Moves the check earlier to before we actually perform the allocation.
2022-12-17 09:16:26 -05:00
Samuel Williams 9da5a7e79d
Add tests for `Queue#pop` with fiber scheduler. (#6953) 2022-12-17 20:43:21 +13:00
Jemma Issroff 297df92407 Clean up Ruby Shape API
Make printing shapes better, use a struct instead of specific methods
for each field on a shape.

Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
2022-12-16 13:27:45 -05:00
Peter Zhu 2ccf6e5394 Don't allow allocating memory during GC
Allocating memory (xmalloc and xrealloc) during GC could cause GC to
trigger, which would crash with `[BUG] during_gc != 0`. This is an
intermittent bug which could be hard to debug.

This commit changes it so that any memory allocation during GC will
emit a warning. When debug flags are enabled it will also cause a crash.
2022-12-16 10:01:53 -05:00
Nobuyoshi Nakada 3d2eb7c9a6 [Feature #18033] [DOC] Add NEWS 2022-12-16 22:52:59 +09:00
Nobuyoshi Nakada 3e49d62bc1 [Feature #18033] Parse more strictly conformant with ISO-8601
* 4-digits or more is required as year
* Minutes and seconds parts are not ommittable
2022-12-16 22:52:59 +09:00
Nobuyoshi Nakada 635fc5f7fc [Feature #18033] Make more conformant with C standard 2022-12-16 22:52:59 +09:00
Nobuyoshi Nakada 9515179d74 [Feature #18033] Add `precision:` option
Which limits the precision of subsecond. Defaulted to 9, that
means nanosecond.
2022-12-16 22:52:59 +09:00
Nobuyoshi Nakada 67c589afa0 [Feature #18033] More strict checks 2022-12-16 22:52:59 +09:00
Nobuyoshi Nakada 0a2f300a8a [Feature #18033] Name a magic number 2022-12-16 22:52:59 +09:00
Nobuyoshi Nakada 8c272f4481 [Feature #18033] Make Time.new parse time strings
`Time.new` now parses strings such as the result of `Time#inspect`
and restricted ISO-8601 formats.
2022-12-16 22:52:59 +09:00
Yusuke Endoh ee7a338d2b Unconditionally warn "unknown pack/unpack directive"
[Bug #19150]
2022-12-16 12:15:50 +01:00
Yusuke Endoh b9ea83fc1c Update NEWS.md
Regexp optimization and Wasm support are added.
2022-12-16 02:21:50 +09:00
Hiroshi SHIBATA f2690be746
Removed temporary workaround for syntax_suggest tags 2022-12-16 15:48:00 +09:00
git 850661dd6d Update default gems list at 11f3bef260 [ci skip] 2022-12-16 06:36:43 +00:00
Hiroshi SHIBATA 11f3bef260 [ruby/date] Bump version to 3.3.2
https://github.com/ruby/date/commit/7afd9d4615
2022-12-16 06:36:03 +00:00
git 5983df93d4 Update default gems list at 2cd22f9abd [ci skip] 2022-12-16 06:35:45 +00:00
Hiroshi SHIBATA 2cd22f9abd [ruby/logger] Bump version to 1.5.3
https://github.com/ruby/logger/commit/4e8d9e27fd
2022-12-16 06:34:47 +00:00
Hiroshi SHIBATA 5e5f3f6bd1
Followed up ad18d1297e with tool/update-deps --fix 2022-12-16 13:59:04 +09:00
Akinori MUSHA ad18d1297e Reject keyword arguments given to Enumerator::Product.new
The use of keyword arguments should be reserved for future extension.
2022-12-16 13:32:13 +09:00