All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Nothing yet.
2.0.0 - 2023-01-11
- Minimum supported Ruby version bumped from 2.5 to 2.7.
- PINs with future birthdates are now parsed as long as they are for the
current year.
- Example:
20xyab-nnnn
used to be parsed as1920
until2020-xy-ab
, but now it's parsed as2020
from 2020-01-01 and onwards. This is more correct, since all 1920s PINs should be written with a+
after 2020-01-01.
- Example:
- Parsing of 10-digit PINs were improved so it is always consistent so
parse(pin.to_s(10)) == pin
.
- Explicit installation of
rake
andminitest
as development dependencies removed. Now relying on the versions bundled with Ruby.
- Travis CI setup changed into Github Actions.
1.1.0 - 2022-07-04
rake test
actually runs tests now.
Personnummer
can now be compared and sorted.Personnummer
works as hash keys by value.
1.0.0 - 2020-09-09
Initial release.