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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9857054a58b0e3473784a61d8549a3e634419ce1de2d17ba039787a45b5129e4
4
- data.tar.gz: 9eaf8d0bb0534077d4a3d150d98fe2d7444377f226a9cf0b8d157238f87789b3
3
+ metadata.gz: f63fb99fb2e626c24d88c6a7abdcdcdb2b53dc54d8045b8d4a5823d54159a4f6
4
+ data.tar.gz: f3610ba4413b86a2b092fcc4adb57c22b29a0de8baa876c2085d0f3a38e91a12
5
5
  SHA512:
6
- metadata.gz: 5b052f9ab10cfe806eb9afee735f23b0f754796876881ca13868159c893e1d9b87667be83d6ca4a569b78f18a39e4fcff3c217c59ef60740e008bb3f906d4eb3
7
- data.tar.gz: 6369669ef0ea0b3de90a8d396e787025aaf9abb9eed71b34f86b4814d7a83ba87464657807d711043d32f8015b3c15f4b3f789047f07ba4720bcf74072ef5f89
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
- - fix-publish-gem-ci
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
- # 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,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
- ActiveRecord::Base.connection_handler.clear_active_connections!
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
@@ -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.1.1"
7
+ spec.version = "6.2.0"
8
8
  spec.authors = ["Glia TechMovers"]
9
9
  spec.email = ["open-source@glia.com"]
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salestation
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glia TechMovers