validates_identity-pa_ruc 1.0.0 → 1.0.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: '058f47429f9d90db498a7dba9b020db86dd46078dedaa6b2d07d55703a0b4bf5'
4
- data.tar.gz: a2e03f22a734bae781b4a9db68e9d39454047014b6be6e75bf040923a34102d2
3
+ metadata.gz: 8c301ed1b9fc65db29f09dce56f5071ac01fbe06a08c5c8b60c9d1c3d049ab00
4
+ data.tar.gz: 77f662fe3b0c2322f731c23749e85a2d88d2b39c955aeccb92b52a28d44d4885
5
5
  SHA512:
6
- metadata.gz: 95763a0ea7682761aa6c5587f20d87446689a853e90baae842d75270daf3860871b0b32e715b445c3b3b1988c5d29eec7fd068598d2682aaf1ce2abb257c775c
7
- data.tar.gz: cd2b867a88bbb08b1893c65e854c66a053ac8782a3daf0674c016cdec8ab723da0ec879f99e8a57f1a8442775ff5ccfa3033840aa959a32e5b42b6782b656a31
6
+ metadata.gz: eaaf811a09b5d3a6f622757bb24099795f56e484be4631ffe172e5f60311470774c4fd1a6d167789cc74c5c8b79fe7bcbf5bcd9341754336c1129859800284c5
7
+ data.tar.gz: 86ec0dfa98d3eb389adae91e5cedd494ace1121ca947987f5156e9136a6032340fc583e7c4fa73d7703e7b93578f9a9b96856e23f944c9a134e6f8afd1f23caa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.0.1] - 2024-03-05
2
+
3
+ ### Fixed
4
+
5
+ - Formatting
6
+
1
7
  ## [1.0.0] - 2024-02-29
2
8
 
3
9
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validates_identity-pa_ruc (1.0.0)
4
+ validates_identity-pa_ruc (1.0.1)
5
5
  activemodel
6
6
  validates_identity (>= 0.5.0)
7
7
 
@@ -31,8 +31,7 @@ GEM
31
31
  coolline (0.5.0)
32
32
  unicode_utils (~> 1.4)
33
33
  diff-lcs (1.5.1)
34
- drb (2.2.0)
35
- ruby2_keywords
34
+ drb (2.2.1)
36
35
  i18n (1.14.1)
37
36
  concurrent-ruby (~> 1.0)
38
37
  jazz_fingers (6.2.0)
@@ -76,7 +75,7 @@ GEM
76
75
  diff-lcs (>= 1.2.0, < 2.0)
77
76
  rspec-support (~> 3.13.0)
78
77
  rspec-support (3.13.1)
79
- rubocop (1.60.2)
78
+ rubocop (1.61.0)
80
79
  json (~> 2.3)
81
80
  language_server-protocol (>= 3.17.0)
82
81
  parallel (~> 1.10)
@@ -87,27 +86,26 @@ GEM
87
86
  rubocop-ast (>= 1.30.0, < 2.0)
88
87
  ruby-progressbar (~> 1.7)
89
88
  unicode-display_width (>= 2.4.0, < 3.0)
90
- rubocop-ast (1.30.0)
91
- parser (>= 3.2.1.0)
89
+ rubocop-ast (1.31.1)
90
+ parser (>= 3.3.0.4)
92
91
  rubocop-capybara (2.20.0)
93
92
  rubocop (~> 1.41)
94
93
  rubocop-factory_bot (2.25.1)
95
94
  rubocop (~> 1.41)
96
95
  rubocop-rake (0.6.0)
97
96
  rubocop (~> 1.0)
98
- rubocop-rspec (2.26.1)
97
+ rubocop-rspec (2.27.1)
99
98
  rubocop (~> 1.40)
100
99
  rubocop-capybara (~> 2.17)
101
100
  rubocop-factory_bot (~> 2.22)
102
101
  ruby-progressbar (1.13.0)
103
- ruby2_keywords (0.0.5)
104
102
  shoulda-matchers (6.1.0)
105
103
  activesupport (>= 5.2.0)
106
104
  tzinfo (2.0.6)
107
105
  concurrent-ruby (~> 1.0)
108
106
  unicode-display_width (2.5.0)
109
107
  unicode_utils (1.4.0)
110
- validates_identity (0.5.2)
108
+ validates_identity (1.0.0)
111
109
  activemodel
112
110
 
113
111
  PLATFORMS
@@ -18,7 +18,9 @@ class ValidatesIdentity
18
18
  end
19
19
 
20
20
  def formatted
21
- value
21
+ return if result.nil?
22
+
23
+ "#{result[1]}-#{result[2]}-#{result[3]}"
22
24
  end
23
25
 
24
26
  private
@@ -18,7 +18,9 @@ class ValidatesIdentity
18
18
  end
19
19
 
20
20
  def formatted
21
- value
21
+ return if result.nil?
22
+
23
+ "#{result[1]}-#{result[2]}-#{result[3]}"
22
24
  end
23
25
 
24
26
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  class ValidatesIdentity
4
4
  module PaRuc
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_identity-pa_ruc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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-29 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel