tunemygc 1.0.47 → 1.0.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tunemygc/agent.rb +4 -4
- data/lib/tunemygc/spies/action_controller.rb +6 -4
- data/lib/tunemygc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7f60f4accb0b4fce08cce625244279a02997d08
|
4
|
+
data.tar.gz: 15c522d7e297e41c889df3d89673af903833f692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 423d1e332908f3911e1407da94299245f0a6b508249ab2280a0c00e93cee4366f4a25df996178c0db69d49570b52ea04fb2493dc674ab7101e5ae8868084a51d
|
7
|
+
data.tar.gz: 4812346a34b637a686802904bcd208823ba98a1e282db346f7181ea8e179eae79d5230bcbc06193ad19ac9b864edbeb267052e62c8a7ec22c5c4db9dabd51184
|
data/Gemfile.lock
CHANGED
data/lib/tunemygc/agent.rb
CHANGED
@@ -14,12 +14,12 @@ module TuneMyGc
|
|
14
14
|
TuneMyGc.interposer.install
|
15
15
|
end
|
16
16
|
|
17
|
-
def processing_started
|
18
|
-
snapshot(:PROCESSING_STARTED)
|
17
|
+
def processing_started(meta = nil)
|
18
|
+
snapshot(:PROCESSING_STARTED, meta)
|
19
19
|
end
|
20
20
|
|
21
|
-
def processing_ended
|
22
|
-
snapshot(:PROCESSING_ENDED)
|
21
|
+
def processing_ended(meta = nil)
|
22
|
+
snapshot(:PROCESSING_ENDED, meta)
|
23
23
|
interposer.check_uninstall
|
24
24
|
end
|
25
25
|
|
@@ -5,23 +5,25 @@ require 'tunemygc/subscriber'
|
|
5
5
|
module TuneMyGc
|
6
6
|
class StartRequestSubscriber < Subscriber
|
7
7
|
def start(name, id, payload)
|
8
|
-
TuneMyGc.processing_started
|
8
|
+
TuneMyGc.processing_started({:path => payload[:path], :method => payload[:method], :controller => payload[:controller], :action => payload[:action]})
|
9
9
|
end
|
10
10
|
|
11
11
|
# Rails 3
|
12
12
|
def call(*args)
|
13
|
-
|
13
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
14
|
+
TuneMyGc.processing_started({:path => event.payload[:path], :method => event.payload[:method], :controller => event.payload[:controller], :action => event.payload[:action]})
|
14
15
|
end
|
15
16
|
end
|
16
17
|
|
17
18
|
class EndRequestSubscriber < Subscriber
|
18
19
|
def finish(name, id, payload)
|
19
|
-
TuneMyGc.processing_ended
|
20
|
+
TuneMyGc.processing_ended({:path => payload[:path], :method => payload[:method], :controller => payload[:controller], :action => payload[:action]})
|
20
21
|
end
|
21
22
|
|
22
23
|
# Rails 3
|
23
24
|
def call(*args)
|
24
|
-
|
25
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
26
|
+
TuneMyGc.processing_ended({:path => event.payload[:path], :method => event.payload[:method], :controller => event.payload[:controller], :action => event.payload[:action]})
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
data/lib/tunemygc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tunemygc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bear Metal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|