time_bandits 0.10.9 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +17 -5
- data/Appraisals +2 -8
- data/README.md +29 -6
- data/Rakefile +1 -0
- data/docker-compose.yml +4 -4
- data/gemfiles/activesupport_5.2.4.3.gemfile +8 -0
- data/gemfiles/activesupport_5.2.4.3.gemfile.lock +81 -0
- data/gemfiles/activesupport_6.0.3.2.gemfile +8 -0
- data/gemfiles/activesupport_6.0.3.2.gemfile.lock +81 -0
- data/lib/time_bandits.rb +2 -6
- data/lib/time_bandits/monkey_patches/action_controller.rb +2 -67
- data/lib/time_bandits/monkey_patches/active_record.rb +21 -101
- data/lib/time_bandits/rack/logger.rb +46 -19
- data/lib/time_bandits/railtie.rb +2 -6
- data/lib/time_bandits/time_consumers/dalli.rb +0 -12
- data/lib/time_bandits/time_consumers/garbage_collection.rb +5 -29
- data/lib/time_bandits/version.rb +1 -1
- data/test/test_helper.rb +5 -10
- data/test/unit/database_test.rb +15 -0
- data/test/unit/gc_consumer_test.rb +2 -3
- data/test/unit/sequel_test.rb +5 -1
- data/time_bandits.gemspec +6 -3
- metadata +20 -33
- data/gemfiles/activesupport_4.1.16.gemfile +0 -8
- data/gemfiles/activesupport_4.1.16.gemfile.lock +0 -91
- data/gemfiles/activesupport_4.2.8.gemfile +0 -8
- data/gemfiles/activesupport_4.2.8.gemfile.lock +0 -89
- data/gemfiles/activesupport_4.2.9.gemfile +0 -8
- data/gemfiles/activesupport_4.2.9.gemfile.lock +0 -89
- data/gemfiles/activesupport_5.0.3.gemfile +0 -8
- data/gemfiles/activesupport_5.0.3.gemfile.lock +0 -88
- data/gemfiles/activesupport_5.0.4.gemfile +0 -8
- data/gemfiles/activesupport_5.0.4.gemfile.lock +0 -88
- data/gemfiles/activesupport_5.1.1.gemfile +0 -8
- data/gemfiles/activesupport_5.1.1.gemfile.lock +0 -88
- data/gemfiles/activesupport_5.1.2.gemfile +0 -8
- data/gemfiles/activesupport_5.1.2.gemfile.lock +0 -88
- data/lib/time_bandits/monkey_patches/active_support_cache_store.rb +0 -18
- data/lib/time_bandits/rack/logger40.rb +0 -94
- data/rails/init.rb +0 -1
data/test/unit/sequel_test.rb
CHANGED
@@ -31,8 +31,12 @@ class SequelTest < Test::Unit::TestCase
|
|
31
31
|
assert_equal metrics[:db_time], TimeBandits.consumed
|
32
32
|
end
|
33
33
|
|
34
|
+
def mysql_port
|
35
|
+
ENV['TRAVIS'] == "true" ? 3306 : 3601
|
36
|
+
end
|
37
|
+
|
34
38
|
def sequel
|
35
|
-
@sequel ||= Sequel.
|
39
|
+
@sequel ||= Sequel.mysql2(host: "localhost", port: mysql_port, user: "root")
|
36
40
|
end
|
37
41
|
|
38
42
|
def metrics
|
data/time_bandits.gemspec
CHANGED
@@ -12,6 +12,9 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = "Custom performance logging for Rails"
|
13
13
|
s.description = "Rails Completed Line on Steroids"
|
14
14
|
s.license = 'MIT'
|
15
|
+
s.metadata = {
|
16
|
+
"changelog_uri" => "https://github.com/skaes/time_bandits/blob/master/README.md#release-notes"
|
17
|
+
}
|
15
18
|
|
16
19
|
s.files = `git ls-files`.split("\n")
|
17
20
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -19,7 +22,7 @@ Gem::Specification.new do |s|
|
|
19
22
|
s.require_paths = ["lib"]
|
20
23
|
|
21
24
|
s.add_runtime_dependency("thread_variables")
|
22
|
-
s.add_runtime_dependency("activesupport", [">= 2.
|
25
|
+
s.add_runtime_dependency("activesupport", [">= 5.2.0"])
|
23
26
|
|
24
27
|
s.add_development_dependency("ansi")
|
25
28
|
s.add_development_dependency("appraisal")
|
@@ -29,10 +32,10 @@ Gem::Specification.new do |s|
|
|
29
32
|
s.add_development_dependency("minitest", "~> 5.5")
|
30
33
|
s.add_development_dependency("mocha")
|
31
34
|
s.add_development_dependency("mysql2")
|
32
|
-
s.add_development_dependency("rake"
|
35
|
+
s.add_development_dependency("rake")
|
33
36
|
s.add_development_dependency("redis")
|
34
37
|
s.add_development_dependency("sequel")
|
35
38
|
s.add_development_dependency("activerecord")
|
36
|
-
s.add_development_dependency("beetle", ">=
|
39
|
+
s.add_development_dependency("beetle", ">= 3.4.1")
|
37
40
|
end
|
38
41
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: time_bandits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_variables
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 5.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 5.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ansi
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,16 +154,16 @@ dependencies:
|
|
154
154
|
name: rake
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: redis
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
215
|
+
version: 3.4.1
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
222
|
+
version: 3.4.1
|
223
223
|
description: Rails Completed Line on Steroids
|
224
224
|
email:
|
225
225
|
- skaes@railsexpress.de
|
@@ -235,30 +235,18 @@ files:
|
|
235
235
|
- Rakefile
|
236
236
|
- TODO
|
237
237
|
- docker-compose.yml
|
238
|
-
- gemfiles/
|
239
|
-
- gemfiles/
|
240
|
-
- gemfiles/
|
241
|
-
- gemfiles/
|
242
|
-
- gemfiles/activesupport_4.2.9.gemfile
|
243
|
-
- gemfiles/activesupport_4.2.9.gemfile.lock
|
244
|
-
- gemfiles/activesupport_5.0.3.gemfile
|
245
|
-
- gemfiles/activesupport_5.0.3.gemfile.lock
|
246
|
-
- gemfiles/activesupport_5.0.4.gemfile
|
247
|
-
- gemfiles/activesupport_5.0.4.gemfile.lock
|
248
|
-
- gemfiles/activesupport_5.1.1.gemfile
|
249
|
-
- gemfiles/activesupport_5.1.1.gemfile.lock
|
250
|
-
- gemfiles/activesupport_5.1.2.gemfile
|
251
|
-
- gemfiles/activesupport_5.1.2.gemfile.lock
|
238
|
+
- gemfiles/activesupport_5.2.4.3.gemfile
|
239
|
+
- gemfiles/activesupport_5.2.4.3.gemfile.lock
|
240
|
+
- gemfiles/activesupport_6.0.3.2.gemfile
|
241
|
+
- gemfiles/activesupport_6.0.3.2.gemfile.lock
|
252
242
|
- lib/time_bandits.rb
|
253
243
|
- lib/time_bandits/monkey_patches/action_controller.rb
|
254
244
|
- lib/time_bandits/monkey_patches/active_record.rb
|
255
|
-
- lib/time_bandits/monkey_patches/active_support_cache_store.rb
|
256
245
|
- lib/time_bandits/monkey_patches/memcache-client.rb
|
257
246
|
- lib/time_bandits/monkey_patches/memcached.rb
|
258
247
|
- lib/time_bandits/monkey_patches/redis.rb
|
259
248
|
- lib/time_bandits/monkey_patches/sequel.rb
|
260
249
|
- lib/time_bandits/rack/logger.rb
|
261
|
-
- lib/time_bandits/rack/logger40.rb
|
262
250
|
- lib/time_bandits/railtie.rb
|
263
251
|
- lib/time_bandits/time_consumers/base_consumer.rb
|
264
252
|
- lib/time_bandits/time_consumers/beetle.rb
|
@@ -271,7 +259,6 @@ files:
|
|
271
259
|
- lib/time_bandits/time_consumers/redis.rb
|
272
260
|
- lib/time_bandits/time_consumers/sequel.rb
|
273
261
|
- lib/time_bandits/version.rb
|
274
|
-
- rails/init.rb
|
275
262
|
- test/test_helper.rb
|
276
263
|
- test/unit/active_support_notifications_test.rb
|
277
264
|
- test/unit/base_test.rb
|
@@ -287,8 +274,9 @@ files:
|
|
287
274
|
homepage: https://github.com/skaes/time_bandits/
|
288
275
|
licenses:
|
289
276
|
- MIT
|
290
|
-
metadata:
|
291
|
-
|
277
|
+
metadata:
|
278
|
+
changelog_uri: https://github.com/skaes/time_bandits/blob/master/README.md#release-notes
|
279
|
+
post_install_message:
|
292
280
|
rdoc_options: []
|
293
281
|
require_paths:
|
294
282
|
- lib
|
@@ -303,9 +291,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
291
|
- !ruby/object:Gem::Version
|
304
292
|
version: '0'
|
305
293
|
requirements: []
|
306
|
-
|
307
|
-
|
308
|
-
signing_key:
|
294
|
+
rubygems_version: 3.1.2
|
295
|
+
signing_key:
|
309
296
|
specification_version: 4
|
310
297
|
summary: Custom performance logging for Rails
|
311
298
|
test_files:
|
@@ -1,91 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
time_bandits (0.10.7)
|
5
|
-
activesupport (>= 2.3.2)
|
6
|
-
thread_variables
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activemodel (4.1.16)
|
12
|
-
activesupport (= 4.1.16)
|
13
|
-
builder (~> 3.1)
|
14
|
-
activerecord (4.1.16)
|
15
|
-
activemodel (= 4.1.16)
|
16
|
-
activesupport (= 4.1.16)
|
17
|
-
arel (~> 5.0.0)
|
18
|
-
activesupport (4.1.16)
|
19
|
-
i18n (~> 0.6, >= 0.6.9)
|
20
|
-
json (~> 1.7, >= 1.7.7)
|
21
|
-
minitest (~> 5.1)
|
22
|
-
thread_safe (~> 0.1)
|
23
|
-
tzinfo (~> 1.1)
|
24
|
-
amq-protocol (2.0.1)
|
25
|
-
amqp (1.6.0)
|
26
|
-
amq-protocol (>= 2.0.1)
|
27
|
-
eventmachine
|
28
|
-
ansi (1.5.0)
|
29
|
-
appraisal (2.2.0)
|
30
|
-
bundler
|
31
|
-
rake
|
32
|
-
thor (>= 0.14.0)
|
33
|
-
arel (5.0.1.20140414130214)
|
34
|
-
beetle (1.0.3)
|
35
|
-
activesupport (>= 2.3.4)
|
36
|
-
amq-protocol (= 2.0.1)
|
37
|
-
amqp (= 1.6.0)
|
38
|
-
bunny (~> 0.7.10)
|
39
|
-
daemons (>= 1.2.0)
|
40
|
-
eventmachine_httpserver (>= 0.2.1)
|
41
|
-
hiredis (>= 0.4.5)
|
42
|
-
redis (>= 2.2.2)
|
43
|
-
uuid4r (>= 0.1.2)
|
44
|
-
builder (3.2.3)
|
45
|
-
bunny (0.7.10)
|
46
|
-
byebug (9.0.6)
|
47
|
-
daemons (1.2.4)
|
48
|
-
dalli (2.7.6)
|
49
|
-
eventmachine (1.2.3)
|
50
|
-
eventmachine_httpserver (0.2.1)
|
51
|
-
hiredis (0.6.1)
|
52
|
-
i18n (0.8.4)
|
53
|
-
json (1.8.6)
|
54
|
-
memcached (1.8.0)
|
55
|
-
metaclass (0.0.4)
|
56
|
-
minitest (5.10.2)
|
57
|
-
mocha (1.2.1)
|
58
|
-
metaclass (~> 0.0.1)
|
59
|
-
mysql2 (0.4.6)
|
60
|
-
rake (10.5.0)
|
61
|
-
redis (3.3.3)
|
62
|
-
sequel (4.47.0)
|
63
|
-
thor (0.19.4)
|
64
|
-
thread_safe (0.3.6)
|
65
|
-
thread_variables (0.2.0)
|
66
|
-
tzinfo (1.2.3)
|
67
|
-
thread_safe (~> 0.1)
|
68
|
-
uuid4r (0.2.0)
|
69
|
-
|
70
|
-
PLATFORMS
|
71
|
-
ruby
|
72
|
-
|
73
|
-
DEPENDENCIES
|
74
|
-
activerecord (= 4.1.16)
|
75
|
-
activesupport (= 4.1.16)
|
76
|
-
ansi
|
77
|
-
appraisal
|
78
|
-
beetle (>= 0.4.6)
|
79
|
-
byebug
|
80
|
-
dalli
|
81
|
-
memcached (~> 1.8.0)
|
82
|
-
minitest (~> 5.5)
|
83
|
-
mocha
|
84
|
-
mysql2
|
85
|
-
rake (~> 10.5.0)
|
86
|
-
redis
|
87
|
-
sequel
|
88
|
-
time_bandits!
|
89
|
-
|
90
|
-
BUNDLED WITH
|
91
|
-
1.15.1
|
@@ -1,89 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
time_bandits (0.10.7)
|
5
|
-
activesupport (>= 2.3.2)
|
6
|
-
thread_variables
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activemodel (4.2.8)
|
12
|
-
activesupport (= 4.2.8)
|
13
|
-
builder (~> 3.1)
|
14
|
-
activerecord (4.2.8)
|
15
|
-
activemodel (= 4.2.8)
|
16
|
-
activesupport (= 4.2.8)
|
17
|
-
arel (~> 6.0)
|
18
|
-
activesupport (4.2.8)
|
19
|
-
i18n (~> 0.7)
|
20
|
-
minitest (~> 5.1)
|
21
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
-
tzinfo (~> 1.1)
|
23
|
-
amq-protocol (2.0.1)
|
24
|
-
amqp (1.6.0)
|
25
|
-
amq-protocol (>= 2.0.1)
|
26
|
-
eventmachine
|
27
|
-
ansi (1.5.0)
|
28
|
-
appraisal (2.2.0)
|
29
|
-
bundler
|
30
|
-
rake
|
31
|
-
thor (>= 0.14.0)
|
32
|
-
arel (6.0.4)
|
33
|
-
beetle (1.0.3)
|
34
|
-
activesupport (>= 2.3.4)
|
35
|
-
amq-protocol (= 2.0.1)
|
36
|
-
amqp (= 1.6.0)
|
37
|
-
bunny (~> 0.7.10)
|
38
|
-
daemons (>= 1.2.0)
|
39
|
-
eventmachine_httpserver (>= 0.2.1)
|
40
|
-
hiredis (>= 0.4.5)
|
41
|
-
redis (>= 2.2.2)
|
42
|
-
uuid4r (>= 0.1.2)
|
43
|
-
builder (3.2.3)
|
44
|
-
bunny (0.7.10)
|
45
|
-
byebug (9.0.6)
|
46
|
-
daemons (1.2.4)
|
47
|
-
dalli (2.7.6)
|
48
|
-
eventmachine (1.2.3)
|
49
|
-
eventmachine_httpserver (0.2.1)
|
50
|
-
hiredis (0.6.1)
|
51
|
-
i18n (0.8.4)
|
52
|
-
memcached (1.8.0)
|
53
|
-
metaclass (0.0.4)
|
54
|
-
minitest (5.10.2)
|
55
|
-
mocha (1.2.1)
|
56
|
-
metaclass (~> 0.0.1)
|
57
|
-
mysql2 (0.4.6)
|
58
|
-
rake (10.5.0)
|
59
|
-
redis (3.3.3)
|
60
|
-
sequel (4.47.0)
|
61
|
-
thor (0.19.4)
|
62
|
-
thread_safe (0.3.6)
|
63
|
-
thread_variables (0.2.0)
|
64
|
-
tzinfo (1.2.3)
|
65
|
-
thread_safe (~> 0.1)
|
66
|
-
uuid4r (0.2.0)
|
67
|
-
|
68
|
-
PLATFORMS
|
69
|
-
ruby
|
70
|
-
|
71
|
-
DEPENDENCIES
|
72
|
-
activerecord (= 4.2.8)
|
73
|
-
activesupport (= 4.2.8)
|
74
|
-
ansi
|
75
|
-
appraisal
|
76
|
-
beetle (>= 0.4.6)
|
77
|
-
byebug
|
78
|
-
dalli
|
79
|
-
memcached (~> 1.8.0)
|
80
|
-
minitest (~> 5.5)
|
81
|
-
mocha
|
82
|
-
mysql2
|
83
|
-
rake (~> 10.5.0)
|
84
|
-
redis
|
85
|
-
sequel
|
86
|
-
time_bandits!
|
87
|
-
|
88
|
-
BUNDLED WITH
|
89
|
-
1.15.1
|
@@ -1,89 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
time_bandits (0.10.7)
|
5
|
-
activesupport (>= 2.3.2)
|
6
|
-
thread_variables
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activemodel (4.2.9)
|
12
|
-
activesupport (= 4.2.9)
|
13
|
-
builder (~> 3.1)
|
14
|
-
activerecord (4.2.9)
|
15
|
-
activemodel (= 4.2.9)
|
16
|
-
activesupport (= 4.2.9)
|
17
|
-
arel (~> 6.0)
|
18
|
-
activesupport (4.2.9)
|
19
|
-
i18n (~> 0.7)
|
20
|
-
minitest (~> 5.1)
|
21
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
-
tzinfo (~> 1.1)
|
23
|
-
amq-protocol (2.0.1)
|
24
|
-
amqp (1.6.0)
|
25
|
-
amq-protocol (>= 2.0.1)
|
26
|
-
eventmachine
|
27
|
-
ansi (1.5.0)
|
28
|
-
appraisal (2.2.0)
|
29
|
-
bundler
|
30
|
-
rake
|
31
|
-
thor (>= 0.14.0)
|
32
|
-
arel (6.0.4)
|
33
|
-
beetle (1.0.3)
|
34
|
-
activesupport (>= 2.3.4)
|
35
|
-
amq-protocol (= 2.0.1)
|
36
|
-
amqp (= 1.6.0)
|
37
|
-
bunny (~> 0.7.10)
|
38
|
-
daemons (>= 1.2.0)
|
39
|
-
eventmachine_httpserver (>= 0.2.1)
|
40
|
-
hiredis (>= 0.4.5)
|
41
|
-
redis (>= 2.2.2)
|
42
|
-
uuid4r (>= 0.1.2)
|
43
|
-
builder (3.2.3)
|
44
|
-
bunny (0.7.10)
|
45
|
-
byebug (9.0.6)
|
46
|
-
daemons (1.2.4)
|
47
|
-
dalli (2.7.6)
|
48
|
-
eventmachine (1.2.3)
|
49
|
-
eventmachine_httpserver (0.2.1)
|
50
|
-
hiredis (0.6.1)
|
51
|
-
i18n (0.8.4)
|
52
|
-
memcached (1.8.0)
|
53
|
-
metaclass (0.0.4)
|
54
|
-
minitest (5.10.2)
|
55
|
-
mocha (1.2.1)
|
56
|
-
metaclass (~> 0.0.1)
|
57
|
-
mysql2 (0.4.7)
|
58
|
-
rake (10.5.0)
|
59
|
-
redis (3.3.3)
|
60
|
-
sequel (4.48.0)
|
61
|
-
thor (0.19.4)
|
62
|
-
thread_safe (0.3.6)
|
63
|
-
thread_variables (0.2.0)
|
64
|
-
tzinfo (1.2.3)
|
65
|
-
thread_safe (~> 0.1)
|
66
|
-
uuid4r (0.2.0)
|
67
|
-
|
68
|
-
PLATFORMS
|
69
|
-
ruby
|
70
|
-
|
71
|
-
DEPENDENCIES
|
72
|
-
activerecord (= 4.2.9)
|
73
|
-
activesupport (= 4.2.9)
|
74
|
-
ansi
|
75
|
-
appraisal
|
76
|
-
beetle (>= 0.4.6)
|
77
|
-
byebug
|
78
|
-
dalli
|
79
|
-
memcached (~> 1.8.0)
|
80
|
-
minitest (~> 5.5)
|
81
|
-
mocha
|
82
|
-
mysql2
|
83
|
-
rake (~> 10.5.0)
|
84
|
-
redis
|
85
|
-
sequel
|
86
|
-
time_bandits!
|
87
|
-
|
88
|
-
BUNDLED WITH
|
89
|
-
1.15.1
|