itax_code 1.0.1 → 2.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 +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +9 -10
- data/lib/itax_code/data/cities.csv +211 -164
- data/lib/itax_code/encoder.rb +9 -7
- data/lib/itax_code/parser.rb +9 -7
- data/lib/itax_code/version.rb +1 -1
- data/lib/itax_code.rb +8 -14
- data/rakelib/cities.rake +1 -1
- metadata +2 -3
- data/lib/itax_code/validator.rb +0 -80
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e835f20154cc65702c909819b2b51c0e45574bcdd13b0f87d564b59ad04edf
|
4
|
+
data.tar.gz: 0aece7fbba1dc0684e588359f00f4f00462cd87381a3d1665ad1eb8d2f979d6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b351e1ab6cf075330713e445d18bfa4fcd69db780d32de5884e0e30954f11ca0b121d68355be662a4529ec72fbd2d063b9dc4264230160f16df1929215860604
|
7
|
+
data.tar.gz: 2a5d140abcaeb819d083f13a87e5a8623c570b578c1cd6cd5fc979fb5645eb94719565c6779c92164ef74fefa7eac5b1dbdcf473788d4026c8648e0d58c09338
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.0.1](https://github.com/matteoredz/itax-code/compare/v2.0.0...v2.0.1) (2023-10-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* fix encoding error in cities.rake and update cities.csv ([#34](https://github.com/matteoredz/itax-code/issues/34)) ([80ff044](https://github.com/matteoredz/itax-code/commit/80ff044cfd4961348304f3d99b3f7bbe96773a4f))
|
9
|
+
|
10
|
+
## [2.0.0](https://github.com/matteoredz/itax-code/compare/v1.0.1...v2.0.0) (2023-10-01)
|
11
|
+
|
12
|
+
|
13
|
+
### ⚠ BREAKING CHANGES
|
14
|
+
|
15
|
+
* remove Validator and merge its logic into Parser ([#32](https://github.com/matteoredz/itax-code/issues/32))
|
16
|
+
* remove data hash argument from ItaxCode.valid? and ItaxCode::Validator#valid? ([#30](https://github.com/matteoredz/itax-code/issues/30))
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
* remove data hash argument from ItaxCode.valid? and ItaxCode::Validator#valid? ([#30](https://github.com/matteoredz/itax-code/issues/30)) ([997f8b0](https://github.com/matteoredz/itax-code/commit/997f8b0b9f4bc00012475950a84465bf06b73a52))
|
21
|
+
|
22
|
+
|
23
|
+
### Code Refactoring
|
24
|
+
|
25
|
+
* remove Validator and merge its logic into Parser ([#32](https://github.com/matteoredz/itax-code/issues/32)) ([348bdd0](https://github.com/matteoredz/itax-code/commit/348bdd003d1709b0dd2d41e58b0307a1b8e23ab1))
|
26
|
+
|
3
27
|
## [1.0.1](https://github.com/matteoredz/itax-code/compare/v1.0.0...v1.0.1) (2023-08-31)
|
4
28
|
|
5
29
|
|
data/README.md
CHANGED
@@ -33,6 +33,10 @@ ItaxCode.encode(
|
|
33
33
|
birthdate: "1980-01-01", # String|Time|Date|DateTime
|
34
34
|
birthplace: "Milano" # Name(Milano)|code(F205)
|
35
35
|
)
|
36
|
+
|
37
|
+
# Output
|
38
|
+
#
|
39
|
+
# "RSSMRA80A01F205X"
|
36
40
|
```
|
37
41
|
|
38
42
|
### Decode
|
@@ -197,16 +201,11 @@ ItaxCode.decode("RSSMRA80A01F205X")
|
|
197
201
|
### Validate
|
198
202
|
|
199
203
|
```ruby
|
200
|
-
ItaxCode.valid?(
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
gender: "M",
|
206
|
-
birthdate: "1980-01-01",
|
207
|
-
birthplace: "Milano"
|
208
|
-
}
|
209
|
-
)
|
204
|
+
ItaxCode.valid?("RSSMRA80A01F205X")
|
205
|
+
|
206
|
+
# Output
|
207
|
+
#
|
208
|
+
# true
|
210
209
|
```
|
211
210
|
|
212
211
|
## Development
|