lib/sdoc_all/parts/plugins.rb in sdoc_all-1.0.5 vs lib/sdoc_all/parts/plugins.rb in sdoc_all-1.0.6

- old
+ new

@@ -19,10 +19,10 @@ raise_unknown_options_if_not_blank!(raw_config) end def add_tasks(options = {}) - plugins = config[:path].children.select(&:directory?) + plugins = config[:path].children.select(&:directory?).select(&:visible?) plugins.delete_if{ |plugin| !config[:only].include?(plugin.basename.to_s.downcase) } if config[:only] plugins.delete_if{ |plugin| config[:exclude].include?(plugin.basename.to_s.downcase) } if config[:update] && options[:update]