config.plugins.enabled -> config.should_load_plugins

This commit is contained in:
John Mair 2012-01-25 01:07:50 +13:00
parent df47e96b62
commit c362f45cfc
2 changed files with 3 additions and 4 deletions

View File

@ -89,7 +89,7 @@ class Pry
# note these have to be loaded here rather than in pry_instance as
# we only want them loaded once per entire Pry lifetime.
load_rc if Pry.config.should_load_rc
load_plugins if Pry.config.plugins.enabled
load_plugins if Pry.config.should_load_plugins
load_requires if Pry.config.should_load_requires
load_history if Pry.config.history.should_load
load_traps if Pry.config.should_trap_interrupts
@ -241,8 +241,7 @@ class Pry
config.gist ||= OpenStruct.new
config.gist.inspecter = proc(&:pretty_inspect)
config.plugins ||= OpenStruct.new
config.plugins.enabled = true
config.should_load_plugins = true
config.requires ||= []
config.should_load_requires = true

View File

@ -26,7 +26,7 @@ class << Pry
Pry.color = false
Pry.pager = false
Pry.config.should_load_rc = false
Pry.config.plugins.enabled = false
Pry.config.should_load_plugins = false
Pry.config.history.should_load = false
Pry.config.history.should_save = false
Pry.config.auto_indent = false