Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainshayne233/happy_gemfile
https://github.com/mainshayne233/happy_gemfile
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mainshayne233/happy_gemfile
- Owner: MainShayne233
- License: mit
- Created: 2016-08-08T01:24:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T19:37:43.000Z (almost 2 years ago)
- Last Synced: 2024-09-14T17:44:01.927Z (2 months ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# HappyGemfile
House keep on your Gemfile no more! Happy Gemfile is here to clean up a small fraction of the clutter in your codebase by alphabetizing your gems!
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'happy_gemfile'
```And then execute:
$ bundle
Or install it yourself with:
$ gem install happy_gemfile
## Usage
You can call the executable in the directory with the gemfile to be spruced up!
```bash
$ happy_gemfile
```But nothing will happen without arguments!
```bash
happy_gemfile alphabetize # alphabetizes gems in place; reminds me of grade school.happy_gemfile wipe_comments # clears all, non-inline, comments; you know what you're doing, right?
happy_gemfile organize_groups # places gems tidily their specified group; home sweet home!
happy_gemfile all # one arg to call them all! (RECOMMENDED)
```
Alternatively, you can call the alphabetize method directly in your app, say, in your config.rb.
```ruby
HappyGemfile.alphabetizeHappyGemfile.wipe_comments
HappyGemfile.organize_groups
HappyGemfile.all
```
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).