Permalink
Browse files

Making plugin removal more robust.

  • Loading branch information...
1 parent f4f5772 commit bd7f9fb218c1152bfa70bdd905174d2510d9fb4f @JEG2 JEG2 committed Mar 27, 2008
Showing with 9 additions and 3 deletions.
  1. +5 −0 CHANGELOG
  2. +1 −1 bin/scout
  3. +1 −1 lib/scout.rb
  4. +1 −1 lib/scout/plugin.rb
  5. +1 −0 lib/scout/server.rb
View
5 CHANGELOG
@@ -1,3 +1,8 @@
+== 1.1.5
+
+* A more robust solution for plugin removal
+* Added seconds to logging
+
== 1.1.4
* Trim all space from the client key during install
View
2 bin/scout
@@ -77,7 +77,7 @@ ARGV.options do |opts|
end
log = Logger.new($stdout)
-log.datetime_format = "%Y-%m-%d %H:%M "
+log.datetime_format = "%Y-%m-%d %H:%M:%S "
log.level = Logger.const_get(options[:level].upcase) \
rescue Logger::INFO
View
2 lib/scout.rb
@@ -4,5 +4,5 @@
require "scout/server"
module Scout
- VERSION = "1.1.4".freeze
+ VERSION = "1.1.5".freeze
end
View
2 lib/scout/plugin.rb
@@ -3,7 +3,7 @@
module Scout
class Plugin
class << self
- attr_reader :last_defined
+ attr_accessor :last_defined
def inherited(new_plugin)
@last_defined = new_plugin
View
1 lib/scout/server.rb
@@ -142,6 +142,7 @@ def process_plugin(plugin)
debug "Removing plugin code..."
begin
Object.send(:remove_const, Plugin.last_defined.to_s.split("::").first)
+ Plugin.last_defined = nil
info "Plugin Removed."
rescue
error "Unable to remove plugin."

0 comments on commit bd7f9fb

Please sign in to comment.