Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rack/throttle/limiter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Limiter
# @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."
# warn "[DEPRECATION] `rack-throttle` is deprecated. Please use consider using `rack-attack` https://github.com/rack/rack-attack instead."
@app, @options = app, options
end

Expand Down
12 changes: 5 additions & 7 deletions rack-throttle.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ Gem::Specification.new do |gem|
gem.files = %w(AUTHORS README.md UNLICENSE VERSION) + Dir.glob('lib/**/*.rb')
gem.bindir = %q(bin)
gem.executables = %w()
gem.default_executable = gem.executables.first
gem.require_paths = %w(lib)
gem.extensions = %w()
gem.test_files = %w()
gem.has_rdoc = false

gem.required_ruby_version = '>= 1.8.2'
gem.requirements = []
Expand All @@ -38,9 +36,9 @@ Gem::Specification.new do |gem|

gem.add_runtime_dependency 'rack', '>= 1.0.0'

gem.post_install_message = <<-POST
rack-throttle is no longer under active development. Please consider
using https://github.com/rack/rack-attack instead as it is
more feature rich & well supported.
POST
# gem.post_install_message = <<-POST
# rack-throttle is no longer under active development. Please consider
# using https://github.com/rack/rack-attack instead as it is
# more feature rich & well supported.
# POST
end