time_bandits 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afdcacf44541578ec26f1eb31627e8ce8e7e4538
4
- data.tar.gz: 2bc929b8a360a212a3cff902366ed1d767783955
3
+ metadata.gz: 3e4688caf70a7613eef637fe0e8f90279fa17a4a
4
+ data.tar.gz: aed42b20d473d759c4ee5406dc5055c36ebba531
5
5
  SHA512:
6
- metadata.gz: 1f3d7d8e673447b04e68b05502f18cd431b7ef320db31cb43f525304869d7e92c87fbd3bb7707603707d6d4f3fa89095d9d3728944f703ce746c9f72fafcd40f
7
- data.tar.gz: 0752da49f4f0cae0609b692e9d766c5f6bc9e15068a9261436b8fbcef1310576274d6626b13d709b098748e3379cbdceb3e2061d9ef9ae2134575a6a2d5b1203
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
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
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.6.3
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-07 00:00:00.000000000 Z
11
+ date: 2014-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread_variables