statesman 9.0.0 → 9.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/lib/statesman/adapters/active_record.rb +11 -1
- data/lib/statesman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145d2a6b60abe5fb64e8010676cb63b62ba1869daa4343eb538bdf1d261c885e
|
4
|
+
data.tar.gz: cbcc8f735327409a89a2b238fefdfb6ef4b9e9595b983f7a648df800ca8c2aed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eeef7b26150628a370117dccbcde1e40bc1dbd15957fca96f18232e167b5bcca58a42f47a2718a6927bfcb08449b4f7515fa48ef68ed281f79e12fad96d40f2
|
7
|
+
data.tar.gz: b793c7af514ce22564326d697880179caceadff2bebc6c03b02aa5a523e040ffd17e5dff8475b9fad7ed567f6f0f8849fe97ddb6745a7b3d86cd7aceb71e0264
|
data/.circleci/config.yml
CHANGED
@@ -58,7 +58,7 @@ references:
|
|
58
58
|
- "main"
|
59
59
|
|
60
60
|
mysql_versions: &mysql_versions
|
61
|
-
- "5.7
|
61
|
+
- "5.7"
|
62
62
|
|
63
63
|
psql_versions: &psql_versions
|
64
64
|
- "9.6"
|
@@ -79,7 +79,7 @@ jobs:
|
|
79
79
|
CIRCLE_TEST_REPORTS: /tmp/circle_artifacts/
|
80
80
|
DATABASE_URL: mysql2://foobar:password@127.0.0.1/statesman_test
|
81
81
|
DATABASE_DEPENDENCY_PORT: "3306"
|
82
|
-
- image:
|
82
|
+
- image: cimg/mysql:<< parameters.mysql_version >>
|
83
83
|
environment:
|
84
84
|
MYSQL_ROOT_PASSWORD: password
|
85
85
|
MYSQL_USER: foobar
|
data/CHANGELOG.md
CHANGED
@@ -304,10 +304,20 @@ module Statesman
|
|
304
304
|
return nil if column.nil?
|
305
305
|
|
306
306
|
[
|
307
|
-
column,
|
307
|
+
column, default_timezone == :utc ? Time.now.utc : Time.now
|
308
308
|
]
|
309
309
|
end
|
310
310
|
|
311
|
+
def default_timezone
|
312
|
+
# Rails 7 deprecates ActiveRecord::Base.default_timezone
|
313
|
+
# in favour of ActiveRecord.default_timezone
|
314
|
+
if ::ActiveRecord.respond_to?(:default_timezone)
|
315
|
+
return ::ActiveRecord.default_timezone
|
316
|
+
end
|
317
|
+
|
318
|
+
::ActiveRecord::Base.default_timezone
|
319
|
+
end
|
320
|
+
|
311
321
|
def mysql_gaplock_protection?
|
312
322
|
Statesman.mysql_gaplock_protection?
|
313
323
|
end
|
data/lib/statesman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statesman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.0.
|
4
|
+
version: 9.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ammeter
|