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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac35c38f3393a0ff15bd629eaa862ab6f80b8c23dd199bd7ab0a21081ed7adc
4
- data.tar.gz: 640caa883d9975cd47a662c0995b97fba05de0795e374ab4719f4c50cc3e773a
3
+ metadata.gz: 5e7b550a5d77896484401846b736c019fba606ae7ab266a14cff054c5f392f61
4
+ data.tar.gz: d8d58687ebe4687e75ec71b8caf0cba39229a72a50edc614cdd0f0df2200bdbe
5
5
  SHA512:
6
- metadata.gz: 14059e1e2903f23e6b61340688a1d6942a00c062d6088bb23c1f04b89e355860aa34b66d5e4a7926986e4f947e37a8bad72cf9ff0f149d9f86d8a68fa9fd05fd
7
- data.tar.gz: cad90ceabc0220576aae6c8ffe83a3ec2c06f346e980e0c20d962267090dac1b03e36fcc8517e757104d9baf849b5cedc9bab5c7ffbabab2a064ffc7775eabc3
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)
@@ -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
@@ -41,9 +41,11 @@ module TimeBandits
41
41
  TimeBandits.add TimeBandits::TimeConsumers::Database
42
42
  end
43
43
 
44
- # reset statistics info, so that for example the time for the first request handled
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
 
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
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.0
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-06-26 00:00:00.000000000 Z
11
+ date: 2020-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread_variables