Skip to content

Commit

Permalink
Merge pull request #384 from rgeo/v9.0-prep
Browse files Browse the repository at this point in the history
v9.0.0
  • Loading branch information
keithdoggett committed Oct 6, 2023
2 parents 8fb63ee + 0eda458 commit 3527a41
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
@@ -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
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
@@ -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
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
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
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
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

0 comments on commit 3527a41

Please sign in to comment.