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

72924 Коммитов

Автор SHA1 Сообщение Дата
Jemma Issroff 36d0c71ace
Refactored poisoning and unpoisoning freelist to simpler API 2022-07-26 09:39:31 -07:00
Peter Zhu 33f9e8f4ea Add doc/rdoc directory to .document
Adding the doc/rdoc directory to .document will allow files in that
directory to be included in the documentation.
2022-07-26 12:31:47 -04:00
git 457170e534 * 2022-07-27 [ci skip] 2022-07-27 01:04:28 +09:00
David Rodríguez 163e3f075f [rubygems/rubygems] Use main as default branch for Bundler specs
https://github.com/rubygems/rubygems/commit/482077d185
2022-07-27 01:04:11 +09:00
Peter Zhu 4325e90205 Use rb_ary_hidden_new for rb_ary_hidden_new_fill 2022-07-26 09:12:09 -04:00
Peter Zhu efb91ff19b Rename rb_ary_tmp_new to rb_ary_hidden_new
rb_ary_tmp_new suggests that the array is temporary in some way, but
that's not true, it just creates an array that's hidden and not on the
transient heap. This commit renames it to rb_ary_hidden_new.
2022-07-26 09:12:09 -04:00
Peter Zhu 3f70aa6504 Remove ary_discard
ary_discard should not be used as it should be handled by the GC. The
only user of ary_discard is rb_ary_product, which doesn't neeed to use
ary_discard.
2022-07-26 09:12:09 -04:00
Nobuyoshi Nakada 456e1d1eaa
Try the tag without "v" prefix to checkout upstream repositories 2022-07-26 21:12:58 +09:00
Nobuyoshi Nakada 2d1cf658ee
Adjust indent [ci skip] 2022-07-26 18:33:21 +09:00
Kevin Menard 9a8f6e392f Cheaply derive code range for String#b return value
The result of String#b is a string with an ASCII_8BIT/BINARY encoding. That encoding is ASCII-compatible and has no byte sequences that are invalid for the encoding. If we know the receiver's code range, we can derive the resulting string's code range without needing to perform a full code range scan.
2022-07-26 09:03:44 +02:00
Hiroshi SHIBATA 9e6d07f346 Merge rubygems/bundler HEAD
Merge from 2af2520b4a
2022-07-26 14:38:17 +09:00
Hiroshi SHIBATA b404a5f106
8fa66467de is broken with rubygems/rubygems and flori/json.
Revert "Fix sync_default_gems.rb to use absolute path"

This reverts commit 8fa66467de.
2022-07-26 13:42:37 +09:00
Ivo Anjo 649bfbe00d Fix `rb_profile_frames` output includes dummy main thread frame
The `rb_profile_frames` API did not skip the two dummy frames that
each thread has at its beginning. This was unlike `backtrace_each` and
`rb_ec_parcial_backtrace_object`, which do skip them.

This does not seem to be a problem for non-main thread frames,
because both `VM_FRAME_RUBYFRAME_P(cfp)` and
`rb_vm_frame_method_entry(cfp)` are NULL for them.

BUT, on the main thread `VM_FRAME_RUBYFRAME_P(cfp)` was true
and thus the dummy thread was still included in the output of
`rb_profile_frames`.

I've now made `rb_profile_frames` skip this extra frame (like
`backtrace_each` and friends), as well as add a test that asserts
the size and contents of `rb_profile_frames`.

Fixes [Bug #18907] (<https://bugs.ruby-lang.org/issues/18907>)
2022-07-26 10:43:44 +09:00
Burdette Lamar cc29b43c7a [ruby/rdoc] Move section Directives into section Blocks (https://github.com/ruby/rdoc/pull/901)
https://github.com/ruby/rdoc/commit/e48e07ef53
2022-07-26 06:31:36 +09:00
git d7868c79e2 * append newline at EOF. [ci skip] 2022-07-26 05:29:28 +09:00
Peter Zhu ba098fa151 Sync RDoc 2022-07-25 16:29:14 -04:00
Peter Zhu 8fa66467de Fix sync_default_gems.rb to use absolute path 2022-07-25 16:29:14 -04:00
Burdette Lamar 43c11f6c49
For rdoc, copy doc/rdoc to doc/ (#6181) 2022-07-25 14:58:41 -05:00
dependabot[bot] 382cde96fa [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.20 to 0.9.26.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.20...v0.9.26)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/fe76234cf1
2022-07-26 04:56:40 +09:00
Jemma Issroff 63330ae4ac Change ROBJECT_TRANSIENT_FLAG to use FL_USER2 2022-07-25 12:08:58 -07:00
git 17534f3eff * 2022-07-26 [ci skip] 2022-07-26 01:53:16 +09:00
dependabot[bot] fab5a0e62a [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.20 to 0.9.26.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.20...v0.9.26)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/8b1d0672a3
2022-07-26 01:53:02 +09:00
Takuya Noguchi 979368b47c [rubygems/rubygems] Bundler: add deprecation notice of viz to man
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

https://github.com/rubygems/rubygems/commit/0e1cbfa598
2022-07-25 21:37:13 +09:00
Jean Boussier 31a5586d1e rb_str_buf_append: add a fast path for ENC_CODERANGE_VALID
If the RHS has valid encoding, and both strings have the same
encoding, we can use the fast path.

However we need to update the LHS coderange.

```
compare-ruby: ruby 3.2.0dev (2022-07-21T14:46:32Z master cdbb9b8555) [arm64-darwin21]
built-ruby: ruby 3.2.0dev (2022-07-25T07:25:41Z string-concat-vali.. 11a2772bdd) [arm64-darwin21]
warming up...

|                    |compare-ruby|built-ruby|
|:-------------------|-----------:|---------:|
|binary_concat_7bit  |    554.816k|  556.460k|
|                    |           -|     1.00x|
|utf8_concat_7bit    |    556.367k|  555.101k|
|                    |       1.00x|         -|
|utf8_concat_UTF8    |    412.555k|  556.824k|
|                    |           -|     1.35x|
```
2022-07-25 14:18:52 +02:00
Nobuyoshi Nakada f61dd38e5c
Wait the test thread to sleep
Revert "Synchronize the test thread sleep"

This reverts commit 307835fe31.
2022-07-25 18:50:08 +09:00
Nobuyoshi Nakada 307835fe31
Synchronize the test thread sleep 2022-07-25 12:01:09 +09:00
Nobuyoshi Nakada b30b727c24
Fix format specifier
`uintptr_t` is not always `unsigned long`, but can be casted to void
pointer safely.
2022-07-25 09:18:36 +09:00
git 1c4aaa3e63 * 2022-07-25 [ci skip] 2022-07-25 08:50:31 +09:00
Nobuyoshi Nakada 91c05b34cd Bundled gems test needs `prepare-gems`
`prepare-gems` downloads and extracts the bundled gems, and these gems
are built by `build-exts` now.
2022-07-25 08:50:07 +09:00
Nobuyoshi Nakada b291c972fa Use built bundled gems in test-bundled-gems 2022-07-25 08:50:07 +09:00
Nobuyoshi Nakada 6af7212004
Make extensions under `Gem.extension_api_version` directory 2022-07-24 22:32:07 +09:00
Nobuyoshi Nakada e0a7e5e131
Kill bundled gem tests when interrupted 2022-07-24 16:36:33 +09:00
git 114f85ecec * 2022-07-24 [ci skip] 2022-07-24 08:57:27 +09:00
Kaíque Kandy Koga 1cd487d785 [DOC] IO#eof
Use IO#eof? instead of I#eof?
2022-07-23 16:57:09 -07:00
Nobuyoshi Nakada 721d154e2f
Remove duplicate code for internal arrays
Internal arrays are now created hidden from the start.
2022-07-23 21:42:05 +09:00
Peter Zhu 98a8a496ba Use rb_ary_tmp_new only for internal arrays
rb_ary_tmp_new sets the klass to 0, so it should only be used for
internal arrays.
2022-07-22 15:44:32 -04:00
Ashley Ellis Pierce 244bda7efd [rubygems/rubygems] Display mfa warnings on gem signin
https://github.com/rubygems/rubygems/commit/4dc77b7099

Co-authored-by: Jenny Shen <jenny.shen@shopify.com>
2022-07-23 03:42:59 +09:00
Peter Zhu e199ae3edc Remove reference counting for all frozen arrays
The RARRAY_LITERAL_FLAG was added in commit
5871ecf956 to improve CoW performance for
array literals by not keeping track of reference counts.

This commit reverts that commit and has an alternate implementation that
is more generic for all frozen arrays. Since frozen arrays cannot be
modified, we don't need to set the RARRAY_SHARED_ROOT_FLAG and we don't
need to do reference counting.
2022-07-22 13:29:21 -04:00
git 203de45bd3 * 2022-07-23 [ci skip] 2022-07-23 00:24:50 +09:00
Takuya Noguchi d77633a695 [rubygems/rubygems] Bundler: update command example in bundle-exec(1)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

https://github.com/rubygems/rubygems/commit/28bf5c8b33
2022-07-23 00:24:37 +09:00
st0012 b3be030740 [ruby/reline] Rename dialog_pointer_* to dialog_highlight_*
"Pointer" is not what we usually use to describe a selected item.

"Highlight" is a more common word for the scenario so we should use it instead.

https://github.com/ruby/reline/commit/b4279d1557
2022-07-22 23:34:49 +09:00
Yusuke Endoh 8f7e188822 Add "rb_" prefixes to toplevel enum definitions
... as per ko1's request.
2022-07-22 23:10:24 +09:00
Yusuke Endoh e763b1118b Move enum definitions out of struct definition 2022-07-22 23:10:24 +09:00
Nobuyoshi Nakada c7fd015d83
Update .indent.pro [ci skip] 2022-07-22 21:59:58 +09:00
Nobuyoshi Nakada 92c7417d73
Adjust indents [ci skip] 2022-07-22 21:59:27 +09:00
Takuya Noguchi c6734edc34 [rubygems/rubygems] Remove bundle show from obsolete commands
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

https://github.com/rubygems/rubygems/commit/6c07c9427b
2022-07-22 21:01:45 +09:00
Nobuyoshi Nakada a4e890b93e [rubygems/rubygems] Use `SystemExit#status` as `exit_code`
No reasons to manage separately.

https://github.com/rubygems/rubygems/commit/8ede5c886e
2022-07-22 21:01:31 +09:00
Hiroshi SHIBATA 55c771c302 [rubygems/rubygems] rubygems.rb is required by gem_runner.rb
https://github.com/rubygems/rubygems/commit/503f763865
2022-07-22 16:24:29 +09:00
Hiroshi SHIBATA fe77071697 [rubygems/rubygems] Removed needless value assignment
https://github.com/rubygems/rubygems/commit/5825c4c2e8
2022-07-22 16:24:29 +09:00
Nobuyoshi Nakada f081e1fead
Revive .indent.pro with adding `-nut`(`--no-tabs`) [ci skip] 2022-07-22 12:23:17 +09:00