tompng
f7343b636f
prettyprint hash with colon style
2024-10-03 18:47:09 +09:00
tompng
7237af75d2
Update ruby test for colon-style hash inspect
2024-10-03 18:47:09 +09:00
tompng
a8a0591253
Hash#inspect with colon style
2024-10-03 18:47:09 +09:00
Nobuyoshi Nakada
9bd2f30d0a
[ruby/reline] Fix FD leaks ( https://github.com/ruby/reline/pull/752 )
...
`PTY.spawn` with a block detaches the spawned process and leaves it
running in background even after exiting the given block. It is the
responsibility of the caller to clean up the yielded IOs and PID.
3098606404 (step)
:13:950
```
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 9 : #<File:/dev/pts/0>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 10 : #<File:/dev/pts/0>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 11 : #<File:/dev/pts/1>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 12 : #<File:/dev/pts/1>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 13 : #<File:/dev/pts/2>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 14 : #<File:/dev/pts/2>
```
f9f90da9e4
2024-10-03 03:16:39 +00:00
tomoya ishida
09761e4789
[ruby/reline] Fix incremental search cancel bug
...
(https://github.com/ruby/reline/pull/748 )
bf0f8fa333
2024-10-02 17:47:02 +00:00
tomoya ishida
8f4277f405
[ruby/reline] Add a timeout to cursor_pos
...
(https://github.com/ruby/reline/pull/750 )
dd4a654e5d
2024-10-02 17:36:35 +00:00
Kevin Newton
2610bf01b2
[ruby/prism] Fix up doubled range in arguments
...
aee2de91a3
2024-10-02 15:27:01 +00:00
Kevin Newton
2e2520ef10
[ruby/prism] Fix up beginless ranges in method definitions
...
ab9d80987a
2024-10-02 14:47:53 +00:00
David Rodríguez
acbdb30941
[rubygems/rubygems] Fix error in one source when fetching dependency APIs clearing results from all sources
...
0549ddbcc5
2024-10-02 10:37:26 +00:00
Sutou Kouhei
d2ec0e8039
[ruby/fiddle] test memory-view: ensure releasing in test
...
It's for avoiding calling release on exit via GC. If it's happen, Ruby
will be crashed because Fiddle::MemoryView's finalizer may refer other
Ruby object. In exit phrase, the referred Ruby object may be already
freed.
02915f13de
2024-10-02 14:36:11 +09:00
Sutou Kouhei
c991085176
[ruby/fiddle] test: remove fragile memory leak tests
...
0bfcd02bef
2024-10-02 14:36:10 +09:00
David Rodríguez
3d1eb62bf3
[rubygems/rubygems] Standarize "ins" test command too
...
517e9a8669
2024-10-02 14:34:54 +09:00
David Rodríguez
8e73609c7b
[rubygems/rubygems] Fix weirdness of "interrupt" test command
...
0a75590ac9
2024-10-02 14:34:54 +09:00
tomoya ishida
a8a921aef3
[ruby/irb] Use correct binding in debug mode
...
(https://github.com/ruby/irb/pull/1007 )
In debug command, IRB's context was using wrong binding.
Some code colorization, command detection failed because binding.local_variable returned wrong value.
68f718de21
2024-10-02 03:18:35 +00:00
Kevin Newton
467ebbebd9
[ruby/prism] Disallow dynamic patterns in labels at top level followed by pipes
...
ccc746f918
2024-10-01 15:42:44 -04:00
tomoya ishida
e320da6097
[ruby/reline] Fix Reline crash with invalid encoding history
...
(https://github.com/ruby/reline/pull/751 )
e9d4b37e34
2024-10-01 17:01:38 +00:00
Kevin Newton
ec230ac643
Resync to latest Prism
2024-10-01 11:03:25 -04:00
Kevin Newton
75568d23e9
[ruby/prism] Disallow &. after endless range
...
498dd922d4
2024-10-01 12:57:00 +00:00
Nobuyoshi Nakada
86ae409467
[Bug #20764 ] Refactor argument forwarding in lambda
...
Reject argument forwarding in lambda:
- without parentheses
- after optional argument(s)
2024-10-01 20:00:22 +09:00
Nobuyoshi Nakada
35e124832e
[Bug #20755 ] Frozen string should not be writable via IO::Buffer
2024-10-01 18:46:35 +09:00
Nobuyoshi Nakada
292c9793ab
Remove no longer needed excludes files
2024-10-01 02:55:16 +09:00
Luke Gruber
d592ddd5e6
Fix compile issue with a short-circuited if/unless condition and defined?
...
This caused an issue when `defined?` was in the `if` condition. Its
instructions weren't appended to the instruction sequence even though it was compiled
if a compile-time known logical short-circuit happened before the `defined?`. The catch table
entry (`defined?` compilation produces a catch table entry) was still on the iseq even though the
instructions weren't there. This caused faulty exception handling in the method.
The solution is to no add the catch table entry for `defined?` after a compile-time known logical
short circuit.
This shouldn't touch much code, it's only for cases like the following,
which can occur during debugging:
if false && defined?(Some::CONSTANT)
"more code..."
end
Fixes [Bug #20501 ]
2024-10-01 02:12:56 +09:00
Kevin Newton
6c9b5c1615
Sync Prism with latest main branch
2024-09-30 11:36:29 -04:00
Kevin Newton
c1c9ba77ca
[ruby/prism] Require a delimiter for singleton classes
...
fd58d6a9ea
2024-09-30 14:33:58 +00:00
Nobuyoshi Nakada
637067440f
[Bug #20752 ] Slice of readonly IO::Buffer
also should be readonly
2024-09-30 20:39:14 +09:00
Hiroshi SHIBATA
81d26814be
Update test args with bundled gems. webrick has been removed that targets
2024-09-30 19:10:16 +09:00
ydah
044e57ed7c
Implement SPLAT NODE keyword locations
2024-09-30 18:04:41 +09:00
David Rodríguez
d4ac5c573b
[rubygems/rubygems] Don't add duplicated specs to unresolved specs
...
This could happen when a regular gem shadows a default gem.
9ef70dd1f7
2024-09-30 05:07:57 +00:00
David Rodríguez
73d60df6e0
[rubygems/rubygems] Don't list duplicated version in Gem::Specification.reset
warning
...
e6e3db821f
2024-09-30 05:07:57 +00:00
Ellen Marie Dash
87212a5486
[rubygems/rubygems] Improve Gem::SpecFetcher tests.
...
6e0456583b
2024-09-28 21:12:26 +00:00
Ellen Marie Dash
5c18b63d00
[rubygems/rubygems] [tests] Don't expect suggestions that aren't actually helpful.
...
e7d6b92e31
2024-09-28 21:12:25 +00:00
tompng
b9e225fcbf
Allow dot3 in defs singleton
2024-09-28 22:37:44 +09:00
ydah
8f678d6989
Implement OP_ASGN2 NODE locations
2024-09-28 20:53:09 +09:00
Nobuyoshi Nakada
027ef60500
[Bug #20763 ] Add tests
2024-09-28 02:45:22 +09:00
David Rodríguez
d1324170b6
[rubygems/rubygems] Warning about PATH in --user-install
mode is only necessary for gems with executables
...
2fe0f452a2
2024-09-27 16:49:32 +00:00
ydah
eff16d9302
Implement OP_ASGN1 NODE locations
2024-09-27 18:20:00 +09:00
Kevin Newton
1f431b63a2
[ruby/prism] Reject non-assoc ranges with subsequent operators
...
976a3cd0a5
2024-09-26 14:57:02 +00:00
Kevin Newton
be331c0eeb
[ruby/prism] Fix up more error messages to more closely match parse.y
...
988ac82187
2024-09-25 19:19:18 +00:00
Kevin Newton
12cf9f2ae5
[ruby/prism] Fix up void value expression checking for rescue
...
509ff88e92
2024-09-25 18:34:51 +00:00
Kevin Newton
768ceceb12
[ruby/prism] Disallow label in parentheses
...
b624e09cc6
2024-09-25 17:33:51 +00:00
Hiroshi SHIBATA
3830bca5ed
TestProcess#test_daemon_noclose is only working with macOS 15.1 beta, we should skip with macOS 15.0
2024-09-25 17:36:03 +09:00
ydah
509b577e01
Implement BLOCK_PASS NODE keyword locations
2024-09-25 09:15:43 +09:00
ydah
31a88d1554
Implement RETURN NODE keyword locations
2024-09-25 09:06:42 +09:00
tomoya ishida
07842491c5
[ruby/irb] Use proper locale in history encoding test
...
(https://github.com/ruby/irb/pull/1008 )
f6b06a9a40
2024-09-24 14:07:47 +00:00
Luke Gruber
2a0ee408af
[ruby/error_highlight] Fix error with prism when method given no arguments
...
such as:
p = Proc.new
This now matches the RubyVM::AbstractSyntaxTree behavior, which is
not to highlight anything.
d5c592a1ba
2024-09-24 13:28:01 +00:00
Kevin Newton
414a848cc6
[ruby/prism] Accept version shorthand like 3.4
...
098f1c4607
2024-09-24 13:21:36 +00:00
Benoit Daloze
ed4a55fc4d
[ruby/prism] Accept all 3.3.x and 3.4.x Ruby versions for Prism.parse
...
a4fcd5339a
2024-09-24 12:24:19 +00:00
Lars Kanis
acf28e835f
Windows: Use Unicode aware WinAPI function for ENV[]=
...
This only makes a difference when setting an empty value to a Unicode key.
2024-09-24 14:06:51 +09:00
ydah
b811a9a097
Implement CASE3 NODE keyword locations
2024-09-23 09:19:37 +09:00
ydah
5334766beb
Implement CASE2 NODE keyword locations
2024-09-23 09:19:37 +09:00