finishing_moves

Small, focused, awesome methods added to core Ruby classes. Home of the endlessly useful nil_chain.

MIT License

Downloads
2M
Stars
204
Committers
6

Finishing Moves

Ruby includes a huge amount of default awesomeness that tackles most common development challenges. But every now and then, you find yourself performing contortions to achieve results that, honestly, should feel more natural given the language's design elegance. Finishing Moves is a collection of methods designed to assist in those "why is this awkward?" scenarios.

In the right situation, they kick serious cyclomatic butt.

Installation

Gemfile

gem 'finishing_moves'

Command line

gem install 'finishing_moves'

Documentation

Not sure if this gem is for you? Check out the methods marked with a ๐Ÿ’ฅ first.

Ruby Version

Tested against all supported versions of official RVM, currently 2.7.6 and above.

Development approach

  • Never override default Ruby behavior, only add functionality.
  • Follow the Unix philosophy of "Do one job really well."
  • Minimize assumptions, e.g. avoid formatting output, mutating values, and conditional logic flows.
  • Play nice with major Ruby players like Rake, Rails, and Sinatra.
  • Test all the things.

Bug Reports

Drop us a line in the issues section.

Be sure to include sample code that reproduces the problem.

Add your own finisher!

  1. Fork this repo
  2. Write your tests
  3. Add your finisher
  4. Repeat steps 2 and 3 until you see a brilliant luster
  5. Submit a pull request
Package Rankings
Top 7.82% on Rubygems.org
Badges
Extracted from project README
Gem Version Build Status Mentioned in Awesome Ruby