scout 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/CHANGELOG +4 -0
  2. data/Rakefile +3 -4
  3. data/lib/scout.rb +1 -1
  4. data/lib/scout/server.rb +1 -1
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.1.2
2
+
3
+ * Fixed the plugin interval not running on time due to a ">=" bug
4
+
1
5
  == 1.1.1
2
6
 
3
7
  * Fixed the double plugin load bug
data/Rakefile CHANGED
@@ -10,7 +10,6 @@ require "rubyforge"
10
10
  dir = File.dirname(__FILE__)
11
11
  lib = File.join(dir, "lib", "scout.rb")
12
12
  version = File.read(lib)[/^\s*VERSION\s*=\s*(['"])(\d\.\d\.\d)\1/, 2]
13
- puts version
14
13
  history = File.read("CHANGELOG").split(/^(===.*)/)
15
14
  changes ||= history[0..2].join.strip
16
15
 
@@ -80,7 +79,7 @@ end
80
79
 
81
80
  desc "Publish Gem to Scout Gem Server"
82
81
  task :publish => [:package] do
83
- pkg = "pkg/#{spec.name}-#{spec.version}"
82
+ pkg = "pkg/#{spec.name}-#{version}"
84
83
 
85
84
  if $DEBUG then
86
85
  puts "release_id = rf.add_release #{spec.rubyforge_project.inspect}, #{spec.name.inspect}, #{spec.version.inspect}, \"#{pkg}.tgz\""
@@ -101,8 +100,8 @@ task :publish => [:package] do
101
100
  (need_zip ? "#{pkg}.zip" : nil),
102
101
  "#{pkg}.gem"].compact
103
102
 
104
- puts "Releasing #{spec.name} v. #{spec.version}"
105
- rf.add_release spec.rubyforge_project, spec.name, spec.version, *files
103
+ puts "Releasing #{spec.name} v. #{version}"
104
+ rf.add_release spec.rubyforge_project, spec.name, version, *files
106
105
 
107
106
  puts "Publishing on Scout Server"
108
107
  sh "scp -r pkg/*.gem " +
@@ -4,5 +4,5 @@ require "scout/plugin"
4
4
  require "scout/server"
5
5
 
6
6
  module Scout
7
- VERSION = "1.1.1".freeze
7
+ VERSION = "1.1.2".freeze
8
8
  end
@@ -82,7 +82,7 @@ module Scout
82
82
  last_run = @history["last_runs"][plugin[:name]]
83
83
  memory = @history["memory"][plugin[:name]]
84
84
  run_time = Time.now
85
- if last_run.nil? or run_time > last_run + plugin[:interval]
85
+ if last_run.nil? or run_time >= last_run + plugin[:interval]
86
86
  debug "Plugin is past interval and needs to be run. " +
87
87
  "(last run: #{last_run || 'nil'})"
88
88
  debug "Compiling plugin..."
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.1
4
+ version: 1.1.2
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: 2008-03-14 00:00:00 -04:00
12
+ date: 2008-03-18 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency