Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Remove Gem
Browse files Browse the repository at this point in the history
I think it has a potential to conflict with Homebrew files on macOS.
  • Loading branch information
r-darwish committed Jun 7, 2018
1 parent 6cceb58 commit 1369a0e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 0 additions & 10 deletions src/steps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 1369a0e

Please sign in to comment.