salestation 6.0.0 → 6.1.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/CODEOWNERS +1 -1
- data/CHANGELOG.md +7 -0
- data/lib/salestation/web/active_record_connection_management.rb +12 -2
- data/salestation.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d908387fcdf296252af2446be5dcbc93d6ce903feea96713cd52e65aaf327ec
|
4
|
+
data.tar.gz: 0002cadcd4bf656641f938767abd851ca4e8af6ef3ee5048ef48cd508344e7b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76218019309c771963de99a13a76ddec209df0c9567334434a55fb4a1d3ba82748e739c213207bdb72fccfdfbde6bd18cdd8b9171997c26b5734235cb04ab0aa
|
7
|
+
data.tar.gz: 07d209dad27df390197c17bc35767896a90559c6129b42274793e49f4bdd83acfe2b0614431ed332f19ef2cf0ad1dffed5c778da402839aed64173cfd5cc9d55
|
data/.github/CODEOWNERS
CHANGED
@@ -1 +1 @@
|
|
1
|
-
* @salemove/tm-
|
1
|
+
* @salemove/tm-atlas
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ 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.1.0
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
- Fix incompatibility with ActiveRecord 7.1+ due to changes in its
|
13
|
+
connection clearing API.
|
14
|
+
|
8
15
|
## 6.0.0
|
9
16
|
|
10
17
|
### Changed
|
@@ -12,13 +12,23 @@ module Salestation
|
|
12
12
|
|
13
13
|
status, headers, body = @app.call(env)
|
14
14
|
proxy = ::Rack::BodyProxy.new(body) do
|
15
|
-
|
15
|
+
clear_connections unless testing
|
16
16
|
end
|
17
17
|
[status, headers, proxy]
|
18
18
|
rescue Exception
|
19
|
-
|
19
|
+
clear_connections unless testing
|
20
20
|
raise
|
21
21
|
end
|
22
|
+
|
23
|
+
def clear_connections
|
24
|
+
if ActiveRecord::Base.respond_to?(:clear_active_connections!)
|
25
|
+
# For ActiveRecord 6.1 to 7.0
|
26
|
+
ActiveRecord::Base.clear_active_connections!
|
27
|
+
else
|
28
|
+
# For ActiveRecord 7.1 and newer
|
29
|
+
ActiveRecord::Base.connection_handler.clear_active_connections!
|
30
|
+
end
|
31
|
+
end
|
22
32
|
end
|
23
33
|
end
|
24
34
|
end
|
data/salestation.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salestation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glia TechMovers
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bundler
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
|
-
rubygems_version: 3.6.
|
238
|
+
rubygems_version: 3.6.9
|
239
239
|
specification_version: 4
|
240
240
|
summary: ''
|
241
241
|
test_files: []
|