salestation 6.1.1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +2 -2
- data/CHANGELOG.md +12 -0
- data/lib/salestation/web/active_record_connection_management.rb +3 -2
- data/salestation.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f63fb99fb2e626c24d88c6a7abdcdcdb2b53dc54d8045b8d4a5823d54159a4f6
|
|
4
|
+
data.tar.gz: f3610ba4413b86a2b092fcc4adb57c22b29a0de8baa876c2085d0f3a38e91a12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad41a9f8b9ddb6f79088c6e83ff77e51d9369e9cef6f59e1cca3fa46d8fa5194ba426cdcedcf687adb7776b53e08cb2ae6a90094d1ae59c46f3b87247d64bcf3
|
|
7
|
+
data.tar.gz: b3d20ab7f6164b8ffa36abdd4aa3efaac6027179fdbefc4f3367ee010a3f94915a66de74ebaaefc66c1182a81acf4b101e6eb9e34a09a8fd458047699c861319
|
|
@@ -3,7 +3,7 @@ name: Publish Gem
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- master
|
|
7
7
|
jobs:
|
|
8
8
|
build:
|
|
9
9
|
runs-on: ubuntu-latest
|
|
@@ -18,6 +18,6 @@ jobs:
|
|
|
18
18
|
uses: discourse/publish-rubygems-action@4bd305c65315cb691bad1e8de97a87aaf29a0a85
|
|
19
19
|
env:
|
|
20
20
|
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
|
21
|
-
|
|
21
|
+
RELEASE_COMMAND: rake release
|
|
22
22
|
GIT_EMAIL: support@salemove.com
|
|
23
23
|
GIT_NAME: sm-deployer
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
|
8
|
+
## 6.2.0
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- `ActiveRecordConnectionManagement` now passes `:all` to
|
|
13
|
+
`clear_active_connections!` on AR 7.1+, silencing the deprecation
|
|
14
|
+
warning emitted on every HTTP request. **Behavior change**:
|
|
15
|
+
connections in non-writing roles (e.g. `:readonly`, `:analytics`)
|
|
16
|
+
are now also released at request end, matching AR 7.2's future
|
|
17
|
+
default and the middleware's intent of freeing all DB connections
|
|
18
|
+
per request.
|
|
19
|
+
|
|
8
20
|
## 6.1.0
|
|
9
21
|
|
|
10
22
|
### Fixed
|
|
@@ -22,8 +22,9 @@ module Salestation
|
|
|
22
22
|
|
|
23
23
|
def clear_connections
|
|
24
24
|
if ActiveRecord.version >= Gem::Version.new('7.1')
|
|
25
|
-
# For ActiveRecord 7.1 and newer
|
|
26
|
-
|
|
25
|
+
# For ActiveRecord 7.1 and newer. Pass :all to clear all roles,
|
|
26
|
+
# matching AR 7.2's future default.
|
|
27
|
+
ActiveRecord::Base.connection_handler.clear_active_connections!(:all)
|
|
27
28
|
else
|
|
28
29
|
# For ActiveRecord 6.1 to 7.0
|
|
29
30
|
ActiveRecord::Base.clear_active_connections!
|
data/salestation.gemspec
CHANGED