Must have gems for development machine in ruby on rails
Rubygems are the best thing that happened in ruby on rails. So today here is my list of gems in development group that helps to make things faster or sometimes bring simplicity to the development process
What they do:
better_errors:
Better Errors replaces the standard Rails error page with a much better and more useful error page. It is also usable outside of Rails in any Rack app as Rack middleware. If you would like to use Better Errors’ advanced features (REPL, local/instance variable inspection, pretty stack frame names), you need to add the binding_of_caller
annotate
Will generate a schema of the model on the top of the model. Something like this.
bullet:
The Bullet gem is designed to help you increase your application’s performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you’re using eager loading that isn’t necessary and when you should use the counter cache. Best practice is to use Bullet in development mode or custom mode (staging, profile, etc.). The last thing you want is your clients getting alerts about how lazy you are.
debugger
Best debugger for your rails application.
flay
Flay analyzes code for structural similarities. Differences in literal values, variable, class, method names, whitespace, programming style, braces vs do/end etc are all ignored. Making this totally rad.
hirb:
A mini view framework for console/irb that’s easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree, and menu. A console gem that will display your results something like this:
localtunnel
Localtunnel lets you expose a local web server to the public Internet. For example, running a web server on port 8000 on your laptop can be made public with::
lol_dba:
lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
mailcatcher:
MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface. Run mail catcher, set your favorite app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, then check out http://127.0.0.1:1080 to see the mail that’s arrived so far.
meta_request
RailsPanel is a Chrome extension for Rails development that will end your tailing of development.log. Have all information about your Rails app requests in the browser - in the Developer Tools panel. Provides insight to db/rendering/total times, parameter list, rendered views and more.
pry
:An IRB alternative and runtime developer console
quiet_assets:
Mutes assets pipeline log messages.
rack-mini-profiler:
Middleware that displays speed badge for every HTML page. Designed to work both in production and in development.
railroady:
RailRoady generates Rails 3 model (AcitveRecord, Mongoid, Datamapper) and controller UML diagrams as cross-platform .svg files, as well as in the DOT language.
rails-footnotes:
Every Rails page has footnotes that give information about your application and links back to your editor
rails_best_practices:
A code metric tool for rails projects
reek:
Code smell detector for Ruby
request-log-analyzer
A command line tool that analyzes request logfiles (e.g. Rails, Apache, MySQL, Delayed::Job) to produce a performance report
smusher:
Ruby/CLI: Automatic lossless reduction of all your images. Must run for image assets.
zeus
Boot any rails app in under a second.
Please let me know if you have some other cool gems. It will great to know about some cool gems.