Pry 0.9.10

57 views
Skip to first unread message

Yorick Peterse

unread,
Jul 14, 2012, 10:22:36 AM7/14/12
to pry...@googlegroups.com
# Pry 0.9.10

Pry 0.9.10 has been released earlier today. This release contains
various new feature, bug fixes and a few dependency related
improvements. For example, Pry has been updated to work properly with
Slop version 3. It also uses the "jist" gem for uploading gists instead
of the outdated "gist" gem. Below is a list of various changes worth
mentioning in greater detail.

## show-source And Third Party C Code

The pry-doc gem has been updated so that it's capable of displaying the
C source code of third party gems. Previously this was only able to
display the C code of Ruby itself. The show-source command is now also
capable of displaying the source of code that was added using methods
such as `class_eval`.

Another interesting change in this command is that just typing
`show-source` will now show the source code of the current context. This
means you no longer have to figure out what method or class the current
context is in in order to display the source code.

## Custom Theme Support Using pry-theme

Kyrylo recently released a plugin for Pry that allows developers to set
custom themes for CodeRay. The plugin can be found at
https://github.com/kyrylo/pry-theme and installed by running the
following command:

$ gem install pry-theme

Setting a theme can be done using both the `pry-theme` command (inside a
Pry session) as well as by setting a theme in your .pryrc. For example,
to use the theme "zenburn" you'd add the following to your Pry
configuration file:

Pry.config.theme = 'zenburn'

A few examples of pry-theme can be found in the project's README.

## Toggling Between Scopes Using cd

The `cd` command has a new feature that allows you to toggle between the
last two scopes. This can be done by running `cd -`.

## Various Bugfixes

There are also various bugfixes included in this release:

* #554 removed the "req" command
* #567 fix rendering bugs when starting pry
* #568 fix Array#pretty_print on Jruby
* #575 fix "edit" on windows
* #576 fix "find-method" in the presence of badly behaved objects
* #580 fix "whereami" in erb files on rails
* #632 raise fewer exceptions while tab completing
* #605 dont immediately quit pry when an error happens in readline
* #606 support for ansicon to give jruby windows users colour
* #613 massive speed improvements to show-source for modules
* #620 improve whereami command when not in a binding.pry
* #622 support embedded documents (=begin ... =end)
* #627 support editing files with spaces in the name
* changed __binding_impl__ to __pry__
* support for absolute paths in $EDITOR
* fix "cat" command on files with unknown extensions
* many many internal refactorings and tidyings

The full changelog can be found here:
https://github.com/pry/pry/blob/cfc5890d1c9df6de21605a7cefd1d4e2655752a0/CHANGELOG

Yorick

signature.asc
Reply all
Reply to author
Forward
0 new messages