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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f13939d3936023674a4875f4990132b42c12f3552b84305d53d2ea12ce533bb6
4
- data.tar.gz: 4376adedc7fd77afc93b56d896749fac1c691946d4af0c422904cf514f862473
3
+ metadata.gz: f0e835f20154cc65702c909819b2b51c0e45574bcdd13b0f87d564b59ad04edf
4
+ data.tar.gz: 0aece7fbba1dc0684e588359f00f4f00462cd87381a3d1665ad1eb8d2f979d6f
5
5
  SHA512:
6
- metadata.gz: 1fc657b7422c7c72588c446d53ee18a7dd0b71b0a7b0296a0dfccac79ae7950546f9d01a4e7c738615143c04a294f5a294cd6bffd0aaceb356bdb2a697c86999
7
- data.tar.gz: ad681d44a8e93190354b610d51ae3f428cbe0e0d6bdee555c9e3137720417754c1465f514d4f0fdbb1fea165ced2f4a4341e8da0a7662765cdb2b94cdb66e7b5
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
- "RSSMRA80A01F205X",
202
- {
203
- surname: "Rossi",
204
- name: "Mario",
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