database_consistency 0.7.6 → 0.7.7
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/processors/associations_processor.rb +1 -1
- data/lib/database_consistency/processors/columns_processor.rb +1 -1
- data/lib/database_consistency/processors/validators_fractions_processor.rb +1 -1
- data/lib/database_consistency/processors/validators_processor.rb +1 -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: f15517720ae0fd28c696d2dd01ca86902697f4a97186c89c3ba76e6b44d6cbf4
|
4
|
+
data.tar.gz: b3e33ba7fdaf1708439b549d281e98ae64616b2f77c86c7268525425cc8c0ebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77422c0e1f2cf072e3bbf680112720d6d4672a92b58eebd47498e0a9695f127a0720620cbf6d49de1d376fb6dd4e07e03b005430ed86703e5d61e86e360e0e8f
|
7
|
+
data.tar.gz: 5250dbd31fccde527c5520861d8ddfd5ada707d1484fc8bcf06b4954dd8792c903778e30967193db06d5664f20bc3b022107105db016bb17b2be6fcac5bc00cd
|
@@ -12,7 +12,7 @@ module DatabaseConsistency
|
|
12
12
|
|
13
13
|
def check
|
14
14
|
Helper.models.flat_map do |model|
|
15
|
-
next unless configuration.enabled?(model)
|
15
|
+
next unless configuration.enabled?(model.name.to_s)
|
16
16
|
|
17
17
|
Helper.first_level_associations(model).flat_map do |association|
|
18
18
|
enabled_checkers.map do |checker_class|
|
@@ -13,7 +13,7 @@ module DatabaseConsistency
|
|
13
13
|
|
14
14
|
def check
|
15
15
|
Helper.parent_models.flat_map do |model|
|
16
|
-
next unless configuration.enabled?(model)
|
16
|
+
next unless configuration.enabled?(model.name.to_s)
|
17
17
|
|
18
18
|
model.columns.flat_map do |column|
|
19
19
|
enabled_checkers.map do |checker_class|
|
@@ -13,7 +13,7 @@ module DatabaseConsistency
|
|
13
13
|
# @return [Array<Hash>]
|
14
14
|
def check
|
15
15
|
Helper.parent_models.flat_map do |model|
|
16
|
-
next unless configuration.enabled?(model)
|
16
|
+
next unless configuration.enabled?(model.name.to_s)
|
17
17
|
|
18
18
|
model._validators.flat_map do |attribute, validators|
|
19
19
|
next unless attribute
|
@@ -14,7 +14,7 @@ module DatabaseConsistency
|
|
14
14
|
# @return [Array<Hash>]
|
15
15
|
def check # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
16
16
|
Helper.parent_models.flat_map do |model|
|
17
|
-
next unless configuration.enabled?(model)
|
17
|
+
next unless configuration.enabled?(model.name.to_s)
|
18
18
|
|
19
19
|
model.validators.flat_map do |validator|
|
20
20
|
next unless validator.respond_to?(:attributes)
|
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: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeniy Demin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|