0.01
No commit activity in last 3 years
No release in over 3 years
Spending hours in the rails console? Spruce it up and show off those hard-working hands! jazz_hands replaces IRB with Pry, improves output through awesome_print, and has some other goodies up its sleeves. Only Ruby >= 2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 0.7.3, ~> 0.7
>= 0.10.1, ~> 0.10
>= 0.8.0, ~> 0.8
>= 0.2.3, ~> 0.2
>= 0.3.4, ~> 0.3
>= 0.1.7, ~> 0.1
>= 0.4.9, ~> 0.4
< 5.0, >= 3.0
 Project Readme

JazzHands2

JazzHands2 aims to be the successor of the abandoned JazzHand2

The dependencies has been updated, this only supports Ruby 2+.

Some of the codes comes from the new_jazz_hands gem, but without some conflict in names.

List of gems included:

  • Pry for a powerful shell alternative to IRB.
  • Hirb for tabular collection output.
  • Pry Rails for additional commands (show-routes, show-models, show-middleware) in the Rails console.
  • Pry Doc to browse Ruby source, including C, directly from the console.
  • Pry Git to teach the console about git. Diffs, blames, and commits on methods and classes, not just files.
  • Pry Remote to connect remotely to a Pry console.
  • Pry Debugger to turn the console into a simple debugger.
  • Pry Stack Explorer to navigate the call stack and frames.

Usage

Ruby 2+, Rails 3, 4 only.

Add this line to your application's Gemfile:

group :development, :test do # well, this can be useful in production too...
  gem 'jazz_hands2'
end

And then execute:

$ bundle

From now on, firing up a rails console will require all the gems above and turns on Hirb. You can disable Hirb if you want with a Hirb.disable.

In my experience is much better to turn off it a couple of times instead of needing to turn on it all the times except a couple.

Note: even if [AwesomePrint] is a wonderful gem, due some existing bugs it is not included. eoinkelly forks seems to work fine and solve a lot of issues while we wait for AwesomePrint v2, from the readme:

NOTE: awesome_print v1.2.0 is the last release supporting Ruby versions prior to v1.9.3 and Rails versions prior to v3.0. The upcoming awesome_print v2.0 will require Ruby v1.9.3 or later and Rails v3.0 or later.

So if you are an AwesomePrint addicted, add this to your gemfile:

group :development, :test do # well, this can be useful in production too...
  gem 'jazz_hands2'
  gem 'awesome_print', github: 'eoinkelly/awesome_print'
end

Don't call AwesomePrint.pry!, the railtie.rb automatically uses AwesomePrint if present.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/jazz_hands2/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request