-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7d5fdd
commit c46ccc3
Showing
56 changed files
with
468 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
CHANGELOG.md | ||
.venv | ||
registry/ | ||
aqua-registry/ | ||
docs/cli | ||
docs/environments.md | ||
docs/registry.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
3.12 | ||
3.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# gem Backend | ||
|
||
mise can be used to install CLIs from RubyGems. The code for this is inside of the mise repository at [`./src/backend/gem.rs`](https://github.com/jdx/mise/blob/main/src/backend/pipx.rs). | ||
|
||
## Dependencies | ||
|
||
This relies on having `gem` (provided with ruby) installed. You can install it with or without mise. | ||
Here is how to install `ruby` with mise: | ||
|
||
```sh | ||
mise use -g ruby | ||
``` | ||
|
||
## Usage | ||
|
||
The following installs the latest version of [rubocop](https://rubygems.org/gems/rubocop) and sets it as the active version on PATH: | ||
|
||
```sh | ||
mise use -g gem:rubocop | ||
rubocop --version | ||
``` | ||
|
||
The version will be set in `~/.config/mise/config.toml` with the following format: | ||
|
||
```toml | ||
[tools] | ||
"gem:rubocop" = "latest" | ||
``` | ||
|
||
## Ruby upgrades | ||
|
||
If the ruby version used by a gem package changes, (by mise or system ruby), you may need to | ||
reinstall the gem. This can be done with: | ||
|
||
```sh | ||
mise install -f gem:rubocop | ||
``` | ||
|
||
Or you can reinstall all gems with: | ||
|
||
```sh | ||
mise install -f "gem:*" | ||
``` | ||
|
||
## Settings | ||
|
||
Set these with `mise settings set [VARIABLE] [VALUE]` or by setting the environment variable listed. | ||
|
||
<script setup> | ||
import Settings from '/components/settings.vue'; | ||
</script> | ||
<Settings child="gem" :level="3" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
mise use ruby | ||
assert "mise x gem:rubocop@1.69.0 -- rubocop --version" "1.69.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
# Install and build ruby using ruby-build | ||
|
||
export MISE_RUBY_INSTALL=0 | ||
latest=$(mise latest ruby) | ||
assert_contains "mise x ruby@$latest -- ruby --version" "ruby $latest" | ||
# tested in test_gem_slow | ||
#export MISE_RUBY_INSTALL=0 | ||
#latest=$(mise latest ruby) | ||
#assert_contains "mise x ruby@$latest -- ruby --version" "ruby $latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.