Project

pry-yes

0.0
No commit activity in last 3 years
No release in over 3 years
Pry plugin for re-running the previous command with "Did you mean?" suggestion.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0

Runtime

~> 0.10.0
 Project Readme

pry-yes

Pry plugin for re-running the previous command with corrected typos. Based on "Did you mean?" (ships with Ruby > 2.3 or as standalone gem) and inspired by https://github.com/nvbn/thefuck

asciicast

Installation

$ gem install pry-yes

Usage

[1] pry(main)> class Application
[1] pry(main)*   def self.status
[1] pry(main)*     "OK!"
[1] pry(main)*   end
[1] pry(main)* end
=> :status
[2] pry(main)> Aplication.stats
NameError: uninitialized constant Aplication
Did you mean?  Application
from (pry):6:in `__pry__'
[4] pry(main)> Application.stats
NoMethodError: undefined method `stats' for Application:Class
Did you mean?  status
from (pry):7:in `__pry__'
[6] pry(main)> Application.status
=> "OK!"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/christofferh/pry-yes.

License

The gem is available as open source under the terms of the MIT License.