relaton-omg 1.13.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +24 -0
- data/.rubocop.yml +1 -1
- data/Gemfile +8 -0
- data/README.adoc +12 -24
- data/grammars/basicdoc.rng +1125 -0
- data/grammars/biblio-standoc.rng +164 -0
- data/grammars/biblio.rng +95 -22
- 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/processor.rb +3 -3
- data/lib/relaton_omg/version.rb +1 -1
- data/relaton_omg.gemspec +2 -10
- metadata +14 -107
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09695948d1a4ddc939f6b1d693c32c941461e1df4fa0cd450529dfad4e693730'
|
4
|
+
data.tar.gz: c854b94cd8198b8694ddf3b23b361491290d2f1e34755ac0c1600f7aa65305b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65505aeb7a4433c99880b155fee9edff0f3371daf48bb456cab07d8e4823de6b8829c4683ed470c90b8f49161f4957e2576cd04fcfe16b9c85250dee7693dd1f
|
7
|
+
data.tar.gz: 3ea62121336fe256c32dfbd78d4b6f26209de6f8a0efc5b3469b345e28cbc29ac6ccb21c0e58c3c8d33b296bd80aa77e02aeec4b83aae5e3f5dc85651535ec5d
|
@@ -0,0 +1,24 @@
|
|
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
|
+
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
|
12
|
+
required: true
|
13
|
+
default: 'skip'
|
14
|
+
repository_dispatch:
|
15
|
+
types: [ do-release ]
|
16
|
+
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
release:
|
20
|
+
uses: relaton/support/.github/workflows/release.yml@master
|
21
|
+
with:
|
22
|
+
next_version: ${{ github.event.inputs.next_version }}
|
23
|
+
secrets:
|
24
|
+
rubygems-api-key: ${{ secrets.RELATON_CI_RUBYGEMS_API_KEY }}
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
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.4">
|
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.4",
|
96
|
+
"id"=>"AMI4CCM1.0",
|
109
97
|
...
|
110
98
|
|
111
99
|
item = RelatonOmg::OmgBibliographicItem.from_hash hash
|