cfita 0.4.0 → 0.5.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 +16 -0
- data/cfita.gemspec +2 -1
- data/lib/cfita/codice_fiscale.rb +2 -2
- data/lib/cfita/codici_catastali.rb +5 -0
- data/lib/cfita.rb +2 -2
- metadata +24 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4e01bdde3c7621b53ce7d90ddc86582f6feac189c548c428590272a6195e1ab
|
4
|
+
data.tar.gz: f10b2d9e7b88abddbb837cac83118dbf0778456efb4000b5827118838741dd3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e59e11556fc21adb9d4a0fdccf02a3549d513b7fe459a50874f52c64996f05a0d1f2875bc384daf3a621e44c8f716d2ef3ecdc72390d0b8a913c6e319e0d058
|
7
|
+
data.tar.gz: 8fd9ca7a8773841cdb67399d730750e2a8e3cda2106c736d806f617c4558ad36d6d185677ac4a81c7ff701d2cd12e1c0502d9970864a18ed4bb1d4ca66d5f2a3
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## v0.5.1 - 2025-02-22
|
9
|
+
|
10
|
+
### Minor fix
|
11
|
+
|
12
|
+
Added active_support dependency in gemspec
|
13
|
+
|
14
|
+
## v0.5.0 - 2024-03-19
|
15
|
+
|
16
|
+
### Added
|
17
|
+
|
18
|
+
- M434 - MORANSENGO-TONENGO
|
19
|
+
- M435 - UGGIATE CON RONAGO
|
20
|
+
- M436 - SOVIZZO
|
21
|
+
- M437 - SETTEVILLE
|
22
|
+
- M438 - SANTA CATERINA D'ESTE
|
23
|
+
|
8
24
|
## v0.4.0 - 2022-12-10
|
9
25
|
|
10
26
|
### Fix
|
data/cfita.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.required_ruby_version = '>= 2.4'
|
6
6
|
s.name = 'cfita'
|
7
7
|
s.version = Cfita::VERSION
|
8
|
-
s.date = '
|
8
|
+
s.date = '2025-02-22'
|
9
9
|
s.summary = 'Italian fiscal code checker'
|
10
10
|
s.description = 'Controllo codici fiscali italiani'
|
11
11
|
s.authors = ['Stefano Savanelli']
|
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`
|
19
19
|
.split("\n").map { |f| File.basename(f) }
|
20
20
|
s.require_paths = ['lib']
|
21
|
+
s.add_dependency "activesupport", "> 5.0", "< 9.0"
|
21
22
|
end
|
data/lib/cfita/codice_fiscale.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support/all'
|
4
|
-
|
4
|
+
require_relative 'codici_catastali'
|
5
5
|
|
6
6
|
module Cfita
|
7
7
|
# Controllo codice fiscale italiano
|
@@ -24,7 +24,7 @@ module Cfita
|
|
24
24
|
surname: nil,
|
25
25
|
sex: nil
|
26
26
|
)
|
27
|
-
@fiscal_code = fiscal_code.upcase.strip
|
27
|
+
@fiscal_code = fiscal_code.to_s.upcase.strip
|
28
28
|
@birth_place = birth_place&.upcase
|
29
29
|
@birth_date = birth_date
|
30
30
|
@birth_date = Date.parse(birth_date) if birth_date.is_a?(String)
|
@@ -10417,6 +10417,11 @@ module Cfita
|
|
10417
10417
|
'M431' => ["VILLE DI FIEMME"],
|
10418
10418
|
'M432' => ["MISILISCEMI"],
|
10419
10419
|
'M433' => ["BARDELLO CON MALGESSO E BREGANO"],
|
10420
|
+
'M434' => ["MORANSENGO-TONENGO"],
|
10421
|
+
'M435' => ["UGGIATE CON RONAGO"],
|
10422
|
+
'M436' => ["SOVIZZO"],
|
10423
|
+
'M437' => ["SETTEVILLE"],
|
10424
|
+
'M438' => ["SANTA CATERINA D'ESTE"],
|
10420
10425
|
'Z100' => ["ALBANIA"],
|
10421
10426
|
'Z101' => ["ANDORRA"],
|
10422
10427
|
'Z102' => ["AUSTRIA"],
|
data/lib/cfita.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,34 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Savanelli
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
10
|
+
date: 2025-02-22 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: activesupport
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '5.0'
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '9.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '5.0'
|
29
|
+
- - "<"
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '9.0'
|
13
32
|
description: Controllo codici fiscali italiani
|
14
33
|
email: stefano@savanelli.it
|
15
34
|
executables: []
|
@@ -30,7 +49,6 @@ homepage: https://rubygems.org/gems/cfita
|
|
30
49
|
licenses:
|
31
50
|
- MIT
|
32
51
|
metadata: {}
|
33
|
-
post_install_message:
|
34
52
|
rdoc_options: []
|
35
53
|
require_paths:
|
36
54
|
- lib
|
@@ -45,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
63
|
- !ruby/object:Gem::Version
|
46
64
|
version: '0'
|
47
65
|
requirements: []
|
48
|
-
rubygems_version: 3.
|
49
|
-
signing_key:
|
66
|
+
rubygems_version: 3.6.2
|
50
67
|
specification_version: 4
|
51
68
|
summary: Italian fiscal code checker
|
52
69
|
test_files:
|