summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert <r-obert@users.noreply.github.com>2018-10-01 06:51:20 +0200
committerKyrylo Silin <silin@kyrylo.org>2018-10-01 12:51:20 +0800
commit28a56c4a9fac460eb435407674d30d2b473100ea (patch)
tree1416b3617918bf41bd2b558a1ead317eb36d3f87
parent9956502447a126166ef78653255e69351a253f20 (diff)
downloadpry-28a56c4a9fac460eb435407674d30d2b473100ea.tar.gz
Add 'Data' as a deprecated constant (#1731)
-rw-r--r--CHANGELOG.md4
-rw-r--r--lib/pry/commands/ls/constants.rb2
2 files changed, 5 insertions, 1 deletions
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