resident 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/national_identification_number/swedish.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: b88950d63ce102277753de2e80173b05f48beb6dec2c1b17f7dcad09f718142b
|
4
|
+
data.tar.gz: 4da846988b3cefb50c31fd2fbdfc19c8e08a0e868edefa6f14fa8582a89614de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 414be1ee05d09211cf252703e6b2def77bd456d7c19f943492571ab191d99e0a676820ab152e696ba4e9bbe252f469f142247d283efc3c8ff570afea3ddbcb12
|
7
|
+
data.tar.gz: 76c0096684d742bb14b69775cac7f5d74f1a71ed6e6bc956f9287139a9bb040d6e7266bc0c651372729c7aa07ed15513bf551b1917c4944d667a2df4aa8bfd23
|
@@ -32,7 +32,7 @@ module NationalIdentificationNumber
|
|
32
32
|
day = $3
|
33
33
|
born = Date.new(year.to_i, month.to_i, day.to_i)
|
34
34
|
sep = born < Date.today.prev_year(100) ? '+' : '-'
|
35
|
-
@number = "#{year[2
|
35
|
+
@number = "#{year[2..-1]}#{month}#{day}#{sep}#{$4}"
|
36
36
|
rescue Date::Error
|
37
37
|
nil
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resident
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bukowskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|