diff options
author | 0xAB <0xAB@protonmail.com> | 2017-09-01 11:56:57 +0100 |
---|---|---|
committer | 0xAB <0xAB@protonmail.com> | 2017-09-01 11:56:57 +0100 |
commit | 25ecc6fc74b84e7864439422050c1c0fb82853b2 (patch) | |
tree | c933a33b3f7b617851deaf1f6a53143da01ea178 | |
parent | 5069fa6a656a56da297697d72b6b63293798ddc1 (diff) | |
download | pry-25ecc6fc74b84e7864439422050c1c0fb82853b2.tar.gz |
remove use of 'text.default' from lib/
-rw-r--r-- | lib/pry/commands/gem_list.rb | 2 | ||||
-rw-r--r-- | lib/pry/commands/ls.rb | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/pry/commands/gem_list.rb b/lib/pry/commands/gem_list.rb index e4a5d00e..1c15f403 100644 --- a/lib/pry/commands/gem_list.rb +++ b/lib/pry/commands/gem_list.rb @@ -24,7 +24,7 @@ class Pry index == 0 ? text.bright_green(spec.version.to_s) : text.green(spec.version.to_s) end - output.puts "#{text.default gem} (#{versions.join ', '})" + output.puts "#{text.strip_color gem} (#{versions.join ', '})" end end end diff --git a/lib/pry/commands/ls.rb b/lib/pry/commands/ls.rb index 42b83d9f..a5d3d5a3 100644 --- a/lib/pry/commands/ls.rb +++ b/lib/pry/commands/ls.rb @@ -3,21 +3,21 @@ class Pry class Command::Ls < Pry::ClassCommand DEFAULT_OPTIONS = { :heading_color => :bright_blue, - :public_method_color => :default, + :public_method_color => :strip_color, :private_method_color => :blue, :protected_method_color => :blue, :method_missing_color => :bright_red, :local_var_color => :yellow, - :pry_var_color => :default, # e.g. _, _pry_, _file_ - :instance_var_color => :blue, # e.g. @foo - :class_var_color => :bright_blue, # e.g. @@foo - :global_var_color => :default, # e.g. $CODERAY_DEBUG, $eventmachine_library - :builtin_global_color => :cyan, # e.g. $stdin, $-w, $PID - :pseudo_global_color => :cyan, # e.g. $~, $1..$9, $LAST_MATCH_INFO - :constant_color => :default, # e.g. VERSION, ARGF - :class_constant_color => :blue, # e.g. Object, Kernel - :exception_constant_color => :magenta, # e.g. Exception, RuntimeError - :unloaded_constant_color => :yellow, # Any constant that is still in .autoload? state + :pry_var_color => :strip_color, # e.g. _, _pry_, _file_ + :instance_var_color => :blue, # e.g. @foo + :class_var_color => :bright_blue, # e.g. @@foo + :global_var_color => :strip_color, # e.g. $CODERAY_DEBUG, $eventmachine_library + :builtin_global_color => :cyan, # e.g. $stdin, $-w, $PID + :pseudo_global_color => :cyan, # e.g. $~, $1..$9, $LAST_MATCH_INFO + :constant_color => :strip_color, # e.g. VERSION, ARGF + :class_constant_color => :blue, # e.g. Object, Kernel + :exception_constant_color => :magenta, # e.g. Exception, RuntimeError + :unloaded_constant_color => :yellow, # Any constant that is still in .autoload? state :separator => " ", :ceiling => [Object, Module, Class] } |