All Versions
71
Latest Version
Avg Release Cycle
126 days
Latest Release
710 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.14.1 Changes
April 12, 2021๐ Bug fixes
-
v0.14.0 Changes
February 08, 2021 -
v0.13.1 Changes
April 12, 2020๐ Bug fixes
- ๐ Fixed bug where on invalid input only the last syntax error is displayed (instead of all of them) (#2117)
- ๐ Fixed
Pry::Config
raisingNoMethodError
on undefined option instead of returningnil
(usually invoked viaPry.config.foo_option
calls) (#2126) - ๐ Fixed
help
command not displaying regexp aliases properly (#2120) - ๐ Fixed
pry-backtrace
not working (#2122)
-
v0.13.0 Changes
March 21, 2020๐ Features
- โ Added metadata to the gem (such as changelog URI, source code URI & bug tracker URI), so it shows on https://rubygems.org/gems/pry (#1869)
- โ Added ability to forward ARGV to a Pry session via
--
(or-
) when launching Pry from shell (#1902) - โ Added
Pry::Config::LazyValue
&Pry::Config::MemoizedValue
, which allow storing callable procs in the config (#2024) - โ Added the
rc_file
config option that tells Pry the path topryrc
(#2027) - โ Added the
--code
flag to thewtf
command, which shows code for each backtrace frame (#2037) - โ Added the ability to paste method call chains with leading dots (#2060)
API changes
Pry::Prompt
is a class now and it can be instantiated to create new prompts on the fly that are not registered withPry::Prompt#add
. Learn more about its API in the docs (#1877)
๐ Deprecations
- ๐ Deprecated
Pry.config.exception_whitelist
in favor ofPry.config.unrescued_exceptions
(#1874) - ๐ Deprecated
Pry.config.prompt = Pry::Prompt[:simple][:value]
in favor ofPry.config.prompt = Pry::Prompt[:simple]
when setting Pry prompt viapryrc
.Pry::Prompt[:simple]
would return an instance ofPry::Prompt
instead ofHash
(#1877) - ๐ Deprecated setting prompt via an array of two procs: (#1877)
# Deprecated, emits a warning. Pry.config.prompt = [proc {}, proc {}]
This will be removed in the next release.
- ๐ Deprecated the
show-doc
command. Theshow-source -d
is the new recommended way of reading docs (#1934) - Deprecated
Pry::Command#_pry_
. UsePry::Command#pry_instance
instead (#1989)
๐ฅ Breaking changes
- โ Deleted deprecated
Pry::Platform
(#1863) - โ Deleted deprecated
Pry#{input/output}_array
(#1884) - โ Deleted deprecated
Pry::Prompt::MAP
(#1866) - โ Deleted deprecated methods of
Pry::Helpers::BaseHelpers
such asmac_osx?
,linux?
,windows?
,windows_ansi?
,jruby?
,jruby_19?
,mri?
,mri_19?
,mri_2?
(#1867) - โ Deleted deprecated
Pry::Command#text
(#1865) - Deleted deprecated
Pry::Method#all_from_common
(#1868) - โ Deleted
install-command
(#1979) - Deleted
Pry::Helpers::BaseHelpers#command_dependencies_met?
(#1979) - โ Deleted commands:
gem-cd
,gem-install
,gem-list
,gem-open
,gem-readme
,gem-search
,gem-stats
(#1981) - โ Deleted deprecated commands:
edit-method
andshow-command
(#2001) - โ Deleted
Pry::Command#disabled_commands
(#2001) - โ Deleted
Pry::BlockCommand#opts
(use#context
instead) (#2003) - โ Deleted
Pry.lazy
(usePry::Config::LazyValue
instead) (#2024)
๐ Bug fixes
- ๐ Fixed bug where using
Pry.config.prompt_name
can return aPry::Config::Lazy
instead of expected instance ofString
(#1890) - ๐ Fixed
LoadError
being raised when using auto completions and Bundler (#1896) - ๐ Fixed bug where
Pry.input_ring
doesn't append duplicate elements (#1898) - ๐ Fixed Ruby 2.6 warning about
Binding#source_location
(#1904) - ๐ Fixed wrong
winsize
when customoutput
is passed to Pry (#2045) - Fixed
XDG_CONFIG_HOME
&XDG_DATA_HOME
precedence. When these env variables are set, Pry no longer uses traditional files like~/.pryrc
&~/.pry_history
. Instead, the env variable paths are loaded first (#2056) - ๐ Fixed the
$SAFE will become a normal global variable in Ruby 3.0
warning on Ruby 2.7 (#2107) - ๐ Fixed bug when
whereami -c
cannot show beginning of the class, which is on the same line as another expression (#2098) - ๐ Fixed bug when
Object#owner
is defined, which results into somewhat broken method introspection (#2113) - ๐ Fixed bug when indentation leaves parts of input after pressing enter when Readline is enabled with mode indicators for vi mode. This was supposed to be fixed in v0.12.2 but it regressed (#2114)
-
v0.12.2 Changes
November 12, 2018๐ Bug fixes
- โช Restore removed deprecations, which were removed by accident due to a bad rebase.
-
v0.12.1 Changes
November 11, 2018 -
v0.12.0 Changes
November 04, 2018Major changes
- โฌ๏ธ Dropped support for Rubinius (#1785)
๐ Features
- โ Added a new command,
clear-screen
, that clears the content of the screen Pry is running in regardless of platform (Windows or UNIX-like) (#1723) - โ Added a new command,
gem-stat
, that prints gem statistics such as gem dependencies and downloads (#1707) - โ Added support for nested exceptions for the
wtf
command (#1791) - โ Added support for dynamic prompt names (#1833)
# pryrc Pry.config.prompt_name = Pry.lazy { rand(100) } # Session [1] 80(main)> [2] 87(main)> [3] 30(main)>
- โ Added support for XDG Base Directory Specification (#1609, #1844, (#1848))
- โ Removed the
simple-prompt
. Usechange-prompt simple
instead. Thelist-prompt
command was removed and embedded aschange-prompt --list
(#1849)
API changes
- The following methods started accepting the new optional
config
parameter (#1809):Pry::Helpers.tablify(things, line_length, config = Pry.config)
Pry::Helpers.tablify_or_one_line(heading, things, config = Pry.config)
Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config)
Pry::Helpers::Table.new(items, args, config = Pry.config)
You are expected to pass a session-local
_pry_.config
instead of the global one.- โ Added new method
Pry::Config.assign
, for creating a Config non-recursively (#1725) - โ Added
Pry.lazy
, which is a helper method for values that need to be calculated dynamically. Currently, onlyconfig.prompt_name
supports it (#1833) Pry::Prompt
responds to.[]
,.all
&.add
now. ThePry::Prompt.add
method must be used for implementing custom prompts. See the API in the documentation for the class (#1846)
๐ฅ Breaking changes
- โ Deleted the
Pry::Helpers::Text.bright_default
alias forPry::Helpers::Text.bold
(#1795) Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config)
requiresoptions
ornil
in place of them.Pry::Helpers::Table.new(items, args, config = Pry.config)
requiresargs
ornil
in place of them.- Completely revamped
Pry::HistoryArray
(#1818).- It's been renamed to
Pry::Ring
(#1817) - The implementation has changed and as result, the following methods were removed:
Pry::Ring#length
(usePry::Ring#count
instead)#empty?
,#each
,#inspect
,#pop!
,#to_h
- To access old Enumerable methods convert the ring to Array with
#to_a
- Fixed indexing for elements (e.g.
_pry_.input_ring[0]
always return some element and notnil
)
- It's been renamed to
- Renamed
Pry.config.prompt_safe_objects
toPry.config.prompt_safe_contexts
- โ Removed deprecated
Pry::CommandSet#before_command
&Pry::CommandSet#after_command
(#1838)
๐ Deprecations
- Deprecated
_pry_.input_array
&_pry_.output_array
in favour of_pry_.input_ring
&_pry_.output_ring
respectively (#1814) - ๐ Deprecated
Pry::Command#text
. Please use#black
,#white
, etc. directly instead (as you would with helper functions fromBaseHelpers
andCommandHelpers
) (#1701) - Deprecated
_pry_.input_array
&_pry_.output_array
in favour of_pry_.input_ring
and_pry_.output_ring
respectively (#1817) - ๐ Deprecated
Pry::Platform
. UsePry::Helpers::Platform
instead. Note thatPry::Helpers::BaseHelpers
still includes thePlatform
methods but emits a warning. You must switch toPry::Helpers::Platform
in your code (#1838, (#1845)) - ๐ Deprecated
Pry::Prompt::MAP
. You should usePry::Prompt.all
instead to access the same map (#1846)
๐ Bug fixes
- ๐ Fixed a bug where
cd Hash.new
reportedself
as an instance of Pry::Config in the prompt (#1725) - Silenced the
Could not find files for the given pattern(s)
error message coming fromwhere
on Windows, whenless
or another pager is not installed (#1767) - ๐ Fixed possible double loading of Pry plugins'
cli.rb
on Ruby (>= 2.4) due to therealpath
changes while invokingrequire
(#1762, #1774) - ๐ Fixed
NoMethodError
on code objects that have a comment but no source when invokingshow-source
(#1779) - ๐ Fixed
negative argument (ArgumentError)
upon pasting code with tabs, which used to confuse automatic indentation (#1771) - ๐ Fixed Pry not being able to load history on Ruby 2.4.4+ when it contains the null character (#1789)
- ๐ Fixed Pry raising errors on
cd
'ing into some objects that redefinemethod_missing
andrespond_to?
(#1811) - ๐ Fixed bug when indentation leaves parts of input after pressing enter when Readline is enabled with mode indicators for vi mode (#1813, #1820, #1825)
- ๐ Fixed
edit
not writing to history (#1749)
Other changes
- ๐ Deprecated the
Data
constant to match Ruby 2.5 in thels
command (#1731)
-
v0.11.3 Changes
November 14, 2017๐ Features
- โ Add Pry::Testable, an improved modular replacement for PryTestHelpers. breaking change.
๐ See pull request #1679.
- โ Add a new category module: "Pry::Platform". Loosely related to #1668 below.
๐ See pull request #1670
- โ Add
mac_osx?
andlinux?
utility functions to Pry::Helpers::BaseHelpers.
๐ See pull request #1668.
- โ Add utility functions for drawing colorised text on a colorised background.
๐ See pull request #1673.
๐ Bug fixes
- Fix a case of infinite recursion in
Pry::Method::WeirdMethodLocator#find_method_in_superclass
that users of the Hanami web framework experienced and reported since 2015.
๐ See pull request #1689.
๐ Fix a bug where Method objects were not returned for setters inherited from a default (Pry::Config::Default). Eg, this is no longer an error:
pry(main)> d = Pry::Config.from_hash({}, Pry::Config::Default.new) pry(main)> d.method(:exception_whitelist=) # Error
๐ See pull request #1688.
- Do not capture unused Proc objects in Text helper methods
no_color
andno_paging
, for performance reasons. Improve the documentation of both methods.
๐ See pull request #1691.
- ๐ Fix
String#pp
output color.
๐ See pull request #1674.
-
v0.11.2
October 18, 2017 -
v0.11.1
September 26, 2017