Skip to content

Commit

Permalink
Add support for Rails 8 (#168)
Browse files Browse the repository at this point in the history
* Add support for rails 8 dependencies

* Exclude ruby version <3.2.0 for rails 8 ci build

* Gem version bump.
  • Loading branch information
rjstorres authored Nov 26, 2024
1 parent 51e56e8 commit 0700054
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ workflows:
- gemfiles/avro1_11_rails7_0.gemfile
- gemfiles/avro1_11_rails7_1.gemfile
- gemfiles/avro1_11_rails7_2.gemfile
- gemfiles/avro1_11_rails8_0.gemfile
ruby-version:
- 3.0.6
- 3.1.4
Expand All @@ -81,3 +82,7 @@ workflows:
exclude:
- gemfile: gemfiles/avro1_11_rails7_2.gemfile
ruby-version: 3.0.6
- gemfile: gemfiles/avro1_11_rails8_0.gemfile
ruby-version: 3.0.6
- gemfile: gemfiles/avro1_11_rails8_0.gemfile
ruby-version: 3.1.4
6 changes: 6 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ appraise 'avro1_11-rails7_2' do
gem 'activesupport', '~> 7.2.1'
gem 'activemodel', '~> 7.2.1'
end

appraise 'avro1_11-rails8_0' do
gem 'avro', '~> 1.11.0'
gem 'activesupport', '~> 8.0.0'
gem 'activemodel', '~> 8.0.0'
end
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# avromatic changelog

## 5.1.1
## 5.2.0
- Add support for Rails 8.0

## 5.1.1
- Respect allowed int and long ranges in accordance with the Avro Specification. **Thanks
[opti](https://github.com/opti)**

Expand Down
4 changes: 2 additions & 2 deletions avromatic.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.7'

spec.add_runtime_dependency 'activemodel', '>= 5.2', '< 8'
spec.add_runtime_dependency 'activesupport', '>= 5.2', '< 8'
spec.add_runtime_dependency 'activemodel', '>= 5.2', '< 8.1'
spec.add_runtime_dependency 'activesupport', '>= 5.2', '< 8.1'
spec.add_runtime_dependency 'avro', '>= 1.11.0', '< 1.12'
spec.add_runtime_dependency 'avro_schema_registry-client', '>= 0.4.0'
spec.add_runtime_dependency 'avro_turf'
Expand Down
9 changes: 9 additions & 0 deletions gemfiles/avro1_11_rails8_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "avro", "~> 1.11.0"
gem "activesupport", "~> 8.0.0"
gem "activemodel", "~> 8.0.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/avromatic/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Avromatic
VERSION = '5.1.1'
VERSION = '5.2.0'
end

0 comments on commit 0700054

Please sign in to comment.