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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44825fb5d8d0a174d72f4a202c0a66b845aeaa0f7e4e6f216ecc9d556241e367
4
- data.tar.gz: b00a2d0fd55cae2e2d7a5257827aacf127d9d3832c8191b43be416b2abc3cdc6
3
+ metadata.gz: '09695948d1a4ddc939f6b1d693c32c941461e1df4fa0cd450529dfad4e693730'
4
+ data.tar.gz: c854b94cd8198b8694ddf3b23b361491290d2f1e34755ac0c1600f7aa65305b1
5
5
  SHA512:
6
- metadata.gz: e5e89af97870269acec49f2f7760789b4ceb0ee055144b23941a9d475dc7f2abc9ab7bbd6d68b55ebbe5207fa00b668c29dabc821d7b0e00c0f2f18e59b015e3
7
- data.tar.gz: bb3719aedbe064ab9a7c7f47b5df1764538a1c514d559c73595fb6068af3f09bf9a4a5b1876f9ed9f2f17c06faaef5c626ca8dc3428448ee3a63ae1d5f86172e
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
@@ -7,6 +7,6 @@ require: rubocop-rails
7
7
  inherit_from:
8
8
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
9
9
  AllCops:
10
- TargetRubyVersion: 2.5
10
+ TargetRubyVersion: 2.7
11
11
  Rails:
12
12
  Enabled: false
data/Gemfile CHANGED
@@ -5,3 +5,11 @@ gemspec
5
5
 
6
6
  gem "rake"
7
7
  gem "rspec", "~> 3.0"
8
+
9
+ gem "byebug"
10
+ gem "equivalent-xml", "~> 0.6"
11
+ gem "pry-byebug"
12
+ gem "ruby-jing"
13
+ gem "simplecov"
14
+ gem "vcr"
15
+ gem "webmock"
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 search and fetch standards from https://www.omg.org[The Object Management Group (OMG)].
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
- <fetched>2020-02-17</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/</uri>
65
- <uri type="pdf">https://www.omg.org/spec/AMI4CCM/1.0/PDF</uri>
66
- <docidentifier type="OMG">AMI4CCM 1.0</docidentifier>
67
- <date type="published">
68
- <on>2013-03</on>
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
- => {"id"=>"AMI4CCM1.0",
95
+ => {"schema-version"=>"v1.2.4",
96
+ "id"=>"AMI4CCM1.0",
109
97
  ...
110
98
 
111
99
  item = RelatonOmg::OmgBibliographicItem.from_hash hash