mini_defender 0.3.5 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mini_defender/rules/digits.rb +1 -1
- data/lib/mini_defender/rules/unique.rb +1 -1
- data/lib/mini_defender/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: '0058922331b65722f8c953a4be41c6f7de1762a96584821d0b3b4774748d937a'
|
4
|
+
data.tar.gz: 97335de65f3caf810f04b3a16ce10dfd4dc3bc8bcdb0c8bebdfc6d04c06099bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49f1c55b33b9ddea8144415d154cc92633552135535d3b7fe409bb80e464c3a5231bc6402cae509386675291c3693119d310244727312023d136cf5b68c98d80
|
7
|
+
data.tar.gz: be407d3c9aed3bc44ac00db7a85967c3c759d5ee9cf26d8fc22b286009e313aa4775877c24e53eeacdded71ed6fb04bf269487ffc4579373ed0772b8278e8d26
|
@@ -40,7 +40,7 @@ class MiniDefender::Rules::Unique < MiniDefender::Rule
|
|
40
40
|
|
41
41
|
query = @model.where(@column => value)
|
42
42
|
query = @additional_scope.call(query) unless @additional_scope.nil?
|
43
|
-
query = query.where.not(@column
|
43
|
+
query = query.where.not(@column => @ignore) unless @ignore.nil?
|
44
44
|
|
45
45
|
!query.exists?
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_defender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Alhoshaiyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|