Giter Club home page Giter Club logo

jazz_hands2's Introduction

JazzHands2

This ia fork of JazzHands2 which aims to be the successor of the abandoned JazzHand2 This fork starts the console with Hirb disabled. 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 except for Hirb. You can enable Hirb if you want with a Hirb.enable.

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

jazz_hands2's People

Contributors

carlesso avatar cantonyselim avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.