12238 Commits

Author SHA1 Message Date
Kevin Newton
201853f4e1 [ruby/prism] Provide Parameters#signature for mirroring Method#parameters
https://github.com/ruby/prism/commit/90b3245528
2023-11-08 22:17:43 +00:00
Jeremy Evans
ddd99a5290 [ruby/tempfile] Make Tempfile#open return the underlying File
Add test for this behavior.

https://github.com/ruby/tempfile/commit/0ca31a6b8d
2023-11-08 16:47:29 +00:00
git
32e89b7f9c * remove trailing spaces. [ci skip] 2023-11-08 15:20:01 +00:00
Jeremy Evans
ddcfc9feab [ruby/tempfile] Fix Tempfile#{dup,clone}
Instead of storing the delegate in @tmpfile, use __getobj__, since
delegate library already handles dup/clone for that.  Copy the
unlinked, mode, and opts instance variables to the returned object
when using dup/clone.

Split the close/unlink finalizer into two finalizers. The close
finalizer always closes when any Tempfile instance is GCed, since
each Tempfile instance uses a separate file descriptor. The unlink
finalizer unlinks only when the original and all duped/cloned
Tempfiles are GCed, since all share the same path.

For Tempfile#open, undefine the close finalizer after closing the
current file, the redefine the close finalizer with the new file.

Fixes [Bug #19441]

https://github.com/ruby/tempfile/commit/dafabf9c7b
2023-11-08 15:19:52 +00:00
Han Young
b4bf8c9ee2 [rubygems/rubygems] Ensure we are using the same extension dir
Since #6945 the extension dir changed to Gem::BasicSpecification's implementation, we didn't hook that in rubygems_ext.rb. So for universal rubies, we ended up using the universal platform name when installing, but arch replaced platform name when checking. This lead to native extensions can never be correctly installed on universal rubies.

Hook Gem::BasicSpecifications so the behavior is consistent on installing and checking.

https://github.com/rubygems/rubygems/commit/8d699ed096
2023-11-08 12:40:22 +00:00
Jean Boussier
d898e8d6f8 Refactor rb_shape_transition_shape_capa out
Right now the `rb_shape_get_next` shape caller need to
first check if there is capacity left, and if not call
`rb_shape_transition_shape_capa` before it can call `rb_shape_get_next`.

And on each of these it needs to checks if we got a TOO_COMPLEX
back.

All this logic is duplicated in the interpreter, YJIT and RJIT.

Instead we can have `rb_shape_get_next` do the capacity transition
when needed. The caller can compare the old and new shapes capacity
to know if resizing is needed. It also can check for TOO_COMPLEX
only once.
2023-11-08 11:02:55 +01:00
tomoya ishida
e344010465 [ruby/irb] Type based completion using Prism and RBS
(https://github.com/ruby/irb/pull/708)

* Add completor using prism and rbs

* Add TypeCompletion test

* Switchable completors: RegexpCompletor and TypeCompletion::Completor

* Add completion info to irb_info

* Complete reserved words

* Fix [*] (*) {**} and prism's change of KeywordParameterNode

* Fix require, frozen_string_literal

* Drop prism<=0.16.0 support

* Add Completor.last_completion_error for debug report

* Retrieve `self` and `Module.nesting` in more safe way

* Support BasicObject

* Handle lvar and ivar get exception correctly

* Skip ivar reference test of non-self object in ruby < 3.2

* BaseScope to RootScope, move method objects constant under Methods

* Remove unused Splat struct

* Drop deeply nested array/hash type calculation from actual object. Now, calculation depth is 1

* Refactor loading rbs in test, change preload_in_thread not to cache Thread object

* Use new option added in prism 0.17.1 to parse code with localvars

* Add Prism version check and warn when :type completor cannot be enabled

* build_type_completor should skip truffleruby (because endless method definition is not supported)

https://github.com/ruby/irb/commit/1048c7ed7a
2023-11-08 02:46:33 +00:00
tomoya ishida
c8d4b103a9 [ruby/irb] Fix dancing-ruby Ctrl+C stop
(https://github.com/ruby/irb/pull/735)

https://github.com/ruby/irb/commit/802b1cb6d8
2023-11-08 09:17:23 +09:00
David Rodríguez
e6e4b4884d
[rubygems/rubygems] Hack to get Gem::Specification#extensions_dir documented
https://github.com/rubygems/rubygems/commit/625b8293f7
2023-11-08 09:04:28 +09:00
David Rodríguez
9f67118d7b
[rubygems/rubygems] Simplify selecting specs with force_ruby_platform set
https://github.com/rubygems/rubygems/commit/5f90a43635

Co-authored-by: Martin Emde <martin.emde@gmail.com>
2023-11-08 09:04:28 +09:00
David Rodríguez
a131ea39b7
[rubygems/rubygems] Better error when having an insecure install folder
https://github.com/rubygems/rubygems/commit/e41156e272
2023-11-08 09:04:28 +09:00
David Rodríguez
05ea3bcf14
[rubygems/rubygems] Remove redundant error class
It's a `BundlerError`.

https://github.com/rubygems/rubygems/commit/53ea676dab
2023-11-08 09:04:28 +09:00
David Rodríguez
5b076e00ce
[rubygems/rubygems] Fix regression on old git versions
https://github.com/rubygems/rubygems/commit/abd91ca2e5
2023-11-08 09:04:28 +09:00
David Rodríguez
7f7a7f13ed
[rubygems/rubygems] Don't show bug report template when GEM_HOME has no writable bit
Instead, don't check that at all and proceed. If something fails to be
written inside GEM_HOME, we'll eventually fail with a proper permissions
error.

In addition to that, the writable bit in GEM_HOME is not even reliable,
because only the immediate parent is actually checked when writing. For
example,

```
$ mkdir -p foo/bar
$ chmod -w foo
$ touch foo/bar/baz # writes without issue
```

https://github.com/rubygems/rubygems/commit/4bced7ac73
2023-11-08 09:04:28 +09:00
David Rodríguez
2d719cd146
[rubygems/rubygems] Remove unnecessary rescue
https://github.com/rubygems/rubygems/commit/c0b549f943
2023-11-08 09:04:28 +09:00
Vít Ondruch
ca7444cc44
[rubygems/rubygems] Allow --install-dir to be specified together with --user-install
The combination of `install-dir` and `--user-install` used to be
disabled for no good reason. This even makes problem on Linux
distributions such as Fedora, where `--user-install` is set by default
via operating_system.rb.

The `--install-dir` is already prefered over the `--user-install` by
the implementation, therefore just drop the check.

https://github.com/rubygems/rubygems/commit/313b1c5e76
2023-11-08 09:04:28 +09:00
Vít Ondruch
42cf1307c3
[rubygems/rubygems] Make the user installation less exceptional
The main purpose is to put handling of user installation into the same
place as e.g. handling the --build-root option handling. There is no
reason why the --build-root option should not prefix also paths used for
user installation.

Please note that the `util_installer` in
`test_generate_plugins_with_user_install` enforced the `:install_dir`,
which is against what user install is about.

https://github.com/rubygems/rubygems/commit/0b10cb41aa
2023-11-08 09:04:28 +09:00
ima1zumi
e8ef010a81 [ruby/reline] Bump version to 0.4.0
(https://github.com/ruby/reline/pull/601)

https://github.com/ruby/reline/commit/d15ab72d4f
2023-11-07 15:38:53 +00:00
Jean Boussier
ced84beb25 [ruby/cgi] Add snake case aliases for escapeURIComponent
As agreed in [Feature #18822]

https://github.com/ruby/cgi/commit/9d1161ec9d
2023-11-07 10:22:30 +00:00
Hiroshi SHIBATA
123b2e2fb4 [ruby/cgi] Bump up 0.4.0
https://github.com/ruby/cgi/commit/6ddd5fc7d7
2023-11-07 08:29:31 +00:00
Hiroshi SHIBATA
b13d00a7c0 [ruby/open-uri] Bump up 0.4.0
https://github.com/ruby/open-uri/commit/09df813305
2023-11-07 16:37:06 +09:00
Hiroshi SHIBATA
31dfebccbf [ruby/English] Bump up 0.8.0
https://github.com/ruby/English/commit/826ff728cf
2023-11-07 07:32:00 +00:00
Keith R. Bennett
78e07e2983 [ruby/English] Combine duplicate aliases into single sections to more clearly denote sameness and make more concise.
https://github.com/ruby/English/commit/dcff090f6f
2023-11-07 07:24:50 +00:00
Hiroshi SHIBATA
9857499d3d [ruby/fileutils] Bump up 1.7.2
https://github.com/ruby/fileutils/commit/577fd38f15
2023-11-07 07:15:34 +00:00
Hiroshi SHIBATA
3ac15f7e57 [ruby/base64] Bump up 0.2.0
https://github.com/ruby/base64/commit/09e839e5ad
2023-11-07 07:01:35 +00:00
Burdette Lamar
48d8f62cdd [ruby/base64] Enhanced Rdoc for Base64
(https://github.com/ruby/base64/pull/7)

* Enhanced Rdoc for Base64

* Enhanced RDoc for Base64

https://github.com/ruby/base64/commit/155c39a949
2023-11-07 06:59:52 +00:00
Hiroshi SHIBATA
84b2a6ad5d [ruby/drb] Removed old version on doc section
https://github.com/ruby/drb/commit/104f1a4db3
2023-11-07 15:37:45 +09:00
Hiroshi SHIBATA
ef3feae8e7 [ruby/drb] Load DRb::VERSION automatically
https://github.com/ruby/drb/commit/b250502c43
2023-11-07 15:36:55 +09:00
BurdetteLamar
8d56260910 [ruby/logger] [DOC] Fix broken link
https://github.com/ruby/logger/commit/8c135bce9a
2023-11-07 15:35:37 +09:00
Hiroshi SHIBATA
01d86818ff [ruby/ostruct] Bump up 0.6.0
https://github.com/ruby/ostruct/commit/0985296e72
2023-11-07 06:16:31 +00:00
Hiroshi SHIBATA
65e1f918d9 [ruby/drb] Bump up 2.2.0
https://github.com/ruby/drb/commit/c62076f940
2023-11-07 05:40:13 +00:00
Hiroshi SHIBATA
7d2d0f054f [ruby/logger] Bump up 1.6.0
https://github.com/ruby/logger/commit/0996f90650
2023-11-07 05:17:52 +00:00
Hiroshi SHIBATA
360607c7f1 [ruby/time] Bump up 0.3.0
https://github.com/ruby/time/commit/8dba14997c
2023-11-07 05:09:48 +00:00
Hiroshi SHIBATA
acf0f8551e [ruby/timeout] Bump up 0.4.1
https://github.com/ruby/timeout/commit/a65e49cc31
2023-11-07 04:56:40 +00:00
Hiroshi SHIBATA
027f0a4564
[ruby/delegate] Bump up 0.3.1
https://github.com/ruby/delegate/commit/d4bdf89328
2023-11-07 13:37:17 +09:00
Hiroshi SHIBATA
c3a11f1cfc [ruby/securerandom] Bump up 0.3.0
https://github.com/ruby/securerandom/commit/12c4ef3ea1
2023-11-07 13:21:23 +09:00
Hiroshi SHIBATA
eb4dd7001f [ruby/net-protocol] Bump up 0.2.2
https://github.com/ruby/net-protocol/commit/2d3c4b43a8
2023-11-07 04:06:59 +00:00
Hiroshi SHIBATA
0c55886fc2 [ruby/tempfile] Bump up 0.2.0
https://github.com/ruby/tempfile/commit/d6ddf7881e
2023-11-07 12:54:09 +09:00
Hiroshi SHIBATA
b94c407f69 [ruby/find] Bump up 0.2.0
https://github.com/ruby/find/commit/192237e766
2023-11-07 12:53:16 +09:00
Hiroshi SHIBATA
b4901d54a5 [ruby/getoptlong] Bump up 0.2.1
https://github.com/ruby/getoptlong/commit/f49629dfaa
2023-11-07 03:47:15 +00:00
Hiroshi SHIBATA
bf33085340 [ruby/observer] Bump up 0.1.2
https://github.com/ruby/observer/commit/6c978e6196
2023-11-07 03:42:58 +00:00
Hiroshi SHIBATA
308d794366 [ruby/pstore] Bump up 0.1.3
https://github.com/ruby/pstore/commit/6d5c0833e7
2023-11-07 03:10:45 +00:00
Hiroshi SHIBATA
eeaa2cdba2 [ruby/mutex_m] Bump up 0.2.0
https://github.com/ruby/mutex_m/commit/635da25a09
2023-11-07 02:52:46 +00:00
Hiroshi SHIBATA
ad81af22d4
[ruby/tmpdir] Bump up 0.2.0
https://github.com/ruby/tmpdir/commit/8bbd87c8ac
2023-11-07 11:39:02 +09:00
Hiroshi SHIBATA
f32c5e1c94 [ruby/open3] Bump up 0.2.0
https://github.com/ruby/open3/commit/0db9a0afe7
2023-11-07 02:32:01 +00:00
Hiroshi SHIBATA
1fdb8ef156 [ruby/rinda] Bump up 0.2.0
https://github.com/ruby/rinda/commit/f6d76b3927
2023-11-07 02:27:08 +00:00
Hiroshi SHIBATA
d9f1211a2f [ruby/tsort] Bump up 0.2.0
https://github.com/ruby/tsort/commit/2b3fe78646
2023-11-07 01:59:17 +00:00
Hiroshi SHIBATA
c9ee600cef [ruby/weakref] Bump up 0.1.3
https://github.com/ruby/weakref/commit/f763384744
2023-11-07 01:46:40 +00:00
Hiroshi SHIBATA
3f33bfa1e5 [ruby/optparse] Bump up 0.4.0
https://github.com/ruby/optparse/commit/acbf6e3e12
2023-11-07 01:40:53 +00:00
Hiroshi SHIBATA
e8fda04d0a [ruby/prettyprint] Bump up 0.2.0
https://github.com/ruby/prettyprint/commit/5ea64f43fa
2023-11-07 01:10:12 +00:00