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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Metriks
3
- VERSION = '0.9.7'
3
+ VERSION = '0.9.7.1'
4
4
 
5
5
  def self.get(name)
6
6
  Metriks::Registry.default.get(name)
@@ -32,7 +32,12 @@ module Metriks
32
32
 
33
33
  def snapshot
34
34
  @mutex.synchronize do
35
- Snapshot.new(@values.values)
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-21'
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.
@@ -10,7 +10,7 @@ module ThreadErrorHandlingTests
10
10
  reporter.stubs(:write).raises(StandardError, "boom")
11
11
 
12
12
  reporter.start
13
- sleep 0.002
13
+ sleep 0.02
14
14
  assert_equal true, error_handler_called
15
15
  assert_equal "boom", rescued_error.message
16
16
  ensure
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 7
9
- version: 0.9.7
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-21 00:00:00 -07:00
18
+ date: 2012-03-26 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency