Skip to content

Commit

Permalink
Support ActiveRecord 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
obnijnil authored and stadia committed Sep 4, 2024
1 parent 6ef5a21 commit 3a04013
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
ruby: ['3.0', '2.7']
gemfile:
- gemfiles/ar70.gemfile
- gemfiles/ar71.gemfile
mysql: ['5.7', '8.0']
steps:
- name: Set Up Actions
Expand Down
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Bundler/OrderedGems:
Exclude:
- 'Gemfile'
- 'gemfiles/ar70.gemfile'
- 'gemfiles/ar71.gemfile'

# Offense count: 2
# Cop supports --auto-correct.
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rvm:
- jruby-9.2.6.0
- 3.0
gemfile:
- gemfiles/ar70.gemfile
- gemfiles/ar71.gemfile
matrix:
allow_failures:
- rvm: jruby-9.2.6.0
Expand Down Expand Up @@ -36,4 +36,4 @@ after_script:
- ./cc-test-reporter after-build -t simplecov --exit-code $TRAVIS_TEST_RESULT
before_install:
- gem update --system
- gem install bundler
- gem install bundler
4 changes: 2 additions & 2 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
appraise "ar70" do
gem "activerecord", "~> 7.0.0"
appraise "ar71" do
gem "activerecord", "~> 7.1.0"
end
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Run tests against the test gemfiles:
run `rake appraisal` or run the tests manually:

```
BUNDLE_GEMFILE=./gemfiles/ar70.gemfile bundle
BUNDLE_GEMFILE=./gemfiles/ar70.gemfile rake
BUNDLE_GEMFILE=./gemfiles/ar71.gemfile bundle
BUNDLE_GEMFILE=./gemfiles/ar71.gemfile rake
```

Make your changes and submit a pull request.
Expand Down
2 changes: 1 addition & 1 deletion activerecord-mysql2rgeo-adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 2.7.0"

spec.add_dependency "activerecord", "~> 7.0.0"
spec.add_dependency "activerecord", "~> 7.1.0"
spec.add_dependency "rgeo-activerecord", "~> 7.0.0"
spec.add_dependency "rgeo", "~> 2.0"

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/ar70.gemfile → gemfiles/ar71.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ gem "mysql2", "~> 0.5.2", platform: :ruby
gem "jdbc-mysql", platform: :jruby
gem "activerecord-jdbc-adapter", "~> 5.0", platform: :jruby
gem "ffi-geos", platform: :jruby
gem "activerecord", "~> 7.0.0"
gem "activerecord", "~> 7.1.0"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_table_definition(*args, **options)
end

# override
def new_column_from_field(table_name, field)
def new_column_from_field(table_name, field, _definitions)
type_metadata = fetch_type_metadata(field[:Type], field[:Extra])
default, default_function = field[:Default], nil

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ActiveRecord
module ConnectionAdapters
module Mysql2Rgeo
VERSION = "7.0.1"
VERSION = "7.1.0"
end
end
end

0 comments on commit 3a04013

Please sign in to comment.