lib/rack/throttle/limiter.rb in rack-throttle-0.7.0 vs lib/rack/throttle/limiter.rb in rack-throttle-0.7.1

- old
+ new

@@ -21,9 +21,10 @@ # @option options [String] :key_prefix (nil) # @option options [Integer] :code (403) # @option options [String] :message ("Rate Limit Exceeded") # @option options [String] :type ("text/plain; charset=utf-8") def initialize(app, options = {}) + warn "[DEPRECATION] `rack-throttle` is deprecated. Please use consider using `rack-attack` https://github.com/rack/rack-attack instead." @app, @options = app, options end ## # @param [Hash{String => String}] env