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

    🔋 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, and save-file now infer object type without requiring flags
      • Examples: play MyClass, play my_file.rb, play my_method
    • 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 and play 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 for edit --ex command (#716)
    • Respect the $PAGER environment variable (#736)
    • disable-pry command (#497)
    • Two new hooks, before_eval and after_eval
    • Tab completion for Array#<tab> in show-source and show-doc
    • gem-install immediately requires gems
    • -l switch for ls command (displays local variables)
    • gem-open command
    • fix-indent command
    • Subcommands API
    • 👀 Public test API for plugin writers (see d1489a)
    • Tabular ls output
    • --no-line-numbers switch for whereami command
    • --lines switch for play 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 supporting String::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