time_bandits 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/time_bandits/time_consumers/dalli.rb +2 -2
- data/lib/time_bandits/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4688caf70a7613eef637fe0e8f90279fa17a4a
|
4
|
+
data.tar.gz: aed42b20d473d759c4ee5406dc5055c36ebba531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693c1d759aa997f1a3dce1f3df44c842f85ba5cb4bad6c19b609d68d92b749475314b35bbcd77910c7862ff65149cd1b946d5c1a4cc41d85a25a883940d7ae3a
|
7
|
+
data.tar.gz: 4c3ee41da4853880a9e2cc3c2878b8ffc862057fd47f6f34d01d265eb290b0579b1670296a1593d396e1c20c33661852990638a94c56e9cbbd69afcb49e89446
|
@@ -8,9 +8,9 @@ module TimeBandits::TimeConsumers
|
|
8
8
|
fields :time, :calls, :misses, :reads, :writes
|
9
9
|
format "Dalli: %.3f(%dr,%dm,%dw,%dc)", :time, :reads, :misses, :writes, :calls
|
10
10
|
|
11
|
-
if Rails::VERSION::STRING >= "4.0"
|
11
|
+
if Rails::VERSION::STRING >= "4.0" && Rails.cache.class.respond_to?(:instrument=)
|
12
|
+
# Rails 4 mem_cache_store (which uses dalli internally), unlike dalli_store, is not instrumented by default
|
12
13
|
def reset
|
13
|
-
# Rails 4 mem_cache_store (which uses dalli internally), unlike dalli_store, is not instrumented by default
|
14
14
|
Rails.cache.class.instrument = true
|
15
15
|
super
|
16
16
|
end
|
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.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_variables
|