unread 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +3 -3
- data/lib/generators/unread/migration/migration_generator.rb +12 -1
- data/lib/unread/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da0a4688ca6a05c2dcb7bfd6ac58e37dd344e41478339fc1afa94f6ed00f9a42
|
4
|
+
data.tar.gz: 821c201e92aead8c622e302ad576e7f087fedde8ef7d90dd76402ad4c5c99800
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db105d5069b104acc2a1a384815d57342a2e47fd84330f29bdba4e384699033bbe3cddc7b7aa592df9728e026379e0fc2260b88282d96f02b787a10392086280
|
7
|
+
data.tar.gz: abf7a43547fe3cb2f0c6c522b7c3e31a2b5994e37a7df23b43988005e32de701e33d5c307a4f837ba7ac934594c96f850ffc83040b1e40cc698ca2cab1e8b987
|
data/.github/workflows/main.yml
CHANGED
@@ -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
|
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
|
data/lib/unread/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|