From 07000545f0d3efe3fc649d67d29c6c4ec85760cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAben=20Torres?= <22589808+rjstorres@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:47:06 +0000 Subject: [PATCH] Add support for Rails 8 (#168) * Add support for rails 8 dependencies * Exclude ruby version <3.2.0 for rails 8 ci build * Gem version bump. --- .circleci/config.yml | 5 +++++ Appraisals | 6 ++++++ CHANGELOG.md | 4 +++- avromatic.gemspec | 4 ++-- gemfiles/avro1_11_rails8_0.gemfile | 9 +++++++++ lib/avromatic/version.rb | 2 +- 6 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 gemfiles/avro1_11_rails8_0.gemfile diff --git a/.circleci/config.yml b/.circleci/config.yml index a0edcf0..fe7a90f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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 diff --git a/Appraisals b/Appraisals index 012af39..3888fb5 100644 --- a/Appraisals +++ b/Appraisals @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 01b0674..ca16cc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)** diff --git a/avromatic.gemspec b/avromatic.gemspec index 9e302e3..46034cd 100644 --- a/avromatic.gemspec +++ b/avromatic.gemspec @@ -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' diff --git a/gemfiles/avro1_11_rails8_0.gemfile b/gemfiles/avro1_11_rails8_0.gemfile new file mode 100644 index 0000000..90a5fc1 --- /dev/null +++ b/gemfiles/avro1_11_rails8_0.gemfile @@ -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: "../" diff --git a/lib/avromatic/version.rb b/lib/avromatic/version.rb index d9db5e7..8e4c358 100644 --- a/lib/avromatic/version.rb +++ b/lib/avromatic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Avromatic - VERSION = '5.1.1' + VERSION = '5.2.0' end