From f1818f3f2981d82c4e5f1b60987f6357e82139aa Mon Sep 17 00:00:00 2001 From: Stone Filipczak Date: Tue, 23 Apr 2024 10:07:15 -0400 Subject: [PATCH 1/4] suppress deprecation --- lib/rack/throttle/limiter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/throttle/limiter.rb b/lib/rack/throttle/limiter.rb index dfeeec0..b0fc18a 100644 --- a/lib/rack/throttle/limiter.rb +++ b/lib/rack/throttle/limiter.rb @@ -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 From 2a78a53e4df357e9d34f7936ec9b9d360b54fb52 Mon Sep 17 00:00:00 2001 From: Stone Filipczak Date: Tue, 23 Apr 2024 10:10:07 -0400 Subject: [PATCH 2/4] suppress gemfile message --- rack-throttle.gemspec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rack-throttle.gemspec b/rack-throttle.gemspec index b9e1565..61874e0 100644 --- a/rack-throttle.gemspec +++ b/rack-throttle.gemspec @@ -38,9 +38,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 From 9547f7bd11c2b5fea51eb9bfbf15b43d79332d83 Mon Sep 17 00:00:00 2001 From: Micaela Cunha Date: Tue, 11 Mar 2025 18:40:07 -0400 Subject: [PATCH 3/4] Removed deprecated Gem::Specification#has_rdoc --- rack-throttle.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/rack-throttle.gemspec b/rack-throttle.gemspec index b9e1565..7663395 100644 --- a/rack-throttle.gemspec +++ b/rack-throttle.gemspec @@ -25,7 +25,6 @@ Gem::Specification.new do |gem| 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 = [] From f1b2dec7f1b939369e088383b9100a23b87517d5 Mon Sep 17 00:00:00 2001 From: Micaela Cunha Date: Tue, 11 Mar 2025 18:46:56 -0400 Subject: [PATCH 4/4] Removed deprecated Gem::Specification#default_executable --- rack-throttle.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/rack-throttle.gemspec b/rack-throttle.gemspec index 36e8841..41b137b 100644 --- a/rack-throttle.gemspec +++ b/rack-throttle.gemspec @@ -21,7 +21,6 @@ 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()