cpf-utilities 0.0.0 → 1.0.0

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: 1e84facc58b43c4d41938f9b97fa375a0ac81887e34703764e2ed4ef42974fce
4
- data.tar.gz: 27906f8f6cf14c251e44bbc9882e6f3f6ba1ad642c50f6fbbcf893b81cf27227
3
+ metadata.gz: 7649456651d8d5bb1bade2523d3ea5808716ce02c3fc61c33523adb08a58367e
4
+ data.tar.gz: e3a479d4be9a500ce9edc8b0225c2434a04dcdb8b881b2af2d0206e46d5ecf30
5
5
  SHA512:
6
- metadata.gz: 59d2a98b6ad7dadcccce673923da502932c32caf8302600515f982cb26ea22ea2b223c0e45a512d503e0ff9a28a6aa369dbdaeeb6c5b3dd95ac5e30dcceac9e2
7
- data.tar.gz: c015411a214fea0973ef8c9baccf21e12b541b608b080240e5926179b9eb93bf99cb480a66426bb20feca61a884ebf25022b6a924a5ec972eab6d8b694347969
6
+ metadata.gz: 0f5da295c345f7a96424060d1608dbde0baa6b98f3757bf3187de00e7bd7a1ed0f2f2c17207031568073e83ee04954c43940e34f7e0a984ec9a1fcd3da794ae5
7
+ data.tar.gz: 91eb2fdfdfad9622de1fb402656ee9ac1cc9715b3f87da9bc8ecf4adedb180b628facdbae4b3c6898fcb4f6761abbc17086221111340bff898bf6401a44190c5
data/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # cpf-utilities
2
+
3
+ ## 1.0.0
4
+
5
+ ### 🚀 Stable Version Released!
6
+
7
+ Unified toolkit to deal with CPF (Brazilian personal tax ID): formatting, generation, and validation. Main features:
8
+
9
+ - **Unified façade**: `CpfUtils` delegates `#format`, `#generate`, and `#is_valid` to `cpf-fmt`, `cpf-gen`, and `cpf-val`.
10
+ - **Numeric CPF**: digits-only 11-character IDs formatted as `XXX.XXX.XXX-XX` (no alphanumeric / `slash_key` / `type` options).
11
+ - **Quick helpers**: `CpfUtils.format` / `.generate` / `.is_valid` alias mutable `CpfUtils::DEFAULT` (process-wide; prefer `CpfUtils.new` / per-call options under concurrency).
12
+ - **Two-tier re-exports**: `CpfUtils::CpfFormatter` / `CpfGenerator` / `CpfValidator` at the façade root; full sibling surface under `CpfUtils::CpfFmt` / `CpfGen` / `CpfVal`.
13
+ - **Configurable components**: constructor and setters accept component instances, `*Options`/`Hash` (formatter/generator), or `nil`; validator is instance/`nil`/duck-type only (no `CpfValidatorOptions`).
14
+ - **Per-call overrides**: `#format` and `#generate` accept an options `Hash`/instance or keyword overrides (not both); `#is_valid` takes input only.
15
+ - **Root siblings**: after `require 'cpf-utilities'`, `CpfFmt`, `CpfGen`, and `CpfVal` remain loadable (same objects as the nests).
16
+ - **Structured errors**: façade misuse leaves plus full propagated `CpfFmt` / `CpfGen` / `CpfVal` reference in the [README](./README.md) (complete `StandardError` chains; misuse-then-domain; `on_fail` / `false`).
17
+
18
+ For detailed usage and API reference, see the [README](./README.md).
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Julio L. Muller
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.