Skip to content

Commit c0088ce

Browse files
authored
Only support Ruby v3.1+ (#1153)
1 parent 481afa6 commit c0088ce

File tree

3 files changed

+5
-75
lines changed

3 files changed

+5
-75
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
ruby:
17-
- 3.0.6
1817
- 3.1.4
1918
- 3.2.2
19+
- 3.3.0
2020

2121
steps:
2222
- name: Checkout code

CHANGELOG.md

+3-73
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,7 @@
1-
## v7.1.3
2-
3-
#### Fixed
4-
5-
- [#1152](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1152) Fix Composite Key Inserts with Triggers
6-
7-
## v7.1.2
8-
9-
#### Fixed
10-
11-
- [#1151](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1151) FROM subquery should work if order provided
12-
13-
## v7.1.1
14-
15-
#### Fixed
16-
17-
- [#1145](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1145) Ensure correct order of COLLATE and NOT NULL in CREATE TABLE statements
18-
- [#1144](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1144) Fix precision handling in time migration
19-
- [#1143](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1143) Fix precision handling for datetimeoffset migration
20-
21-
## v7.1.0
22-
23-
#### Added
24-
25-
- [#1141](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1141) Added support for check constraints.
26-
27-
## v7.1.0.rc2
28-
29-
#### Added
30-
31-
- [#1136](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1136) Prevent marking broken connections as verified
32-
- [#1138](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1138) Cache quoted names
33-
34-
## v7.1.0.rc1
35-
36-
#### Added
37-
38-
* Rails 7.1 Support
39-
40-
The adapter supports new Rails 7.1 features such as composite primary keys. See the
41-
[Rails 7.1 release notes](https://guides.rubyonrails.org/7_1_release_notes.html) for more information.
1+
## Unreleased
422

433
#### Changed
444

45-
* Configure Connection
46-
47-
If you require additional connection configuration you now need to call `super` within the `configure_connection`
48-
method so that the default configuration is also applied.
49-
50-
v7.1.x adapter:
51-
```ruby
52-
module ActiveRecord
53-
module ConnectionAdapters
54-
class SQLServerAdapter < AbstractAdapter
55-
def configure_connection
56-
super
57-
raw_connection_do "SET TEXTSIZE #{64.megabytes}"
58-
end
59-
end
60-
end
61-
end
62-
```
63-
64-
v7.0.x adapter:
65-
```ruby
66-
module ActiveRecord
67-
module ConnectionAdapters
68-
class SQLServerAdapter < AbstractAdapter
69-
def configure_connection
70-
raw_connection_do "SET TEXTSIZE #{64.megabytes}"
71-
end
72-
end
73-
end
74-
end
75-
```
5+
- [#1153](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1153) Only support Ruby v3.1+
766

77-
Please check [7-0-stable](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/blob/7-0-stable/CHANGELOG.md) for previous changes.
7+
Please check [7-1-stable](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/blob/7-1-stable/CHANGELOG.md) for previous changes.

activerecord-sqlserver-adapter.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
77
spec.platform = Gem::Platform::RUBY
88
spec.version = version
99

10-
spec.required_ruby_version = ">= 2.7.0"
10+
spec.required_ruby_version = ">= 3.1.0"
1111

1212
spec.license = "MIT"
1313
spec.authors = ["Ken Collins", "Anna Carey", "Will Bond", "Murray Steele", "Shawn Balestracci", "Joe Rafaniello", "Tom Ward", "Aidan Haran"]

0 commit comments

Comments
 (0)