All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Trust X-Forwarded-For from the right to the left (#162)
- Add cloudflare? method to determine if request passed through CF (#149)
- Drop support for
rails
version6.1
and7.0
, new minimum version is7.1.0
(#142) - Bump minimum ruby version to
3.1.0
in preparation forrails
version7.2
(#142) - Relax
rails
dependencies to allow for7.2
and8.0
(#142) - Fix
Appraisals
branch forrails
version7.2
(#142) - add
rails
version8.0
toAppraisals
(#142)
- Fix
zeitwerk
loading issue (#105)
- Change namespace from
Cloudflare::Rails
toCloudflareRails
. This avoids issues with the cloudflare gem as well as the globalRails
namespace. - A static set of Cloudflare IP addresses will now be used as a fallback value in the case of Cloudflare API failures. These will not be stored in
Rails.cache
so each subsequent result will retry the Cloudflare calls. Once one suceeds the response will be cached and used.
- Use
zeitwerk
to manage file loading.
- Add support for
rails
version7.1.0
- Fix
appraisal
for ruby3.x
- properly scope railtie initializer (#79)
- Drop support for unsupported
rails
version6.0.x
- Drop support for unsupported
rails
version5.2.x
- Fetch and cache IPs lazily instead of upon initialization (#52)
- Add trailing slashes to reflect Cloudflare API URLs (#53)
- Better handling of malformed IP addresses (#49)
- Fix typo in
actionpack
dependency
- Drop support for unsupported
rails
versions (5.0.x
and5.1.x
)
- use Net::HTTP instead of httparty (pr)
- Add
rails 7.0.0.alpha
support
- Removed broad dependency on
rails
, replaced with explicit dependencies forrailties
,activesupport
, andactionpack
( issue and pr)
- Fix various loading order issues.