Pry v0.9.9 Release Notes
Release Date: 2012-04-18 // almost 12 years ago-
๐ New features
- Lines of input are syntax highlighted upon Enter keypress
show-source
command can now show class/module source code- Use
-a
to see all monkeypatches - Hard dependency on
ruby18_source_location
gem in MRI 1.8
- Use
- ๐
show-doc
command can now show class/module docs- Use
-a
to see docs for all monkeypatches - Hard dependency on
ruby18_source_location
gem in MRI 1.8
- Use
- ๐ New
find-method
command- Performs a recursive search in a namespace for the existence of methods
- Can find methods whose names match a regex or methods which contain provided code
- This command is like a ruby-aware
grep
, very cool (thanks swarley)
pry-coolline
now works properlyalias_command
method now much more powerful- Example:
alias_command "lM", "ls -M"
- Example:
whereami
is now more intelligent- Automatically shows entire source code of current method if current context is a method (thanks robgleeson)
- ๐ New
raise-up
command- Allows you to raise an exception that will bubble out of pry (ending the session) and escape into enclosing program
๐ Bug fixes, etc.
- ๐ Fixed crash when paging under Windows
- Lines ending with
\
are incomplete (kudos to fowl) edit-method -n
no longer blocks (thanks misfo)- 0๏ธโฃ Show instance methods of modules by default in
ls
- ๐ Docs for REPL-defined methods can now be displayed using
show-doc
- Autoload
ruby18_source_location
on MRI 1.8, when available - ๐ Tab completion should work on first line now (historic bug fixed)
:quiet => true
option added toPry.start
, turns offwhereami
- Another easter egg added
- ๐ Show unloaded constants in yellow for
ls
- ๐ Improved documentation for
Pry.config
options - ๐ Improved auto-indentation
- ๐ JRuby: heuristics used to clean up
ls
output- Fewer internal methods polluting output