Ability to have access to the request object instead of only env (still can access env with request.env) when
customizing throttle and blocklist responses with new methods Rack::Attack.blocklisted_responder= and
Rack::Attack.throttled_responder= which yield the request to your lambda. ([@NikolayRys])
Deprecated
Rack::Attack.blocklisted_response=
Rack::Attack.throttled_response=
[6.5.0] - 2021-02-07
Added
Added ability to normalize throttle discriminator by setting Rack::Attack.throttle_discriminator_normalizer (@fatkodima)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps rack-attack from 6.2.1 to 6.6.0.
Release notes
Sourced from rack-attack's releases.
Changelog
Sourced from rack-attack's changelog.
... (truncated)
Commits
d0ec4de
Bump gem version to v6.6.03eca60d
Merge pull request #556 from zarqman/dalli3-and-rails797abc93
test: update rails 7 appraisal after final release8d9c884
Merge branch 'master' into dalli3-and-rails7d204006
Merge branch 'ruby-3-1'9ccf628
Merge pull request #565 from orhantoy/include-license-in-gem-build501ab01
ci: run tests against ruby 3.1aaeff6d
feat: deprecate throttled_response and blocklisted_response8bf9d4e
refactor: attempt to make method name more self explanatory and clearc95f962
Include LICENSE in gem buildDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)