Changeset 6582

Show
Ignore:
Timestamp:
02/12/08 12:27:53 (5 years ago)
Author:
cho45
Message:

lang/ruby/chokan/branches/citrus/lib/citrus/core.rb,
lang/ruby/chokan/branches/citrus/spec/core_spec.rb:

やっぱり reload_config -> reload_plugin の手順をふむように修正

  • リロードされたプラグインはどれだか表示をだしにくい
  • config をかきかえただけなのにリロードでプラグインまでロードされるのは変
Location:
lang/ruby/chokan/branches/citrus
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/chokan/branches/citrus/lib/citrus/core.rb

    r6580 r6582  
    4646                        @config = OpenStruct.new(File.open(@config_file) {|f| YAML.load(f) }) 
    4747                        init_config 
    48                         init_plugins if @plugins 
    4948                end 
    5049 
  • lang/ruby/chokan/branches/citrus/spec/core_spec.rb

    r6580 r6582  
    342342                @core.reload_config 
    343343                @core.config.plugins.should have_key("Baz") 
     344                @core.plugins.loaded_plugins.should_not have_key("Baz") 
     345 
     346                @core.reload_plugin("Baz") 
    344347                @core.plugins.loaded_plugins.should have_key("Baz") 
    345348        end