feat(rvm): add `rb31` shortcut to use ruby 3.1 (#10745)

This commit is contained in:
Ivan 2022-03-07 03:58:18 -06:00 committed by GitHub
parent d4c939d61e
commit 93b348b172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ plugins=(... rvm)
| `rb26` | `rvm use ruby-2.6` | | `rb26` | `rvm use ruby-2.6` |
| `rb27` | `rvm use ruby-2.7` | | `rb27` | `rvm use ruby-2.7` |
| `rb30` | `rvm use ruby-3.0` | | `rb30` | `rvm use ruby-3.0` |
| `rb31` | `rvm use ruby-3.1` |
| `rvm-update` | `rvm get head` | | `rvm-update` | `rvm get head` |
| `gems` | `gem list` | | `gems` | `gem list` |
| `rvms` | `rvm gemset` | | `rvms` | `rvm gemset` |

View File

@ -26,6 +26,7 @@ rubies=(
26 'ruby-2.6' 26 'ruby-2.6'
27 'ruby-2.7' 27 'ruby-2.7'
30 'ruby-3.0' 30 'ruby-3.0'
31 'ruby-3.1'
) )
for v in ${(k)rubies}; do for v in ${(k)rubies}; do