All Versions
71
Latest Version
Avg Release Cycle
126 days
Latest Release
1603 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v0.11.0 Changes
September 20, 2017- โ Add alias 'whereami[?!]+' for 'whereami' command. (#1597)
- ๐ Improve Ruby 2.4 support (#1611):
- Deprecated constants are hidden from
ls
output by default, use the-d
switch to see them. - Fix warnings that originate in Pry while using the repl.
- Deprecated constants are hidden from
- ๐ Improve completion speed in large applications. (#1588)
- ๐จ Pry::ColorPrinter.pp: add
newline
argument and pass it on to PP. (#1603) - ๐ Use
less
or system pager pager on MS Windows if it is available. (#1512) - โ Add
Pry.configure
as an alternative to the current way of changing configuration options in.pryrc
files. (#1502) - โ Add
Pry::Config::Behavior#eager_load!
to add a possible workaround for issues like (#1501) - โ Remove Slop as a runtime dependency by vendoring v3.4 as Pry::Slop. People can depend on Slop v4 and Pry at the same time without running into version conflicts. (#1497)
- ๐ Fix auto-indentation of code that uses a single-line rescue (#1450)
- โ Remove "Pry::Config#refresh", please use "Pry::Config#clear" instead.
- Defining a method called "ls" no longer breaks the "ls" command (#1407)
- Don't raise when directory permissions don't allow file expansion (#1432)
- ๐ Syntax highlight <tt> tags in documentation output.
- โ Add support for BasicObject subclasses who implement their own #inspect (#1341)
- ๐ Fix 'include RSpec::Matchers' at the top-level (#1277)
- โ Add 'gem-readme' command, prints the README file bundled with a rubygem
- โ Add 'gem-search' command, searches for a gem with the rubygems.org HTTP API
- ๐ Fixed bug in the
cat
command where it was impossible to use line numbers with files (#1349) - ๐ Fixed uncaught Errno::EOPNOTSUPP exception when $stdout is a socket (#1352)
- โ Display a warning when you cd'ed inside a C object and executed 'show-source' without arguments (#691)
- ๐ Make the stagger_output method more reliable by reusing possibly available Pry instance (#1364)
- ๐ Make the 'gem-install' message less confusing by removing backticks (#1350)
- ๐ Fixed error when Pry was trying to load incompatible versions of plugins (#1312)
- ๐ Fixed bug when
hist --clear
led to ArgumentError (#1340) - ๐ Fixed the "uninitialized constant Pry::ObjectPath::StringScanner" exception during autocomplete (#1330)
- Secured usage of colours with special characters (RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE) in Pry::Helpers::Text (#493)
- ๐ Fixed regression with
pry -e
when it messes the terminal (#1387) - ๐ Fixed regression with space prefixes of expressions (#1369)
- Introduced the new way to define hooks for commands (with
Pry.hooks.add_hook("{before,after}_commandName")
). The old way is deprecated, but still supported (withPry.commands.{before,after}_command
) (#651) - โ Removed old API's using
Pry::Hooks.from_hash
altogether - โ Removed hints on Foreman support (see this)
- ๐ Fixed support for the tee command (#1334)
- ๐ Implemented support for CDPATH for ShellCommand (#1433, #1434)
- ๐
Pry::CLI.parse_options
does not start Pry anymore (#1393) - ๐ The gem uses CPU-less platforms for Windows now (#1410)
- โ Add
Pry::Config::Memoization
to make it easier to implement your ownPry::Config::Default
class.(#1503) - 0๏ธโฃ Lazy load the config defaults for
Pry.config.history
andPry.config.gist
.
-
v0.10.4
July 11, 2016 -
v0.10.3
October 15, 2015 -
v0.10.2
September 25, 2015 -
v0.10.1 Changes
- ๐ Fix bugs with jruby
- ๐ Move to rspec for testing (from bacon)
- โ Clean up ruby warnings
-
v0.10.0 Changes
๐ Features
- โ Added a
watch
command that lets you see how values change over time. - โ Added an experimental
Pry.auto_resize!
method- Makes Pry notice that your window has resized and tell Readline about it
- Fixes various bugs with command history after a window resize
- Off by default, but can be called from your
.pryrc
if you're brave
play
now has an-e
/--expression
flag- Evaluates until the end of the first valid expression
- History gets appended to
~/.pry_history
after every input, not just at quit - Return values render with more accurate syntax highlighting
- Return values start rendering immediately and stream into the pager
- ๐ User can override
.pryrc
location by setting$PRYRC
env var (#893) - ๐ User can whitelist objects whose inspect output should appear in prompt (#885)
- See
Pry.config.prompt_safe_objects
- See
whereami
is now aliased to@
- โ Added arguments to
whereami
:-m
shows the surrounding method-c
shows the surrounding class-f
shows the entire file
- ๐ง Lazy load configuration values (Pry.config). (#1096)
- Defer requiring
readline
until Pry is started for the first time. (#1117) - Add option to disable input completer through
_pry_.config.completer = nil
- โ Add
list-prompts
command. (#1175)- Lists the available prompts available for use.
- โ Add
change-prompt
command. (#1175)- Switches the current prompt, by name.
- โ Add
list-inspectors
command. (#1176)- Lists the inspectors available to print Ruby return values.
- โ Add
change-inspector
command. (#1176)- Switches the current inspector, by name.
- โ Add
show-source -e
. (#1185)- Evaluate the given Ruby expression and show the source of its return value.
- Add
Pry.config.windows_console_warning
(#1218)- Windows JRuby users who don't want warnings about ansicon can set
Pry.config.windows_console_warning = false
.
- Windows JRuby users who don't want warnings about ansicon can set
- โ Add arguments to
play
command.-p
prints the code before playing it.-e
allows you to play expressions from your session.
- โ Add
cd -
to switch to the previous binding. - ๐ Allow prying into frozen objects.
Dependency changes
- โ Remove dependency on
ffi
gem on JRuby (#1158) - โ Remove optional dependency on Bond (#1166)
- Bond support has been extracted to the
pry-bond
plugin
- Bond support has been extracted to the
- โ Remove dependency on
openstruct
(#1096) - โฌ๏ธ Drop support for Ruby 1.8.7 (0.9.12.x will continue to be available)
- โ Add support for Ruby 2.1
- Require Coderay
~> 1.1.0
- โ Remove deprecated hooks API (#1209)
- โ Add 64-bit windows support.
๐ Bug fixes, etc.
- ๐ The
gem-install
command can require gems likenet-ssh
thanks to better logic for guessing what path to require. (#1188) toggle-color
command toggles the local_pry_.color
setting instead of the globalPry.color
.- โก๏ธ Update
Pry::CLIPPED_PRINT
to include a hex representation of object ID when printing a return value. (#1162) - Wrap exceptions in a proxy instead of adding singleton methods. (#1145)
Pry#last_exception=
now supports exception objects that have been frozen.
binding.pry
inside.pryrc
file now works, with some limitations (@richo / #1118)- โ Add support for BasicObjects to
ls
(#984) - ๐ Allow
ls -c <anything>
(#891) - ๐ Fix indentation not working if the
mathn
stdlib was loaded (#872) - ๐ Fix
hist
's--exclude-pry
switch (#874) - ๐ Fix
gem-install
on JRuby (#870) - ๐ Fix source lookup for instrumented classes (#923)
- ๐ Improved thread safety when multiple instances are running (#944)
- Make
edit
ignore-n
/--no-reload
flag anddisable_auto_reload
config in cases where the user was editing a tempfile - ๐ Make
gem-cd
use the most recent gem, not the oldest - ๐ Make
install-command
honor.gemrc
switches (#666) - ๐ Make
hist
with no parameters show just the current session's history (#205)hist --all
shows older history
- ๐ Make
-s
/--super
flag ofshow-source
/show-doc
work when method name is being inferred from context (#877) - ๐ Rename
--installed-plugins
flag to--plugins
- Strip ANSI codes from prompt before measuring length for indentation (#493)
- ๐ Fix bug in
edit
regarding recognition of file names without suffix. - โฌ๏ธ Reduced download size by removing tests etc. from distributed gem.
Dev-facing changes
CommandSet#commands
, sometimes referenced throughPry.commands.commands
, renamed toCommandSet#to_hash
. It returns a duplicate of the internal hash a CommandSet uses.CommandSet#keys
is now an alias ofCommandSet#list_commands
.- All commands should now reference configuration values via
_pry_.config
(local) and notPry.config
(global). (#1096)- This change improves support for concurrent environments and
context-specific Pry sessions.
_pry_.config
inherits default values fromPry.config
but can override them locally.
- This change improves support for concurrent environments and
context-specific Pry sessions.
rake pry
now accepts switches prefixed with_
(e.g.,rake pry _v
)- Pagers now act like
IO
s and accept streaming output- See
_pry_.pager.page
and_pry_.pager.open
.
- See
- The
Pry
class has been broken up into two smaller classes.Pry
represents non-UI-specific session state, including the eval stringPry::REPL
controls the user-facing interface- This should make it easier to drive Pry from alternative interfaces
Pry.start
now has a:driver
option that defaults toPry::REPL
- This involved a lot of refactoring and may break plugins that depend on the old layout
- โ Add
ColorPrinter
subclass ofPP
for colorized object inspection - โ Add
[]
and[]=
methods toCommandSet
, which find and replace commands- Example:
Pry.commands["help"] = MyHelpCommand
- Example:
- ๐จ The completion API has been refactored (see fdb703a8de4ef3)
Pry.config.input_stack
(and the input stack concept in general) no longer exists- There's a new
Pry::Terminal
class that implements a number of different methods of determining the terminal's dimensions - โ Add
ReplTester
class for high-level simulation of Pry sessions in tests - โ Add
Pry.main
. Returns the special instance of Object referenced by self ofTOPLEVEL_BINDING
: "main". - ๐ Changed second argument of
Pry.view_clip()
from Fixnum to Hash to support returning a string with or without a hex representation of object ID. (#1162) - The
output
andpager
objects will now strip color-codes, so commands should always print in color. - Commands now have a
state
hash that is persistent across invocations of the command in the same pry session.
- โ Added a
-
v0.9.12 Changes
February 12, 2013๐ Features
- ๐
pry --gem
(see 19bfc13aa) show-source
now works on commands created withcreate_command
whereami
now has-m
(method),-c
(class), and-f
(file) options- โ
show-source
now falls back to superclass (and displays warning) if it can't find class code show-source
/show-doc
now indicate when-a
option is available
๐ Bug fixes, etc.
- ๐ Fix commands breaking due to Slop looking at
ARGV
instead of command parameters (#828) - ๐ Fix pager breaking in some situations (#845)
- ๐ Fix broken rendering of some docs (#795)
- โ Silence warnings during failed tab-completion attempts
- ๐ Fix broken prompt when prompt is colored (#822 / #823)
- โ Added
reload-method
as alias forreload-code
(for backwards compatibility) - ๐ Reopen
Readline.output
if it is not a tty (see 1538bc0990)
- ๐
-
v0.9.12.6 Changes
January 28, 2014- Don't fail if Bond is not installed (#1106)
-
v0.9.12.5 Changes
January 27, 2014- ๐ Fix early readline errors by deferring require of readline (#1081, #1095)
-
v0.9.12.4 Changes
November 23, 2013- ๐ Fix issue with Coderay colors being black, even when on a black background (#1016)