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
    • ๐Ÿ“„ 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
    • ๐Ÿ†• 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 properly
    • alias_command method now much more powerful
      • Example: alias_command "lM", "ls -M"
    • 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 to Pry.start, turns off whereami
    • 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