diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6891627..9f5e403 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,6 +24,7 @@ jobs: - "gemfiles/activerecord-5.2.Gemfile" - "gemfiles/activerecord-6.0.Gemfile" - "gemfiles/activerecord-6.1.Gemfile" + - "gemfiles/activerecord-7.0.Gemfile" exclude: # Ruby 3 is not supported for ActiveRecord < 6.1 - ruby-version: "3.0" @@ -34,6 +35,11 @@ jobs: gemfile: "gemfiles/activerecord-5.2.Gemfile" - ruby-version: "3.0" gemfile: "gemfiles/activerecord-6.0.Gemfile" + # Ruby >= 2.7 is required for ActiveRecord >= 7 + - ruby-version: "2.5" + gemfile: "gemfiles/activerecord-7.0.Gemfile" + - ruby-version: "2.6" + gemfile: "gemfiles/activerecord-7.0.Gemfile" steps: - uses: actions/checkout@v2 - name: Set up Ruby diff --git a/CHANGELOG.md b/CHANGELOG.md index 932e283..156d7d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## 0.4.0 +- Add support for ActiveRecord 7 ([#67](https://github.com/WeTransfer/ghost_adapter/pull/67)) + ## 0.3.0 - Fix compatibility for ActiveRecord 6.1 ([#61](https://github.com/WeTransfer/ghost_adapter/pull/61)) diff --git a/gemfiles/activerecord-7.0.Gemfile b/gemfiles/activerecord-7.0.Gemfile new file mode 100644 index 0000000..e05f1bc --- /dev/null +++ b/gemfiles/activerecord-7.0.Gemfile @@ -0,0 +1,5 @@ +source 'http://rubygems.org' + +gem 'activerecord', '~> 7.0' + +gemspec path: '../' diff --git a/ghost_adapter.gemspec b/ghost_adapter.gemspec index ab4a48e..3ca0f2a 100644 --- a/ghost_adapter.gemspec +++ b/ghost_adapter.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| end spec.require_paths = ['lib'] - spec.add_dependency 'activerecord', '>= 5', '< 6.2' + spec.add_dependency 'activerecord', '>= 5', '<= 7.0' spec.add_dependency 'mysql2', '>= 0.4.0', '< 0.6.0' spec.add_development_dependency 'bump', '~> 0' diff --git a/lib/ghost_adapter/version.rb b/lib/ghost_adapter/version.rb index e428331..d8b572b 100644 --- a/lib/ghost_adapter/version.rb +++ b/lib/ghost_adapter/version.rb @@ -1,3 +1,3 @@ module GhostAdapter - VERSION = '0.3.0'.freeze + VERSION = '0.4.0'.freeze end