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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b77552025e87bb75e54a85f715ce2b81b2dcc8dd25a9f1a5ba7867be48784eff
4
- data.tar.gz: b6ccb07510f4ec8d64e141bdb2ba87dff2fc17640bf58e0668bde252698b63e0
3
+ metadata.gz: 7d908387fcdf296252af2446be5dcbc93d6ce903feea96713cd52e65aaf327ec
4
+ data.tar.gz: 0002cadcd4bf656641f938767abd851ca4e8af6ef3ee5048ef48cd508344e7b5
5
5
  SHA512:
6
- metadata.gz: 55d0cc16d83d1c3845fdf36682a7cf2679a8013a0e25b08ec44385e3eb63329b9b225f3447a15c9b0ac5e71c933d5423fac6df9835196520b325a6fbea3cd69d
7
- data.tar.gz: 0d6e189ccedb87a9ecc85f1851ebc4911f2f3ceb838d63ca4d4c2bc2f678feba9f3c2596e9ac6dec536c21fbbf01885ffc6fac46cf72319ee358901a3416383e
6
+ metadata.gz: 76218019309c771963de99a13a76ddec209df0c9567334434a55fb4a1d3ba82748e739c213207bdb72fccfdfbde6bd18cdd8b9171997c26b5734235cb04ab0aa
7
+ data.tar.gz: 07d209dad27df390197c17bc35767896a90559c6129b42274793e49f4bdd83acfe2b0614431ed332f19ef2cf0ad1dffed5c778da402839aed64173cfd5cc9d55
data/.github/CODEOWNERS CHANGED
@@ -1 +1 @@
1
- * @salemove/tm-messenger
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
- ActiveRecord::Base.clear_active_connections! unless testing
15
+ clear_connections unless testing
16
16
  end
17
17
  [status, headers, proxy]
18
18
  rescue Exception
19
- ActiveRecord::Base.clear_active_connections! unless testing
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
@@ -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.0.0"
7
+ spec.version = "6.1.0"
8
8
  spec.authors = ["Glia TechMovers"]
9
9
  spec.email = ["open-source@glia.com"]
10
10
 
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.0.0
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: 2025-04-01 00:00:00.000000000 Z
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.2
238
+ rubygems_version: 3.6.9
239
239
  specification_version: 4
240
240
  summary: ''
241
241
  test_files: []