sized_list 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -58,10 +58,12 @@ module ActiveSupport
58
58
  def write(name, value, options=nil)
59
59
  instrument(:write, name, options) do |payload|
60
60
  @sized_list[name] = value
61
- payload[:eviction] = @sized_list.evicted?
62
- payload[:total_evictions] = @sized_list.evictions
63
- payload[:eviction_frequency] = @sized_list.eviction_frequency
64
- payload[:last_time_between_evictions] = @sized_list.last_time_between_evictions
61
+ if payload
62
+ payload[:eviction] = @sized_list.evicted?
63
+ payload[:total_evictions] = @sized_list.evictions
64
+ payload[:eviction_frequency] = @sized_list.eviction_frequency
65
+ payload[:last_time_between_evictions] = @sized_list.last_time_between_evictions
66
+ end
65
67
  end
66
68
  end
67
69
 
data/sized_list.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sized_list}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Doug Youch