unread 0.13.0 → 0.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c67d74ab8a863e4e0cbb3b735eb200a2002775e0256e7b0f3063c559fdf7bfab
4
- data.tar.gz: 87a04f8c87a5f8c2bc79782610f2bd0a0c32bbfcaa37563d40c70f96c0c6f79f
3
+ metadata.gz: da0a4688ca6a05c2dcb7bfd6ac58e37dd344e41478339fc1afa94f6ed00f9a42
4
+ data.tar.gz: 821c201e92aead8c622e302ad576e7f087fedde8ef7d90dd76402ad4c5c99800
5
5
  SHA512:
6
- metadata.gz: 73e017089171c17edb4f1cb1ed00533ffdeb360f6c8358f1a1e651eedeef9e2c8f4a70f8db89b46971130eee6b933bd7a17fc328c712930a9c317a7da3781555
7
- data.tar.gz: 88638b81386602f5465734aa5c24c7adba39c5177b6d8b383f4ad7e6ae4a6cf2731f14504dfe7835c1e362b0bc612eb60bef598acf2ed3fe86148ec45102769e
6
+ metadata.gz: db105d5069b104acc2a1a384815d57342a2e47fd84330f29bdba4e384699033bbe3cddc7b7aa592df9728e026379e0fc2260b88282d96f02b787a10392086280
7
+ data.tar.gz: abf7a43547fe3cb2f0c6c522b7c3e31a2b5994e37a7df23b43988005e32de701e33d5c307a4f837ba7ac934594c96f850ffc83040b1e40cc698ca2cab1e8b987
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: [ '3.0', '3.1', '3.2' ]
16
+ ruby: [ '3.0', '3.1', '3.2', '3.3' ]
17
17
  rails: [ '6.1', '7.0', '7.1' ]
18
18
 
19
19
  name: SQLite / Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
@@ -58,7 +58,7 @@ jobs:
58
58
  strategy:
59
59
  fail-fast: false
60
60
  matrix:
61
- ruby: [ '3.0', '3.1', '3.2' ]
61
+ ruby: [ '3.0', '3.1', '3.2', '3.3' ]
62
62
  rails: [ '6.1', '7.0', '7.1' ]
63
63
 
64
64
  name: MySQL / Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
@@ -107,7 +107,7 @@ jobs:
107
107
  strategy:
108
108
  fail-fast: false
109
109
  matrix:
110
- ruby: [ '3.0', '3.1', '3.2' ]
110
+ ruby: [ '3.0', '3.1', '3.2', '3.3' ]
111
111
  rails: [ '6.1', '7.0', '7.1' ]
112
112
 
113
113
  name: PostgreSQL / Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
@@ -13,11 +13,22 @@ module Unread
13
13
  end
14
14
 
15
15
  def self.next_migration_number(dirname)
16
- if ActiveRecord::Base.timestamped_migrations
16
+ if self.timestamped_migrations?
17
17
  Time.now.utc.strftime("%Y%m%d%H%M%S")
18
18
  else
19
19
  "%.3d" % (current_migration_number(dirname) + 1)
20
20
  end
21
21
  end
22
+
23
+ def self.timestamped_migrations?
24
+ (
25
+ ActiveRecord::Base.respond_to?(:timestamped_migrations) &&
26
+ ActiveRecord::Base.timestamped_migrations
27
+ ) ||
28
+ (
29
+ ActiveRecord.respond_to?(:timestamped_migrations) &&
30
+ ActiveRecord.timestamped_migrations
31
+ )
32
+ end
22
33
  end
23
34
  end
@@ -1,3 +1,3 @@
1
1
  module Unread
2
- VERSION = '0.13.0'
2
+ VERSION = '0.13.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unread
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Ledermann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-20 00:00:00.000000000 Z
11
+ date: 2024-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubygems_version: 3.5.1
234
+ rubygems_version: 3.5.6
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Manages read/unread status of ActiveRecord objects