Pry v0.9.11 Release Notes
Release Date: 2013-01-16 // over 11 years ago-
Dependency changes
- ⬆️ Upgrade
slop
to~> 3.4
- 🆕 New optional dependency:
bond
- You'll need to perform
gem install bond
- It improves autocompletion if you use Readline
- Does not work for libedit (More info: https://github.com/pry/pry/wiki/FAQ#wiki-readline)
- Big thanks to cldwalker
- You'll need to perform
🔋 Features
- 💎 Basic Ruby 2.0 support (#738)
- 💎 JRuby 1.7.0+ support (#732)
- 🆕 New
reload-code
command- Reload code for methods, classes, commands, objects and so on
- Examples:
reload-code MyClass
,reload-code my_method
,reload-code my_obj
- 👀 Bond tab completion (see "Dependency changes")
- Consolidate "show" commands into
show-source
show-source
can now extract source for:- Classes
- Methods
- Procs
- Pry commands
- Arbitrary objects (it shows the source for the class of the object)
- As a result,
show-command
is now removed
gist
,play
, andsave-file
now infer object type without requiring flags- Examples:
play MyClass
,play my_file.rb
,play my_method
- Examples:
- Consolidate editing commands into
edit
edit
can now edit:- Files
- Methods
- Classes
- Pry commands
- As a result,
edit-method
is now removed - Examples:
edit MyClass
,edit my_file.rb
,edit my_method
amend-line
andplay
now properly indent code added to input buffer- 👌 Support for multiple require switches (
pry -rubygems -r./a.rb
) (#674) - 👌 Support for multiple exec switches (
pry -e ':one' -e ':two'
) - Ability to customize the name displayed in the prompt (#695)
--patch
switch foredit --ex
command (#716)- Respect the
$PAGER
environment variable (#736) disable-pry
command (#497)- Two new hooks,
before_eval
andafter_eval
- Tab completion for
Array#<tab>
inshow-source
andshow-doc
gem-install
immediately requires gems-l
switch forls
command (displays local variables)gem-open
commandfix-indent
command- Subcommands API
- 👀 Public test API for plugin writers (see d1489a)
- Tabular
ls
output --no-line-numbers
switch forwhereami
command--lines
switch forplay
command
🐛 Bug fixes, etc.
- 👉 Use single escape instead of double in
find-method
(#652) - 🛠 Fix blank string delimiters (#657)
- Fix unwanted
binding_impl_method
local in scratch bindings (#622) - 🛠 Fix
edit-method -p
changing constant lookup (#645) - 🛠 Fix
.pryrc
loading twice when invoked from$HOME
directory (#682) - 🛠 Fix Pry not remembering initial
pwd
(#675) - 🛠 Fix multiline object coloring (#717)
- 🛠 Fix
show-method
not supportingString::new
notation (#719) - 🛠 Fix
whereami
command not showing correct line numbers (#754) - 🛠 Fix buggy Cucumber AST output (#751)
- 🛠 Fix
while/until do
loops indentation (#787) - 🛠 Fix
--no-plugins
switch (#526) - Ensure all errors go to the error handler (#774)
- Fix
.pryrc
loading with wrong__FILE__
- 🛠 Fix pager not working if
less
is not available - 🛠 Fix
^D
in nested REPL - 📚 Many small improvements to error message clarity and documentation formatting
- ⬆️ Upgrade