relaton-omg 1.14.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/rake.yml +1 -0
- data/.github/workflows/release.yml +5 -3
- data/.rubocop.yml +1 -1
- data/Gemfile +8 -0
- data/README.adoc +2 -2
- data/grammars/basicdoc.rng +0 -1
- data/grammars/biblio.rng +13 -3
- data/lib/relaton_omg/processor.rb +3 -3
- data/lib/relaton_omg/version.rb +1 -1
- data/relaton_omg.gemspec +2 -10
- metadata +6 -104
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
|
data/.github/workflows/rake.yml
CHANGED
@@ -7,11 +7,13 @@ on:
|
|
7
7
|
inputs:
|
8
8
|
next_version:
|
9
9
|
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
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
|
11
12
|
required: true
|
12
13
|
default: 'skip'
|
13
|
-
|
14
|
-
|
14
|
+
repository_dispatch:
|
15
|
+
types: [ do-release ]
|
16
|
+
|
15
17
|
|
16
18
|
jobs:
|
17
19
|
release:
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/README.adoc
CHANGED
@@ -58,7 +58,7 @@ RelatonOmg::OmgBibliography.get 'OMG 1111'
|
|
58
58
|
[source,ruby]
|
59
59
|
----
|
60
60
|
item.to_xml
|
61
|
-
=> "<bibitem id="AMI4CCM1.0" schema-version="v1.2.
|
61
|
+
=> "<bibitem id="AMI4CCM1.0" schema-version="v1.2.4">
|
62
62
|
<fetched>2022-12-05</fetched>
|
63
63
|
<title type="main" format="text/plain" language="en" script="Latn">Asynchronous Method Invocation for CCM</title>
|
64
64
|
<uri type="src">https://www.omg.org/spec/AMI4CCM/1.0/About-AMI4CCM</uri>
|
@@ -92,7 +92,7 @@ item = RelatonOmg::OmgBibliographicItem.from_xml 'spec/fixtures/omg_ami4ccm_1_0.
|
|
92
92
|
[source,ruby]
|
93
93
|
----
|
94
94
|
hash = YAML.load_file 'spec/fixtures/omg_ami4ccm_1_0.yaml'
|
95
|
-
=> {"schema-version"=>"v1.2.
|
95
|
+
=> {"schema-version"=>"v1.2.4",
|
96
96
|
"id"=>"AMI4CCM1.0",
|
97
97
|
...
|
98
98
|
|
data/grammars/basicdoc.rng
CHANGED
data/grammars/biblio.rng
CHANGED
@@ -216,6 +216,9 @@
|
|
216
216
|
<optional>
|
217
217
|
<ref name="fullname"/>
|
218
218
|
</optional>
|
219
|
+
<zeroOrMore>
|
220
|
+
<ref name="credential"/>
|
221
|
+
</zeroOrMore>
|
219
222
|
<zeroOrMore>
|
220
223
|
<ref name="affiliation"/>
|
221
224
|
</zeroOrMore>
|
@@ -232,6 +235,11 @@
|
|
232
235
|
<ref name="FullNameType"/>
|
233
236
|
</element>
|
234
237
|
</define>
|
238
|
+
<define name="credential">
|
239
|
+
<element name="credential">
|
240
|
+
<text/>
|
241
|
+
</element>
|
242
|
+
</define>
|
235
243
|
<define name="FullNameType">
|
236
244
|
<choice>
|
237
245
|
<group>
|
@@ -305,7 +313,9 @@
|
|
305
313
|
<zeroOrMore>
|
306
314
|
<ref name="affiliationdescription"/>
|
307
315
|
</zeroOrMore>
|
308
|
-
<
|
316
|
+
<optional>
|
317
|
+
<ref name="organization"/>
|
318
|
+
</optional>
|
309
319
|
</element>
|
310
320
|
</define>
|
311
321
|
<define name="affiliationname">
|
@@ -1273,7 +1283,7 @@
|
|
1273
1283
|
<value>mergedInto</value>
|
1274
1284
|
<value>splits</value>
|
1275
1285
|
<value>splitInto</value>
|
1276
|
-
<value>
|
1286
|
+
<value>instanceOf</value>
|
1277
1287
|
<value>hasInstance</value>
|
1278
1288
|
<value>exemplarOf</value>
|
1279
1289
|
<value>hasExemplar</value>
|
@@ -1316,7 +1326,7 @@
|
|
1316
1326
|
<value>commentaryOf</value>
|
1317
1327
|
<value>hasCommentary</value>
|
1318
1328
|
<value>related</value>
|
1319
|
-
<value>
|
1329
|
+
<value>hasComplement</value>
|
1320
1330
|
<value>complementOf</value>
|
1321
1331
|
<value>obsoletes</value>
|
1322
1332
|
<value>obsoletedBy</value>
|
@@ -13,19 +13,19 @@ module RelatonOmg
|
|
13
13
|
# @param code [String]
|
14
14
|
# @param date [String, NilClass] year
|
15
15
|
# @param opts [Hash]
|
16
|
-
# @return [
|
16
|
+
# @return [RelatonOmg::OmgBibliographicItem]
|
17
17
|
def get(code, date, opts)
|
18
18
|
::RelatonOmg::OmgBibliography.get(code, date, opts)
|
19
19
|
end
|
20
20
|
|
21
21
|
# @param xml [String]
|
22
|
-
# @return [
|
22
|
+
# @return [RelatonOmg::OmgBibliographicItem]
|
23
23
|
def from_xml(xml)
|
24
24
|
::RelatonOmg::XMLParser.from_xml xml
|
25
25
|
end
|
26
26
|
|
27
27
|
# @param hash [Hash]
|
28
|
-
# @return [
|
28
|
+
# @return [RelatonOmg::OmgBibliographicItem]
|
29
29
|
def hash_to_bib(hash)
|
30
30
|
# item_hash = ::RelatonOmg::HashConverter.hash_to_bib(hash)
|
31
31
|
::RelatonOmg::OmgBibliographicItem.from_hash hash
|
data/lib/relaton_omg/version.rb
CHANGED
data/relaton_omg.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
"using the IsoBibliographicItem model"
|
13
13
|
spec.homepage = "https://github.com/relaton/relaton-ogn"
|
14
14
|
spec.license = "BSD-2-Clause"
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = "https://github.com/relaton/relaton-ogn"
|
@@ -26,13 +26,5 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
|
-
spec.
|
30
|
-
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
31
|
-
spec.add_development_dependency "pry-byebug"
|
32
|
-
spec.add_development_dependency "ruby-jing"
|
33
|
-
spec.add_development_dependency "simplecov"
|
34
|
-
spec.add_development_dependency "vcr"
|
35
|
-
spec.add_development_dependency "webmock"
|
36
|
-
|
37
|
-
spec.add_dependency "relaton-bib", "~> 1.14.0"
|
29
|
+
spec.add_dependency "relaton-bib", "~> 1.16.0"
|
38
30
|
end
|
metadata
CHANGED
@@ -1,127 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-omg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: byebug
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: equivalent-xml
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.6'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.6'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: pry-byebug
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: ruby-jing
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: vcr
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: webmock
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
13
|
- !ruby/object:Gem::Dependency
|
112
14
|
name: relaton-bib
|
113
15
|
requirement: !ruby/object:Gem::Requirement
|
114
16
|
requirements:
|
115
17
|
- - "~>"
|
116
18
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
19
|
+
version: 1.16.0
|
118
20
|
type: :runtime
|
119
21
|
prerelease: false
|
120
22
|
version_requirements: !ruby/object:Gem::Requirement
|
121
23
|
requirements:
|
122
24
|
- - "~>"
|
123
25
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
26
|
+
version: 1.16.0
|
125
27
|
description: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
|
126
28
|
model'
|
127
29
|
email:
|
@@ -171,14 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
73
|
requirements:
|
172
74
|
- - ">="
|
173
75
|
- !ruby/object:Gem::Version
|
174
|
-
version: 2.
|
76
|
+
version: 2.7.0
|
175
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
78
|
requirements:
|
177
79
|
- - ">="
|
178
80
|
- !ruby/object:Gem::Version
|
179
81
|
version: '0'
|
180
82
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
83
|
+
rubygems_version: 3.3.26
|
182
84
|
signing_key:
|
183
85
|
specification_version: 4
|
184
86
|
summary: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
|