diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 1f9f895..c8201e1 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -26,6 +26,8 @@ jobs: include: - ruby: "ruby" standardrb: true + - ruby: "3.4" + appraisal: "activerecord_8" - ruby: "3.1" appraisal: "activerecord_7" - ruby: "2.7" diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml deleted file mode 100644 index d186fea..0000000 --- a/.github/workflows/regression_test.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Regression Test -on: - workflow_dispatch: - schedule: - - cron: "0 15 * * 1" -env: - BUNDLE_CLEAN: "true" - BUNDLE_PATH: vendor/bundle - BUNDLE_JOBS: 3 - BUNDLE_RETRY: 3 -jobs: - specs: - name: Run specs - runs-on: ubuntu-latest - strategy: - fail-fast: false - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Ruby ${{ matrix.ruby }} - uses: ruby/setup-ruby@v1 - with: - ruby-version: ruby - - name: Install bundler - run: | - bundle update - - name: Run specs - run: | - bundle exec rake spec diff --git a/Appraisals b/Appraisals index 7fb23fc..f73ff29 100644 --- a/Appraisals +++ b/Appraisals @@ -1,5 +1,10 @@ # frozen_string_literal: true +appraise "activerecord_8" do + gem "activerecord", "~> 8.0" + gem "sqlite3", "~> 2.5.0" +end + appraise "activerecord_7" do gem "activerecord", "~> 7.0" gem "sqlite3", "~> 1.4.0" @@ -8,6 +13,7 @@ end appraise "activerecord_6" do gem "activerecord", "~> 6.0" gem "sqlite3", "~> 1.4.0" + gem "concurrent-ruby", "1.3.4" end appraise "activerecord_5" do diff --git a/Gemfile b/Gemfile index 32d4b72..7d0264b 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gemspec gem "rspec", "~> 3.0" gem "rake" -gem "sqlite3", "~> 1.4" +gem "sqlite3" gem "appraisal" gem "standard", "~>1.0" gem "pry-byebug" diff --git a/README.md b/README.md index 924913c..61d64ad 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Support Table Cache [![Continuous Integration](https://github.com/bdurand/support_table_cache/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/bdurand/support_table_cache/actions/workflows/continuous_integration.yml) -[![Regression Test](https://github.com/bdurand/support_table_cache/actions/workflows/regression_test.yml/badge.svg)](https://github.com/bdurand/support_table_cache/actions/workflows/regression_test.yml) [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard) +[![Gem Version](https://badge.fury.io/rb/support_table_cache.svg)](https://badge.fury.io/rb/support_table_cache) This gem adds caching for ActiveRecord support table models. These models have a unique key (i.e. a unique `name` attribute, etc.) and a limited number of entries (a few hundred at most). These are often models added to normalize the data structure and are also known as lookup tables. diff --git a/gemfiles/activerecord_6.gemfile b/gemfiles/activerecord_6.gemfile index b8b66b2..ccf4270 100644 --- a/gemfiles/activerecord_6.gemfile +++ b/gemfiles/activerecord_6.gemfile @@ -10,5 +10,6 @@ gem "standard", "~>1.0" gem "pry-byebug" gem "yard" gem "activerecord", "~> 6.0" +gem "concurrent-ruby", "1.3.4" gemspec path: "../" diff --git a/gemfiles/activerecord_8.gemfile b/gemfiles/activerecord_8.gemfile new file mode 100644 index 0000000..6a073c3 --- /dev/null +++ b/gemfiles/activerecord_8.gemfile @@ -0,0 +1,14 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rspec", "~> 3.0" +gem "rake" +gem "sqlite3", "~> 2.5.0" +gem "appraisal" +gem "standard", "~>1.0" +gem "pry-byebug" +gem "yard" +gem "activerecord", "~> 8.0" + +gemspec path: "../"