relaton-omg 1.13.0 → 1.14.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 +4 -4
- data/.github/workflows/rake.yml +0 -1
- data/.github/workflows/release.yml +22 -0
- data/README.adoc +12 -24
- data/grammars/basicdoc.rng +1126 -0
- data/grammars/biblio-standoc.rng +164 -0
- data/grammars/biblio.rng +82 -19
- data/grammars/relaton-omg-compile.rng +11 -0
- data/grammars/relaton-omg.rng +4 -0
- data/lib/relaton_omg/omg_bibliographic_item.rb +9 -0
- data/lib/relaton_omg/version.rb +1 -1
- data/relaton_omg.gemspec +1 -1
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16901d647bffb0b9f3e61729c1c43f43ce961e0f09e132e678b248f2289b338e
|
4
|
+
data.tar.gz: 550eb3e6edc11281ae1ee3e794d1c973a8c0cc7920a44918f881ad8dcdd1a8b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33eb37bdb3abe8d6eae1179e1c8b647f9b9d0efbcf661c5adf9079ae8971ff87acc387022027b5ffce313e70fdc28410b791be0bc5d2511892a5efb0c16c5d55
|
7
|
+
data.tar.gz: 31a2bdeb94d1327376785daea0f033af744403c03a7eea07098953aca29bc88b25adfffdbabed71cc08b28e5efe9eabe03c41f7ee38530e6701cdc93a26a2df0
|
data/.github/workflows/rake.yml
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: release
|
4
|
+
|
5
|
+
on:
|
6
|
+
workflow_dispatch:
|
7
|
+
inputs:
|
8
|
+
next_version:
|
9
|
+
description: |
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
+
required: true
|
12
|
+
default: 'skip'
|
13
|
+
push:
|
14
|
+
tags: [ v* ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
release:
|
18
|
+
uses: relaton/support/.github/workflows/release.yml@master
|
19
|
+
with:
|
20
|
+
next_version: ${{ github.event.inputs.next_version }}
|
21
|
+
secrets:
|
22
|
+
rubygems-api-key: ${{ secrets.RELATON_CI_RUBYGEMS_API_KEY }}
|
data/README.adoc
CHANGED
@@ -8,7 +8,7 @@ image:https://codeclimate.com/github/relaton/relaton-omg/badges/gpa.svg["Code Cl
|
|
8
8
|
image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-omg.svg["Pull Requests", link="https://github.com/relaton/relaton-omg/pulls"]
|
9
9
|
image:https://img.shields.io/github/commits-since/relaton/relaton-omg/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-omg/releases"]
|
10
10
|
|
11
|
-
RelatonOmg is a Ruby gem that
|
11
|
+
RelatonOmg is a Ruby gem that searches and fetches standards from https://www.omg.org[The Object Management Group (OMG)].
|
12
12
|
|
13
13
|
The standards scrape form https://www.omg.org/spec
|
14
14
|
|
@@ -47,7 +47,7 @@ item = RelatonOmg::OmgBibliography.get 'OMG AMI4CCM 1.0'
|
|
47
47
|
=> #<RelatonOmg::OmgBibliographicItem:0x007fda17eab2f0
|
48
48
|
...
|
49
49
|
|
50
|
-
# Return nil if document doesn't exist.
|
50
|
+
# Return nil if the document doesn't exist.
|
51
51
|
RelatonOmg::OmgBibliography.get 'OMG 1111'
|
52
52
|
[relaton-omg] no document found for "OMG 1111" reference.
|
53
53
|
=> nil
|
@@ -58,27 +58,14 @@ RelatonOmg::OmgBibliography.get 'OMG 1111'
|
|
58
58
|
[source,ruby]
|
59
59
|
----
|
60
60
|
item.to_xml
|
61
|
-
=>"<bibitem id="AMI4CCM1.0">
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
</date>
|
70
|
-
<version>
|
71
|
-
<revision-date>2013-03-01</revision-date>
|
72
|
-
<draft>1.0</draft>
|
73
|
-
</version>
|
74
|
-
<abstract format="text/plain" language="en" script="Latn">This specification defines a mechanism to perform asynchronous method invocation for CCM (AMI4CCM).</abstract>
|
75
|
-
<status>
|
76
|
-
<stage>formal</stage>
|
77
|
-
</status>
|
78
|
-
<license>RF-Limited</license>
|
79
|
-
<keyword>Corba Platform</keyword>
|
80
|
-
<keyword>Component Architecture</keyword>
|
81
|
-
</bibitem>"
|
61
|
+
=> "<bibitem id="AMI4CCM1.0" schema-version="v1.2.1">
|
62
|
+
<fetched>2022-12-05</fetched>
|
63
|
+
<title type="main" format="text/plain" language="en" script="Latn">Asynchronous Method Invocation for CCM</title>
|
64
|
+
<uri type="src">https://www.omg.org/spec/AMI4CCM/1.0/About-AMI4CCM</uri>
|
65
|
+
<uri type="pdf">https://www.omg.org/spec/AMI4CCM/1.0/PDF</uri>
|
66
|
+
<docidentifier type="OMG" primary="true">AMI4CCM 1.0</docidentifier>
|
67
|
+
...
|
68
|
+
</bibitem>"
|
82
69
|
----
|
83
70
|
|
84
71
|
=== Typed links
|
@@ -105,7 +92,8 @@ item = RelatonOmg::OmgBibliographicItem.from_xml 'spec/fixtures/omg_ami4ccm_1_0.
|
|
105
92
|
[source,ruby]
|
106
93
|
----
|
107
94
|
hash = YAML.load_file 'spec/fixtures/omg_ami4ccm_1_0.yaml'
|
108
|
-
=> {"
|
95
|
+
=> {"schema-version"=>"v1.2.1",
|
96
|
+
"id"=>"AMI4CCM1.0",
|
109
97
|
...
|
110
98
|
|
111
99
|
item = RelatonOmg::OmgBibliographicItem.from_hash hash
|