diff --git a/Appraisals b/Appraisals index 6ff10a9..194657e 100644 --- a/Appraisals +++ b/Appraisals @@ -7,7 +7,7 @@ appraise 'rails-8.0' do end appraise 'rails-8.1' do - gem 'rails', '~> 8.1.0.rc1' + gem 'rails', '~> 8.1.0' end appraise 'rails-edge' do diff --git a/CHANGELOG.md b/CHANGELOG.md index 92e244c..178f9ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,26 @@ # Changelog + All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [7.0.0] + +- Add support for `rails` version `8.1` (https://github.com/modosc/cloudflare-rails/pull/227) +- Drop support for `rails` version `7.1` (https://github.com/modosc/cloudflare-rails/pull/224) +- Drop support for `ruby` version `3.1` (https://github.com/modosc/cloudflare-rails/pull/191) + ## [6.2.0] + - Trust X-Forwarded-For from the right to the left (https://github.com/modosc/cloudflare-rails/pull/162) ## [6.1.0] + - Add cloudflare? method to determine if request passed through CF (https://github.com/modosc/cloudflare-rails/pull/149) ## [6.0.0] - 2024-06-12 + - Drop support for `rails` version `6.1` and `7.0`, new minimum version is `7.1.0` (https://github.com/modosc/cloudflare-rails/pull/142) - Bump minimum ruby version to `3.1.0` in preparation for `rails` version `7.2` (https://github.com/modosc/cloudflare-rails/pull/142) - Relax `rails` dependencies to allow for `7.2` and `8.0` (https://github.com/modosc/cloudflare-rails/pull/142) @@ -17,50 +28,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - add `rails` version `8.0` to `Appraisals` (https://github.com/modosc/cloudflare-rails/pull/142) ## [5.0.1] - 2023-12-16 + - Fix `zeitwerk` loading issue (https://github.com/modosc/cloudflare-rails/pull/105) ## [5.0.0] - 2023-12-15 + ### Breaking Changes + - Change namespace from `Cloudflare::Rails` to `CloudflareRails`. This avoids issues with the [cloudflare](https://github.com/socketry/cloudflare) gem as well as the global `Rails` 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. ### Added + - Use `zeitwerk` to manage file loading. ## [4.1.0] - 2023-10-06 + - Add support for `rails` version `7.1.0` ## [4.0.0] - 2023-08-06 + - Fix `appraisal` for ruby `3.x` - properly scope railtie initializer (https://github.com/modosc/cloudflare-rails/pull/79) - Drop support for unsupported `rails` version `6.0.x` ## [3.0.0] - 2023-01-30 + - Drop support for unsupported `rails` version `5.2.x` - Fetch and cache IPs lazily instead of upon initialization (https://github.com/modosc/cloudflare-rails/pull/52) ## [2.4.0] - 2022-02-22 + - Add trailing slashes to reflect Cloudflare API URLs (https://github.com/modosc/cloudflare-rails/pull/53) ## [2.3.0] - 2021-10-22 -- Better handling of malformed IP addresses (https://github.com/modosc/cloudflare-rails/pull/49) + +- Better handling of malformed IP addresses (https://github.com/modosc/cloudflare-rails/pull/49) ## [2.2.0] - 2021-06-11 + - Fix typo in `actionpack` dependency ## [2.1.0] - 2021-06-11 + ### Breaking Changes + - Drop support for unsupported `rails` versions (`5.0.x` and `5.1.x`) ### Added + - use Net::HTTP instead of httparty ([pr](https://github.com/modosc/cloudflare-rails/pull/44)) - Add `rails 7.0.0.alpha` support ## [2.0.0] - 2021-02-17 + ### Breaking Changes + - Removed broad dependency on `rails`, replaced with explicit dependencies for `railties`, `activesupport`, and `actionpack` ( [issue](https://github.com/modosc/cloudflare-rails/issues/34) and [pr](https://github.com/modosc/cloudflare-rails/pull/35)) ## [1.0.0] - 2020-09-29 + ### Added - Fix various [loading order issues](https://github.com/modosc/cloudflare-rails/pull/25). diff --git a/gemfiles/rails_8.1.gemfile b/gemfiles/rails_8.1.gemfile index e095716..7f0fc63 100644 --- a/gemfiles/rails_8.1.gemfile +++ b/gemfiles/rails_8.1.gemfile @@ -4,6 +4,6 @@ source 'https://rubygems.org' -gem 'rails', '~> 8.1.0.rc1' +gem 'rails', '~> 8.1.0' gemspec path: '../' diff --git a/lib/cloudflare_rails/version.rb b/lib/cloudflare_rails/version.rb index 0a37793..ac430e7 100644 --- a/lib/cloudflare_rails/version.rb +++ b/lib/cloudflare_rails/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module CloudflareRails - VERSION = '6.2.0' + VERSION = '7.0.0' end