promiscuous-newrelic 0.1.3 → 0.1.4

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.
@@ -28,6 +28,23 @@ DependencyDetection.defer do
28
28
  end
29
29
  end
30
30
 
31
+ Promiscuous::Worker.module_eval do
32
+ class << self
33
+ alias_method :replicate_without_rpm, :replicate
34
+ alias_method :stop_without_rpm, :stop
35
+
36
+ def replicate(options={})
37
+ NewRelic::Agent.manual_start
38
+ replicate_without_rpm(options)
39
+ end
40
+
41
+ def stop
42
+ stop_without_rpm
43
+ NewRelic::Agent.shutdown
44
+ end
45
+ end
46
+ end
47
+
31
48
  NewRelic::Agent.logger.debug 'Using Promiscuous Instrumentation'
32
49
  end
33
50
  end
@@ -1,5 +1,5 @@
1
1
  module Promiscuous
2
2
  module NewRelic
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-12 00:00:00.000000000 Z
13
+ date: 2012-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: newrelic_rpm