summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay.rb2
-rw-r--r--lib/coderay/helpers/plugin.rb6
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|