🍺 BREW Explorer

← all formulae

brew-gem

brew install brew-gem v1.3.4 MIT

Install RubyGems as Homebrew formulae

510
30-day installs · #1734
1.2k
90-day · #2034
4.4k
365-day · #2052
209
★ GitHub stars · updated 2mo ago

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Install RubyGems as Homebrew formulae",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:59+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "brew-gem",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-05-26T23:08:09Z",
  "github_readme_excerpt": "brew-gem -- install gems as homebrew formulas\n=============================================\n\n`brew gem` allows you to install any rubygem as a homebrew formula.\n\nIt works by generating a stub formula for homebrew, which looks something like this:\n\n    class Ronn \u003c Formula\n      def initialize(*args)\n        @name = \"ronn\"\n        @version = \"0.7.3\"\n        super\n      end\n\n      def install\n        system \"gem\", \"install\", name, \"--version\", version, \"--install-dir\", prefix\n      end\n    end\n\nThis formula installs and unpacks all the dependencies under the Cellar path. So the package is completely self contained.\n\n\nDependencies\n------------\nThis requires a system rubygems version of 2.3 or greater\nThere is a bug prior to 2.3 that doesn\u0027t install the full dependency tree properly when you use the install-dir flag.\n\n```\nsudo /usr/bin/gem update --system\n```\n\n\nInstall\n-------\n\nThere are two ways to install `brew-gem`, via Homebrew or via Rubygems. Usually\nthe Rubygems release will track ahead of the Homebrew recipe, so to receive the\nlatest features, use the Rubygems install instructions.\n\n*Warning*: If you previously installed `brew-gem` with Homebrew, the Rubygems\ninstall method will fail. Run `brew unlink brew-gem` or `brew uninstall\nbrew-gem` first.\n\nVia Rubygems:\n\n    gem install brew-gem\n    brew-gem install brew-gem\n\nVia Homebrew:\n\n    brew install brew-gem\n\n\nUsage\n-----\n\n    brew gem install heroku\n\nTo install a specific version:\n\n    brew gem install heroku 3.8.3\n\nTo install using a brew installed ruby(/usr/local/bin/ruby):\n\n    brew gem install heroku --homebrew-ruby\n\nAnd with a specific version:\n\n    brew gem install heroku 3.8.3 --homebrew-ruby\n\nTo upgrade:\n\n    brew gem upgrade heroku\n\nTo uninstall:\n\n    brew gem uninstall heroku\n\nTo check information:\n\n    brew gem info heroku\n\nNote:\n\nInstalled gems are listed in `brew list` with prefix of `gem-`,\nlike `gem-heroku`.\n\n### BASH/ZSH Completions\n\nTo make use of completions for your gem, you need to install th",
  "github_repo": "sportngin/brew-gem",
  "github_stars": 209,
  "github_topics": [],
  "homepage": "https://github.com/sportngin/brew-gem",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 510,
  "installs_365d": 4364,
  "installs_90d": 1187,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "brew-gem",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1734,
  "rank_365d": 2052,
  "rank_90d": 2034,
  "raw_hash": "738abd56e2c89e52",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/brew-gem.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "ruby"
  ],
  "version_head": "HEAD",
  "version_stable": "1.3.4",
  "versioned_formulae": [],
  "why_use_this": null
}