lib/prop/limiter.rb in prop-1.0.2 vs lib/prop/limiter.rb in prop-1.1.0

- old
+ new

@@ -125,10 +125,15 @@ options, cache_key = prepare(handle, key, options) reader.call(cache_key).to_i end alias :query :count + def handles + @handles ||= {} + end + alias :configurations :handles + private def at_threshold?(mark, threshold) mark >= threshold end @@ -144,9 +149,8 @@ options = Prop::Options.build(:key => key, :params => params, :defaults => defaults) cache_key = Prop::Key.build(:key => key, :handle => handle, :interval => options[:interval]) [ options, cache_key ] end - end end end