Skip to content

Commit

Permalink
feat(doc): fluidattacks#1249 rm makerubyversion
Browse files Browse the repository at this point in the history
- Update docs
- Remove `makeRubyVersion` section

Signed-off-by: Robin Quintero <[email protected]>
  • Loading branch information
rohaquinlop committed Jan 15, 2024
1 parent 9d3e7b4 commit 47b89ab
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions docs/src/api/extensions/ruby.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,3 @@
## makeRubyVersion

Get a specific Ruby interpreter.

Types:

- makeRubyVersion (`function str -> package`):
- (`enum [ "3.1" "3.2" "3.3" ]`):
Version of the Ruby interpreter.

Example:

=== "main.nix"

```nix
# /path/to/my/project/makes/example/main.nix
{
makeRubyVersion,
makeScript,
...
}:
makeScript {
entrypoint = ''
ruby --version
'';
name = "example";
searchPaths = {
bin = [ (makeRubyVersion "3.1") ];
};
}
```

=== "Invocation"

```bash
$ m . /example

ruby 2.6.8p205 (2021-07-07) [x86_64-linux]
```

## makeRubyGemsInstall

Fetch and install the specified Ruby gems
Expand Down

0 comments on commit 47b89ab

Please sign in to comment.