database_consistency 3.1.1 → 3.1.2
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 +4 -4
- data/lib/database_consistency/helper.rb +3 -1
- data/lib/database_consistency/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: 0ce6bafed9c2491a3927ac7d0f73791e0b6128fcba48b5f3ffc3e47137796600
|
|
4
|
+
data.tar.gz: cec4f86129c75c1b80f207bd29132a1b3e96f990c5a00b190421e48768b54f59
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f51e7f3e645cdf123c2757591543b098300adfe8f63b63f72089a15a8d1bb164f2ae7433faf1399eee74908beefcd3052408f204dc82cd98a45568859046ce7
|
|
7
|
+
data.tar.gz: 5a8d48d1cb04d87be43db845b616f4655c5551db261ebbea5df6965f8c3b737c609c79bbbcba671a1bb0b9038fcf82c3b2cf0786daee095e2fd7f29e734d5408
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module DatabaseConsistency
|
|
4
4
|
# The module contains helper methods
|
|
5
5
|
module Helper # rubocop:disable Metrics/ModuleLength
|
|
6
|
+
POSTGRESQL_ADAPTERS = %w[postgresql postgis].freeze
|
|
7
|
+
|
|
6
8
|
module_function
|
|
7
9
|
|
|
8
10
|
def adapter
|
|
@@ -18,7 +20,7 @@ module DatabaseConsistency
|
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
def postgresql?
|
|
21
|
-
adapter
|
|
23
|
+
POSTGRESQL_ADAPTERS.include?(adapter)
|
|
22
24
|
end
|
|
23
25
|
|
|
24
26
|
def connection_config(klass)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: database_consistency
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evgeniy Demin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|