tunemygc 1.0.68 → 1.0.69

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: 4b952a0cd1ae0ae64711320d2372083be6e572c9
4
- data.tar.gz: dbca2e597d2bdee9e5b8419dc89a2dcf7864f0df
3
+ metadata.gz: 96bb8e5e17e38e48c72acba5dfe33240ff7d82f1
4
+ data.tar.gz: dc3aeb4c7e1348f54dd1d73ff770c8df52e4e9cb
5
5
  SHA512:
6
- metadata.gz: 7dc832857122ba5c95fceddac7be4fd0499fff864b5ffd286c4c6bed32b71c962d8dd602ef7c9485e3c987b646b4786c80d00005dd62b7dbe3e197678f3438aa
7
- data.tar.gz: cdfb753a2605a6255b0b114bfed92fc5af832e65432db6eb943c24b132fdc83f3a17e0ff127eb40e3f233dcb74ac4d8ddbb2d376933c63f32708308e12fc9c40
6
+ metadata.gz: 2d891545f5d3139121203163eddf21ed75c1ca3665e2898bdcab16a2c64fe075b6dc8ab9c1de1e9c6c8dbb8672f3753fa3262f34370a7cb982368b4c67552ca5
7
+ data.tar.gz: 23c49443ad155609e8547e8b195e9f2b20b9d17ff73c2c2ca588d65ee1b861268480c6f1c3679d3bffe695d8d9702d2b438475aabf5baaf398ca801bd5b5e45b
data/.travis.yml CHANGED
@@ -1,14 +1,14 @@
1
1
  language: ruby
2
+ cache: bundler
2
3
  bundler_args: --quiet
4
+ os:
5
+ - linux
6
+ - osx
3
7
  rvm:
4
8
  - 2.1.0
5
- - 2.1.1
6
- - 2.1.2
7
- - 2.1.5
9
+ - 2.1.10
8
10
  - 2.2.0
9
- - 2.2.1
10
- - 2.2.2
11
- - 2.2.3
11
+ - 2.2.5
12
12
  - 2.3.0
13
13
  - 2.3.1
14
14
  - ruby-head
@@ -16,6 +16,29 @@ script: "bundle exec rake"
16
16
  env: RUBY_GC_TUNE=200 RUBY_GC_TUNE_DEBUG=1 RUBY_GC_SYNC_ALWAYS=1
17
17
  gemfile:
18
18
  - Gemfile
19
+ - Gemfile_5
20
+ matrix:
21
+ exclude:
22
+ - rvm: 2.1.0
23
+ gemfile: Gemfile_5
24
+ - rvm: 2.1.10
25
+ gemfile: Gemfile_5
26
+ - rvm: 2.2.0
27
+ gemfile: Gemfile_5
28
+ - rvm: 2.3.0
29
+ gemfile: Gemfile_5
30
+ - rvm: 2.1.0
31
+ gemfile: Gemfile_5
32
+ os: osx
33
+ - rvm: 2.1.10
34
+ gemfile: Gemfile_5
35
+ os: osx
36
+ - rvm: 2.2.0
37
+ gemfile: Gemfile_5
38
+ os: osx
39
+ - rvm: 2.3.0
40
+ gemfile: Gemfile_5
41
+ os: osx
19
42
  notifications:
20
43
  recipients:
21
44
  - info@bearmetal.eu
data/Gemfile CHANGED
@@ -2,4 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rails'
5
+ gem 'rails', '~> 4.2'
6
+ gem 'delayed_job', '~> 4.0.6'
7
+ gem 'json', git: 'https://github.com/flori/json.git', branch: 'v1.8'
data/Gemfile.lock CHANGED
@@ -1,134 +1,141 @@
1
+ GIT
2
+ remote: https://github.com/flori/json.git
3
+ revision: c7a6e31f3abde6efbf0629dea68b43bebb62c94a
4
+ branch: v1.8
5
+ specs:
6
+ json (1.8.5)
7
+
1
8
  PATH
2
9
  remote: .
3
10
  specs:
4
- tunemygc (1.0.65)
11
+ tunemygc (1.0.69)
5
12
 
6
13
  GEM
7
14
  remote: https://rubygems.org/
8
15
  specs:
9
- actionmailer (4.2.0)
10
- actionpack (= 4.2.0)
11
- actionview (= 4.2.0)
12
- activejob (= 4.2.0)
16
+ actionmailer (4.2.7.1)
17
+ actionpack (= 4.2.7.1)
18
+ actionview (= 4.2.7.1)
19
+ activejob (= 4.2.7.1)
13
20
  mail (~> 2.5, >= 2.5.4)
14
21
  rails-dom-testing (~> 1.0, >= 1.0.5)
15
- actionpack (4.2.0)
16
- actionview (= 4.2.0)
17
- activesupport (= 4.2.0)
18
- rack (~> 1.6.0)
22
+ actionpack (4.2.7.1)
23
+ actionview (= 4.2.7.1)
24
+ activesupport (= 4.2.7.1)
25
+ rack (~> 1.6)
19
26
  rack-test (~> 0.6.2)
20
27
  rails-dom-testing (~> 1.0, >= 1.0.5)
21
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
22
- actionview (4.2.0)
23
- activesupport (= 4.2.0)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ actionview (4.2.7.1)
30
+ activesupport (= 4.2.7.1)
24
31
  builder (~> 3.1)
25
32
  erubis (~> 2.7.0)
26
33
  rails-dom-testing (~> 1.0, >= 1.0.5)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
28
- activejob (4.2.0)
29
- activesupport (= 4.2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
35
+ activejob (4.2.7.1)
36
+ activesupport (= 4.2.7.1)
30
37
  globalid (>= 0.3.0)
31
- activemodel (4.2.0)
32
- activesupport (= 4.2.0)
38
+ activemodel (4.2.7.1)
39
+ activesupport (= 4.2.7.1)
33
40
  builder (~> 3.1)
34
- activerecord (4.2.0)
35
- activemodel (= 4.2.0)
36
- activesupport (= 4.2.0)
41
+ activerecord (4.2.7.1)
42
+ activemodel (= 4.2.7.1)
43
+ activesupport (= 4.2.7.1)
37
44
  arel (~> 6.0)
38
- activesupport (4.2.0)
45
+ activesupport (4.2.7.1)
39
46
  i18n (~> 0.7)
40
47
  json (~> 1.7, >= 1.7.7)
41
48
  minitest (~> 5.1)
42
49
  thread_safe (~> 0.3, >= 0.3.4)
43
50
  tzinfo (~> 1.1)
44
- addressable (2.3.6)
45
- arel (6.0.0)
51
+ addressable (2.5.0)
52
+ public_suffix (~> 2.0, >= 2.0.2)
53
+ arel (6.0.3)
46
54
  builder (3.2.2)
47
- crack (0.4.2)
55
+ concurrent-ruby (1.0.2)
56
+ crack (0.4.3)
48
57
  safe_yaml (~> 1.0.0)
49
58
  delayed_job (4.0.6)
50
59
  activesupport (>= 3.0, < 5.0)
51
60
  erubis (2.7.0)
52
- globalid (0.3.0)
61
+ globalid (0.3.7)
53
62
  activesupport (>= 4.1.0)
54
- hike (1.2.3)
63
+ hashdiff (0.3.0)
55
64
  i18n (0.7.0)
56
- json (1.8.2)
57
- loofah (2.0.1)
65
+ loofah (2.0.3)
58
66
  nokogiri (>= 1.5.9)
59
- mail (2.6.3)
60
- mime-types (>= 1.16, < 3)
67
+ mail (2.6.4)
68
+ mime-types (>= 1.16, < 4)
61
69
  metaclass (0.0.4)
62
- mime-types (2.4.3)
63
- mini_portile (0.6.2)
64
- minitest (5.5.0)
70
+ mime-types (3.1)
71
+ mime-types-data (~> 3.2015)
72
+ mime-types-data (3.2016.0521)
73
+ mini_portile2 (2.1.0)
74
+ minitest (5.9.1)
65
75
  mocha (1.1.0)
66
76
  metaclass (~> 0.0.1)
67
- multi_json (1.10.1)
68
- nokogiri (1.6.5)
69
- mini_portile (~> 0.6.0)
70
- rack (1.6.0)
71
- rack-test (0.6.2)
77
+ nokogiri (1.6.8.1)
78
+ mini_portile2 (~> 2.1.0)
79
+ public_suffix (2.0.4)
80
+ rack (1.6.5)
81
+ rack-test (0.6.3)
72
82
  rack (>= 1.0)
73
- rails (4.2.0)
74
- actionmailer (= 4.2.0)
75
- actionpack (= 4.2.0)
76
- actionview (= 4.2.0)
77
- activejob (= 4.2.0)
78
- activemodel (= 4.2.0)
79
- activerecord (= 4.2.0)
80
- activesupport (= 4.2.0)
83
+ rails (4.2.7.1)
84
+ actionmailer (= 4.2.7.1)
85
+ actionpack (= 4.2.7.1)
86
+ actionview (= 4.2.7.1)
87
+ activejob (= 4.2.7.1)
88
+ activemodel (= 4.2.7.1)
89
+ activerecord (= 4.2.7.1)
90
+ activesupport (= 4.2.7.1)
81
91
  bundler (>= 1.3.0, < 2.0)
82
- railties (= 4.2.0)
92
+ railties (= 4.2.7.1)
83
93
  sprockets-rails
84
94
  rails-deprecated_sanitizer (1.0.3)
85
95
  activesupport (>= 4.2.0.alpha)
86
- rails-dom-testing (1.0.5)
96
+ rails-dom-testing (1.0.7)
87
97
  activesupport (>= 4.2.0.beta, < 5.0)
88
98
  nokogiri (~> 1.6.0)
89
99
  rails-deprecated_sanitizer (>= 1.0.1)
90
- rails-html-sanitizer (1.0.1)
100
+ rails-html-sanitizer (1.0.3)
91
101
  loofah (~> 2.0)
92
- railties (4.2.0)
93
- actionpack (= 4.2.0)
94
- activesupport (= 4.2.0)
102
+ railties (4.2.7.1)
103
+ actionpack (= 4.2.7.1)
104
+ activesupport (= 4.2.7.1)
95
105
  rake (>= 0.8.7)
96
106
  thor (>= 0.18.1, < 2.0)
97
- rake (10.4.2)
98
- rake-compiler (0.9.5)
107
+ rake (10.5.0)
108
+ rake-compiler (0.9.9)
99
109
  rake
100
110
  safe_yaml (1.0.4)
101
- sprockets (2.12.3)
102
- hike (~> 1.2)
103
- multi_json (~> 1.0)
104
- rack (~> 1.0)
105
- tilt (~> 1.1, != 1.3.0)
106
- sprockets-rails (2.2.2)
107
- actionpack (>= 3.0)
108
- activesupport (>= 3.0)
109
- sprockets (>= 2.8, < 4.0)
111
+ sprockets (3.7.0)
112
+ concurrent-ruby (~> 1.0)
113
+ rack (> 1, < 3)
114
+ sprockets-rails (3.2.0)
115
+ actionpack (>= 4.0)
116
+ activesupport (>= 4.0)
117
+ sprockets (>= 3.0.0)
110
118
  thor (0.19.1)
111
- thread_safe (0.3.4)
112
- tilt (1.4.1)
119
+ thread_safe (0.3.5)
113
120
  tzinfo (1.2.2)
114
121
  thread_safe (~> 0.1)
115
- webmock (1.20.4)
122
+ webmock (1.24.6)
116
123
  addressable (>= 2.3.6)
117
124
  crack (>= 0.3.2)
125
+ hashdiff
118
126
 
119
127
  PLATFORMS
120
128
  ruby
121
129
 
122
130
  DEPENDENCIES
123
- activejob (~> 4.2, >= 4.2.0)
124
- activesupport (~> 4.1)
125
- delayed_job (~> 4.0.6, >= 4.0.6)
131
+ delayed_job (~> 4.0.6)
132
+ json!
126
133
  mocha (~> 1.1.0)
127
- rails
134
+ rails (~> 4.2)
128
135
  rake (~> 10.3)
129
136
  rake-compiler (~> 0.9, >= 0.9.5)
130
137
  tunemygc!
131
138
  webmock (~> 1.2, >= 1.2.0)
132
139
 
133
140
  BUNDLED WITH
134
- 1.10.6
141
+ 1.13.6
data/Gemfile_5 ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'rails', '~> 5.0'
6
+ gem 'delayed_job', '~> 4.1.2'
7
+ gem 'json', git: 'https://github.com/flori/json.git', branch: 'v1.8'
data/Gemfile_5.lock ADDED
@@ -0,0 +1,147 @@
1
+ GIT
2
+ remote: https://github.com/flori/json.git
3
+ revision: c7a6e31f3abde6efbf0629dea68b43bebb62c94a
4
+ branch: v1.8
5
+ specs:
6
+ json (1.8.5)
7
+
8
+ PATH
9
+ remote: .
10
+ specs:
11
+ tunemygc (1.0.69)
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ actioncable (5.0.0.1)
17
+ actionpack (= 5.0.0.1)
18
+ nio4r (~> 1.2)
19
+ websocket-driver (~> 0.6.1)
20
+ actionmailer (5.0.0.1)
21
+ actionpack (= 5.0.0.1)
22
+ actionview (= 5.0.0.1)
23
+ activejob (= 5.0.0.1)
24
+ mail (~> 2.5, >= 2.5.4)
25
+ rails-dom-testing (~> 2.0)
26
+ actionpack (5.0.0.1)
27
+ actionview (= 5.0.0.1)
28
+ activesupport (= 5.0.0.1)
29
+ rack (~> 2.0)
30
+ rack-test (~> 0.6.3)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
33
+ actionview (5.0.0.1)
34
+ activesupport (= 5.0.0.1)
35
+ builder (~> 3.1)
36
+ erubis (~> 2.7.0)
37
+ rails-dom-testing (~> 2.0)
38
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
39
+ activejob (5.0.0.1)
40
+ activesupport (= 5.0.0.1)
41
+ globalid (>= 0.3.6)
42
+ activemodel (5.0.0.1)
43
+ activesupport (= 5.0.0.1)
44
+ activerecord (5.0.0.1)
45
+ activemodel (= 5.0.0.1)
46
+ activesupport (= 5.0.0.1)
47
+ arel (~> 7.0)
48
+ activesupport (5.0.0.1)
49
+ concurrent-ruby (~> 1.0, >= 1.0.2)
50
+ i18n (~> 0.7)
51
+ minitest (~> 5.1)
52
+ tzinfo (~> 1.1)
53
+ addressable (2.5.0)
54
+ public_suffix (~> 2.0, >= 2.0.2)
55
+ arel (7.1.4)
56
+ builder (3.2.2)
57
+ concurrent-ruby (1.0.2)
58
+ crack (0.4.3)
59
+ safe_yaml (~> 1.0.0)
60
+ delayed_job (4.1.2)
61
+ activesupport (>= 3.0, < 5.1)
62
+ erubis (2.7.0)
63
+ globalid (0.3.7)
64
+ activesupport (>= 4.1.0)
65
+ hashdiff (0.3.0)
66
+ i18n (0.7.0)
67
+ loofah (2.0.3)
68
+ nokogiri (>= 1.5.9)
69
+ mail (2.6.4)
70
+ mime-types (>= 1.16, < 4)
71
+ metaclass (0.0.4)
72
+ method_source (0.8.2)
73
+ mime-types (3.1)
74
+ mime-types-data (~> 3.2015)
75
+ mime-types-data (3.2016.0521)
76
+ mini_portile2 (2.1.0)
77
+ minitest (5.9.1)
78
+ mocha (1.1.0)
79
+ metaclass (~> 0.0.1)
80
+ nio4r (1.2.1)
81
+ nokogiri (1.6.8.1)
82
+ mini_portile2 (~> 2.1.0)
83
+ public_suffix (2.0.4)
84
+ rack (2.0.1)
85
+ rack-test (0.6.3)
86
+ rack (>= 1.0)
87
+ rails (5.0.0.1)
88
+ actioncable (= 5.0.0.1)
89
+ actionmailer (= 5.0.0.1)
90
+ actionpack (= 5.0.0.1)
91
+ actionview (= 5.0.0.1)
92
+ activejob (= 5.0.0.1)
93
+ activemodel (= 5.0.0.1)
94
+ activerecord (= 5.0.0.1)
95
+ activesupport (= 5.0.0.1)
96
+ bundler (>= 1.3.0, < 2.0)
97
+ railties (= 5.0.0.1)
98
+ sprockets-rails (>= 2.0.0)
99
+ rails-dom-testing (2.0.1)
100
+ activesupport (>= 4.2.0, < 6.0)
101
+ nokogiri (~> 1.6.0)
102
+ rails-html-sanitizer (1.0.3)
103
+ loofah (~> 2.0)
104
+ railties (5.0.0.1)
105
+ actionpack (= 5.0.0.1)
106
+ activesupport (= 5.0.0.1)
107
+ method_source
108
+ rake (>= 0.8.7)
109
+ thor (>= 0.18.1, < 2.0)
110
+ rake (10.5.0)
111
+ rake-compiler (0.9.9)
112
+ rake
113
+ safe_yaml (1.0.4)
114
+ sprockets (3.7.0)
115
+ concurrent-ruby (~> 1.0)
116
+ rack (> 1, < 3)
117
+ sprockets-rails (3.2.0)
118
+ actionpack (>= 4.0)
119
+ activesupport (>= 4.0)
120
+ sprockets (>= 3.0.0)
121
+ thor (0.19.1)
122
+ thread_safe (0.3.5)
123
+ tzinfo (1.2.2)
124
+ thread_safe (~> 0.1)
125
+ webmock (1.24.6)
126
+ addressable (>= 2.3.6)
127
+ crack (>= 0.3.2)
128
+ hashdiff
129
+ websocket-driver (0.6.4)
130
+ websocket-extensions (>= 0.1.0)
131
+ websocket-extensions (0.1.2)
132
+
133
+ PLATFORMS
134
+ ruby
135
+
136
+ DEPENDENCIES
137
+ delayed_job (~> 4.1.2)
138
+ json!
139
+ mocha (~> 1.1.0)
140
+ rails (~> 5.0)
141
+ rake (~> 10.3)
142
+ rake-compiler (~> 0.9, >= 0.9.5)
143
+ tunemygc!
144
+ webmock (~> 1.2, >= 1.2.0)
145
+
146
+ BUNDLED WITH
147
+ 1.13.6
data/Rakefile CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'rubygems' unless defined?(Gem)
4
4
  require 'rake' unless defined?(Rake)
5
5
 
6
+ require "bundler/gem_tasks"
6
7
  require 'rake/extensiontask'
7
8
  require 'rake/testtask'
8
9
 
@@ -29,4 +30,4 @@ namespace :debug do
29
30
  end
30
31
 
31
32
  task :test => :compile
32
- task :default => :test
33
+ task :default => :test
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'tunemygc/spies'
4
+ require 'tunemygc/network'
4
5
 
5
6
  module TuneMyGc
6
7
  class Interposer
@@ -24,6 +24,8 @@ module TuneMyGc
24
24
  uninstall
25
25
  TuneMyGc.log "kamikaze after #{@processed} of #{@limit} units of work"
26
26
  TuneMyGc.interposer.kamikaze
27
+ elsif ENV['RUBY_GC_TUNE_VERBOSE']
28
+ TuneMyGc.log "logged #{@processed} of #{@limit} units of work"
27
29
  end
28
30
  end
29
31
  end
@@ -36,4 +38,4 @@ module TuneMyGc
36
38
  end
37
39
  end
38
40
  end
39
- end
41
+ end
@@ -56,7 +56,8 @@ module TuneMyGc
56
56
  end
57
57
 
58
58
  def sync_required?(snapshotter)
59
- return true if ENV['RUBY_GC_SYNC_ALWAYS']
59
+ return false if ENV['RUBY_GC_SYNC_NEVER']
60
+ return true if ENV['RUBY_GC_SYNC_ALWAYS']
60
61
  TuneMyGc.log "Sync required? #{snapshotter.unit_of_work}"
61
62
  snapshotter.unit_of_work
62
63
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.68"
5
- end
4
+ VERSION = "1.0.69"
5
+ end
data/test/helper.rb CHANGED
@@ -14,13 +14,46 @@ WebMock.disable_net_connect!
14
14
  require File.join(File.dirname(__FILE__), 'fixtures')
15
15
 
16
16
  class TuneMyGcTestCase < Minitest::Test
17
- if ENV['STRESS_GC'] == '1'
18
- def setup
19
- GC.stress = true
20
- end
21
-
22
- def teardown
23
- GC.stress = false
24
- end
17
+
18
+ def setup
19
+ GC.stress = true if ENV['STRESS_GC'] == '1'
20
+ store_current_threads
21
+ end
22
+
23
+ def teardown
24
+ GC.stress = false if ENV['STRESS_GC'] == '1'
25
+ cleanup_temporary_threads
26
+ end
27
+
28
+ def store_current_threads
29
+ @original_threads = Thread.list
30
+ end
31
+
32
+ def cleanup_temporary_threads
33
+ (Thread.list - @original_threads).each(&:join)
34
+ end
35
+ end
36
+
37
+ class TuneMyGcInterposerTestCase < TuneMyGcTestCase
38
+ def setup
39
+ super
40
+ interposer_setup
41
+ end
42
+
43
+ def teardown
44
+ super # order matters: clean up threads first, then reset environment
45
+ interposer_teardown
46
+ end
47
+
48
+ def interposer_setup
49
+ TuneMyGc.interposer.uninstall
50
+
51
+ # Force disable syncing because we want to capture the snapshots
52
+ ENV["RUBY_GC_SYNC_NEVER"] = "1"
53
+ end
54
+
55
+ def interposer_teardown
56
+ TuneMyGc.interposer = TuneMyGc::Interposer.new([:ActionController])
57
+ ENV["RUBY_GC_SYNC_NEVER"] = nil
25
58
  end
26
59
  end
@@ -2,10 +2,7 @@
2
2
 
3
3
  require File.join(File.dirname(__FILE__), 'helper')
4
4
 
5
- class TestActionControllerInterposer < TuneMyGcTestCase
6
- def setup
7
- TuneMyGc.interposer.uninstall
8
- end
5
+ class TestActionControllerInterposer < TuneMyGcInterposerTestCase
9
6
 
10
7
  def test_init
11
8
  interposer = TuneMyGc.interposer
@@ -82,4 +79,4 @@ class TestActionControllerInterposer < TuneMyGcTestCase
82
79
  ActiveSupport::Notifications.instrument('start_processing.action_controller', path: path) {}
83
80
  ActiveSupport::Notifications.instrument('process_action.action_controller', path: path) {}
84
81
  end
85
- end
82
+ end
@@ -8,14 +8,7 @@ class TuneMyGcJob < ActiveJob::Base
8
8
  end
9
9
  end
10
10
 
11
- class TestActiveJobInterposer < TuneMyGcTestCase
12
- def setup
13
- TuneMyGc.interposer.uninstall
14
- end
15
-
16
- def teardown
17
- TuneMyGc.interposer = TuneMyGc::Interposer.new([:ActionController])
18
- end
11
+ class TestActiveJobInterposer < TuneMyGcInterposerTestCase
19
12
 
20
13
  def test_init
21
14
  TuneMyGc.interposer = TuneMyGc::Interposer.new([:ActiveJob])
@@ -86,4 +79,4 @@ class TestActiveJobInterposer < TuneMyGcTestCase
86
79
  def run_tunemygc_job
87
80
  TuneMyGcJob.new.perform_now
88
81
  end
89
- end
82
+ end
@@ -10,14 +10,7 @@ NewsletterJob = Struct.new(:text, :emails) do
10
10
  end
11
11
  end
12
12
 
13
- class TestDelayedJobInterposer < TuneMyGcTestCase
14
- def setup
15
- TuneMyGc.interposer.uninstall
16
- end
17
-
18
- def teardown
19
- TuneMyGc.interposer = TuneMyGc::Interposer.new([:ActionController])
20
- end
13
+ class TestDelayedJobInterposer < TuneMyGcInterposerTestCase
21
14
 
22
15
  def test_init
23
16
  TuneMyGc.interposer = TuneMyGc::Interposer.new([:DelayedJob])
@@ -93,4 +86,4 @@ class TestDelayedJobInterposer < TuneMyGcTestCase
93
86
  def run_newsletter_job
94
87
  Delayed::Job.enqueue NewsletterJob.new("test", %w(lourens@bearmetal.eu))
95
88
  end
96
- end
89
+ end
@@ -12,14 +12,7 @@ class MinitestSandboxTest < MiniTest::Unit::TestCase
12
12
  end
13
13
  end
14
14
 
15
- class TestMinitestInterposer < TuneMyGcTestCase
16
- def setup
17
- TuneMyGc.interposer.uninstall
18
- end
19
-
20
- def teardown
21
- TuneMyGc.interposer = TuneMyGc::Interposer.new([:ActionController])
22
- end
15
+ class TestMinitestInterposer < TuneMyGcInterposerTestCase
23
16
 
24
17
  def test_init
25
18
  TuneMyGc.interposer = TuneMyGc::Interposer.new([:Minitest])
@@ -90,4 +83,4 @@ class TestMinitestInterposer < TuneMyGcTestCase
90
83
  def run_tunemygc_test
91
84
  MinitestSandboxTest.new("test_minitest_spy").run
92
85
  end
93
- end
86
+ end
data/tunemygc.gemspec CHANGED
@@ -22,11 +22,8 @@ Gem::Specification.new do |s|
22
22
  s.require_paths = ["lib"]
23
23
  s.required_ruby_version = '>= 2.1.0'
24
24
 
25
- s.add_development_dependency('activesupport', '~> 4.1')
26
25
  s.add_development_dependency('rake', '~> 10.3')
27
26
  s.add_development_dependency('rake-compiler', '~> 0.9', '>= 0.9.5')
28
27
  s.add_development_dependency('webmock', '~> 1.2', '>= 1.2.0')
29
- s.add_development_dependency('activejob', '~> 4.2', '>= 4.2.0')
30
- s.add_development_dependency('delayed_job', '~> 4.0.6', '>= 4.0.6')
31
28
  s.add_development_dependency('mocha', '~> 1.1.0')
32
- end
29
+ end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunemygc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.68
4
+ version: 1.0.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-05 00:00:00.000000000 Z
11
+ date: 2016-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '4.1'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '4.1'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -78,46 +64,6 @@ dependencies:
78
64
  - - ">="
79
65
  - !ruby/object:Gem::Version
80
66
  version: 1.2.0
81
- - !ruby/object:Gem::Dependency
82
- name: activejob
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '4.2'
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 4.2.0
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '4.2'
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: 4.2.0
101
- - !ruby/object:Gem::Dependency
102
- name: delayed_job
103
- requirement: !ruby/object:Gem::Requirement
104
- requirements:
105
- - - "~>"
106
- - !ruby/object:Gem::Version
107
- version: 4.0.6
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: 4.0.6
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 4.0.6
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- version: 4.0.6
121
67
  - !ruby/object:Gem::Dependency
122
68
  name: mocha
123
69
  requirement: !ruby/object:Gem::Requirement
@@ -146,6 +92,8 @@ files:
146
92
  - ".travis.yml"
147
93
  - Gemfile
148
94
  - Gemfile.lock
95
+ - Gemfile_5
96
+ - Gemfile_5.lock
149
97
  - README.md
150
98
  - Rakefile
151
99
  - assets/discourse_bench.png