pry-suite
pry-suite is designed to set up a nice Pry ecosystem out of the box. With pry-suite, you are given Pry with access to a suite of great plugins. Currently, the following plugins will get installed along with Pry:
-
pry-byebug (Integration with the Ruby 2 debugger, byebug)
- On Ruby 1.9.x, this is replaced with pry-debugger and pry-stack_explorer, which also allows you to navigate the call stack
- pry-doc (allows you to look into the Ruby builtin classes with the ? and $ commands)
- pry-docmore (extends pry-doc for dollar-variables and keywords)
- pry-git (method-level git commands)
- pry-macro (allows you to record and reuse Pry sessions)
- pry-highlight (reformat strings with pretty-printing, auto-detecting JSON/XML/Ruby)
- pry-pretty-numeric (reformats large numbers, e.g. 1234567890 to 1_234_567_890)
-
pry-rescue (provides
Pry.rescue { ... }
blocks to capture any exceptions and start a Pry session)
Finally, the gist gem also gets installed to enable Pry's gist
command.
Installation
Add this line to your application's Gemfile:
gem 'pry-suite'
And then run:
$ bundle install
Or install it for use as an irb
replacement:
$ gem install pry-suite
Contributing
- Fork it ( https://github.com/davidcelis/pry-suite/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request