diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2026-02-04 14:31:32 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-02-04 14:58:08 +0000 |
| commit | 673c37d76ac2767b13a1ab7ba74b0ea8cda17c81 (patch) | |
| tree | 7447e58dbe4772161e957b1646f38d0366fb47be /test/ruby/test_rubyoptions.rb | |
| parent | 1258992bdff8818d3ce868e98ccc3496069d996d (diff) | |
[ruby/prism] Rewrite "version: nearest" to require no maintenance
Currently I see myself not updating this when a new version is added.
Instead, rewrite it to just work with new versions:
* Try to set the version
* If that doesn't succeed, check if it is lower
* If it isn't lower, it must be higher
We can then use `PM_OPTIONS_VERSION_LATEST` which doesn't need to change.
Also added a very basic test.
https://github.com/ruby/prism/commit/443e9b9959
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
0 files changed, 0 insertions, 0 deletions
