diff --git a/CHANGELOG.md b/CHANGELOG.md index a4db9d0f..ab1c0fae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/pry/commands/ls/constants.rb b/lib/pry/commands/ls/constants.rb index 8ba5c83a..cf8641ae 100644 --- a/lib/pry/commands/ls/constants.rb +++ b/lib/pry/commands/ls/constants.rb @@ -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