database_consistency 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a43478b4a614d4a9325bacc5c41b5ffe37d6a0ec2790dc6a5c6ba54b8ef15bd
4
- data.tar.gz: 34ec52ffc37e44c618d3b71d9d22c31fd4494d2f8258163fb99fbf12484c98bf
3
+ metadata.gz: ef796f91309cb17dcba40b0b2af43569e1f938ba1c8ddb4be230a2f470d4a291
4
+ data.tar.gz: 122b3e9154b464def4ee5533b9e4401bc25057ffac9d51cec2cf214bc1ef9534
5
5
  SHA512:
6
- metadata.gz: 1566a33ef13d6d4495b89cd7d42b81de04977b1a49e92f8e760a91cd5dbb30dd0dbb00270923d092d655ecb63e4bd915b2c0839a5b34ead6dd30e96e492e90d7
7
- data.tar.gz: 40b9869bac6a7cd319eaa0aba4c055e1e5cadf3091e9219becf3baad63d1b777728dce4ae0830696009a7b07b62e5dd63bd99845df079cf23a37d28b0428ce23
6
+ metadata.gz: 9711216a1cbd3a46ca8cef1dd142eef6c0ba590431faed0a5bf74f1fd83121317fec341265867c85b93e5b18112dbebd1673e982cb7d641edf8cf5bfa0b2af20
7
+ data.tar.gz: c1ca40e919cc496157999965b5edc3bbc51c67ab3e11fc55bc06ceb5a3503db66d7197ab420bc0dc38c09fb05be7323e26fc2d85301b32987e05fb3786a5e5a8
@@ -6,7 +6,7 @@ module DatabaseConsistency
6
6
  }.freeze
7
7
 
8
8
  def reports
9
- Helper.models.flat_map do |model|
9
+ Helper.parent_models.flat_map do |model|
10
10
  model.validators.flat_map do |validator|
11
11
  next unless (comparator = COMPARATORS[validator.kind])
12
12
 
@@ -1,3 +1,3 @@
1
1
  module DatabaseConsistency
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  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.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Demin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-15 00:00:00.000000000 Z
11
+ date: 2018-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.7.7
145
+ rubygems_version: 2.7.8
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Provide an easy way to check the consistency of the database constraints