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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33b89c9b5c5c0a2e31706aedd4861e3c8967d82ec50a1571715d0b2029ed14d2
4
- data.tar.gz: 8b201ea428387579869649c7739b393a4beaf6fb2b27070cd54202d7260fd6b4
3
+ metadata.gz: 145d2a6b60abe5fb64e8010676cb63b62ba1869daa4343eb538bdf1d261c885e
4
+ data.tar.gz: cbcc8f735327409a89a2b238fefdfb6ef4b9e9595b983f7a648df800ca8c2aed
5
5
  SHA512:
6
- metadata.gz: 0c29e6cf1d191c99d4867f5461ee859241873a00f7ee71730bed266a0e0ee07180acb16ff879f275cf789a33a7c67de73d5eafe04f5981b24ff1bb05ad876cab
7
- data.tar.gz: 108e0c8b7c56cbac445e8c99708bd57b830325be91a40827a87ed51773c81165971cdf76ea446bdf6eb1b2fd19afe7accd6fba0b885824a30998212aa0492d85
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.18"
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: circleci/mysql:<< parameters.mysql_version >>
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
@@ -1,3 +1,8 @@
1
+ ## v9.0.1 4th February 2021
2
+
3
+ ### Changed
4
+ - Deprecate `ActiveRecord::Base.default_timezone` in favour of `ActiveRecord.default_timezone` [#446](https://github.com/gocardless/statesman/pull/446)
5
+
1
6
  ## v9.0.0 9th August 2021
2
7
 
3
8
  ### Added
@@ -304,10 +304,20 @@ module Statesman
304
304
  return nil if column.nil?
305
305
 
306
306
  [
307
- column, ::ActiveRecord::Base.default_timezone == :utc ? Time.now.utc : Time.now
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Statesman
4
- VERSION = "9.0.0"
4
+ VERSION = "9.0.1"
5
5
  end
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.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: 2021-08-10 00:00:00.000000000 Z
11
+ date: 2022-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ammeter