tunemygc 1.0.22 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9672bbb45047e92d9539dc1cb38852dfbb0e2cc6
4
- data.tar.gz: 1d3f3d06a6c128a0d982ede89904f237d78610f4
3
+ metadata.gz: b2ab7e3f7e675b182f1d3f1971f5ca2c17e5e328
4
+ data.tar.gz: 7eeee4b87b27fd7d2e63be96b55a6a86083b3f51
5
5
  SHA512:
6
- metadata.gz: 66ef450dba0017bf54915abda65be2fbbba8729f1fb096df36bea2d4bf30d50532d64d04f3db3c42bf3629378186fc2a6b649893d0e77a8f8ee0e1971ac127b3
7
- data.tar.gz: e631316dc487e2dd4d7ca190ccd33c062f1e614305abc8c854d3093f5a4b28e3230b96d012e9d5a975c4842366bcadfe966f5f01a496be054e39fd1c49669c11
6
+ metadata.gz: 34f24e43faf0546af1399b8ec66c59f7bdeadf006d8352365136f7cae0381f3ca282b46cb015deef66362be93173e76168aaac330a9bfcdc4cf9a58b22c2ba6a
7
+ data.tar.gz: e7f392105dfa312a8396be3d9bd02816ab8c5e60f3991ad8ffc526bc3c2b4fa58d064d53991f6a84d1a23702ec83475613ec5153e2c520cc0c9d00306fdc4099
@@ -18,7 +18,7 @@ end
18
18
 
19
19
  module TuneMyGc
20
20
  module Spies
21
- class ActionController
21
+ class ActionController < TuneMyGc::Spies::Base
22
22
  attr_reader :subscriptions
23
23
 
24
24
  def initialize
@@ -4,7 +4,7 @@ require 'active_job'
4
4
 
5
5
  module TuneMyGc
6
6
  module Spies
7
- class ActiveJob
7
+ class ActiveJob < TuneMyGc::Spies::Base
8
8
  def initialize
9
9
  @jobs_processed = 0
10
10
  @jobs_limit = nil
@@ -0,0 +1,19 @@
1
+ # encoding: utf-8
2
+
3
+ module TuneMyGc
4
+ module Spies
5
+ class Base
6
+ def install
7
+ raise NotImplementedError
8
+ end
9
+
10
+ def uninstall
11
+ raise NotImplementedError
12
+ end
13
+
14
+ def check_uninstall
15
+ raise NotImplementedError
16
+ end
17
+ end
18
+ end
19
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module TuneMyGc
4
4
  module Spies
5
- class Manual
5
+ class Manual < TuneMyGc::Spies::Base
6
6
  def install
7
7
  TuneMyGc.log "hooked: manual"
8
8
  end
@@ -4,7 +4,7 @@ require 'minitest'
4
4
 
5
5
  module TuneMyGc
6
6
  module Spies
7
- class Minitest
7
+ class Minitest < TuneMyGc::Spies::Base
8
8
  def initialize
9
9
  @tests_processed = 0
10
10
  @tests_limit = nil
@@ -4,7 +4,7 @@ require 'rspec'
4
4
 
5
5
  module TuneMyGc
6
6
  module Spies
7
- class Rspec
7
+ class Rspec < TuneMyGc::Spies::Base
8
8
  def initialize
9
9
  @tests_processed = 0
10
10
  @tests_limit = nil
@@ -7,6 +7,7 @@ module TuneMyGc
7
7
  (@spies ||= []) << s.to_s
8
8
  end
9
9
 
10
+ spy :Base
10
11
  spy :ActionController
11
12
  spy :Minitest
12
13
  spy :ActiveJob
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.22"
4
+ VERSION = "1.0.23"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunemygc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal
@@ -147,6 +147,7 @@ files:
147
147
  - lib/tunemygc/spies.rb
148
148
  - lib/tunemygc/spies/action_controller.rb
149
149
  - lib/tunemygc/spies/active_job.rb
150
+ - lib/tunemygc/spies/base.rb
150
151
  - lib/tunemygc/spies/manual.rb
151
152
  - lib/tunemygc/spies/minitest.rb
152
153
  - lib/tunemygc/spies/rspec.rb