time_bandits 0.8.0 → 0.8.1
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/garbage_collection.rb +1 -0
- data/lib/time_bandits/version.rb +1 -1
- data/test/unit/active_support_notifications_test.rb +2 -0
- data/test/unit/dalli_test.rb +2 -0
- data/test/unit/database_test.rb +2 -0
- data/test/unit/gc_consumer_test.rb +2 -0
- data/test/unit/memcached_test.rb +2 -0
- data/test/unit/redis_test.rb +2 -0
- data/test/unit/sequel_test.rb +3 -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: a2bf8615592babb13d98e031f188af5e32534787
|
4
|
+
data.tar.gz: fed920d5ae867566c440d4cf47f766b9ae629395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 725590a1323873a12b9d0e165b3fcd9365604c4e89d542be07f74ff24ac29eb5490838de3ba4246b8a11afcb3115880c7d581104cdb8992ce4d361808a6a8516
|
7
|
+
data.tar.gz: ebfb15dc0488a39a9fd9d4c1f4602347fbdbfe4c0d43a05efa6008226cfe9b2f1b711215a7aed39f9dfcd283348e7364ce2bb2a8dc67077751487b6aa91b3cf8
|
data/lib/time_bandits/version.rb
CHANGED
@@ -28,6 +28,8 @@ class ActiveSupportNotificationsTest < Test::Unit::TestCase
|
|
28
28
|
|
29
29
|
test "getting metrics" do
|
30
30
|
assert_equal({:simple_calls => 0, :simple_time => 0}, TimeBandits.metrics)
|
31
|
+
assert_equal 0, TimeBandits.consumed
|
32
|
+
assert_equal 0, TimeBandits.current_runtime
|
31
33
|
end
|
32
34
|
|
33
35
|
test "formatting" do
|
data/test/unit/dalli_test.rb
CHANGED
data/test/unit/database_test.rb
CHANGED
data/test/unit/memcached_test.rb
CHANGED
data/test/unit/redis_test.rb
CHANGED
data/test/unit/sequel_test.rb
CHANGED
@@ -14,6 +14,8 @@ class SequelTest < Test::Unit::TestCase
|
|
14
14
|
:db_calls => 0
|
15
15
|
}
|
16
16
|
assert_equal nothing_measured, metrics
|
17
|
+
assert_equal 0, TimeBandits.consumed
|
18
|
+
assert_equal 0, TimeBandits.current_runtime
|
17
19
|
end
|
18
20
|
|
19
21
|
test "formatting" do
|
@@ -40,4 +42,4 @@ class SequelTest < Test::Unit::TestCase
|
|
40
42
|
def bandit
|
41
43
|
TimeBandits::TimeConsumers::Sequel.instance
|
42
44
|
end
|
43
|
-
end
|
45
|
+
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.8.
|
4
|
+
version: 0.8.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: 2016-04-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_variables
|