tunemygc 1.0.47 → 1.0.48

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdd4781423af377b02af2c99a16794cdec61e12e
4
- data.tar.gz: b5c7fc03f4693a1d2ccc3015b1363fe4b1da4e6a
3
+ metadata.gz: a7f60f4accb0b4fce08cce625244279a02997d08
4
+ data.tar.gz: 15c522d7e297e41c889df3d89673af903833f692
5
5
  SHA512:
6
- metadata.gz: fdb95cbb93251ff6ecfa865ebf058c2be1d28a69177513973bbdb4a9b5303ebf2f6bb8477a9c7ef0abb1fb5f990726f3656366e3de995412f210a229c0c7b9eb
7
- data.tar.gz: b3e123b1e316e8b35ff1d475b1c849b73f2cdfb38b7bdc594c6aaf91a3089cd4cec5c33f218e12652331768b26488c8b3c645531cf806c04c4ade350d93297b6
6
+ metadata.gz: 423d1e332908f3911e1407da94299245f0a6b508249ab2280a0c00e93cee4366f4a25df996178c0db69d49570b52ea04fb2493dc674ab7101e5ae8868084a51d
7
+ data.tar.gz: 4812346a34b637a686802904bcd208823ba98a1e282db346f7181ea8e179eae79d5230bcbc06193ad19ac9b864edbeb267052e62c8a7ec22c5c4db9dabd51184
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tunemygc (1.0.46)
4
+ tunemygc (1.0.48)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- TuneMyGc.processing_started
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
- TuneMyGc.processing_ended
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.47"
4
+ VERSION = "1.0.48"
5
5
  end
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.47
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-26 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport