Skip to content

Commit

Permalink
Allow usage of ActiveRecord 7 (#67)
Browse files Browse the repository at this point in the history
* Run tests against ActiveRecord 7.0.0.rc3

* Update gemspec and add Gemfile

* Remove exclusings for ruby 2.5 and 2.6, only rails 7 requires ruby 2.7, not ActiveRecord

* Use rails 7 in Gemfile instead of release candidate

* Re-exclude ruby 2.5, 2.6 for ActiveRecord 7 tests

* v0.4.0

* Update changelog
  • Loading branch information
acroos authored Dec 17, 2021
1 parent 9ddc896 commit 3a77830
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))

Expand Down
5 changes: 5 additions & 0 deletions gemfiles/activerecord-7.0.Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'http://rubygems.org'

gem 'activerecord', '~> 7.0'

gemspec path: '../'
2 changes: 1 addition & 1 deletion ghost_adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/ghost_adapter/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GhostAdapter
VERSION = '0.3.0'.freeze
VERSION = '0.4.0'.freeze
end

0 comments on commit 3a77830

Please sign in to comment.