database_consistency 1.7.22 → 1.7.23

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: f824e179d3bff9cb27c82f046c549fc1cbe89a5d31c6553be49658d45d088816
4
- data.tar.gz: c3f147843c216b3dc4672c47819a960839c7d4966b3c42e249b37f38de89d4ee
3
+ metadata.gz: fa19d97c8acb835f248d400cf2083c32e8aa409c65155d997710d9bc2cda0c59
4
+ data.tar.gz: a598e7238e279205af65c4101b0f8773bb90b6b816bed18850892a8d9cca4a0f
5
5
  SHA512:
6
- metadata.gz: d7ce83332d2487b9b284daaad05ba34d3f98415ef163a93f9e19c808432b247116440379c712d73ca4da05c5cfbd64496453175b69ea41e682f15e4e5cbc9d44
7
- data.tar.gz: 74506e33950ee7a9c768880f744e87719d4418392e41a7993bfeb507f7a15039654eec4eb55ab5ab9f18f0dfb1eca29d16cd8765069d495b1b1baa35c2414e58
6
+ metadata.gz: fb372c25d9da1c239739fbc4688f98f853ae8e17fd7ac238f8eeb4b359bbd5314d0a74eadeb38e783cf3ab383f38fb0762adfd956cc392879d03b1db5d68ac8a
7
+ data.tar.gz: 0af3245696790d32ac16cf805038b110e8788390c3162646fcc4fb9f2e85bc343aab8db801decbcaa209bf6cf3a2db0f1f968c99bc0a016f8582e67752b56dfc
@@ -44,7 +44,7 @@ module DatabaseConsistency
44
44
  def verify_enum
45
45
  values = enum.values.uniq
46
46
 
47
- if enum_column_values == values
47
+ if enum_column_values.sort == values.sort
48
48
  report_template(:ok, values)
49
49
  else
50
50
  report_template(:fail, values, error_slug: :enum_values_inconsistent_with_ar_enum)
@@ -54,7 +54,7 @@ module DatabaseConsistency
54
54
  def verify_inclusion_validator
55
55
  values = validator_values(inclusion_validator).uniq
56
56
 
57
- if enum_column_values == values
57
+ if enum_column_values.sort == values.sort
58
58
  report_template(:ok, values)
59
59
  else
60
60
  report_template(:fail, values, error_slug: :enum_values_inconsistent_with_inclusion)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '1.7.22'
4
+ VERSION = '1.7.23'
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: 1.7.22
4
+ version: 1.7.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Demin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-08 00:00:00.000000000 Z
11
+ date: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord