tomoya ishida
b0eda83ee0
[ruby/reline] Add mode_string to prompt calculation dependencies
...
(https://github.com/ruby/reline/pull/658 )
* Add mode_string to prompt calculation dependencies
* Update vi show-mode-in-prompt test
https://github.com/ruby/reline/commit/a0cee06ec5
2024-03-24 10:47:22 +00:00
tomoya ishida
b03705dbaf
[ruby/reline] Refactor key actor test
...
(https://github.com/ruby/reline/pull/645 )
* Add assertion assert_cursor_line to test helper
* Autofix key_actor test to use assert_cursor_line
* Rename the assertion to assert_line_around_cursor and remove other assertions for line and cursor
https://github.com/ruby/reline/commit/e4773800c6
2024-03-24 10:45:32 +00:00
Nobuyoshi Nakada
7c61506ba2
Do not use macos-14 for CodeQL [ci skip]
...
It is known that macos-14 runner is small to run CodeQL.
2024-03-24 08:06:20 +09:00
tomoya ishida
3adaba0e81
[ruby/reline] Do not send color reset sequence when GeneralIO is
...
used
(https://github.com/ruby/reline/pull/661 )
https://github.com/ruby/reline/commit/3719702808
2024-03-23 23:00:21 +00:00
Stan Lo
f46b77596d
[ruby/reline] Make mutated string in yamatanooroti explicitly
...
mutable
(https://github.com/ruby/reline/pull/662 )
This avoids the frozen literal warning in Ruby 3.4.
https://github.com/ruby/reline/commit/cccb985804
2024-03-23 22:50:57 +00:00
Nobuyoshi Nakada
8265a7531f
Use dedicated methods to abort
...
When `RUBY_DEBUG` is set, accessing a class in an invalid object will
cause a breakpoint trap instead of a segfault on some implementations.
2024-03-24 01:40:17 +09:00
Nobuyoshi Nakada
678cb80033
Move `-test-/fatal/rb_fatal` to `-test-/fatal`
2024-03-24 01:09:29 +09:00
Nobuyoshi Nakada
5a77397489
Ignore method chains succeeding `git ls-files`
2024-03-23 23:58:40 +09:00
Nobuyoshi Nakada
c505bb0ca0
Ignore method chains succeeding `git ls-files`
2024-03-23 22:43:05 +09:00
Nobuyoshi Nakada
43fe89d921
[ruby/win32ole] Refine pathspecs for `spec.files`
...
https://github.com/ruby/win32ole/commit/8d443417a9
2024-03-23 13:06:40 +00:00
Nobuyoshi Nakada
14fba5a784
[ruby/win32ole] Exclude unused files from packages
...
https://github.com/ruby/win32ole/commit/f4aff99dda
2024-03-23 10:34:57 +00:00
Nobuyoshi Nakada
a8075caa4e
[ruby/win32ole] Test constants for the backward compatibility
...
https://github.com/ruby/win32ole/commit/22facf50fd
2024-03-23 10:34:35 +00:00
Xavier Noria
401251979b
[DOC] Small edits in rbasic.h
2024-03-23 08:19:30 +00:00
git
a15b2443a5
Update bundled gems list as of 2024-03-22
2024-03-23 06:59:22 +00:00
Jeremy Evans
2dbcc123f4
Do not apply anon_rest optimization when passed array uses keyword-flagged hash
...
The optimization sets args->rest_dupped to avoid allocating an array,
but this is not safe if the splat array ends in a keyword flagged
hash. Unset args->rest_dupped in this case.
Fixes [Bug #20388 ]
2024-03-22 16:54:07 -07:00
Jun Aruga
a2ac28d8ab
.travis.yml: Add lscpu command to see the details of the CPU.
2024-03-22 22:42:58 +01:00
David Rodriguez
8ef923dc35
[rubygems/rubygems] Respect global umask when writing regular files
...
https://github.com/rubygems/rubygems/commit/fd5cb7396f
2024-03-22 13:15:15 +00:00
David Rodriguez
7b3ef370f8
[rubygems/rubygems] Fix incorrect `bundle update --bundler` message
...
https://github.com/rubygems/rubygems/commit/146de56353
2024-03-22 13:14:42 +00:00
Nobuyoshi Nakada
78e12beb6d
Propagate jobserver FDs to `cargo` and `rustc` [ci skip]
...
https://doc.rust-lang.org/cargo/reference/build-scripts.html#jobserver
> Cargo and `rustc` use the jobserver protocol, developed for GNU
> make, to coordinate concurrency across processes.
Older GNU make used FDs to connect to the jobserver, and needs an
explicit use of `$(MAKE)` variable or `+` prefix to pass the FDs.
2024-03-22 22:05:58 +09:00
Artur
d85c24058d
[ruby/irb] Remove misleading documentation
...
(https://github.com/ruby/irb/pull/906 )
https://github.com/ruby/irb/issues/904
https://github.com/ruby/irb/commit/89bca01bba
2024-03-22 11:34:51 +00:00
Benoit Daloze
74995a1a77
[Feature #20275 ] Remove extra backtrace entries for rescue and ensure
2024-03-22 12:30:15 +01:00
Nobuyoshi Nakada
e2a9b87126
`rb_thread_sched_destroy` is not used now at all
2024-03-22 18:53:44 +09:00
Nobuyoshi Nakada
127d7a35df
Some functions are not used when `THREAD_MODEL=none`
2024-03-22 18:20:13 +09:00
Nobuyoshi Nakada
055613fd86
Fix pointer incompatiblity
...
Since the subsecond part is discarded, WIDEVAL to VALUE conversion is
needed.
2024-03-22 18:18:35 +09:00
Nobuyoshi Nakada
2c4170ea21
Extension in gems cannot be statically linked
...
A gem is meant to be added later, so an extension within it cannot be
statically linked.
2024-03-22 17:17:29 +09:00
Nobuyoshi Nakada
af88ca4c07
Match `--with/--without` options against gem names
...
The simple names in `default_exclude_exts` do not match extension
paths under gems.
Extract each gem name from the gemspec file at the top level of each
gem directory. For example, if `ext` is `syslog-0.1.2/ext/syslog/`,
find out `syslog-0.1.2/syslog.gemspec` and take the base name `syslog`
without the suffix `.gemspec`.
2024-03-22 14:09:12 +09:00
Nobuyoshi Nakada
235aa7ad63
Pass blocks to blocks as block parameters
2024-03-22 14:06:55 +09:00
yui-knk
c5045830b7
Lrama v0.6.4
2024-03-22 11:53:15 +09:00
Samuel Williams
b4d73e9f80
Revert "Hide public implementation of `rb_io`. ( #9568 )" ( #10283 )
...
This reverts commit 9ab1fa3bf5
.
2024-03-22 14:56:02 +13:00
Kazuhiro NISHIYAMA
35fe4b0480
Sort links [ci skip]
2024-03-22 10:09:14 +09:00
Takashi Kokubun
49eddad77e
Declare all jobs in matrix.include ( #10327 )
...
Declare all jobs using matrix.include
2024-03-21 16:44:56 -07:00
Peter Zhu
75d9019e6f
[DOC] Fix link in NEWS.md
2024-03-21 14:14:25 -04:00
Peter Zhu
0546764c30
[DOC] Add link in NEWS.md
2024-03-21 14:12:55 -04:00
Alan Wu
15dc3aaa31
Remove excess allocation for kwsplat to kw call
...
Previously, calls like the following duplicated the kwsplat hash
unnecessarily:
```ruby
def foo(a:) = a
hash = {a: 10}
foo(**hash)
```
This is due to the fix in ca204a2023
. Since it targets when the callee
has no keyword parameters, skip duplicating when the method takes
keywords.
2024-03-21 13:20:32 -04:00
Peter Zhu
806edd2956
Pass objspace into heap_check_moved_i
2024-03-21 10:43:07 -04:00
Peter Zhu
9a6a6b4ba6
Pass objspace into root_obj_check_moved_i
2024-03-21 10:43:07 -04:00
S-H-GAMELINKS
060a71d4e7
Fix Ripper memory allocation size when enabled Universal Parser
...
The size of `struct parser_params` is 8 bytes difference in `ripper_s_allocate` and `rb_ruby_parser_allocate` when the universal parser is
enabled.
This causes a situation where `*r->p` is not fully initialized in `ripper_s_allocate` as shown below.
```console
(gdb) p *r->p
$2 = {heap = 0x0, lval = 0x0, yylloc = 0x0, lex = {strterm = 0x0, gets = 0x0, input = 0, string_buffer = {head = 0x0, last = 0x0}, lastlin
e = 0x0,
nextline = 0x0, pbeg = 0x0, pcur = 0x0, pend = 0x0, ptok = 0x0, gets_ = {ptr = 0, call = 0x0}, state = EXPR_NONE, paren_nest = 0, lpar
_seen = 0,
debug = 0, has_shebang = 0, token_seen = 0, token_info_enabled = 0, error_p = 0, cr_seen = 0, value = 0, result = 0, parsing_thread = 0, s_value = 0,
s_lvalue = 0, s_value_stack = 2097}
````
This seems to cause `double free or corruption (!prev)` and SEGV.
So, fixing this by introduce `rb_ripper_parser_params_allocate` and `rb_ruby_parser_config` functions for Ripper, and `struct parser_params` same size is returned.
2024-03-21 18:10:02 +09:00
Nobuyoshi Nakada
9e3077a7a6
Move old OS versions to `include:` and simplify test matrices
2024-03-21 16:15:53 +09:00
git
92f72221f1
Update default gems list at c5ac18bbf4
[ci skip]
2024-03-21 04:39:19 +00:00
Hiroshi SHIBATA
c5ac18bbf4
[ruby/rdoc] Bump up 6.6.3.1
...
https://github.com/ruby/rdoc/commit/ffbf8ae089
2024-03-21 04:38:21 +00:00
Hiroshi SHIBATA
385c31e770
[ruby/rdoc] Fix NoMethodError for start_with
...
https://github.com/ruby/rdoc/commit/e21dfccb4a
2024-03-21 04:18:26 +00:00
git
f5dc9c98e5
Update default gems list at ee1ad009f3
[ci skip]
2024-03-21 04:05:48 +00:00
Hiroshi SHIBATA
ee1ad009f3
[ruby/rdoc] Bump up 6.6.3
...
https://github.com/ruby/rdoc/commit/d98baf4917
2024-03-21 04:04:40 +00:00
Nobuyoshi Nakada
3d353afeb0
[ruby/rdoc] Filter marshaled objets
...
https://github.com/ruby/rdoc/commit/da7a0c7553
2024-03-21 04:04:40 +00:00
yui-knk
8ba4d7d75f
Fix unexpected node bug for `shareable_constant_value: literal`
...
[Bug #20339 ]
[Bug #20341 ]
`const_decl_path` changes the value of `NODE **dest`, LHS of an assignment,
with `NODE_LIT` created by `const_decl_path`. `shareable_literal_constant` calls
`const_decl_path` via `ensure_shareable_node` multiple times if RHS of an assignment
is array or hash. This means `NODE **dest` argument of `const_decl_path` can be `NODE_LIT`
from the second time then causes `[BUG] unexpected node: NODE_LIT` in
`rb_node_const_decl_val`.
This commit change to not update `NODE **dest` in `const_decl_path` to
fix the issue.
2024-03-21 11:29:09 +09:00
Hiroshi SHIBATA
6650b3aecf
Point to the correct hash for gacts/run-and-post-run-1.4.0
2024-03-21 10:23:11 +09:00
dependabot[bot]
392dbe06fc
Bump actions/cache from 4.0.1 to 4.0.2
...
Bumps [actions/cache](https://github.com/actions/cache ) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](ab5e6d0c87...0c45773b62
)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-21 07:16:18 +09:00
Kevin Newton
af7bf9e0d8
[ruby/prism] Provide options for reducing size
...
https://github.com/ruby/prism/commit/592128de4d
2024-03-20 17:32:03 -04:00
Kevin Newton
0e8b6c62a4
[PRISM] Enable specs in CI
2024-03-20 14:28:13 -04:00
Takashi Kokubun
4238615432
YJIT: Get rid of Type::TProc ( #10287 )
2024-03-20 11:29:27 -04:00