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

79253 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd c521b6f823 [ruby/yarp] add tests for `Location#join`
https://github.com/ruby/yarp/commit/b01711396f
2023-08-30 15:10:24 +00:00
Nobuyoshi Nakada 74f4d2683e
sync_default_gems.rb: Remove Java templates 2023-08-30 22:18:10 +09:00
git 00fdb4e12e Update default gems list at 36a3899e9d [ci skip] 2023-08-30 09:18:22 +00:00
Stan Lo 36a3899e9d [ruby/irb] Bump version to 1.8.0
(https://github.com/ruby/irb/pull/700)

https://github.com/ruby/irb/commit/a061744ed3
2023-08-30 09:17:06 +00:00
Jean Boussier bcc905100f BasicSocket#recv* return `nil` rather than an empty packet
[Bug #19012]

man recvmsg(2) states:

> Return Value
> These calls return the number of bytes received, or -1 if an error occurred.
> The return value will be 0 when the peer has performed an orderly shutdown.

Not too sure how one is supposed to make the difference between a packet of
size 0 and a closed connection.
2023-08-30 10:07:18 +02:00
Nobuyoshi Nakada acedbcb1b4
sync_default_gems.rb: Fix typo in replace_rdoc_ref_all 2023-08-30 15:00:00 +09:00
Nobuyoshi Nakada c05737e09f
sync_default_gems.rb: Transform by proc 2023-08-30 14:59:17 +09:00
yui-knk 2e648bfee4 [DOC] Detailed explanation when one line pattern matching is a void value expression 2023-08-30 12:47:09 +09:00
git a83152d4db Update bundled gems list at ad2a464e8f [ci skip] 2023-08-30 02:11:23 +00:00
Soutaro Matsumoto ad2a464e8f
Bundle RBS 3.2.1 (#8306) 2023-08-30 11:10:41 +09:00
Josh Nichols e747e2c36b [rubygems/rubygems] Update bundler/lib/bundler/settings.rb
https://github.com/rubygems/rubygems/commit/75ffa8ef76

Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
2023-08-30 00:36:38 +00:00
Josh Nichols 6a876a61d7 [rubygems/rubygems] (Further) Improve Bundler::Settings#[] performance and memory usage
I previously identified and improved this method over in https://github.com/rubygems/rubygems/pull/6884
but while reviewing another memory_profiler profile, I realized another
gain we can eek out.

This method keeps comes up in part because `configs` is allocating a new
Hash every time. My last change took advantage of that by using `map!`
on it. `configs` is called quite often, including in this `[]` method,
so there's a benefit to memoizing it.

Back in `[]`, logically we are trying to find the first Hash in `configs`
that has a value for the given key. Currently, we end up `map` and
`compact` to just get that value.

Instead, we can use a loop over `configs`, and break when we find the
value for the key.

https://github.com/rubygems/rubygems/commit/b913cfc87b
2023-08-30 00:36:38 +00:00
Peter Zhu 27024004fa Fix string2cstr in lldb_cruby.py [ci skip] 2023-08-29 19:31:53 -04:00
Jemma Issroff 3151d7876f
[YARP] Until Node, minor cleanup (#8325)
* Remove conditional from yp_compile_if

* Extracted yp_compile_while, compile UntilNode

* Small checks for body / value that could be empty
2023-08-29 14:17:08 -07:00
Jemma Issroff 80dc570a45
Compile more YARP node types (#8322)
* Add several more node simple types to YARP's compiler:

Nodes include: DefinedNode, EmbeddedStatementsNode,
LocalVariableReadNode, LocalVariableWriteNode, MultiWriteNode,
OptionalParameterNode, SplatNode, YieldNode

* Add AssocSplatNode, RangeNode

* Add RangeNode, other helpers for future nodes

* Add ArrayNode, HashNode, static literal helpers

* Add branch conditionals

* Add IfNode, UnlessNode

* Add ScopeNode

* NEW_ISEQ and NEW_CHILD_ISEQ implemented for YARP

* Add nodes that depend on ScopeNode

* Addressed PR comments
2023-08-29 13:13:15 -07:00
Kevin Newton b435161404 [ruby/yarp] Add instance variable names to the constant pool
https://github.com/ruby/yarp/commit/f049932c44
2023-08-29 20:12:57 +00:00
Kevin Newton 455153705c Tests for the YARP compiler 2023-08-29 15:53:25 -04:00
Kevin Newton 5161c6c4cd [ruby/yarp] Statements inside ensure blocks can accept blocks
https://github.com/ruby/yarp/commit/be84ea5343
2023-08-29 19:33:31 +00:00
Samuel Giddins 7a5df9d0ed [rubygems/rubygems] Fix bundle update --redownload
It now does the redownloading/installing just like bundle install --redownload

https://github.com/rubygems/rubygems/commit/3b058e5eca
2023-08-29 19:31:36 +00:00
Stan Lo f37f357e80 [ruby/irb] Improve help/show_cmds message during debugger
integration
(https://github.com/ruby/irb/pull/693)

* `help` should display debugger's help during irb:rdbg session

* Update `show_cmds`'s output when in irb:rdbg session

https://github.com/ruby/irb/commit/4029c2e564
2023-08-29 18:36:16 +00:00
ima1zumi c58561b5e3 [ruby/reline] Remove `ARGV.first` in east_asian_width.rb
(https://github.com/ruby/reline/pull/587)

`ARGV.first` is the name of the EastAsianWidth file and is not needed for east_asian_width.rb

https://github.com/ruby/reline/commit/6649bda31c
2023-08-29 17:55:02 +00:00
elfham 95efdef3b2 [ruby/reline] Set EastAsianWidth::UNICODE_VERSION
(https://github.com/ruby/reline/pull/586)

* Set EastAsianWidth::UNICODE_VERSION

* Commented out UNICODE_VERSION in Reline::Unicode::EastAsianWidth

* Commented out UNICODE_VERSION in Reline::Unicode::EastAsianWidth

https://github.com/ruby/reline/commit/6d94f2a26a
2023-08-29 17:20:18 +00:00
Jemma Issroff 535045ab3b
[YARP] Compile basic types (#8311)
* Add a compile_context arg to yp_compile_node

The compile_context will allow us to pass around the parser, and
the constants and lookup table (to be used in future commits).

* Compile yp_program_node_t and yp_statements_node_t

Add the compilation for program and statements node so that we can
successfully compile an empty program with YARP.

* Helper functions for parsing numbers, strings, and symbols

* Compile basic numeric / boolean node types in YARP

* Compile StringNode and SymbolNodes in YARP

* Compile several basic node types in YARP

* Added error return for missing node
2023-08-29 09:27:00 -07:00
Nathan Froyd 36e210718c [ruby/yarp] simplify `context_pop`
https://github.com/ruby/yarp/commit/fe85b595b6
2023-08-29 15:36:21 +00:00
tomoya ishida 062eec7558 [ruby/irb] Add --nomultiline indent and prompt test
(https://github.com/ruby/irb/pull/699)

https://github.com/ruby/irb/commit/9b4aea753b
2023-08-29 15:34:49 +00:00
Chad Schroeder 51e7fb5331 [ruby/irb] fixes https://github.com/ruby/irb/pull/524
(https://github.com/ruby/irb/pull/696)

https://github.com/ruby/irb/commit/59bcc07def
2023-08-29 13:10:35 +00:00
Stan Lo 6ed1a504d4 [ruby/irb] irb:rdbg cleanups (https://github.com/ruby/irb/pull/697)
* Remove unused method and constant from IRB::Debug

* Update comments

https://github.com/ruby/irb/commit/98914a963c
2023-08-29 12:54:25 +00:00
Stan Lo 0cfb779692 [ruby/irb] Fix test warnings (https://github.com/ruby/irb/pull/698)
* Encoding should be saved before creating Irb objects

* Fix unused local warning

https://github.com/ruby/irb/commit/036ec31034
2023-08-29 12:48:33 +00:00
Samuel Williams f0b43597ff
[DOC] Improved documentation. (#8319) 2023-08-29 23:53:28 +12:00
Petrik cfae3ed422 Fix code example doc for Random.alphanumeric 2023-08-29 19:48:28 +09:00
Nobuyoshi Nakada 247fa3ca76
[DOC] Remove typo 2023-08-29 19:40:52 +09:00
Samuel Williams e46e48d690
Expose `rb_process_status_wait` and hide `rb_process_status_waitv`. (#8316) 2023-08-29 22:24:55 +12:00
git 0744da1b3b Update default gems list at 5ed42c9800 [ci skip] 2023-08-29 09:16:36 +00:00
Sutou Kouhei 5ed42c9800
Development of 3.0.9 started. 2023-08-29 18:15:05 +09:00
Sutou Kouhei 0a219ef44a
jruby: Add StringIO::VERSION (#59)
Fixes GH-57
2023-08-29 18:15:05 +09:00
Kevin Newton 13ed1d7b60
[ruby/yarp] Remove unnecessary NUL byte in string
https://github.com/ruby/yarp/commit/af867e35b1
2023-08-29 18:15:05 +09:00
Stan Lo 221c2d0e19
[ruby/irb] Print deprecation message for prompt_n methods
(https://github.com/ruby/irb/pull/691)

They were removed in #685, but we should still keep them to avoid breaking
changes to tools like Chef.

533ff08947/lib/chef/shell.rb (L138)

https://github.com/ruby/irb/commit/b585e0c835
2023-08-29 18:15:05 +09:00
Summer ☀️ 0cd92819c9
[ruby/irb] Remove unused `PROMPT_N`
(https://github.com/ruby/irb/pull/685)

https://github.com/ruby/irb/commit/66e69fa0dc
2023-08-29 18:15:05 +09:00
Nobuyoshi Nakada 9126dd4b0e
Enable jobserver mode in submake [ci skip]
Filter out `-j` option not to reset jobserver mode which is enabled by
the environment variable.
2023-08-29 18:01:19 +09:00
Kouhei Yanagita a28c5151f5 Fix Array#bsearch when block returns a non-integer numeric value 2023-08-29 18:00:44 +09:00
Hiroshi SHIBATA f16c50772c [rubygems/rubygems] rubocop -a
https://github.com/rubygems/rubygems/commit/f240bfad2a
2023-08-29 17:41:41 +09:00
Hiroshi SHIBATA 5e81127c1b
Fixed broken -a option behavior 2023-08-29 17:41:26 +09:00
Samuel Williams 901b6d9c50
Validate the typed data before dereferencing the internal struct. (#8315) 2023-08-29 20:04:14 +12:00
Hiroshi SHIBATA 141102b0b0 Expose Test.filter_backtrace for the default gems. 2023-08-29 15:05:30 +09:00
Hiroshi SHIBATA 589cd0e511
[DOC] Mention about https://bugs.ruby-lang.org/issues/19776 2023-08-29 14:17:23 +09:00
Nobuyoshi Nakada c0e913ae88
[DOC] Link method name references 2023-08-29 13:52:18 +09:00
Nobuyoshi Nakada 7e5c662a6f
[Feature #18183] Add `chars:` option to `Random#alphanumeric` 2023-08-29 10:56:56 +09:00
Nobuyoshi Nakada c4fc9477aa
sync_default_gems.rb: Continue if files added to the toplevel removed 2023-08-29 10:20:52 +09:00
Nobuyoshi Nakada a6db6b150f
sync_default_gems.rb: Split `sync_default_gems_with_commits` 2023-08-29 09:22:28 +09:00
yui-knk c02f978fd5 Lrama v0.5.5 2023-08-29 08:26:18 +09:00