From fb64737038ca13b4047219c429560b97b98fe22b Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 29 Oct 2005 04:55:15 +0000 Subject: encoder.rb: Added Encoder#file_extension plugin.rb: #load_plugin --> #load; no more debug messages encoders/html.rb: Documentation; hint system; moved NUMERIZABLE_WRAPPINGS to html_output.rb encoders/helpers/html_output.rb: made stylesheet a method; disabled code cell hint; fixed inline numerizing encoders/debug.rb: changed extension to 'raydebug' etc folder added included etc/raydebug.vim for cool vim highlighting --- lib/coderay/helpers/plugin.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/coderay/helpers/plugin.rb') diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index 2518e5a..5c90901 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -90,7 +90,7 @@ module PluginHost id = validate_id(plugin_id) path = path_to id begin - $stderr.puts 'Loading plugin: ' + path if $DEBUG + #$stderr.puts 'Loading plugin: ' + path if $DEBUG require path rescue LoadError => boom raise PluginNotFound, 'Could not load plugin %p: %s' % [id, boom] @@ -151,7 +151,7 @@ module PluginHost end # Alias for +[]+. - alias load_plugin [] + alias load [] # Returns the Plugin for +id+. # Use it like Hash#fetch. @@ -239,7 +239,7 @@ def require_plugin path host = PluginHost.host_by_id(host_id) raise PluginHost::HostNotFound, "No host for #{host_id.inspect} found." unless host - host.load_plugin plugin_id + host.load plugin_id end -- cgit v1.2.1