diff --git a/README.md b/README.md index c75183ba..4cedada5 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Just invoke `topgrade`. It will invoke the following steps: * Upgrade Emacs packages * Upgrade NPM globally installed packages * Upgrade Atom packages +* Upgrade RubyGems globally installed packages * *Linux*: Invoke the system package manager: * *Arch*: Invoke [yay](https://github.com/Jguer/yay) or fall back to pacman * *Redhat based*: Invoke `yum upgrade` diff --git a/src/main.rs b/src/main.rs index 4c764536..2234a201 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,6 +135,15 @@ fn main() -> Result<(), Error> { } } + if let Ok(gem) = which("gem") { + terminal.print_separator("RubyGems"); + Command::new(&gem) + .args(&["update"]) + .spawn()? + .wait()? + .report("RubyGems", &mut reports); + } + if let Ok(npm) = which("npm") { terminal.print_separator("Node Package Manager"); Command::new(&npm)