Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v9.0.0 #384

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
DisplayCopNames: true
SuggestExtensions: false
NewCops: enable
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ group :development do
# Gems used by the ActiveRecord test suite
gem "bcrypt"
gem "mocha"
gem "sqlite3"
gem "msgpack"
end
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 9.0.0 / 2023-10-06

* Rails 7.1 support (seuros) #382

### 8.0.3 / 2023-10-05

* Fix `default_function` schema dumping in virtual columns (wizardofelves) #383
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ gem 'ffi-geos'

_JRuby support for Rails 4.0 and 4.1 was added in version 2.2.0_

#### Version 9.x supports ActiveRecord 7.1

```
ActiveRecord 7.1
Ruby 3.0.0+
PostGIS 2.0+
```

#### Version 8.x supports ActiveRecord 7.0

Requirements:
Expand Down
2 changes: 1 addition & 1 deletion activerecord-postgis-adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.files = Dir["lib/**/*", "LICENSE.txt"]
spec.platform = Gem::Platform::RUBY

spec.required_ruby_version = ">= 2.7.0"
spec.required_ruby_version = ">= 3.0.0"

spec.add_dependency "activerecord", "~> 7.1.0"
spec.add_dependency "rgeo-activerecord", "~> 7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion lib/active_record/connection_adapters/postgis/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ActiveRecord
module ConnectionAdapters
module PostGIS
VERSION = "8.0.3"
VERSION = "9.0.0"
end
end
end
4 changes: 2 additions & 2 deletions test/schema/postgis_specific_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# suite.

ActiveRecord::Schema.define do
enable_extension!("uuid-ossp", ActiveRecord::Base.connection)
enable_extension!("pgcrypto", ActiveRecord::Base.connection) if ActiveRecord::Base.connection.supports_pgcrypto_uuid?
ActiveRecord::TestCase.enable_extension!("uuid-ossp", ActiveRecord::Base.connection)
ActiveRecord::TestCase.enable_extension!("pgcrypto", ActiveRecord::Base.connection) if ActiveRecord::Base.connection.supports_pgcrypto_uuid?

uuid_default = connection.supports_pgcrypto_uuid? ? {} : { default: "uuid_generate_v4()" }

Expand Down