ubl 0.1.5 → 0.1.6
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/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/ubl/validate.rb +1 -1
- data/lib/ubl/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 612a3dbabdc2596ac54bea5afad8b338ac81f4debf8bec94f61b32ad07ff8af2
|
4
|
+
data.tar.gz: 920a09744bae483d606beb6b145cd348da8a9d41f721c35175f8692fddde8d4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3453fd9a158bab129ed8ccd6c4542b7a861e9de4e7b0c8b5a2f1c4e123455740a5e94b95fd5a1233753e4e04002549e9d2f64cd23dfed0a00a2695015cc95ed
|
7
|
+
data.tar.gz: 367b2d03116d70cf787d36cecd372a25773d4fbf3b0a770e2c380f73898c3634f7e9063bb8a37a520692026ff0d05f708808d3953ac7cdb420e99f1b3c6edea9
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -55,7 +55,7 @@ invoice = Ubl::Invoice.new("UBL_BE")
|
|
55
55
|
```
|
56
56
|
|
57
57
|
You can also validate the result.
|
58
|
-
You need Docker for the schematron validation. (https://github.com/
|
58
|
+
You need Docker for the schematron validation. (https://github.com/roelandmoors/peppol_schematron)
|
59
59
|
With `schematron: false` you can disable this and only the xsd validation will run.
|
60
60
|
```ruby
|
61
61
|
Tempfile.create("invoice.xml") do |invoice_file|
|
@@ -72,7 +72,7 @@ to install this gem onto your local machine, run `bundle exec rake install`. to
|
|
72
72
|
|
73
73
|
## contributing
|
74
74
|
|
75
|
-
bug reports and pull requests are welcome on github at https://
|
75
|
+
bug reports and pull requests are welcome on github at https://codeberg.org/roeland/ubl.
|
76
76
|
|
77
77
|
## license
|
78
78
|
|
data/lib/ubl/validate.rb
CHANGED
@@ -48,7 +48,7 @@ module Ubl
|
|
48
48
|
|
49
49
|
def validate_schematron(invoice_file)
|
50
50
|
env = @ubl_be ? "-e UBL_BE=true" : ""
|
51
|
-
cmd = "docker run --rm #{env} -v #{invoice_file}:/app/invoice.xml:ro ghcr.io/
|
51
|
+
cmd = "docker run --rm #{env} -v #{invoice_file}:/app/invoice.xml:ro ghcr.io/roelandmoors/peppol_schematron:latest 2>/dev/null"
|
52
52
|
# puts cmd
|
53
53
|
svrl_content = `#{cmd}`
|
54
54
|
parse_svrl_errors(svrl_content)
|
data/lib/ubl/version.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- roeland
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
description: Generate and validate UBL (Universal Business Language) documents, such
|
55
55
|
as invoices and credit notes, compliant with the Peppol network.
|
56
56
|
email:
|
57
|
-
- roeland@
|
57
|
+
- roeland@moors.org
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
@@ -148,12 +148,12 @@ files:
|
|
148
148
|
- xsd/maindoc/UBL-UnawardedNotification-2.1.xsd
|
149
149
|
- xsd/maindoc/UBL-UtilityStatement-2.1.xsd
|
150
150
|
- xsd/maindoc/UBL-Waybill-2.1.xsd
|
151
|
-
homepage: https://
|
151
|
+
homepage: https://codeberg.org/roeland/ubl
|
152
152
|
licenses:
|
153
153
|
- MIT
|
154
154
|
metadata:
|
155
|
-
homepage_uri: https://
|
156
|
-
source_code_uri: https://
|
155
|
+
homepage_uri: https://codeberg.org/roeland/ubl
|
156
|
+
source_code_uri: https://codeberg.org/roeland/ubl
|
157
157
|
rdoc_options: []
|
158
158
|
require_paths:
|
159
159
|
- lib
|