validates_identity 0.5.0 → 0.5.1

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: 0fdb1765f269869de8c648faa317223189f37cb567b50f6a9caf2564f4611b9c
4
- data.tar.gz: 28402419c0136ab8b501b47e96bb292201212bb9f91a2c2b7534ff4d84e83bd4
3
+ metadata.gz: 510a895f0315e23fdce571cd146c2c338e8ca71008eb7ff6f8370a833b2ba6a2
4
+ data.tar.gz: 13d68a4af8bd6f3b493e0aa6c5ee95238e64216b56facaa1d995ac09609b6b96
5
5
  SHA512:
6
- metadata.gz: 376739a02e1cd0673babf91821c4cf3c44f4afdb79cb087ec91d1b31ad44fd48aa1eaa075f51399b1f356aa0dbd09784be5e38d9ef915560f5d109524e2a13a2
7
- data.tar.gz: f99028dfc1be6a94a2f597cf4fe451c21810b9931c6a311a85482998fa5b4fd87ea3ed1045af705c9132e41bdc16d1a6bdaabaff1e950ae8ac47c760ba201904
6
+ metadata.gz: 8a97b3bd0645546275308284ca59249ec4553aa027dfce7ffea15b584c799a2b23afdd348a6e5f5f7849d58a44ca3fe3821c8a182ff4a6ded8e723944a4ead01
7
+ data.tar.gz: 57d319a64b6d1d7404c5b1b7eb554090794514e674801d1711d22dfcd97f45d14f44c51eb7523cc323f57a28597d6590845b83a7cc6f0d5329e12b1067f24832
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.5.1] - 2024-02-28
2
+
3
+ ### Fixed
4
+
5
+ - Matcher missing parameter
6
+
1
7
  ## [0.5.0] - 2024-02-27
2
8
 
3
9
  ### Added
@@ -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 = :both
16
+ @type = type
17
17
  end
18
18
 
19
19
  def description
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ValidatesIdentity
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2024-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel