henkilotunnus 1.2.0 → 1.2.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 +4 -4
- data/CHANGELOG.md +10 -2
- data/lib/henkilotunnus/hetu.rb +2 -6
- data/lib/henkilotunnus/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a78c226cd21e2b9b4cc960a942ade42e00bb6cf9d1ca875b9fda13ffed66cbfc
|
|
4
|
+
data.tar.gz: 4079582d66323e3a9363c746c46c590e3abbd1a0a6b42df35e1632178e41dacb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9df35116e20853ca09ce852d4f0a9eca2647b4b7035acaa4020350ccc3cd72f19d197b80c812094149042c7f960f65dbc6e67e4c4b9faf67f4415f095b05dcfe
|
|
7
|
+
data.tar.gz: d586716018d73b825d9abc7659e35f041f63474a56ddb33b668db5a21fa5d4e9a8cf9b3f5b327330f45039676567e8867fc370721a584d8e2ee1d390d02103d7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.1 2026-03-xx
|
|
4
|
+
|
|
5
|
+
- Changed the `Hetu#gender_neutral?` method to always return `false` because the
|
|
6
|
+
originally planned government proposal GP 132/2022 (HE 132/2022) did not
|
|
7
|
+
become a law.
|
|
8
|
+
- Removed the excess logic from the `Hetu#gender` method to not check
|
|
9
|
+
`gender_neutral?` since it is unnecessary after the previous change.
|
|
10
|
+
|
|
3
11
|
## 1.2.0 2022-10-xx
|
|
4
12
|
|
|
5
13
|
Added new punctuation marks that will be added to identity codes in 2023.
|
|
6
14
|
|
|
7
|
-
Added gender_neutral? method. Using gender methods on gender neutral
|
|
15
|
+
Added gender_neutral? method. Using gender methods on gender neutral
|
|
8
16
|
identity codes will raise an exception. Gender neutral identity codes will
|
|
9
17
|
be introduced in 2027. Gender methods will still be available for pins using
|
|
10
|
-
the old punctuation.
|
|
18
|
+
the old punctuation.
|
|
11
19
|
|
|
12
20
|
## 1.1.0 - 2019-04-xx
|
|
13
21
|
|
data/lib/henkilotunnus/hetu.rb
CHANGED
|
@@ -44,15 +44,11 @@ module Henkilotunnus
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def gender
|
|
47
|
-
|
|
48
|
-
raise 'gender methods cannot be used with gender neutral identity codes. Use gender_neutral? to check.'
|
|
49
|
-
else
|
|
50
|
-
GENDERS[person_number.to_i % 2]
|
|
51
|
-
end
|
|
47
|
+
GENDERS[person_number.to_i % 2]
|
|
52
48
|
end
|
|
53
49
|
|
|
54
50
|
def gender_neutral?
|
|
55
|
-
|
|
51
|
+
false
|
|
56
52
|
end
|
|
57
53
|
|
|
58
54
|
def male?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: henkilotunnus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Hanhikoski
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -80,7 +80,7 @@ dependencies:
|
|
|
80
80
|
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '4.2'
|
|
83
|
-
description:
|
|
83
|
+
description:
|
|
84
84
|
email:
|
|
85
85
|
- tech@pikasiirto.fi
|
|
86
86
|
executables: []
|
|
@@ -107,7 +107,7 @@ homepage: https://github.com/bittisiirto/henkilotunnus
|
|
|
107
107
|
licenses:
|
|
108
108
|
- MIT
|
|
109
109
|
metadata: {}
|
|
110
|
-
post_install_message:
|
|
110
|
+
post_install_message:
|
|
111
111
|
rdoc_options: []
|
|
112
112
|
require_paths:
|
|
113
113
|
- lib
|
|
@@ -122,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
123
|
version: '0'
|
|
124
124
|
requirements: []
|
|
125
|
-
rubygems_version: 3.
|
|
126
|
-
signing_key:
|
|
125
|
+
rubygems_version: 3.0.3.1
|
|
126
|
+
signing_key:
|
|
127
127
|
specification_version: 4
|
|
128
128
|
summary: Validates Finnish personal identification numbers (henkilötunnus).
|
|
129
129
|
test_files: []
|