matteoredz / itax-code Goto Github PK
View Code? Open in Web Editor NEWA Ruby gem to manage Italian tax codes
A Ruby gem to manage Italian tax codes
The release-please action is a battle tested action powered by Google to automatically build and update a Release PR.
Useful links:
ActiveSupport is a heavy dependency that isn't strictly needed here and also could cause circular dependencies issues.
Ciao, it would be great if it was possible to specify the Belfiore code for birthplace
when calling ItaxCode.encode
.
The ItaxCode::Validator internal class could be easily and rightfully merged into the Parser.
/home/runner/work/itax-code/itax-code/rakelib/cities.rake:3: warning: csv which will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec.
Ciao @matteoredz , c'è un piccolo problema con i codici fiscale omocodes.
Io ho un codice fiscale reale di un cittadino indiano che finisce con Z2N2Y, però ItaxCode.valid? su questo codice fiscale mi ritorna sempre false.
Ho visto che il metodo ItaxCode::Validator.new(tax_code, data = {}).valid?
controlla che encoded_tax_code
sia uguale al tax_code
fornito.
Ovviamente encoded_tax_code
ritorna un valore che finisce Con codice catastale in questo "Z222N".
Si potrebbe cercare di migliorare questo controllo, altrimenti il programma continuerà a dare false anche per molti altri codici fiscali reali.
Spiego di essermi spiegato.
Grazie mille!
Hey Matteo 👋 😁
What about introducing a base class for errors?
For example for these ones:
itax-code/lib/itax_code/parser.rb
Lines 15 to 17 in d0936b0
ItaxCode
errors if you are not interested to handle the specific cases.At this moment, when a CSV data should be updated, each file should be manually updated. An automated task should be created to fetch data from an official ext source!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.