This commit is contained in:
Roey Darwish Dror
2018-06-06 11:47:51 +03:00
parent 10db1b7ef2
commit 3897b2ac76
2 changed files with 10 additions and 0 deletions

View File

@@ -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`

View File

@@ -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)