Skip to content

Commit

Permalink
Drop legacy Ruby and Rails versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Sep 5, 2024
1 parent d17e838 commit d8ed219
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 156 deletions.
73 changes: 2 additions & 71 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permissions:
contents: read

jobs:
test-27-plus:
tests:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{matrix.gemfile}}
Expand All @@ -15,60 +15,19 @@ jobs:
- "3.3"
- "3.2"
- "3.1"
- "3.0"
- "2.7"
- "jruby-9.4.8.0"
gemfile:
- gemfiles/ar72.gemfile
- gemfiles/ar71.gemfile
- gemfiles/ar70.gemfile
- gemfiles/rgeo3.gemfile
- gemfiles/rgeo1.gemfile
channel: ['stable']
include:
# Test legacy AR 5.x/6.x series
- ruby: '2.7'
gemfile: gemfiles/ar50.gemfile
channel: 'stable'
- ruby: '2.7'
gemfile: gemfiles/ar51.gemfile
channel: 'stable'
- ruby: '2.7'
gemfile: gemfiles/ar52.gemfile
channel: 'stable'
- ruby: '2.7'
gemfile: gemfiles/ar60.gemfile
channel: 'stable'
- ruby: '2.7'
gemfile: gemfiles/ar61.gemfile
channel: 'stable'
- ruby: '3.0'
gemfile: gemfiles/ar60.gemfile
channel: 'stable'
- ruby: '3.0'
gemfile: gemfiles/ar61.gemfile
channel: 'stable'
- ruby: '3.1'
gemfile: gemfiles/ar61.gemfile
channel: 'stable'
# Test against Ruby head
- ruby: head
gemfile: gemfiles/ar71.gemfile
channel: 'experimental'
- ruby: head
gemfile: gemfiles/ar72.gemfile
channel: 'experimental'
- ruby: head
gemfile: gemfiles/rgeo3.gemfile
channel: 'experimental'
exclude:
- ruby: '2.7'
gemfile: gemfiles/ar72.gemfile
- ruby: '2.7'
gemfile: gemfiles/rgeo3.gemfile
- ruby: '3.0'
gemfile: gemfiles/ar72.gemfile
- ruby: '3.0'
gemfile: gemfiles/rgeo3.gemfile
continue-on-error: ${{ matrix.channel != 'stable' }}
steps:
- name: Set Up Gems
Expand All @@ -82,31 +41,3 @@ jobs:
bundler-cache: true
- name: Test
run: bundle exec rake
test-26-lower:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{matrix.gemfile}}
strategy:
matrix:
ruby:
- "jruby-9.3.7.0"
- "2.6"
gemfile:
- gemfiles/ar50.gemfile
- gemfiles/ar51.gemfile
- gemfiles/ar52.gemfile
- gemfiles/ar60.gemfile
- gemfiles/ar61.gemfile
- gemfiles/rgeo1.gemfile
steps:
- name: Set Up Gems
uses: actions/checkout@v4
- name: Set Up Deps
run: sudo apt-get install libgeos-dev
- name: Set Up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bundle exec rake
30 changes: 0 additions & 30 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
appraise "ar50" do
gem "activerecord", "~> 5.0.0"
end

appraise "ar51" do
gem "activerecord", "~> 5.1.0"
end

appraise "ar52" do
gem "activerecord", "~> 5.2.0"
end

appraise "ar60" do
gem "activerecord", "~> 6.0.0"
end

appraise "ar61" do
gem "activerecord", "~> 6.1.0"
end

appraise "ar70" do
gem "activerecord", "~> 7.0.0"
end
Expand All @@ -29,13 +9,3 @@ end
appraise "ar72" do
gem "activerecord", "~> 7.2.0"
end

appraise "rgeo3" do
gem "activerecord", "~> 7.2.0"
gem "rgeo", "~> 3.0"
end

appraise "rgeo1" do
gem "activerecord", "~> 5.2.0"
gem "rgeo", "~> 1.0"
end
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Gemfile:
gem 'rgeo-activerecord'
```

Version `8.0+` supports ActiveRecord 7.x with `rgeo` 3.0+

Version `7.0+` supports ActiveRecord 5.x, 6.x, and 7.x with `rgeo` 1.0+

Version `6.2+` supports ActiveRecord 5.x and 6.x with `rgeo` 1.0+
Expand Down
7 changes: 0 additions & 7 deletions gemfiles/ar50.gemfile

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/ar51.gemfile

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/ar52.gemfile

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/ar60.gemfile

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/ar61.gemfile

This file was deleted.

8 changes: 0 additions & 8 deletions gemfiles/rgeo1.gemfile

This file was deleted.

8 changes: 0 additions & 8 deletions gemfiles/rgeo3.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion lib/rgeo/active_record/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module RGeo
module ActiveRecord
VERSION = "7.0.1"
VERSION = "8.0.0"
end
end
6 changes: 3 additions & 3 deletions rgeo-activerecord.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Gem::Specification.new do |spec|

spec.files = Dir["lib/**/*", "README.md", "History.md", "LICENSE.txt"]

spec.required_ruby_version = ">= 2.5.0"
spec.required_ruby_version = ">= 3.1.0"

spec.add_dependency "activerecord", ">= 5.0"
spec.add_dependency "rgeo", ">= 1.0.0"
spec.add_dependency "activerecord", ">= 7.0"
spec.add_dependency "rgeo", ">= 3.0"

spec.add_development_dependency "appraisal", "~> 2.1"
spec.add_development_dependency "ffi-geos", "~> 1.2"
Expand Down

0 comments on commit d8ed219

Please sign in to comment.