From bf7d3b17380caa6d54b6cc2792b5a5decd2172b9 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 15 Jun 2024 13:08:25 +0200 Subject: [PATCH] Test against Active Model 7.2 --- .github/workflows/ruby.yml | 9 ++++++++- .rubocop_todo.yml | 2 +- Appraisals | 4 ++++ gemfiles/am_7.2.gemfile | 22 ++++++++++++++++++++++ 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 gemfiles/am_7.2.gemfile diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index f6314e9..eb8d180 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: ruby-version: ['3.0', '3.1', '3.2', '3.3'] - gemfile: [am_7.0, am_7.1] + gemfile: [am_7.0, am_7.1, am_7.2] channel: [stable] include: @@ -39,10 +39,17 @@ jobs: - ruby-version: 'head' gemfile: am_7.1 channel: experimental + - ruby-version: 'head' + gemfile: am_7.2 + channel: experimental - ruby-version: 'head' gemfile: am_edge channel: experimental + exclude: + - ruby-version: '3.0' + gemfile: am_7.2 + env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 05e37f5..16ecf62 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.63.2. +# using RuboCop version 1.64.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new diff --git a/Appraisals b/Appraisals index 4682931..865ab96 100644 --- a/Appraisals +++ b/Appraisals @@ -8,6 +8,10 @@ appraise 'am-7.1' do gem 'activemodel', '~> 7.1.0' end +appraise 'am-7.2' do + gem 'activemodel', '~> 7.2.0.beta2' +end + appraise 'am-edge' do gem 'activemodel', git: 'https://github.com/rails/rails.git' gem 'activesupport', git: 'https://github.com/rails/rails.git' diff --git a/gemfiles/am_7.2.gemfile b/gemfiles/am_7.2.gemfile new file mode 100644 index 0000000..2e84767 --- /dev/null +++ b/gemfiles/am_7.2.gemfile @@ -0,0 +1,22 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler" +gem "byebug" +gem "pry" +gem "rake" +gem "rspec" +gem "simplecov" +gem "webmock" +gem "yard" +gem "rubocop", require: false +gem "rubocop-packaging", require: false +gem "rubocop-performance", require: false +gem "rubocop-rails", require: false +gem "rubocop-rake", require: false +gem "rubocop-rspec", require: false +gem "activemodel", "~> 7.2.0.beta2" + +gemspec path: "../"