From 1369a0e0b9fe60371f73ca305cea6d01d035c109 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Thu, 7 Jun 2018 09:26:22 +0300 Subject: [PATCH] Remove Gem I think it has a potential to conflict with Homebrew files on macOS. --- README.md | 1 - src/main.rs | 5 ----- src/steps.rs | 10 ---------- 3 files changed, 16 deletions(-) diff --git a/README.md b/README.md index 64cca89a..c32d23ee 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ Just invoke `topgrade`. It will invoke the following steps: * [Plug](https://github.com/junegunn/vim-plug) * 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 8b1fef7b..8c12291c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -125,11 +125,6 @@ fn main() -> Result<(), Error> { } } - if let Ok(gem) = which("gem") { - terminal.print_separator("RubyGems"); - run_gem(&gem).report("RubyGems", &mut reports); - } - if let Ok(npm) = which("npm") { terminal.print_separator("Node Package Manager"); run_npm(&npm).report("Node Package Manager", &mut reports); diff --git a/src/steps.rs b/src/steps.rs index 85e5a9a7..1bddef2f 100644 --- a/src/steps.rs +++ b/src/steps.rs @@ -73,16 +73,6 @@ pub fn run_vim( Ok(()) } -pub fn run_gem(gem: &PathBuf) -> Result<(), failure::Error> { - Command::new(&gem) - .args(&["update"]) - .spawn()? - .wait()? - .check()?; - - Ok(()) -} - pub fn run_npm(npm: &PathBuf) -> Result<(), failure::Error> { Command::new(&npm) .args(&["update", "-g"])