Skip to content

Successor of abandoned jazz_hands gem. Exercise those fingers. Pry-based enhancements for the default Rails console

License

Notifications You must be signed in to change notification settings

coders51/jazz_hands2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Successor of abandoned jazz_hands gem. Exercise those fingers. Pry-based enhancements for the default Rails console

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages