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

17467 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada c87f2a4f15
[Bug #19887] RUBYOPT should work without leading `-` 2023-09-18 10:14:46 +09:00
Nobuyoshi Nakada 5c6e00b090
Simplify restoring ENV 2023-09-18 09:55:07 +09:00
tomoya ishida 8b4e54f979 [ruby/irb] Test should not depend on user's irbrc file specified by
ENV['IRBRC']
(https://github.com/ruby/irb/pull/717)

https://github.com/ruby/irb/commit/1d2d35dd33
2023-09-17 21:25:49 +00:00
tomoya ishida cd67c0d204 [ruby/irb] Test should not depend on user's irbrc file
(https://github.com/ruby/irb/pull/714)

https://github.com/ruby/irb/commit/02703c46f9
2023-09-16 22:27:04 +00:00
Jeremy Evans 25711683e8 Fix regression when testing inclusion in unbounded ranges
Caused by 04a92a6764.  This treats
unbounded ranges of arbitrary objects the same as how unbounded
string ranges are treated:

  (..x)  === y  # (y <=> x) <= 0
  (...x) === y  # (y <=> x) <  0
  (x..)  === y  # (x <=> y) <= 0

Fixes [Bug #19864]
2023-09-16 16:02:31 +01:00
Chad Schroeder a8afedce6d [ruby/irb] Handle Concurrent Sessions and Saving Readline::HISTORY
(https://github.com/ruby/irb/pull/651)

* handle concurrent sessions and saving Readline::HISTORY, fixes https://github.com/ruby/irb/pull/510

* separate tests

* don't mutate the HISTORY object on the class

* avoid repeated .to_i calls

* remove intermediary history array

* work with array, fix test comment

---------

https://github.com/ruby/irb/commit/1681ada328

Co-authored-by: Stan Lo <stan001212@gmail.com>
2023-09-16 12:48:32 +00:00
Nobuyoshi Nakada b4213a73b8 [Feature #19839] Fix `Range#overlap?` for empty ranges
Empty ranges do not overlap with any range.

Regarding benchmarks, PR#8242 is significantly faster in some cases,
but one of these two cases is a wrong result.

|                           |ActiveSupport| PR#8242|built-ruby|
|:--------------------------|------------:|-------:|---------:|
|(2..3).overlap?(1..1)      |       7.761M| 15.053M|   32.368M|
|                           |            -|   1.94x|     4.17x|
|(2..3).overlap?(2..4)      |      25.720M| 55.070M|   21.981M|
|                           |        1.17x|   2.51x|         -|
|(2..3).overlap?(4..5)      |       7.616M| 15.048M|   21.730M|
|                           |            -|   1.98x|     2.85x|
|(2..3).overlap?(2..1)      |      25.585M| 56.545M|   32.786M|
|                           |            -|   2.21x|     1.28x|
|(2..3).overlap?(0..1)      |       7.554M| 14.755M|   32.545M|
|                           |            -|   1.95x|     4.31x|
|(2..3).overlap?(...1)      |       6.681M|  5.843M|   32.255M|
|                           |        1.14x|       -|     5.52x|
|(2...3).overlap?(..2)      |       6.676M|  5.817M|   21.572M|
|                           |        1.15x|       -|     3.71x|
|(2...3).overlap?(3...)     |       7.392M| 14.755M|   31.805M|
|                           |            -|   2.00x|     4.30x|
|(2..3).overlap?('a'..'d')  |       3.675M|  3.482M|   17.009M|
|                           |        1.06x|       -|     4.89x|
2023-09-16 17:24:21 +09:00
Shouichi Kamiya e9b503f1bb [Feature #19839] Add Range#overlap?
Add a method that returns true if two range overlap, otherwise false.

```
(0..10).overlap?(5..15) #=> true
(0..10).overlap?(20..30) #=> false
```
2023-09-16 14:57:19 +09:00
Kevin Newton cb686b9ccc [ruby/yarp] Handle missing clauses in case statement
https://github.com/ruby/yarp/commit/1ad7fba5ef
2023-09-15 23:32:05 +00:00
Kevin Newton 4c28a61e83 [ruby/yarp] Ensure multi targets are only in valid locations
https://github.com/ruby/yarp/commit/8bffb8a762
2023-09-15 23:21:36 +00:00
Kevin Newton 1be64e34d0 [ruby/yarp] Alnum cannot be %-literal delimiters
https://github.com/ruby/yarp/commit/4ba6d5ca70
2023-09-15 22:59:48 +00:00
Kevin Newton 18780c22f6 [ruby/yarp] Properly handle invalid underscores in number literals
https://github.com/ruby/yarp/commit/35da3d1a4c
2023-09-15 22:38:58 +00:00
Kevin Newton b848700ccf [ruby/yarp] Extract test listener to its own class
https://github.com/ruby/yarp/commit/c8caa997c0
2023-09-15 22:36:22 +00:00
Vinicius Stock 35960ce65e [ruby/yarp] Add node event dispatcher
This commit changes the node template to create a dispatcher class,
which can be used to walk an AST an emit events to all registered
listeners

https://github.com/ruby/yarp/commit/03a45f85e6

Co-authored-by: Kevin Newton <kddnewton@users.noreply.github.com>
2023-09-15 22:36:22 +00:00
Kevin Newton c2f7dae317 [ruby/yarp] Handle unterminated interpolated symbol
https://github.com/ruby/yarp/commit/9222faa1c6
2023-09-15 22:24:50 +00:00
Kevin Newton d2c75bb937 [ruby/yarp] Handle missing terminators in parenthesized expression
https://github.com/ruby/yarp/commit/a8b54e8ed0
2023-09-15 22:24:38 +00:00
Kevin Newton ffe77c022c [ruby/yarp] Handle infinite opt terms after missing case predicate
https://github.com/ruby/yarp/commit/d931e258d1
2023-09-15 22:24:25 +00:00
Andy Waite bbf9f11ce6 [ruby/yarp] Fix behaviour of locations for comments
https://github.com/ruby/yarp/commit/b1ced67fba
2023-09-15 22:22:24 +00:00
Tim Morgan 101ac364a5 [ruby/yarp] Return Regexp options that match MRI for e, u, s, and n
https://github.com/ruby/yarp/commit/17dbf4ec46
2023-09-15 21:47:27 +00:00
Jemma Issroff 4012ba4ecf [ruby/yarp] Fix string delimiter with "@" confused for embedded
variable
(https://github.com/ruby/yarp/pull/1521)

https://github.com/ruby/yarp/commit/3ec0699622
2023-09-15 18:02:04 +00:00
Kevin Newton 28fe88468d [ruby/yarp] Add more tests for implicit hash values
https://github.com/ruby/yarp/commit/1ddd74dc11
2023-09-15 15:41:02 +00:00
Kevin Newton 5f9f2fd72e [ruby/yarp] Add implicit nodes for ommitted hash values
https://github.com/ruby/yarp/commit/22130b3491
2023-09-15 15:41:02 +00:00
Kevin Newton b5084877c0 [ruby/yarp] Disallow numbered parameters in multiple scopes
https://github.com/ruby/yarp/commit/5fd4d3b89a
2023-09-15 15:14:37 +00:00
Kevin Newton a4b4ebc7c1 [ruby/yarp] Error when numbered parameters are written
https://github.com/ruby/yarp/commit/65b536ba12
2023-09-15 15:14:36 +00:00
Kevin Newton 6031ab18c7 [ruby/yarp] Support parsing numbered parameters
https://github.com/ruby/yarp/commit/ffc8f35e56
2023-09-15 15:14:34 +00:00
Kevin Newton 1badb09f61 [ruby/yarp] Properly handle missing method names
https://github.com/ruby/yarp/commit/4a30c69051
2023-09-15 15:14:19 +00:00
Nobuyoshi Nakada 89802078f9
[Bug #19882] Reject tokens invalid as symbols 2023-09-15 17:27:36 +09:00
KJ Tsanaktsidis 0117a6d389
Fix Thread#native_thread_id being cached across fork (#8418)
The native thread ID can and does change on some operating systems (e.g.
Linux) after forking, so it needs to be re-queried.

[Bug #19873]
2023-09-15 10:33:32 +09:00
Kevin Newton 0d33bc0cde [ruby/yarp] Simplify multi-target parsing
This simplifies how we handle multi-targets, and also fixes a bug we
had where for loops were always getting multi-targets, even when there
was only a single target.

https://github.com/ruby/yarp/commit/31eb8b7ad5
2023-09-14 19:16:39 +00:00
Kevin Newton 0a8f3670d1 [ruby/yarp] Introduce MatchWriteNode
This rarely used node holds information about the local variables
that need to get written in the case a regular expression is used on
the left-hand side of a =~ operator and it has named capture groups.

Note that we already "handled" these nodes by adding locals to the
AST, but we didn't actually expose this information, making it
difficult to compile.

The general idea behind this node is that it maintains the ability
for consumers to find all of the call nodes in the tree easily so
it's not flattening down. However, it should be okay because you
hopefully don't need any information in the call node to determine
what to compile because the locals list is on the top level.

https://github.com/ruby/yarp/commit/e136e7f9a8
2023-09-14 19:10:58 +00:00
Kevin Newton 9d2549ac31 [ruby/yarp] Write names should not underflow size_t
If the read_name is invalid, we shouldn't try to set a write name.

https://github.com/ruby/yarp/commit/06881c8ca7
2023-09-14 19:10:47 +00:00
Kevin Newton 63d1e05665 [ruby/yarp] Handle errors when operator writes on a call with a block
https://github.com/ruby/yarp/commit/93bec2c173
2023-09-14 18:32:16 +00:00
Kevin Newton fb1328e467 [ruby/yarp] Fix multi target parentheses locations
https://github.com/ruby/yarp/commit/7f71527522
2023-09-14 18:31:55 +00:00
Kevin Newton 826bebb7d8 [ruby/yarp] Reject invalid call-operator-write
https://github.com/ruby/yarp/commit/d3a852dac2
2023-09-14 18:30:11 +00:00
Kevin Newton 581bda0cba [ruby/yarp] Add a frozen string flag
https://github.com/ruby/yarp/commit/09248a1f9e
2023-09-14 18:28:45 +00:00
Nobuyoshi Nakada 9cb33aad55
[Bug #19877] Fix flip-flop in block 2023-09-15 01:09:07 +09:00
Nobuyoshi Nakada 864bb8680c
[Bug #19877] Named captures should take place from regexps in block 2023-09-15 01:09:06 +09:00
Nobuyoshi Nakada e8896a31d4
[Bug #19877] Literals cannot have singleton methods even in blocks 2023-09-15 01:09:06 +09:00
Kevin Newton 1b6d2b9184 [ruby/yarp] Fix up unary minus precedence
https://github.com/ruby/yarp/commit/6be28eeed0
2023-09-14 13:58:33 +00:00
Kevin Newton 174aa53656 [ruby/yarp] Handle concat character literal and string
https://github.com/ruby/yarp/commit/fb141b8d07
2023-09-14 13:58:13 +00:00
Kevin Newton 57745450dd [ruby/yarp] Extract out heredoc parsing into parse_strings
https://github.com/ruby/yarp/commit/c5a1094988
2023-09-14 13:58:12 +00:00
Kevin Newton 9a1c5a1268 [ruby/yarp] Handle invalid operator write on fcall
https://github.com/ruby/yarp/commit/22c800eab1
2023-09-14 13:39:06 +00:00
Samuel Williams a095740fed
Fix `io_buffer_get_string` default length computation. (#8427)
* Fix `io_buffer_get_string` default length computation.

When an offset bigger than the size is given, the resulting length will be
computed incorrectly. Raise an argument error in this case.

* Validate all arguments.
2023-09-14 20:37:43 +12:00
Nobuyoshi Nakada 998ae7c3f3
[Bug #19868] Deprecate `Process::Status#&` and `Process::Status#>>` 2023-09-14 15:26:25 +09:00
Nobuyoshi Nakada b6de0a6c69
[Bug #19868] Suggest other Process::Status method for `&` and `>>`
`Process::Status#&` and `Process::Status#>>` are provided only for
the backward compatibility with older Ruby than 1.8 where `$?` was
a `Fixnum`, and the knowledge about internals of system dependent
macros is necessary to use them.  Modern programs and libraries
should not need these methods.
2023-09-14 14:57:57 +09:00
Nobuyoshi Nakada efe5e6e8d0
Negative value to Process::Status method for compatibility 2023-09-14 14:38:14 +09:00
Kevin Newton 90838a9490 [ruby/yarp] Fix associativity for a couple of operators
https://github.com/ruby/yarp/commit/820774976d
2023-09-13 13:50:13 +00:00
Kevin Newton f9898b9eca [ruby/yarp] Better handle invalid gvar writes
https://github.com/ruby/yarp/commit/eaaebc17c8
2023-09-13 13:40:46 +00:00
Nobuyoshi Nakada ea75a682a9 [ruby/yarp] Mark empty flags as well as locations and blocks
https://github.com/ruby/yarp/commit/b74ce35379
2023-09-13 12:48:39 +00:00
Yusuke Endoh 411572661a math.c: Fix Math.log against huge bignum [Bug #19878] 2023-09-13 21:40:05 +09:00
Hiroshi SHIBATA c75d54a36c
Fixup 1851824b1c 2023-09-13 16:23:18 +09:00
Hiroshi SHIBATA 1851824b1c [flori/json] alias_method is private on Ruby 2.3 and 2.4
https://github.com/flori/json/commit/573ef94bc5
2023-09-13 16:01:19 +09:00
Nobuyoshi Nakada 234722ed9f [Bug #19872] Refine TestRequireLib
Always test only the scripts just under “lib", and just under
child directories which has not the same name script in the upper
level; instead of random sampling from whole libraries.
2023-09-13 10:43:10 +09:00
Nobuyoshi Nakada 435b243978
Suppress an unused variable warning 2023-09-13 10:24:55 +09:00
Kevin Newton c421f08f6b [ruby/yarp] Handle parsing local variable singleton method definition
https://github.com/ruby/yarp/commit/943204d56f
2023-09-13 00:55:04 +00:00
Nobuyoshi Nakada 6e64d43704 [Bug #19862] Skip compiled result of never reachable expression 2023-09-13 08:30:37 +09:00
Nobuyoshi Nakada 19346c2336
[Bug #19754] Make `IO::Buffer#get_string` check `offset` range (#8016) 2023-09-13 09:45:26 +12:00
Kevin Newton a98209b8a7 [ruby/yarp] Split AliasNode
Into AliasGlobalVariableNode and AliasMethodNode. These have different
enough semantics that we feel comfortable splitting them up.

https://github.com/ruby/yarp/commit/c1f3e6d344
2023-09-12 15:44:25 +00:00
Alan Wu 39ee3e22bd Make Kernel#lambda raise when given non-literal block
Previously, Kernel#lambda returned a non-lambda proc when given a
non-literal block and issued a warning under the `:deprecated` category.
With this change, Kernel#lambda will always return a lambda proc, if it
returns without raising.

Due to interactions with block passing optimizations, we previously had
two separate code paths for detecting whether Kernel#lambda got a
literal block. This change allows us to remove one path, the hack done
with rb_control_frame_t::block_code introduced in 85a337f for supporting
situations where Kernel#lambda returned a non-lambda proc.

[Feature #19777]

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2023-09-12 11:25:07 -04:00
Nobuyoshi Nakada 385033ba0f
Ensure signaled processes at opening FIFO terminated 2023-09-12 23:28:48 +09:00
Jemma Issroff 39336c1ab8 [ruby/yarp] Heredocs can create Interpolated(X)StringNodes or
(X)StringNodes
(https://github.com/ruby/yarp/pull/1427)

Prior to this commit, heredocs were automatically InterpolatedNodes
regardless of whether there was actually interpolation. With this
commit, heredocs are only interpolate if there is actually
interpolation

https://github.com/ruby/yarp/commit/e9f436128b
2023-09-12 13:39:24 +00:00
Benoit Daloze fe3eff08ee [ruby/yarp] Move the post required parameters after the rest parameter
* See https://github.com/ruby/yarp/issues/1436

https://github.com/ruby/yarp/commit/6f4e9ff940
2023-09-12 12:11:40 +00:00
Kevin Newton 8953fc774c [ruby/yarp] Provide a flag for the integer base
https://github.com/ruby/yarp/commit/45dd046b83
2023-09-11 21:49:51 +00:00
Kevin Newton b7ffa74d58 [ruby/yarp] Introduce MatchLastLineNode and InterpolatedMatchLastLineNode
These are replacements for regular expressions when they are used
alone as the predicate of a conditional. That's because they are
significantly different from a regular expression because they are
not evaluated for truthyness, but instead evaluated as a match
against the last line read by an IO object.

https://github.com/ruby/yarp/commit/0f1c7780e8
2023-09-11 21:42:03 +00:00
Kevin Newton 14a83e0879 [ruby/yarp] Update pretty_print to use inspect
https://github.com/ruby/yarp/commit/c2b9b780c7
2023-09-11 21:32:15 +00:00
negi0109 8bb61077ad [rubygems/rubygems] Fixed false positive SymlinkError in symbolic link directory
https://github.com/rubygems/rubygems/commit/58173ff2ea
2023-09-11 21:06:21 +00:00
Kevin Newton 719f834466 [ruby/yarp] Mark flags as private
The flags integer is an implementation detail. We want people to
use the query methods to access the individual fields so we are
freed from having to maintain a specific order. As such, this
commit changes the Ruby API to mark all flags fields as private
attr_readers.

The only one that has a clear use case is returning the set of
options given to regular expressions, to mirror the Regexp#options
API. So, to support this use case, this commit introduces
RegularExpressionNode#options and InterpolatedRegularExpressionNode#options.
These APIs provide back the same integer so that they can be used
interchangeably.

https://github.com/ruby/yarp/commit/4e6d5dd99f
2023-09-11 16:18:32 +00:00
Tim Morgan 05a853c2f2 [ruby/yarp] Update fixtures
https://github.com/ruby/yarp/commit/884f2ca8e4
2023-09-11 15:25:06 +00:00
Tim Morgan 689dffc857 [ruby/yarp] Add failing test for Regexp flags
https://github.com/ruby/yarp/commit/16fe179c5f
2023-09-11 15:25:05 +00:00
Kevin Newton 5d73c0f3df [ruby/yarp] Move parse result mutations into their own files
https://github.com/ruby/yarp/commit/3be8272fa2
2023-09-08 19:38:17 +00:00
Jemma Issroff 7fc4db35ee
[YARP] Implement compilation for RationalNodes, fix other num types (#8404) 2023-09-08 15:33:51 -04:00
Vinicius Stock 6050b5a4e8 [ruby/yarp] Add ParseResult#attach_comments! to tie comments to their locations
https://github.com/ruby/yarp/commit/ddc699156f

Co-authored-by: Kevin Newton <kddnewton@users.noreply.github.com>
2023-09-08 18:10:26 +00:00
Matt Valentine-House 7f53da94fb Fix weak_references count test
This test creates a lot of Objects held in an array, and a set of weak
references to them using WeakMap. It then clears the array and frees it
and asserts that all the weak references to it are also gone.

This test is failing because one of the dummy objects in our weakmap is
ending up on the stack, and so is being marked, even though we thought
that we'd removed the only reference to it.

This behaviour has changed since this commit:

5b5ae3d9e0

which rewrites `Integer#times` from C into Ruby. This change is somehow
causing the last object we append to our array to consistently end up on
the stack during GC.

This commit fixes the specific weakmap test by using an enumerator and
each, instead of `Integer#times`, and thus avoids having our last object
created end up on the stack.
2023-09-08 17:45:00 +01:00
Jemma Issroff af5df9ee5e
[YARP] Implement compilation for Regex / InterpolatedRegex (#8396) 2023-09-08 12:09:30 -04:00
Jemma Issroff 8807b0dc96
[YARP] Implement compilation for InterpolatedXStringNode (#8395)
* [YARP] Implemented compilation for InterpolatedXStringNode

* Extract common function for interpolated nodes
2023-09-08 10:40:07 -04:00
Kevin Newton c7d61181d0 [ruby/yarp] Flatten multitarget into multiwrite
https://github.com/ruby/yarp/commit/1021dac372
2023-09-08 13:40:28 +00:00
Kevin Newton f39b576e76 [ruby/yarp] Multi target nodes
https://github.com/ruby/yarp/commit/fa53fe88e4
2023-09-08 13:40:28 +00:00
Takashi Kokubun 5b5ae3d9e0
Rewrite Integer#times in Ruby (#8388) 2023-09-07 10:57:52 -07:00
Mike Dalessio 4efcaf956e [ruby/yarp] Extract error messages into diagnostic.c and use canonical message IDs
The parser now passes around `yp_diagnostic_id_t` for diagnostic
messages instead of character strings, and we rely on the function
`diagnostic_message()` to resolve that to a string.

In addition, many messages were edited so that the parser expresses
coordinate ideas in similar form [1] using consistent voice and
typographic conventions.

Closes https://github.com/ruby/yarp/pull/1379, and makes progress on #941.

  [1] Strunk & White rule 19

https://github.com/ruby/yarp/commit/0b6dd85bf1
2023-09-07 16:36:56 +00:00
Jemma Issroff 7adc38b895
[YARP] Miscellaneous small bug fixes (#8387) 2023-09-07 10:59:51 -04:00
Kevin Newton 194584f202 [ruby/yarp] Introduce owned constants
Before this commit, constants in the constant pool were assumed to
be slices of the source string. This works in _almost_ all cases.

There are times, however, when a string needs to be synthesized.
This can occur when passing in locals that need to be scoped through
eval, or when generating method names like `foo=`.

After this commit, there is a single bit `owned` boolean on
constants in the pool that indicates whether or not it is a slice
of the source string. If it is not, it is assumed to be allocated
memory that should be freed by the constant pool when the constant
pool is freed.

When serializing, the most significant bit in the location of the
contents of the constant indicates whether or not it is owned.
When it is, instead of 4 bytes for the source offset and 4 bytes
for the length it is instead 4 bytes for the buffer offset and 4
bytes the length. The contents of the owned constants are embedded
into the buffer after the constant pool itself.

https://github.com/ruby/yarp/commit/461c047365
2023-09-07 14:01:21 +00:00
Kevin Newton 14970cfc8d [ruby/yarp] Constants and def nodes
https://github.com/ruby/yarp/commit/6b2421ce1b
2023-09-07 12:42:02 +00:00
Kevin Newton 9343ef2504 [ruby/yarp] Constants on rest parameter nodes
https://github.com/ruby/yarp/commit/a6fdb8aae9
2023-09-07 12:42:02 +00:00
Kevin Newton 3f78eec44a [ruby/yarp] Constants on keyword rest parameters
https://github.com/ruby/yarp/commit/5e1a8fbc54
2023-09-07 12:42:01 +00:00
Kevin Newton 9e21b33ece [ruby/yarp] Constants on keyword parameters
https://github.com/ruby/yarp/commit/d2d4f25a23
2023-09-07 12:42:00 +00:00
Kevin Newton e2a0f25888 [ruby/yarp] Remove name constant from classes/modules
https://github.com/ruby/yarp/commit/26105f0b58
2023-09-07 12:41:45 +00:00
Nobuyoshi Nakada bd046764e3
[Bug #19549] Check for variables to be interpolated 2023-09-07 13:41:13 +09:00
Samuel Williams 05aaff2191
Reduce number of iterations in `TestFiberScheduler#test_autoload`. (#8391)
`ppc64le` appears to be struggling with this test due to timeout. Let's see
if reducing the number of iterations can help improve the test performance.
2023-09-07 13:53:51 +12:00
Vinicius Stock acd626a583 [ruby/yarp] Consider source encoding for `slice`
https://github.com/ruby/yarp/commit/8f59fc27cd

Co-authored-by: Kevin Newton <kddnewton@users.noreply.github.com>
2023-09-06 19:50:21 +00:00
Andy Waite fdf7aad902 [ruby/yarp] Fix `Location#end_column`
https://github.com/ruby/yarp/commit/00e4711026
2023-09-06 18:37:41 +00:00
Peter Zhu 12102d101a Fix crash in WeakMap during compaction
WeakMap can crash during compaction because the st_insert could allocate
memory.
2023-09-06 14:20:23 -04:00
Kevin Newton 746eede412 [ruby/yarp] Constant on block parameter node
https://github.com/ruby/yarp/commit/2cd9a67150
2023-09-06 18:18:10 +00:00
Peter Zhu 08929b344d Try to fix flaky test_warmup_frees_pages
This test sometimes fails with:

```
  1) Failure:
TestProcess#test_warmup_frees_pages [test/ruby/test_process.rb:2750]:
<202> expected but was
<203>.
```
2023-09-06 13:31:50 -04:00
Kevin Newton dee383b262 [ruby/yarp] Constants on classes and modules
(https://github.com/ruby/yarp/pull/1409)

https://github.com/ruby/yarp/commit/0a11ec579f
2023-09-06 16:19:43 +00:00
Kevin Newton a52ac350cc [ruby/yarp] Fix assert_raises in YARP
https://github.com/ruby/yarp/commit/8f8f3530aa
2023-09-06 14:30:55 +00:00
Kevin Newton 5537169ef0 [ruby/yarp] Temporarily add name_constant to replace name on ClassNode/ModuleNode
https://github.com/ruby/yarp/commit/8f87686e9c
2023-09-06 14:20:13 +00:00
Kevin Newton dae6a0a295 [ruby/yarp] Introduce YARP::Pattern
https://github.com/ruby/yarp/commit/2a12e9637b
2023-09-06 14:19:58 +00:00
Kevin Newton 4c9a036606 [ruby/yarp] Add constants and constants
https://github.com/ruby/yarp/commit/d7eaa89bc3
2023-09-06 13:00:23 +00:00
Kazuki Yamaguchi 5ba480e4ea
Use the test-unit-ruby-core gem for Test::Unit::CoreAssertions
test/lib/core_assertions.rb and its dependencies are now packaged in
the gem test-unit-ruby-core. Let's use it instead.
2023-09-06 19:51:53 +09:00
Kazuki Yamaguchi 3fd90c0158 [ruby/openssl] test/openssl/test_pkey_ec.rb: refactor tests for EC.builtin_curves
Check that OpenSSL::PKey::EC.builtin_curves returns an array in the
expected format.

Similarly to OpenSSL::Cipher.ciphers, OpenSSL::PKey::EC.builtin_curves
returns a list of known named curves rather than actually usable ones.

https://github.com/ruby/openssl/issues/671 found that the list may
include unapproved (and thus unusable) curves when the FIPS module is
loaded.

https://github.com/ruby/openssl/commit/c53cbabe00
2023-09-06 19:31:11 +09:00