scout 5.6.10 → 5.6.11

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.
@@ -1,3 +1,7 @@
1
+ # 5.6.11
2
+
3
+ * Remove the scout_streamer.pid file after the realtime processes has expired.
4
+
1
5
  # 5.6.10
2
6
 
3
7
  * Fix for plugin.properties that contain '=' in the property value
@@ -93,6 +93,10 @@ module Scout
93
93
  end
94
94
 
95
95
  info("Streamer PID=#{$$} ending.")
96
+
97
+ # remove the pid file before exiting
98
+ streamer_pid_file=File.join(File.dirname(history_file),"scout_streamer.pid")
99
+ File.unlink(streamer_pid_file) if File.exist?(streamer_pid_file)
96
100
  end
97
101
 
98
102
 
@@ -49,7 +49,7 @@ module Scout
49
49
  @scout = Scout::Streamer.new(history, streaming_key, p_app_id, p_key, p_secret, plugin_ids, hostname, log)
50
50
  end
51
51
 
52
- # this method is called by DaemonSpawn's class start method.
52
+ # this method is called by DaemonSpawn's class stop method.
53
53
  def stop
54
54
  Scout::Streamer.continue_streaming = false
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module Scout
2
- VERSION = "5.6.10"
2
+ VERSION = "5.6.11"
3
3
  end
@@ -489,6 +489,29 @@ myurl=http://foo.com?foo=bar
489
489
  assert_nil @client.reload.streamer_command
490
490
  end
491
491
 
492
+ # Unfortunately, the Scout::Streamer::MAX_DURATION needs to be set in another process,
493
+ # so even Scout::Streamer.const_set :MAX_DURATION, 0 doesn't work
494
+ # The only way to test this is to 1) open up streamer.rb and change MAX_DURATION=0, 2) uncomment this test, 3, run this test
495
+ #
496
+ #def test_streamer_removes_process_id_after_shutting_down
497
+ # streamer_pid_file = File.join(AGENT_DIR, "scout_streamer.pid")
498
+ # File.unlink(streamer_pid_file) if File.exist?(streamer_pid_file)
499
+ # test_should_run_first_time
500
+ # assert !File.exist?(streamer_pid_file)
501
+ #
502
+ # assert @client.update_attribute(:streamer_command, "start,A0000000000123,a,b,c,1,3")
503
+ # exec_scout(@client.key)
504
+ # assert File.exist?(streamer_pid_file)
505
+ # process_id = File.read(streamer_pid_file).to_i
506
+ # assert process_running?(process_id)
507
+ #
508
+ # sleep 2
509
+ #
510
+ # assert !process_running?(process_id)
511
+ # assert !File.exist?(streamer_pid_file)
512
+ #end
513
+
514
+
492
515
  def test_streamer_with_memory
493
516
  mock_pusher(3) do
494
517
  plugin = create_plugin(@client, "memory plugin", PLUGIN_FIXTURES[:memory][:code], PLUGIN_FIXTURES[:memory][:sig])
metadata CHANGED
@@ -1,50 +1,44 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: scout
3
- version: !ruby/object:Gem::Version
4
- hash: 59
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.6.11
5
5
  prerelease:
6
- segments:
7
- - 5
8
- - 6
9
- - 10
10
- version: 5.6.10
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Andre Lewis
14
9
  - Derek Haynes
15
10
  - James Edward Gray II
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2013-07-31 00:00:00 -07:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
14
+ date: 2013-08-09 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
24
17
  name: elif
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
27
19
  none: false
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- hash: 3
32
- segments:
33
- - 0
34
- version: "0"
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
35
24
  type: :runtime
36
- version_requirements: *id001
37
- description: |
38
- The scout gem reports metrics to scoutapp.com, an easy-to-use hosted server monitoring service.
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ description: ! 'The scout gem reports metrics to scoutapp.com, an easy-to-use hosted
33
+ server monitoring service.
39
34
 
35
+ '
40
36
  email: support@scoutapp.com
41
- executables:
37
+ executables:
42
38
  - scout
43
39
  extensions: []
44
-
45
40
  extra_rdoc_files: []
46
-
47
- files:
41
+ files:
48
42
  - .gitignore
49
43
  - CHANGELOG.markdown
50
44
  - Gemfile
@@ -221,40 +215,32 @@ files:
221
215
  - vendor/signature/spec/signature_spec.rb
222
216
  - vendor/signature/spec/spec_helper.rb
223
217
  - vendor/util/lib/core_extensions.rb
224
- has_rdoc: true
225
218
  homepage: http://scoutapp.com
226
219
  licenses: []
227
-
228
220
  post_install_message:
229
221
  rdoc_options: []
230
-
231
- require_paths:
222
+ require_paths:
232
223
  - lib
233
- required_ruby_version: !ruby/object:Gem::Requirement
224
+ required_ruby_version: !ruby/object:Gem::Requirement
234
225
  none: false
235
- requirements:
236
- - - ">="
237
- - !ruby/object:Gem::Version
238
- hash: 3
239
- segments:
240
- - 0
241
- version: "0"
242
- required_rubygems_version: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ required_rubygems_version: !ruby/object:Gem::Requirement
243
231
  none: false
244
- requirements:
245
- - - ">="
246
- - !ruby/object:Gem::Version
247
- hash: 3
248
- segments:
249
- - 0
250
- version: "0"
232
+ requirements:
233
+ - - ! '>='
234
+ - !ruby/object:Gem::Version
235
+ version: '0'
251
236
  requirements: []
252
-
253
237
  rubyforge_project: scout
254
- rubygems_version: 1.4.2
238
+ rubygems_version: 1.8.24
255
239
  signing_key:
256
240
  specification_version: 3
257
- summary: Scout is an easy-to-use hosted server monitoring service. The scout Ruby gem reports metrics to our service. The agent runs plugins, configured via the Scout web interface, to monitor a server.
258
- test_files:
241
+ summary: Scout is an easy-to-use hosted server monitoring service. The scout Ruby
242
+ gem reports metrics to our service. The agent runs plugins, configured via the Scout
243
+ web interface, to monitor a server.
244
+ test_files:
259
245
  - test/plugins/disk_usage.rb
260
246
  - test/scout_test.rb