validates_identity 0.5.0 → 0.5.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 510a895f0315e23fdce571cd146c2c338e8ca71008eb7ff6f8370a833b2ba6a2
|
|
4
|
+
data.tar.gz: 13d68a4af8bd6f3b493e0aa6c5ee95238e64216b56facaa1d995ac09609b6b96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a97b3bd0645546275308284ca59249ec4553aa027dfce7ffea15b584c799a2b23afdd348a6e5f5f7849d58a44ca3fe3821c8a182ff4a6ded8e723944a4ead01
|
|
7
|
+
data.tar.gz: 57d319a64b6d1d7404c5b1b7eb554090794514e674801d1711d22dfcd97f45d14f44c51eb7523cc323f57a28597d6590845b83a7cc6f0d5329e12b1067f24832
|
data/CHANGELOG.md
CHANGED
|
@@ -5,15 +5,15 @@ require 'shoulda-matchers'
|
|
|
5
5
|
module Shoulda
|
|
6
6
|
module Matchers
|
|
7
7
|
module ActiveModel
|
|
8
|
-
def require_a_valid_identity(identity = :identity, identity_type = :identity_type)
|
|
9
|
-
RequireAValidIdentityMatcher.new(identity, identity_type)
|
|
8
|
+
def require_a_valid_identity(identity = :identity, identity_type = :identity_type, only: :both)
|
|
9
|
+
RequireAValidIdentityMatcher.new(identity, identity_type, only)
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
class RequireAValidIdentityMatcher < ValidationMatcher
|
|
13
|
-
def initialize(identity, identity_type)
|
|
13
|
+
def initialize(identity, identity_type, type)
|
|
14
14
|
super(identity)
|
|
15
15
|
@identity_type = identity_type
|
|
16
|
-
@type =
|
|
16
|
+
@type = type
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def description
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: validates_identity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paulo Ribeiro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|