validates_identity 0.3.0 → 0.3.2

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: 3848016930f18f09b27ec31333622b53df51786d31c3eb612fe92da34c9f640a
4
- data.tar.gz: c07d435462ce6caa0e3c4d1611af1aa2cfa8f06956a331696773845fafb6a02f
3
+ metadata.gz: 314621c0cd80707a6ee1f7a776307f767e167cab1e63e63c4cbe0eeeb404d92a
4
+ data.tar.gz: 3e7c4f2a9406ec4ade871fe38599451bb18440466c2f17829d440cff6f282cbd
5
5
  SHA512:
6
- metadata.gz: 539ce96f3cc65ca74b12ea9b83a6aaa568e3c15bb178e945c1224893092e6741f5abf6f69db65fe989163c2d528a808f34f3b9704b800b5a550e179f4a50bcea
7
- data.tar.gz: ab5c1fe930362622f2efd4c928f71246aef44db216f36fd795492b5fbe4a7cdc3b11c27c295c95ba60f853ff46501b4f037dd379b2b1cf5fe681df46bcc1361f
6
+ metadata.gz: f0c7bf51aaaeb802d817ad33d30881d2f8fcc46091915f0bba6938692d0356342fbd92755378713572dd6eb8dcf9439d60bb1eeedcfbb118e3d601df0194433c
7
+ data.tar.gz: aa22f5dd5e57e3df142c183de1f993450d7fb6e338ad46325b6c8b12d733f080561a6ffd3c8d6fd9435f0029cbd02541aabd1013e0bf9f8c3fa90bf29efdcc09
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [0.3.2] - 2024-02-25
2
+
3
+ ### Fixed
4
+
5
+ - Missing Api Exposure
6
+
7
+ ## [0.3.1] - 2024-02-25
8
+
9
+ ### Fixed
10
+
11
+ - Validators registration
12
+
1
13
  ## [0.3.0] - 2024-02-25
2
14
 
3
15
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validates_identity (0.3.0)
4
+ validates_identity (0.3.2)
5
5
  activemodel
6
6
 
7
7
  GEM
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module ValidatesIdentity
3
+ class ValidatesIdentity
4
4
  class Identity
5
5
  attr_reader :record, :attribute, :value, :options
6
6
 
@@ -19,8 +19,14 @@ module ValidatesIdentity
19
19
 
20
20
  return false if validator_class.nil?
21
21
 
22
- validator = validator_class.new(value)
23
- validator.valid?
22
+ @validator = validator_class.new(value)
23
+ @validator.valid?
24
+ end
25
+
26
+ def formatted
27
+ return if @validator.nil?
28
+
29
+ @validator.formatted
24
30
  end
25
31
 
26
32
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ValidatesIdentity
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.2'
5
5
  end
@@ -3,7 +3,7 @@
3
3
  require 'active_model'
4
4
  require 'identity_validator'
5
5
 
6
- module ValidatesIdentity
6
+ class ValidatesIdentity
7
7
  autoload :Identity, 'validates_identity/identity'
8
8
 
9
9
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Ribeiro