
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
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.
Gemfile
gem 'finishing_moves'
Command line
gem install 'finishing_moves'
Not sure if this gem is for you? Check out the methods marked with a :boom: first.
Array#to_hash_values
:boom:Array#to_indexed_hash
Array#to_hash_keys
Array#to_sym_strict
Array#to_sym_loose
Enumerable#key_map
:boom:Enumerable#key_map_reduce
Hash#delete!
Hash#delete_each
Hash#delete_each!
Integer#length
Kernel#nil_chain
:boom::boom:Kernel#bool_chain
Kernel#silently
Kernel#cascade
Kernel#class_exists?
Numeric#add_percent
Numeric#subtract_percent
Object#same_as
Object#not_nil?
Object#numeric?
:boom:Object#is_an?
Object#is_not_a?
Object#is_one_of?
:boom:Object#true?
Object#false?
Object#bool?
Object#true_?
Object#false_?
String#dedupe
String#keyify
String#slugify
String#nl2br
String#newline_to
String#remove_whitespace
String#replace_whitespace
String#strip_all
:boom:String#to_uuid
Tested against all supported versions of official RVM, currently 3.1
and above.
Drop us a line in the issues section.
Be sure to include sample code that reproduces the problem.
FAQs
Unknown package
We found that finishing_moves demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.