einvoicing 0.4.0 → 0.6.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: e57cfd36d8de0852320a7b72d1fe1ced81ff64eb024199b31733be06859ee509
4
- data.tar.gz: 03a602eb77133a12a8493939b8292749f91fd9c2c834c4777108b8f4d0793d9d
3
+ metadata.gz: 24047fa12d3baaca75ebea76468a98ee023e5716bdee7dfa90f7f532e13ab5d1
4
+ data.tar.gz: 934ca40e5c588c9593d39b839e13eabd413b34b3f36f56d5481e99dddb5a1b69
5
5
  SHA512:
6
- metadata.gz: fca0526e61db40a9125f9a5060c75db8f5bcefa69b158b55ce58d2c824ccbc2868594aa77946308919b8aea7922f364f3d0d9890fe63b77f21ecac673619ecd1
7
- data.tar.gz: c57a78e842ca6beac1f0b98dfa52659e436eb2b03929c7938bdf9e615b009d28a24018c55ed28023853591054657e124099330c4c99d8f078b4b4885fe6cbc1c
6
+ metadata.gz: 54accf1d18eb7e32a35aba28d1c5c9f362eb1de5f19025b89c784724285ce59535394c603b9272a678a8bda7b1b13ae6f6a4dfca949528a303cf41a070681c43
7
+ data.tar.gz: 2eebc04105e663f581c83c6e81523aceba000188f0fc4b00c15138094d7659008bf59ce98b7afa5f867d875e307b806dbbea5281824d7d8c3eb11659976f7e86
data/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ 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
+ ## [0.5.0] - 2026-03-14
9
+
10
+ ### Fixed
11
+ - Removed stale `spec/einvoicing/siret_lookup_spec.rb` (referenced old `Einvoicing::SiretLookup` class)
12
+ - Peppol validator spec now asserts 0 errors for a valid BIS 3.0 invoice and verifies error messages are non-empty
13
+
14
+ ### Added
15
+ - `spec/einvoicing_spec.rb` — facade API specs (`Einvoicing.xml`, `.validate`, `.process`)
16
+
8
17
  ## [0.4.0] - 2026-03-13
9
18
 
10
19
  ### Added
data/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/einvoicing.svg)](https://rubygems.org/gems/einvoicing)
4
4
  [![CI](https://github.com/sxnlabs/einvoicing/actions/workflows/ci.yml/badge.svg)](https://github.com/sxnlabs/einvoicing/actions)
5
5
 
6
+ **[Documentation & overview → sxnlabs.com/gems/einvoicing](https://www.sxnlabs.com/en/gems/einvoicing/)**
7
+
6
8
  **EN 16931 electronic invoicing for Ruby.** Generate Factur-X (PDF/A-3 + CII XML), UBL 2.1, and CII D16B invoices. Validate French B2B compliance (SIREN, SIRET, TVA). Rails-ready.
7
9
 
8
10
  ## Why
@@ -25,3 +25,9 @@ en:
25
25
  quantity_invalid: "Line %{index}: quantity must be positive"
26
26
  unit_price_invalid: "Line %{index}: unit price must be non-negative"
27
27
  vat_rate_invalid: "Line %{index}: VAT rate must be a known French rate (0%%, 5.5%%, 10%%, 20%%)"
28
+ formats:
29
+ unknown_format: "Unknown format: %{fmt}. Use :cii or :ubl"
30
+ unknown_market: "Unknown market: %{market}. Use :fr"
31
+ invalid_pdf: "pdf_data does not appear to be a valid PDF (missing %PDF- magic bytes)"
32
+ tax:
33
+ invalid_rate: "rate must be >= 0, got %{rate}"
@@ -25,3 +25,9 @@ fr:
25
25
  quantity_invalid: "Ligne %{index} : la quantité doit être positive"
26
26
  unit_price_invalid: "Ligne %{index} : le prix unitaire doit être non négatif"
27
27
  vat_rate_invalid: "Ligne %{index} : le taux de TVA doit être un taux français standard (0%%, 5,5%%, 10%%, 20%%)"
28
+ formats:
29
+ unknown_format: "Format inconnu : %{fmt}. Utilisez :cii ou :ubl"
30
+ unknown_market: "Marché inconnu : %{market}. Utilisez :fr"
31
+ invalid_pdf: "pdf_data ne semble pas être un PDF valide (octets magiques %PDF- manquants)"
32
+ tax:
33
+ invalid_rate: "le taux doit être >= 0, valeur reçue : %{rate}"