diff options
author | murphy <murphy@rubychan.de> | 2006-10-17 11:18:01 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-10-17 11:18:01 +0000 |
commit | 67aa3dfe0661b57ff9259edc3545fbcfd66ddd7e (patch) | |
tree | c28d5dcdd180d55eee4a5a7d062480a6282e4097 /lib | |
parent | 9e6f3debf5829049a277ad742901a088a0181d26 (diff) | |
download | coderay-67aa3dfe0661b57ff9259edc3545fbcfd66ddd7e.tar.gz |
Declared Version 0.7.4!
Plugin#all_plugin_names is now called #list.
Added some basic functional tests and adjusted statistic.rake.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coderay.rb | 2 | ||||
-rw-r--r-- | lib/coderay/helpers/plugin.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb index c7b5e7f..be88a90 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -133,7 +133,7 @@ module CodeRay # Minor: odd for beta, even for stable # Teeny: development state # Revision: Subversion Revision number (generated on rake) - Version = '0.7.2' + VERSION = '0.7.4' require 'coderay/tokens' require 'coderay/scanner' 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| |