time_bandits 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/time_bandits.rb +1 -1
- data/lib/time_bandits/railtie.rb +4 -2
- data/lib/time_bandits/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e7b550a5d77896484401846b736c019fba606ae7ab266a14cff054c5f392f61
|
4
|
+
data.tar.gz: d8d58687ebe4687e75ec71b8caf0cba39229a72a50edc614cdd0f0df2200bdbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae0535036dd2df5545890147db397693b8c4afb5c86858d4affaf3f558c5c7a61dd08ece46b47387a280b1283f3f0518dcb916a0d5bd03622ff050b10904175a
|
7
|
+
data.tar.gz: fc61fda4602282fd0a708a695f0ab410f18f9eed931ced47e2aae8177241dda2d72bf2cce903d4cc2fb9ad0abfcebec91da42c1897635bc42c761ad3e1c65fac
|
data/README.md
CHANGED
@@ -85,6 +85,10 @@ Run `docker-compose up` to start Redis, MySQL, RabbitMQ and Memached containers,
|
|
85
85
|
|
86
86
|
## Release Notes
|
87
87
|
|
88
|
+
## Version 0.12.1
|
89
|
+
- support having the rails gem in a bundle without activating the time bandits railtie
|
90
|
+
- automatically install the garbage collection time bandit in rails applications
|
91
|
+
|
88
92
|
## Version 0.12.0
|
89
93
|
- drops support for Rails versions before 5.2.0 and Ruby versions before 2.2.0
|
90
94
|
- makes it possible to use individual time bandits without Rails (e.g. in a Sinatra app)
|
data/lib/time_bandits.rb
CHANGED
@@ -16,7 +16,7 @@ module TimeBandits
|
|
16
16
|
autoload :Beetle, 'time_bandits/time_consumers/beetle'
|
17
17
|
end
|
18
18
|
|
19
|
-
require 'time_bandits/railtie' if defined?(Rails)
|
19
|
+
require 'time_bandits/railtie' if defined?(Rails::Railtie)
|
20
20
|
require 'time_bandits/time_consumers/base_consumer'
|
21
21
|
|
22
22
|
mattr_accessor :time_bandits
|
data/lib/time_bandits/railtie.rb
CHANGED
@@ -41,9 +41,11 @@ module TimeBandits
|
|
41
41
|
TimeBandits.add TimeBandits::TimeConsumers::Database
|
42
42
|
end
|
43
43
|
|
44
|
-
#
|
45
|
-
# by the dispatcher is correct.
|
44
|
+
# Reset statistics info, so that for example the time for the first request handled
|
45
|
+
# by the dispatcher is correct. Also: install GC time bandit here, as we want it to
|
46
|
+
# be the last one in the log line.
|
46
47
|
app.config.after_initialize do
|
48
|
+
TimeBandits.add TimeBandits::TimeConsumers::GarbageCollection.instance if GC.respond_to? :enable_stats
|
47
49
|
TimeBandits.reset
|
48
50
|
end
|
49
51
|
|
data/lib/time_bandits/version.rb
CHANGED
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.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_variables
|