Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hibariya/reditor
Open a ruby library with $EDITOR
https://github.com/hibariya/reditor
Last synced: 4 days ago
JSON representation
Open a ruby library with $EDITOR
- Host: GitHub
- URL: https://github.com/hibariya/reditor
- Owner: hibariya
- License: mit
- Created: 2012-04-11T14:22:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-10-09T12:48:39.000Z (about 9 years ago)
- Last Synced: 2024-10-30T09:33:01.747Z (6 days ago)
- Language: Ruby
- Homepage: https://github.com/hibariya/reditor
- Size: 235 KB
- Stars: 40
- Watchers: 6
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reditor [![Build Status](https://travis-ci.org/hibariya/reditor.png?branch=master)](https://travis-ci.org/hibariya/reditor)
Reditor provides `reditor` command.
This command detect and open a library from `$LOAD_PATH` or rubygems.
reditor requires the `$EDITOR` variable.
## Installation
```
$ gem install reditor
```## Usage
### Open a Standard Library (pure ruby only)
```
$ reditor set
```### Open a gem
```
$ reditor railties
```### Open a library by $SHELL
```
$ reditor sh railties
```### Open a gem on bundler project
Reditor opens a gem that specified in Gemfile by default.
If you want to avoid it, pass the `--global` option.```
$ gem list rack*** LOCAL GEMS ***
rack (1.5.2, 1.4.5)
$ bundle list rack
/(snip)/rack-1.4.5$ reditor rack # open rack-1.4.5
$ reditor rack --global # open rack-1.5.2
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request