A collection of Pry add-ons for Rails.
Add On | Description |
---|---|
pry | Pry is a powerful alternative to the standard IRB shell for Ruby. |
pry-byebug | Adds step, next, finish and continue commands and breakpoints to Pry using byebug. |
pry-coolline | The pry-coolline plugin provides live syntax highlighting for the Pry REPL for Ruby 1.9.2+ (MRI). |
pry-doc | Provides extended documentation support for Pry. |
pry-rails | This is a small gem which causes rails console to open pry. |
pry-rescue | Pry-rescue is an implementation of "break on unhandled exception" for Ruby. Whenever an exception is raised, but not rescued, pry-rescue will automatically open Pry for you: |
pry-stack_explorer | Enables the user to navigate the call-stack. |
awesome_print | Awesome Print is a Ruby library that pretty prints Ruby objects in full color exposing their internal structure with proper indentation. |
Add this line to your application's Gemfile:
gem 'spirit_fingers', :group => :development
And then execute:
$ bundle install
Or install it yourself as:
$ gem install spirit_fingers
Adding the following to your ~/.pryc will set some nice default configurations for the plugin:
# awesome_print configuration
begin
require "awesome_print"
# User awesome print by default
AwesomePrint.pry!
AwesomePrint.defaults = { indent: -2 }
rescue LoadError => e
warn "can't load awesome_print"
end
if defined?(PryByebug)
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 'f', 'finish'
end
# Hit Enter to repeat last command
Pry::Commands.command /^$/, "repeat last command" do
pry_instance.run_command Pry.history.to_a.last
end
- Fork it ( https://github.com/natsumi/spirit_fingers/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