metriks 0.9.7 → 0.9.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/metriks.rb +1 -1
- data/lib/metriks/exponentially_decaying_sample.rb +6 -1
- data/metriks.gemspec +2 -2
- data/test/thread_error_handling_tests.rb +1 -1
- metadata +3 -2
data/lib/metriks.rb
CHANGED
@@ -32,7 +32,12 @@ module Metriks
|
|
32
32
|
|
33
33
|
def snapshot
|
34
34
|
@mutex.synchronize do
|
35
|
-
|
35
|
+
# Work around a bug in avl_tree right now -- see Issue #6 for details
|
36
|
+
if @values.empty?
|
37
|
+
Snapshot.new([])
|
38
|
+
else
|
39
|
+
Snapshot.new(@values.values)
|
40
|
+
end
|
36
41
|
end
|
37
42
|
end
|
38
43
|
|
data/metriks.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'metriks'
|
16
|
-
s.version = '0.9.7'
|
17
|
-
s.date = '2012-03-
|
16
|
+
s.version = '0.9.7.1'
|
17
|
+
s.date = '2012-03-26'
|
18
18
|
|
19
19
|
## Make sure your summary is short. The description may be as long
|
20
20
|
## as you like.
|
metadata
CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 9
|
8
8
|
- 7
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.9.7.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Eric Lindvall
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-26 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|