salestation 6.0.0 → 6.1.1
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/.github/workflows/publish.yml +2 -2
- data/CHANGELOG.md +7 -0
- data/lib/salestation/web/active_record_connection_management.rb +12 -2
- data/salestation.gemspec +2 -2
- metadata +11 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9857054a58b0e3473784a61d8549a3e634419ce1de2d17ba039787a45b5129e4
|
|
4
|
+
data.tar.gz: 9eaf8d0bb0534077d4a3d150d98fe2d7444377f226a9cf0b8d157238f87789b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b052f9ab10cfe806eb9afee735f23b0f754796876881ca13868159c893e1d9b87667be83d6ca4a569b78f18a39e4fcff3c217c59ef60740e008bb3f906d4eb3
|
|
7
|
+
data.tar.gz: 6369669ef0ea0b3de90a8d396e787025aaf9abb9eed71b34f86b4814d7a83ba87464657807d711043d32f8015b3c15f4b3f789047f07ba4720bcf74072ef5f89
|
data/.github/CODEOWNERS
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
* @salemove/tm-
|
|
1
|
+
* @salemove/tm-atlas
|
|
@@ -3,7 +3,7 @@ name: Publish Gem
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- fix-publish-gem-ci
|
|
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
|
-
RELEASE_COMMAND: rake release
|
|
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,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.version >= Gem::Version.new('7.1')
|
|
25
|
+
# For ActiveRecord 7.1 and newer
|
|
26
|
+
ActiveRecord::Base.connection_handler.clear_active_connections!
|
|
27
|
+
else
|
|
28
|
+
# For ActiveRecord 6.1 to 7.0
|
|
29
|
+
ActiveRecord::Base.clear_active_connections!
|
|
30
|
+
end
|
|
31
|
+
end
|
|
22
32
|
end
|
|
23
33
|
end
|
|
24
34
|
end
|
data/salestation.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "salestation"
|
|
7
|
-
spec.version = "6.
|
|
7
|
+
spec.version = "6.1.1"
|
|
8
8
|
spec.authors = ["Glia TechMovers"]
|
|
9
9
|
spec.email = ["open-source@glia.com"]
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
20
|
spec.require_paths = ["lib"]
|
|
21
21
|
|
|
22
|
-
spec.add_development_dependency "bundler", "
|
|
22
|
+
spec.add_development_dependency "bundler", ">= 2.0", "< 5"
|
|
23
23
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
25
25
|
spec.add_development_dependency "pry", "~> 0.14.2"
|
metadata
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: salestation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.1.1
|
|
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
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "
|
|
16
|
+
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
18
|
version: '2.0'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '5'
|
|
19
22
|
type: :development
|
|
20
23
|
prerelease: false
|
|
21
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
25
|
requirements:
|
|
23
|
-
- - "
|
|
26
|
+
- - ">="
|
|
24
27
|
- !ruby/object:Gem::Version
|
|
25
28
|
version: '2.0'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '5'
|
|
26
32
|
- !ruby/object:Gem::Dependency
|
|
27
33
|
name: rake
|
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -235,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
235
241
|
- !ruby/object:Gem::Version
|
|
236
242
|
version: '0'
|
|
237
243
|
requirements: []
|
|
238
|
-
rubygems_version: 3.6.
|
|
244
|
+
rubygems_version: 3.6.9
|
|
239
245
|
specification_version: 4
|
|
240
246
|
summary: ''
|
|
241
247
|
test_files: []
|