Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tpope/gem-browse
gem edit, gem open, gem clone, gem browse
https://github.com/tpope/gem-browse
Last synced: 6 days ago
JSON representation
gem edit, gem open, gem clone, gem browse
- Host: GitHub
- URL: https://github.com/tpope/gem-browse
- Owner: tpope
- License: mit
- Created: 2011-08-28T16:00:07.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-02-23T20:14:12.000Z (almost 2 years ago)
- Last Synced: 2024-10-20T06:49:16.949Z (2 months ago)
- Language: Ruby
- Homepage: http://rubygems.org/gems/gem-browse
- Size: 13.7 KB
- Stars: 221
- Watchers: 10
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
- Open-Source-Ruby-and-Rails-Apps - gem-browse - gem edit, gem open, gem clone, gem browse 🔥 🚀 (Happy Exploring 🤘)
README
gem-browse
==========Open a library file you can require in your editor. That's it.
gem edit active_support/all
gem edit rake/task thor/task
gem edit -e mvim fileutilsActually that's not it. You can also open a gem by name.
gem open bundler
Your editor's current working directory will be the root of the gem.
I almost forgot. You can also clone a gem from GitHub.
gem clone rails
gem clone -d ~/src capybaraAnd you can tell it to open the gem in your editor afterwards.
gem clone -o rack
gem clone -oe mvim -d /tmp gem-browseThis one doesn't work if the neither the homepage nor the source code
URL point back at GitHub.That's really it. I mean other than the command that lets you open a
gem's homepage in your browser. You know, the command this gem is named
after.gem browse sprockets
Installation
------------RubyGems 1.8 is required to use `gem edit`, but the other commands will
work on any version that supports RubyGems plugins.gem install gem-browse
If you're using RVM, you can put it in the global gemset (relax, it has
no dependencies):echo gem-browse >> ~/.rvm/gemsets/global.gems
rvm @global do gem install gem-browseProtip: Install [gem-ctags](https://github.com/tpope/gem-ctags) to
automatically invoke [Ctags](http://ctags.sourceforge.net/) on gems as
they are installed.Contributing
------------Don't submit a pull request with [an ugly commit
message](http://stopwritingramblingcommitmessages.com) or I will ignore
your patch until I have the energy to politely explain my zero tolerance
policy.License
-------Copyright (c) Tim Pope. MIT License.