sportngin / brew-gem

Install gems as homebrew formulas
MIT License
195 stars 22 forks source link

Add the install and uninstall commands. Could work for upgrade/clean too not sure yet. #2

Closed anfleene closed 10 years ago

anfleene commented 10 years ago

Edit your formula /usr/local/Library/Formula/brew-gem.rb to point at this branch:

require 'formula'

class BrewGem < Formula
  homepage 'https://github.com/sportngin/brew-gem'
  url 'https://github.com/sportngin/brew-gem/archive/install-uninstall.tar.gz'

  def install
    bin.install 'bin/brew-gem'
  end
end

This should all work:

#run brew upgrade
brew upgrade brew-gem
brew gem install opsicle
brew gem uninstall opsicle
ehlertij commented 10 years ago

Looks good to me :shipit: