scout 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.1.5
2
+
3
+ * A more robust solution for plugin removal
4
+ * Added seconds to logging
5
+
1
6
  == 1.1.4
2
7
 
3
8
  * Trim all space from the client key during install
data/bin/scout CHANGED
@@ -77,7 +77,7 @@ ARGV.options do |opts|
77
77
  end
78
78
 
79
79
  log = Logger.new($stdout)
80
- log.datetime_format = "%Y-%m-%d %H:%M "
80
+ log.datetime_format = "%Y-%m-%d %H:%M:%S "
81
81
  log.level = Logger.const_get(options[:level].upcase) \
82
82
  rescue Logger::INFO
83
83
 
data/lib/scout.rb CHANGED
@@ -4,5 +4,5 @@ require "scout/plugin"
4
4
  require "scout/server"
5
5
 
6
6
  module Scout
7
- VERSION = "1.1.4".freeze
7
+ VERSION = "1.1.5".freeze
8
8
  end
data/lib/scout/plugin.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Scout
4
4
  class Plugin
5
5
  class << self
6
- attr_reader :last_defined
6
+ attr_accessor :last_defined
7
7
 
8
8
  def inherited(new_plugin)
9
9
  @last_defined = new_plugin
data/lib/scout/server.rb CHANGED
@@ -142,12 +142,13 @@ module Scout
142
142
  debug "Removing plugin code..."
143
143
  begin
144
144
  Object.send(:remove_const, Plugin.last_defined.to_s.split("::").first)
145
+ Plugin.last_defined = nil
145
146
  info "Plugin Removed."
146
147
  rescue
147
148
  error "Unable to remove plugin."
148
149
  end
149
- info "Plugin #{plugin[:name]} processing complete."
150
150
  end
151
+ info "Plugin #{plugin[:name]} processing complete."
151
152
  end
152
153
 
153
154
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Highgroove Studios