aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/installer/managers/gem.lua
Commit message (Collapse)AuthorAgeFilesLines
* refactor: turn StdioSink into a proper classWilliam Boman2025-02-191-17/+11
|
* refactor!: change Package APIWilliam Boman2025-02-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the following public APIs: **(_breaking_) Events on the `Package` class** The `uninstall:success` event on the `Package` class now receives an `InstallReceipt` as argument, instead of an `InstallHandle`. This receipt is an in-memory representation of what was uninstalled. There's also a new `uninstall:failed` event for situations where uninstallation for some reason fails. Note: this also applies to the registry events (i.e. `package:uninstall:success` and `package:uninstall:failed`). --- **(_breaking_) `Package:uninstall()` is now asynchronous and receives two new arguments, similarly to `Package:install()`** While package uninstallations remain synchronous under the hood, the public API has been changed from synchronous -> asynchronous. Users of this method are recommended to provide a callback in situations where code needs to execute after uninstallation fully completes. --- **(_breaking_) `Package:get_install_path()` has been removed. --- **`Package:install()` now takes an optional callback** This callback allows consumers to be informed whether installation was successful or not without having to go through a different, low-level, API. See below for a comparison between the old and new APIs: ```lua -- before local handle = pkg:install() handle:once("closed", function () -- ... end) -- after pkg:install({}, function (success, result) -- ... end) ```
* feat(installer): write more installation output to stdout (#1376)William Boman2023-06-281-1/+1
| | | This should give better insights into the installation progress.
* chore(ci): upgrade linter versions (#1377)William Boman2023-06-281-10/+16
|
* style: enforce import order (#1092)William Boman2023-03-121-2/+2
| | | | | * chore(workflows): update dependencies * style: enforce import order
* feat: add github registry source capabilities (#1091)William Boman2023-03-121-0/+65