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

87953 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 48fdb9faa0 [rubygems/rubygems] Fix `gem contents` for default gems
A default gem does not always live in the same place. For example,
Bundler may be installed to `site_dir` when RubyGems have been upgraded.

A more reliable way seems to actually activate the default gem, so that
we can know for sure where it lives.

https://github.com/rubygems/rubygems/commit/c69f6dfb18
2024-10-14 17:51:24 +00:00
David Rodríguez 57404e4369 [rubygems/rubygems] Fix duplicated specs when they have been previously activated
https://github.com/rubygems/rubygems/commit/b44bf2ac74
2024-10-14 14:51:20 +00:00
git 1001ea9606 Update bundled gems list as of 2024-10-13 2024-10-14 07:01:30 +00:00
Nobuyoshi Nakada 9611c619ac
[Bug #20797] Check seconds in UTC offset as well as minutes 2024-10-14 13:55:55 +09:00
Nobuyoshi Nakada 0641951e7b
`2digits` macros 2024-10-14 13:17:55 +09:00
tomoya ishida cf8388f76c [ruby/irb] Remove bignum check from save_history
(https://github.com/ruby/irb/pull/1018)

IRB need to accept bignum history size, but we don't want explicit bignum checks because threshold of bignum and fixnum depends on platform.

https://github.com/ruby/irb/commit/5151467e6a
2024-10-13 13:00:20 +00:00
S-H-GAMELINKS 6393d2950d [ruby/prism] Supress string_query function warning
https://github.com/ruby/prism/commit/0635814327
2024-10-13 12:22:58 +00:00
tomoya ishida 98fce00cab [ruby/reline] Support continuous tab completion
(https://github.com/ruby/reline/pull/761)

Continuous tab completion is possible in GNU Readline.
If dig_perfect_match_proc is set, continuous tab completion will be disabled.

https://github.com/ruby/reline/commit/469a52846b
2024-10-13 04:55:41 +00:00
tomoya ishida c12c95462a [ruby/irb] Fix rendering test broken by conflict
(https://github.com/ruby/irb/pull/1016)

https://github.com/ruby/irb/commit/a21b953a99
2024-10-13 04:30:33 +00:00
Burdette Lamar 81910a93ff
[DOC] Tweaks for Array#shift (#11886) 2024-10-12 10:36:29 -04:00
John Bampton afacb8ada5
[DOC] Fix spelling 2024-10-12 12:48:10 +00:00
tomoya ishida 199b298049 [ruby/irb] Make rendering test faster using updated yamatanooroti
(https://github.com/ruby/irb/pull/1001)

https://github.com/ruby/irb/commit/2c2956bc1f
2024-10-12 04:24:37 +00:00
Samuel Williams ad5641fd34
Support `IO#timeout` for `rsock_connect`. (#11880) 2024-10-12 10:08:34 +13:00
Peter Zhu 2e6ddd968d Don't enable GC.auto_compact in EnvUtil.under_gc_compact_stress when not supported 2024-10-11 17:00:30 -04:00
Kevin Newton 5f62522d5b [ruby/prism] Prism::StringQuery
Introduce StringQuery to provide methods to access some metadata
about the Ruby lexer.

https://github.com/ruby/prism/commit/d3f55b67b9
2024-10-11 19:34:57 +00:00
Peter Zhu 8aeb60aec8 Rename supports_auto_compact? to supports_compact?
It's testing whether GC compaction is supported in general.
2024-10-11 15:29:10 -04:00
Peter Zhu 6a88e9d430 Used respond_to? check for compaction in test_gc_compact.rb 2024-10-11 15:29:10 -04:00
Gert Goet 95abf679c5 [ruby/irb] Document infinite history
(https://github.com/ruby/irb/pull/1012)

As introduced in 824473e8

https://github.com/ruby/irb/commit/15e3f50c3f
2024-10-11 16:34:59 +00:00
Gert Goet eccfb6e60c [ruby/irb] History refactors (https://github.com/ruby/irb/pull/1013)
* Extract logic save_history in separate helper

* Extract logic history_file in helper

* Allow for readonly history

https://github.com/ruby/irb/commit/52307f9026
2024-10-11 16:34:19 +00:00
Peter Zhu 2dab59933c Remove defined check for GC.config in test_gc.rb
GC.config is always defined.
2024-10-11 11:35:45 -04:00
Burdette Lamar 77c7d88015
[DOC] Tweaks for Array#rotate! (#11875) 2024-10-11 11:30:52 -04:00
Burdette Lamar 628da153bb
[DOC] Tweaks for Array#sample (#11876) 2024-10-11 11:25:58 -04:00
John Bampton 5e799cc182
Fix spelling 2024-10-11 15:16:05 +00:00
BurdetteLamar c044777562 [DOC] Tweaks for Array#rotate 2024-10-11 11:13:55 -04:00
Burdette Lamar c51947671e
[DOC] Tweaks for Array#repeated_permutation (#11873) 2024-10-11 11:12:12 -04:00
Alan Wu a9fb0a2083
YJIT: Improve build instructions for non-hackers (#11878) 2024-10-11 10:24:47 -04:00
Alan Wu 11e7ab79de
Remove 1 allocation in Enumerable#each_with_index (#11868)
* Remove 1 allocation in Enumerable#each_with_index

Previously, each call to Enumerable#each_with_index allocates 2
objects, one for the counting index, the other an imemo_ifunc passed
to `self.each` as a block.

Use `struct vm_ifunc::data` to hold the counting index directly to
remove 1 allocation.

* [DOC] Brief summary for usages of `struct vm_ifunc`
2024-10-11 10:22:44 -04:00
Peter Zhu 372bb990ac Remove unused PRELOADENV macro in ruby-runner.h 2024-10-11 09:02:48 -04:00
Peter Zhu df2fb88028 Remove unused SOEXT macro in ruby-runner.h 2024-10-11 09:02:48 -04:00
Peter Zhu d641b7d172 Improve RUBY_GC_LIBRARY
Instead of passing the full GC SO file name to RUBY_GC_LIBRARY, we now
only need to pass the GC name.

For example, before we needed to pass `RUBY_GC_LIBRARY=librubygc.default.so`
but now we only need to pass `RUBY_GC_LIBRARY=default`.
2024-10-11 08:56:36 -04:00
Nobuyoshi Nakada 047a7750d1 [ruby/time] [DOC] Escape the word "Date" that does not mean Date class
https://github.com/ruby/time/commit/933eccf8d9
2024-10-11 09:59:35 +00:00
David Rodríguez aad4bfd7bc [rubygems/rubygems] Fix `gem install` on NFS shares
NFS shares seem to support flock these days, but they need read-write
permissions.

https://github.com/rubygems/rubygems/commit/1c492804cd
2024-10-11 09:42:08 +00:00
David Rodríguez 01abc2f79e [rubygems/rubygems] Check that the binstub was actually reset
https://github.com/rubygems/rubygems/commit/d46fca6126
2024-10-11 09:40:44 +00:00
Nobuyoshi Nakada b4eb7e2281
Refine assertion failure message 2024-10-11 16:52:01 +09:00
Nobuyoshi Nakada 2c3d26cfd7
Fix an implicit conversion that loses integer precision
Both `rb_ensure` and `udp_bind_internal` return `VALUE`.
2024-10-11 16:37:51 +09:00
Samuel Williams c43be94f76
Update `rsock_connect` to take `VALUE io` argument. (#11847) 2024-10-11 18:36:11 +13:00
Burdette Lamar 09100508e6
[DOC] Tweaks for Array#reverse_each (#11855) 2024-10-10 16:03:40 -04:00
David Rodríguez 1ad990a366 [rubygems/rubygems] Only pristine executables for default gems
https://github.com/rubygems/rubygems/commit/1cfc1d626c
2024-10-10 19:46:44 +00:00
Peter Zhu 3d8fe462df Move return value of rb_gc_impl_config_set to gc.c 2024-10-10 14:34:54 -04:00
Kevin Newton ebbb093094 [ruby/prism] Short-circuit if possible for start line and unused warning
https://github.com/ruby/prism/commit/2745c81d31
2024-10-10 18:31:21 +00:00
Kevin Newton 7a198af7cd [ruby/prism] Prism::CodeUnitsCache
Calculating code unit offsets for a source can be very expensive,
especially when the source is large. This commit introduces a new
class that wraps the source and desired encoding into a cache that
reuses pre-computed offsets. It performs quite a bit better.

There are still some problems with this approach, namely character
boundaries and the fact that the cache is unbounded, but both of
these may be addressed in subsequent commits.

https://github.com/ruby/prism/commit/2e3e1a4d4d
2024-10-10 18:02:27 +00:00
David Rodríguez b77ff342cc [rubygems/rubygems] Revert "Fix `bundle.bat` re-execution"
This reverts commit https://github.com/rubygems/rubygems/commit/e04e00f7bb5b.

https://github.com/rubygems/rubygems/commit/554ece1587
2024-10-10 17:57:07 +00:00
Nobuyoshi Nakada caf0d2058a [ruby/time] [DOC] nodoc VERSION
This file is parsed as a part of Ruby documentation, and this constant
appears in the built-in Time class unexpectedly.

https://github.com/ruby/time/commit/f26f7ab689
2024-10-10 16:54:15 +00:00
Nobuyoshi Nakada e6b9348eb9 [ruby/time] [DOC] Escape the word "Time" that does not mean Time class
https://github.com/ruby/time/commit/8572a306bb
2024-10-10 16:54:14 +00:00
Nobuyoshi Nakada db352a5127 [ruby/time] [DOC] RDoc does not use backticks
https://github.com/ruby/time/commit/aefa245a20
2024-10-10 16:54:14 +00:00
Alan Wu 5f3e9f185d [DOC] Mention that Enumerable#each_with_index calls self.each 2024-10-10 12:32:47 -04:00
Alan Wu 25c4629ec3 Remove duplicate struct declaration 2024-10-10 12:32:47 -04:00
Nobuyoshi Nakada ae6bd3b49b
[DOC] Tweak "Timezone Objects"
- Make method descriptions plain pragraphs in each method.
- Make "Argument" and "Returns" note-lists.
2024-10-11 01:24:27 +09:00
Nobuyoshi Nakada e8a7d16946
[DOC] Tweak "Time Internal Representation"
- Remove `T_BIGNUM` word
- Mark up function names and type names as code
- Mark up struct member names as variables
2024-10-11 01:24:27 +09:00
Nobuyoshi Nakada 605698c7cf
[DOC] Link labels cannot contain attributes for now 2024-10-11 01:24:26 +09:00