From 67aa3dfe0661b57ff9259edc3545fbcfd66ddd7e Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 17 Oct 2006 11:18:01 +0000 Subject: Declared Version 0.7.4! Plugin#all_plugin_names is now called #list. Added some basic functional tests and adjusted statistic.rake. --- lib/coderay/helpers/plugin.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/coderay/helpers') diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index aba6ff7..445d500 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -32,9 +32,9 @@ module PluginHost PLUGIN_HOSTS = [] PLUGIN_HOSTS_BY_ID = {} # dummy hash - # Loads all plugins using all_plugin_names and load. + # Loads all plugins using list and load. def load_all - for plugin in all_plugin_names + for plugin in list load plugin end end @@ -160,7 +160,7 @@ module PluginHost # Returns an array of all .rb files in the plugin path. # # The extension .rb is not included. - def all_plugin_names + def list Dir[path_to('*')].select do |file| File.basename(file)[/^(?!_)\w+\.rb$/] end.map do |file| -- cgit v1.2.1