0.0
No commit activity in last 3 years
No release in over 3 years
Everything you need to debug Rails apps
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

 Project Readme

SpiritFingers

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.

Installation

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

Useful ~/.pryc Config

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

Contributing

  1. Fork it ( https://github.com/natsumi/spirit_fingers/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