diff --git a/.github/workflows/jruby.yml b/.github/workflows/jruby.yml index d93adce..b6dfe60 100644 --- a/.github/workflows/jruby.yml +++ b/.github/workflows/jruby.yml @@ -10,10 +10,10 @@ jobs: test: runs-on: ubuntu-latest env: - BUNDLE_GEMFILE: gemfiles/jruby_activerecord_6.1.gemfile + BUNDLE_GEMFILE: gemfiles/jruby_activerecord_7.0.gemfile JRUBY_OPTS: --debug steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/ruby_25.yml b/.github/workflows/ruby_25.yml index 0383e1d..9393326 100644 --- a/.github/workflows/ruby_25.yml +++ b/.github/workflows/ruby_25.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1 ] + gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1 ] env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/ruby_26.yml b/.github/workflows/ruby_26.yml index 51c8b43..39cb298 100644 --- a/.github/workflows/ruby_26.yml +++ b/.github/workflows/ruby_26.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1 ] + gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1 ] env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/ruby_27.yml b/.github/workflows/ruby_27.yml index 09e55b7..b76f967 100644 --- a/.github/workflows/ruby_27.yml +++ b/.github/workflows/ruby_27.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1, activerecord_head ] + gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1, activerecord_7.0, activerecord_head ] env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/ruby_30.yml b/.github/workflows/ruby_30.yml index c75e68e..1e19820 100644 --- a/.github/workflows/ruby_30.yml +++ b/.github/workflows/ruby_30.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - gemfile: [ activerecord_6.0, activerecord_6.1, activerecord_head ] + gemfile: [ activerecord_6.0, activerecord_6.1, activerecord_7.0, activerecord_head ] # sqlite 1.3 is not compatible with Ruby 3.0+. If this changes or # sqlite is no longer a dependency then the Active Record 5.2 tests # can be added: @@ -20,7 +20,7 @@ jobs: env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/ruby_31.yml b/.github/workflows/ruby_31.yml new file mode 100644 index 0000000..cf418b2 --- /dev/null +++ b/.github/workflows/ruby_31.yml @@ -0,0 +1,34 @@ +name: Ruby 3.1 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + gemfile: [ activerecord_6.0, activerecord_6.1, activerecord_7.0, activerecord_head ] + # sqlite 1.3 is not compatible with Ruby 3.0+. If this changes or + # sqlite is no longer a dependency then the Active Record 5.2 tests + # can be added: + # gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1, activerecord_head ] + env: + BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + bundler-cache: true + - name: Run tests + run: bundle exec rspec + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ruby_32.yml b/.github/workflows/ruby_32.yml new file mode 100644 index 0000000..0d88844 --- /dev/null +++ b/.github/workflows/ruby_32.yml @@ -0,0 +1,34 @@ +name: Ruby 3.2 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + gemfile: [ activerecord_6.0, activerecord_6.1, activerecord_7.0, activerecord_head ] + # sqlite 1.3 is not compatible with Ruby 3.0+. If this changes or + # sqlite is no longer a dependency then the Active Record 5.2 tests + # can be added: + # gemfile: [ activerecord_5.2, activerecord_6.0, activerecord_6.1, activerecord_head ] + env: + BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + bundler-cache: true + - name: Run tests + run: bundle exec rspec + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ruby_head.yml b/.github/workflows/ruby_head.yml index ffea729..7aaaf39 100644 --- a/.github/workflows/ruby_head.yml +++ b/.github/workflows/ruby_head.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - gemfile: [ activerecord_6.0, activerecord_6.1, activerecord_head ] + gemfile: [ activerecord_6.0, activerecord_6.1, activerecord_7.0, activerecord_head ] # sqlite 1.3 is not compatible with Ruby 3.0+. If this changes or # sqlite is no longer a dependency then the Active Record 5.2 tests # can be added: @@ -20,7 +20,7 @@ jobs: env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/Appraisals b/Appraisals index 45a5f42..a73156c 100644 --- a/Appraisals +++ b/Appraisals @@ -10,40 +10,47 @@ end appraise 'activerecord-6.0' do gem 'activerecord', '~> 6.0.0' group :development, :test do - gem 'sqlite3', '~> 1.4.0' + gem 'sqlite3', '~> 1.6.0' end end appraise 'activerecord-6.1' do gem 'activerecord', '~> 6.1.0' group :development, :test do - gem 'sqlite3', '~> 1.4.0' + gem 'sqlite3', '~> 1.6.0' end end -appraise 'jruby-activerecord-6.1' do - gem 'activerecord', '~> 6.1.0' +appraise 'activerecord-7.0' do + gem 'activerecord', '~> 7.0.0' + group :development, :test do + gem 'sqlite3', '~> 1.6.0' + end +end + +appraise 'jruby-activerecord-7.0' do + gem 'activerecord', '~> 7.0.0' group :development, :test do - gem 'activerecord-jdbc-adapter', '~> 61.0' - gem 'activerecord-jdbcsqlite3-adapter', '~> 61.0' + gem 'activerecord-jdbc-adapter', '~> 70.1' + gem 'activerecord-jdbcsqlite3-adapter', '~> 70.1' end end appraise 'activerecord-head' do - git 'git://github.com/rails/rails.git', branch: 'main' do + git 'https://github.com/rails/rails.git', branch: 'main' do gem 'activerecord' end group :development, :test do - gem 'sqlite3', '~> 1.4.0' + gem 'sqlite3', '~> 1.6.0' end end appraise 'jruby-activerecord-head' do - git 'git://github.com/rails/rails.git', branch: 'main' do + git 'https://github.com/rails/rails.git', branch: 'main' do gem 'activerecord' end group :development, :test do - git 'git://github.com/jruby/activerecord-jdbc-adapter' do + git 'https://github.com/jruby/activerecord-jdbc-adapter' do gem 'activerecord-jdbc-adapter' gem 'activerecord-jdbcsqlite3-adapter', glob: 'activerecord-jdbcsqlite3-adapter/activerecord-jdbcsqlite3-adapter.gemspec' diff --git a/amoeba.gemspec b/amoeba.gemspec index b14d2e9..00867ea 100644 --- a/amoeba.gemspec +++ b/amoeba.gemspec @@ -32,8 +32,8 @@ Gem::Specification.new do |s| s.add_development_dependency 'rubocop-rspec', '~> 2.4' if RUBY_PLATFORM == 'java' - s.add_development_dependency 'activerecord-jdbc-adapter', '~> 61.0' - s.add_development_dependency 'activerecord-jdbcsqlite3-adapter', '~> 61.0' + s.add_development_dependency 'activerecord-jdbc-adapter', '~> 70.0' + s.add_development_dependency 'activerecord-jdbcsqlite3-adapter', '~> 70.0' else s.add_development_dependency 'sqlite3', '>= 1.3' end diff --git a/gemfiles/activerecord_5.2.gemfile b/gemfiles/activerecord_5.2.gemfile index c35f169..ec7c1ca 100644 --- a/gemfiles/activerecord_5.2.gemfile +++ b/gemfiles/activerecord_5.2.gemfile @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # This file was generated by Appraisal source 'https://rubygems.org' diff --git a/gemfiles/activerecord_6.0.gemfile b/gemfiles/activerecord_6.0.gemfile index 1998e87..dc6d5d7 100644 --- a/gemfiles/activerecord_6.0.gemfile +++ b/gemfiles/activerecord_6.0.gemfile @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # This file was generated by Appraisal source 'https://rubygems.org' @@ -10,7 +8,7 @@ group :development, :test do gem 'rake' gem 'simplecov', '~> 0.21.2' gem 'simplecov-lcov', '~> 0.8.0' - gem 'sqlite3', '~> 1.4.0' + gem 'sqlite3', '~> 1.6.0' end group :local_development do diff --git a/gemfiles/activerecord_6.1.gemfile b/gemfiles/activerecord_6.1.gemfile index 6974e69..53d1bc8 100644 --- a/gemfiles/activerecord_6.1.gemfile +++ b/gemfiles/activerecord_6.1.gemfile @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # This file was generated by Appraisal source 'https://rubygems.org' @@ -10,7 +8,7 @@ group :development, :test do gem 'rake' gem 'simplecov', '~> 0.21.2' gem 'simplecov-lcov', '~> 0.8.0' - gem 'sqlite3', '~> 1.4.0' + gem 'sqlite3', '~> 1.6.0' end group :local_development do diff --git a/gemfiles/jruby_activerecord_6.1.gemfile b/gemfiles/activerecord_7.0.gemfile similarity index 62% rename from gemfiles/jruby_activerecord_6.1.gemfile rename to gemfiles/activerecord_7.0.gemfile index 98f951f..dcf3dbd 100644 --- a/gemfiles/jruby_activerecord_6.1.gemfile +++ b/gemfiles/activerecord_7.0.gemfile @@ -1,17 +1,14 @@ -# frozen_string_literal: true - # This file was generated by Appraisal source 'https://rubygems.org' -gem 'activerecord', '~> 6.1.0' +gem 'activerecord', '~> 7.0.0' group :development, :test do - gem 'activerecord-jdbc-adapter', '~> 61.0' - gem 'activerecord-jdbcsqlite3-adapter', '~> 61.0' gem 'rake' gem 'simplecov', '~> 0.21.2' gem 'simplecov-lcov', '~> 0.8.0' + gem 'sqlite3', '~> 1.6.0' end group :local_development do diff --git a/gemfiles/activerecord_head.gemfile b/gemfiles/activerecord_head.gemfile index 06408ae..6695831 100644 --- a/gemfiles/activerecord_head.gemfile +++ b/gemfiles/activerecord_head.gemfile @@ -1,14 +1,8 @@ -# frozen_string_literal: true - # This file was generated by Appraisal source 'https://rubygems.org' -git 'git://github.com/rails/arel.git' do - gem 'arel' -end - -git 'git://github.com/rails/rails.git', branch: 'main' do +git 'https://github.com/rails/rails.git', branch: 'main' do gem 'activerecord' end @@ -16,7 +10,7 @@ group :development, :test do gem 'rake' gem 'simplecov', '~> 0.21.2' gem 'simplecov-lcov', '~> 0.8.0' - gem 'sqlite3', '~> 1.4.0' + gem 'sqlite3', '~> 1.6.0' end group :local_development do diff --git a/gemfiles/jruby_activerecord_7.0.gemfile b/gemfiles/jruby_activerecord_7.0.gemfile new file mode 100644 index 0000000..7140487 --- /dev/null +++ b/gemfiles/jruby_activerecord_7.0.gemfile @@ -0,0 +1,20 @@ +# This file was generated by Appraisal + +source 'https://rubygems.org' + +gem 'activerecord', '~> 7.0.0' + +group :development, :test do + gem 'activerecord-jdbc-adapter', '~> 70.1' + gem 'activerecord-jdbcsqlite3-adapter', '~> 70.1' + gem 'rake' + gem 'simplecov', '~> 0.21.2' + gem 'simplecov-lcov', '~> 0.8.0' +end + +group :local_development do + gem 'appraisal' + gem 'pry' +end + +gemspec path: '../' diff --git a/gemfiles/jruby_activerecord_head.gemfile b/gemfiles/jruby_activerecord_head.gemfile index 323bda7..5c72a6f 100644 --- a/gemfiles/jruby_activerecord_head.gemfile +++ b/gemfiles/jruby_activerecord_head.gemfile @@ -1,19 +1,13 @@ -# frozen_string_literal: true - # This file was generated by Appraisal source 'https://rubygems.org' -git 'git://github.com/rails/arel.git' do - gem 'arel' -end - -git 'git://github.com/rails/rails.git', branch: 'main' do +git 'https://github.com/rails/rails.git', branch: 'main' do gem 'activerecord' end group :development, :test do - git 'git://github.com/jruby/activerecord-jdbc-adapter' do + git 'https://github.com/jruby/activerecord-jdbc-adapter' do gem 'activerecord-jdbc-adapter' gem 'activerecord-jdbcsqlite3-adapter', glob: 'activerecord-jdbcsqlite3-adapter/activerecord-jdbcsqlite3-adapter.gemspec'