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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 149d7592b96f1f028881570c9fc3d4c25205361758eaa81de99ee583efad3cab
4
- data.tar.gz: 1337cc3b1c115f660906663ee975afedc57308c48cc6b53d02cb6cc52494e8d1
3
+ metadata.gz: f15517720ae0fd28c696d2dd01ca86902697f4a97186c89c3ba76e6b44d6cbf4
4
+ data.tar.gz: b3e33ba7fdaf1708439b549d281e98ae64616b2f77c86c7268525425cc8c0ebc
5
5
  SHA512:
6
- metadata.gz: b1f1c9f3d7b598ea7a2d9c0656aed100e8dc3d685316914f769f77f462c49b39541d6aea53552ef123cc05a0b5b6c01750e2951f7b7bd4495a9ddf42b0b76ba2
7
- data.tar.gz: 9c781f382b1cbb7180daf21788648d0afd68f581132e69456a3c34a9580d3bc1d0bf85ed4dce8007cb8922fe9a7222efac4b624f56ea87d48c5315931d476603
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '0.7.6'
4
+ VERSION = '0.7.7'
5
5
  end
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.6
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: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2020-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord