commander-rb / commander

The complete solution for Ruby command-line executables
MIT License
823 stars 74 forks source link

Deprecation warnings in Ruby 2.4 #41

Closed cguess closed 7 years ago

cguess commented 7 years ago

Ruby 2.4 throws deprecation errors when running Commander:

/2.4.0/gems/commander-4.4.2/lib/commander/user_interaction.rb:333: warning: constant ::NIL is deprecated
/2.4.0/gems/commander-4.4.2/lib/commander/user_interaction.rb:333: warning: constant ::TRUE is deprecated
/2.4.0/gems/commander-4.4.2/lib/commander/user_interaction.rb:333: warning: constant ::FALSE is deprecated
/2.4.0/gems/commander-4.4.2/lib/commander/user_interaction.rb:333: warning: constant ::Fixnum is deprecated
/2.4.0/gems/commander-4.4.2/lib/commander/user_interaction.rb:333: warning: constant ::Bignum is deprecated

The relevant parts of the docs are here: https://ruby-doc.org/core-2.4.0/Object.html

ggilder commented 7 years ago

Fixed in Version 4.4.3 (just released)