From 28a56c4a9fac460eb435407674d30d2b473100ea Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 1 Oct 2018 06:51:20 +0200 Subject: [PATCH] Add 'Data' as a deprecated constant (#1731) --- CHANGELOG.md | 4 ++++ lib/pry/commands/ls/constants.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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