scout 1.1.0 → 1.1.1

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 +6 -3
  2. data/Rakefile +15 -7
  3. data/lib/scout.rb +1 -1
  4. data/lib/scout/server.rb +8 -0
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.1.1
2
+
3
+ * Fixed the double plugin load bug
4
+ * Ensuring that plugins are unloaded, even on error
5
+
1
6
  == 1.1.0
2
7
 
3
8
  * Using better url.path + url.query if present to properly encode URLs.
@@ -11,7 +16,6 @@
11
16
  values (using reports, alerts, errors symbols).
12
17
  * Added test suite, which is now the default rake task.
13
18
 
14
-
15
19
  == 1.0.8
16
20
 
17
21
  * Added optional report field scout_time
@@ -56,5 +60,4 @@
56
60
 
57
61
  == 1.0.0
58
62
 
59
- * Initial public release.
60
-
63
+ * Initial release.
data/Rakefile CHANGED
@@ -10,6 +10,7 @@ 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
13
14
  history = File.read("CHANGELOG").split(/^(===.*)/)
14
15
  changes ||= history[0..2].join.strip
15
16
 
@@ -34,12 +35,6 @@ Rake::RDocTask.new do |rdoc|
34
35
  "LICENSE", "lib/" )
35
36
  end
36
37
 
37
- desc "Upload current documentation to Scout Gem Server"
38
- task :upload_docs => [:rdoc] do
39
- sh "scp -r doc/html/* " +
40
- "deploy@gems.scoutapp.com:/var/www/gems/docs"
41
- end
42
-
43
38
  spec = Gem::Specification.new do |spec|
44
39
  spec.name = "scout"
45
40
  spec.version = version
@@ -98,7 +93,6 @@ task :publish => [:package] do
98
93
  rf.login
99
94
 
100
95
  c = rf.userconfig
101
- puts rf.inspect
102
96
  c["release_notes"] = spec.description if spec.description
103
97
  c["release_changes"] = changes if changes
104
98
  c["preformatted"] = true
@@ -118,3 +112,17 @@ task :publish => [:package] do
118
112
  ssh_out = ssh_shell.send_command "/usr/bin/index_gem_repository.rb -d /var/www/gems"
119
113
  puts "Published, and updated gem server." if ssh_out.stdout.empty? && !ssh_out.stderr
120
114
  end
115
+
116
+ desc "Upload current documentation to Scout Gem Server and RubyForge"
117
+ task :upload_docs => [:rdoc] do
118
+ sh "scp -r doc/html/* " +
119
+ "deploy@gems.scoutapp.com:/var/www/gems/docs"
120
+
121
+ config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
122
+ host = "#{config["username"]}@rubyforge.org"
123
+
124
+ remote_dir = "/var/www/gforge-projects/#{spec.rubyforge_project}"
125
+ local_dir = 'doc/html'
126
+
127
+ sh %{rsync -av --delete #{local_dir}/ #{host}:#{remote_dir}}
128
+ end
@@ -4,5 +4,5 @@ require "scout/plugin"
4
4
  require "scout/server"
5
5
 
6
6
  module Scout
7
- VERSION = "1.1.0".freeze
7
+ VERSION = "1.1.1".freeze
8
8
  end
@@ -136,6 +136,14 @@ module Scout
136
136
  debug "Plugin does not need to be run at this time. " +
137
137
  "(last run: #{last_run || 'nil'})"
138
138
  end
139
+ ensure
140
+ debug "Removing plugin code..."
141
+ begin
142
+ Object.send(:remove_const, Plugin.last_defined.to_s.split("::").first)
143
+ info "Plugin Removed."
144
+ rescue
145
+ error "Unable to remove plugin."
146
+ end
139
147
  info "Plugin #{plugin[:name]} processing complete."
140
148
  data
141
149
  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: 1.1.0
4
+ version: 1.1.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: 2008-03-13 00:00:00 -04:00
12
+ date: 2008-03-14 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency