Skip to content

MainShayne233/happy_gemfile

Repository files navigation

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:

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!

$ happy_gemfile

But nothing will happen without arguments!

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.

HappyGemfile.alphabetize

HappyGemfile.wipe_comments

HappyGemfile.organize_groups

HappyGemfile.all

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published