diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 896994e..bc101b9 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -19,31 +19,11 @@ jobs: strategy: matrix: - ruby-version: ['1.9', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2'] - rails-version: ['4.2', '5.0', '5.1', '6.0', '6.1', '7.0'] + ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3'] + rails-version: ['4.2', '5.0', '5.1', '6.0', '6.1', '7.0', '7.1'] exclude: - # Segmentation faults during tests, but should work? - - ruby-version: '2.2' - rails-version: '5.0' - - ruby-version: '2.2' - rails-version: '5.1' - # Too old - - ruby-version: '1.9' - rails-version: '5.0' - - ruby-version: '1.9' - rails-version: '5.1' - - ruby-version: '1.9' - rails-version: '6.0' - - ruby-version: '1.9' - rails-version: '6.1' - - ruby-version: '1.9' - rails-version: '7.0' # activesupport (~> 6.0.0) was resolved to 6.0.6.1, which depends on ruby (>= 2.5.0) # activesupport (~> 6.1.0) was resolved to 6.1.7.2, which depends on ruby (>= 2.5.0) - - ruby-version: '2.2' - rails-version: '6.0' - - ruby-version: '2.2' - rails-version: '6.1' - ruby-version: '2.3' rails-version: '6.0' - ruby-version: '2.3' @@ -53,8 +33,6 @@ jobs: - ruby-version: '2.4' rails-version: '6.1' # activesupport (~> 7.0.0) was resolved to 7.0.4.2, which depends on Ruby (>= 2.7.0) - - ruby-version: '2.2' - rails-version: '7.0' - ruby-version: '2.3' rails-version: '7.0' - ruby-version: '2.4' @@ -87,9 +65,25 @@ jobs: rails-version: '5.0' - ruby-version: '3.2' rails-version: '5.1' + # rails (~> 7.1.0) was resolved to 7.1.3.2, which depends on Ruby (>= 2.7.0) + - ruby-version: '2.3' + rails-version: '7.1' + - ruby-version: '2.4' + rails-version: '7.1' + - ruby-version: '2.5' + rails-version: '7.1' + - ruby-version: '2.6' + rails-version: '7.1' + # Because rails >= 4.0.0.beta1, < 5.0.5.rc1 depends on bundler >= 1.3.0, < 2.0 + # and the current Bundler version (2.5.9) does not satisfy bundler >= 1.3.0, < 2.0, + # rails >= 4.0.0.beta1, < 5.0.5.rc1 cannot be used. + # So, because Gemfile depends on rails ~> 4.2.0, + # version solving has failed. + - ruby-version: '3.3' + rails-version: '4.2' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby-version }} # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): diff --git a/Gemfile b/Gemfile index 6c033d1..41ee41e 100644 --- a/Gemfile +++ b/Gemfile @@ -24,6 +24,8 @@ when "6.1" eval_gemfile('../gemfiles/6.1.gemfile') when "7.0" eval_gemfile('../gemfiles/7.0.gemfile') +when "7.1" + eval_gemfile('../gemfiles/7.1.gemfile') else puts "\e[93mNo TEST_RAILS_VERSION present, letting dependency manager decide what's best.\e[0m" if ENV['DEBUG'] end diff --git a/README.md b/README.md index ea584b0..5f0f59e 100644 --- a/README.md +++ b/README.md @@ -12,18 +12,17 @@ gem install cached_resource CachedResource is designed to be framework agnostic, but will hook into Rails for caching and logging if available. CachedResource supports the following ActiveSupport/Rails (right) and Ruby (down) version combinations: -| | 🛤️ 4.2 | 🛤️ 5.0 | 🛤️ 5.1 | 🛤️ 6.0 | 🛤️ 6.1 | 🛤️ 7.0 | -|-------|-----|-----|-----|-----|-----|-----| -| 💎 1.9 | ✅ | | | | | | -| 💎 2.2 | ✅ | | | | | | -| 💎 2.3 | ✅ | ✅ | ✅ | | | | -| 💎 2.4 | ✅ | ✅ | ✅ | | | | -| 💎 2.5 | ✅ | ✅ | ✅ | ✅ | ✅ | | -| 💎 2.6 | ✅ | ✅ | ✅ | ✅ | ✅ | | -| 💎 2.7 | | ✅ | ✅ | ✅ | ✅ | ✅ | -| 💎 3.0 | | | | ✅ | ✅ | ✅ | -| 💎 3.1 | | | | ✅ | ✅ | ✅ | -| 💎 3.2 | | | | ✅ | ✅ | ✅ | +| | 🛤️ 4.2 | 🛤️ 5.0 | 🛤️ 5.1 | 🛤️ 6.0 | 🛤️ 6.1 | 🛤️ 7.0 | 🛤️ 7.1 | +|-------|-----|-----|-----|-----|-----|-----|-----| +| 💎 2.3 | ✅ | ✅ | ✅ | | | | | +| 💎 2.4 | ✅ | ✅ | ✅ | | | | | +| 💎 2.5 | ✅ | ✅ | ✅ | ✅ | ✅ | | | +| 💎 2.6 | ✅ | ✅ | ✅ | ✅ | ✅ | | +| 💎 2.7 | | ✅ | ✅ | ✅ | ✅ | ✅ |✅ | +| 💎 3.0 | | | | ✅ | ✅ | ✅ | ✅ | +| 💎 3.1 | | | | ✅ | ✅ | ✅ | ✅ | +| 💎 3.2 | | | | ✅ | ✅ | ✅ | ✅ | +| 💎 3.3 | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ## Limitations diff --git a/gemfiles/7.1.gemfile b/gemfiles/7.1.gemfile new file mode 100644 index 0000000..d8951c0 --- /dev/null +++ b/gemfiles/7.1.gemfile @@ -0,0 +1,3 @@ +source "http://rubygems.org" + +gem "rails", "~> 7.1.0" diff --git a/lib/cached_resource/version.rb b/lib/cached_resource/version.rb index 96edc94..3325b48 100644 --- a/lib/cached_resource/version.rb +++ b/lib/cached_resource/version.rb @@ -1,3 +1,3 @@ module CachedResource - VERSION = "7.2.0" + VERSION = "8.0.0" end