scout 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/scout.rb +1 -1
  3. data/lib/scout/server.rb +7 -2
  4. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 4.0.1
2
+
3
+ * Fixed a regression that broken support for some very old plugins
4
+
1
5
  == 4.0.0
2
6
 
3
7
  * Switched to the new API URL's
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby -wKU
2
2
 
3
3
  module Scout
4
- VERSION = "4.0.0".freeze
4
+ VERSION = "4.0.1".freeze
5
5
  end
6
6
 
7
7
  require "scout/command"
@@ -151,8 +151,13 @@ module Scout
151
151
  info "Plugin completed its run."
152
152
 
153
153
  %w[report alert error summary].each do |type|
154
- plural = "#{type}s".sub(/ys\z/, "ies").to_sym
155
- (Array(data[type.to_sym]) + Array(data[plural])).each do |fields|
154
+ plural = "#{type}s".sub(/ys\z/, "ies").to_sym
155
+ reports = data[plural].is_a?(Array) ? data[plural] :
156
+ [data[plural]].compact
157
+ if report = data[type.to_sym]
158
+ reports << report
159
+ end
160
+ reports.each do |fields|
156
161
  @checkin[plural] << build_report(plugin['id'], fields)
157
162
  end
158
163
  end
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: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Highgroove Studios
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-01 00:00:00 -05:00
12
+ date: 2009-09-15 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency