1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Add 'Data' as a deprecated constant (#1731)

This commit is contained in:
Robert 2018-10-01 06:51:20 +02:00 committed by Kyrylo Silin
parent 9956502447
commit 28a56c4a9f
2 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,10 @@ See pull request [#1723](https://github.com/pry/pry/pull/1723)
#### Bug fixes
* Add 'Data' as a deprecated constant for Ruby 2.5 (ls command).
See pull request [#1731](https://github.com/pry/pry/pull/1731)
* Fix a bug where 'cd Hash.new' reported self as an instance of Pry::Config
in the prompt.

View file

@ -3,7 +3,7 @@ require 'pry/commands/ls/interrogatable'
class Pry
class Command::Ls < Pry::ClassCommand
class Constants < Pry::Command::Ls::Formatter
DEPRECATED_CONSTANTS = [:Fixnum, :Bignum, :TimeoutError, :NIL, :FALSE, :TRUE]
DEPRECATED_CONSTANTS = [:Data, :Fixnum, :Bignum, :TimeoutError, :NIL, :FALSE, :TRUE]
DEPRECATED_CONSTANTS << :JavaPackageModuleTemplate if Pry::Helpers::BaseHelpers.jruby?
include Pry::Command::Ls::Interrogatable