relaton-iso-bib 1.14.0 → 1.16.1
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/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/Gemfile +7 -0
- data/grammars/basicdoc.rng +0 -1
- data/grammars/biblio.rng +13 -3
- data/lib/relaton_iso_bib/config.rb +10 -0
- data/lib/relaton_iso_bib/editorial_group.rb +3 -3
- data/lib/relaton_iso_bib/iso_bibliographic_item.rb +4 -7
- data/lib/relaton_iso_bib/util.rb +9 -0
- data/lib/relaton_iso_bib/version.rb +1 -1
- data/lib/relaton_iso_bib.rb +9 -4
- data/relaton_iso_bib.gemspec +2 -11
- metadata +11 -93
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f7d51e059f163a137cbd3bf2a21c7ebff8e56c3521126d2641374900b90b203
|
4
|
+
data.tar.gz: 8fb275454cc41ca26aa90198b916298bcd7683b10a5e386cda5add9035a3c9aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac0d7d21d23201f5f2569d20ec0ff645642546c75a7f7faf5dec7aa4beb84af8f207997ca89d1124c62e3fe02db85692aafde76a16cab9546b7e0280532c3438
|
7
|
+
data.tar.gz: fe94a38bb8535645ffe2fc67ebbf5470003cad1374552b3150683e872806d603b76420c51977d5a7aa22a7e764dd93cc2c38d7dd183c6653674dd1423e72d642
|
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/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
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>
|
@@ -17,17 +17,17 @@ module RelatonIsoBib
|
|
17
17
|
# @return [String, NilClass]
|
18
18
|
attr_reader :secretariat
|
19
19
|
|
20
|
-
# @param technical_committee [Array<Hash,
|
20
|
+
# @param technical_committee [Array<Hash, RelatonBib::WorkGroup>]
|
21
21
|
# @option technical_committee [String] :name
|
22
22
|
# @option technical_committee [String] :type
|
23
23
|
# @option technical_committee [Integer] :number
|
24
24
|
#
|
25
|
-
# @param subcommittee [Array<Hash,
|
25
|
+
# @param subcommittee [Array<Hash, RelatonBib::WorkGroup>]
|
26
26
|
# @option subcommittee [String] :name
|
27
27
|
# @option subcommittee [String] :type
|
28
28
|
# @option subcommittee [Integer] :number
|
29
29
|
#
|
30
|
-
# @param workgroup [Array<Hash,
|
30
|
+
# @param workgroup [Array<Hash, RelatonBib::WorkGroup>]
|
31
31
|
# @option workgroup [String] :name
|
32
32
|
# @option workgroup [String] :type
|
33
33
|
# @option workgroup [Integer] :number
|
@@ -1,8 +1,5 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
|
3
|
-
require "nokogiri"
|
4
|
-
require "isoics"
|
5
|
-
require "relaton_bib"
|
6
3
|
require "relaton_iso_bib/editorial_group"
|
7
4
|
require "relaton_iso_bib/xml_parser"
|
8
5
|
require "relaton_iso_bib/structured_identifier"
|
@@ -150,8 +147,8 @@ module RelatonIsoBib
|
|
150
147
|
end
|
151
148
|
end
|
152
149
|
|
153
|
-
if args[:subdoctype] && !SUBDOCTYPES.include?(args[:subdoctype])
|
154
|
-
warn "Invald subdoctype
|
150
|
+
if args[:subdoctype] && !self.class::SUBDOCTYPES.include?(args[:subdoctype])
|
151
|
+
Util.warn "Invald subdoctype `#{args[:subdoctype]}`. Allowed values are: #{self.class::SUBDOCTYPES.join(', ')}"
|
155
152
|
end
|
156
153
|
@subdoctype = args[:subdoctype]
|
157
154
|
@structuredidentifier = args[:structuredidentifier]
|
@@ -231,8 +228,8 @@ module RelatonIsoBib
|
|
231
228
|
# @raise ArgumentError
|
232
229
|
def check_doctype(doctype)
|
233
230
|
if doctype && !self.class::DOCTYPES.include?(doctype)
|
234
|
-
warn "
|
235
|
-
warn "
|
231
|
+
Util.warn "WARNING: invalid doctype: #{doctype}"
|
232
|
+
Util.warn "Allowed doctypes are: #{self.class::DOCTYPES.join(', ')}"
|
236
233
|
end
|
237
234
|
end
|
238
235
|
|
data/lib/relaton_iso_bib.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
+
require "nokogiri"
|
2
|
+
require "isoics"
|
3
|
+
require "relaton_bib"
|
1
4
|
require "relaton_iso_bib/version"
|
5
|
+
require "relaton_iso_bib/config"
|
6
|
+
require "relaton_iso_bib/util"
|
2
7
|
require "relaton_iso_bib/iso_bibliographic_item"
|
3
8
|
require "digest/md5"
|
4
9
|
|
@@ -8,9 +13,9 @@ module RelatonIsoBib
|
|
8
13
|
# Returns hash of XML reammar
|
9
14
|
# @return [String]
|
10
15
|
def self.grammar_hash
|
11
|
-
gem_path = File.expand_path "..", __dir__
|
12
|
-
grammars_path = File.join gem_path, "grammars", "*"
|
13
|
-
grammars = Dir[grammars_path].sort.map { |gp| File.read gp, encoding: "UTF-8" }.join
|
14
|
-
Digest::MD5.hexdigest grammars
|
16
|
+
# gem_path = File.expand_path "..", __dir__
|
17
|
+
# grammars_path = File.join gem_path, "grammars", "*"
|
18
|
+
# grammars = Dir[grammars_path].sort.map { |gp| File.read gp, encoding: "UTF-8" }.join
|
19
|
+
Digest::MD5.hexdigest RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars
|
15
20
|
end
|
16
21
|
end
|
data/relaton_iso_bib.gemspec
CHANGED
@@ -24,17 +24,8 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.bindir = "exe"
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
spec.require_paths = ["lib"]
|
27
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
28
|
-
|
29
|
-
# spec.add_development_dependency "debase"
|
30
|
-
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
31
|
-
spec.add_development_dependency "pry-byebug"
|
32
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
33
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
34
|
-
# spec.add_development_dependency "ruby-debug-ide"
|
35
|
-
spec.add_development_dependency "ruby-jing"
|
36
|
-
spec.add_development_dependency "simplecov"
|
27
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
37
28
|
|
38
29
|
spec.add_dependency "isoics", "~> 0.1.6"
|
39
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
30
|
+
spec.add_dependency "relaton-bib", "~> 1.16.0"
|
40
31
|
end
|
metadata
CHANGED
@@ -1,99 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iso-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: equivalent-xml
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.6'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.6'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: pry-byebug
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '13.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '13.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: ruby-jing
|
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: simplecov
|
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
13
|
- !ruby/object:Gem::Dependency
|
98
14
|
name: isoics
|
99
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +30,14 @@ dependencies:
|
|
114
30
|
requirements:
|
115
31
|
- - "~>"
|
116
32
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
33
|
+
version: 1.16.0
|
118
34
|
type: :runtime
|
119
35
|
prerelease: false
|
120
36
|
version_requirements: !ruby/object:Gem::Requirement
|
121
37
|
requirements:
|
122
38
|
- - "~>"
|
123
39
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
40
|
+
version: 1.16.0
|
125
41
|
description: 'RelatonIsoBib: Ruby ISOXMLDOC impementation.'
|
126
42
|
email:
|
127
43
|
- open.source@ribose.com
|
@@ -147,12 +63,14 @@ files:
|
|
147
63
|
- grammars/relaton-iso-compile.rng
|
148
64
|
- grammars/relaton-iso.rng
|
149
65
|
- lib/relaton_iso_bib.rb
|
66
|
+
- lib/relaton_iso_bib/config.rb
|
150
67
|
- lib/relaton_iso_bib/editorial_group.rb
|
151
68
|
- lib/relaton_iso_bib/hash_converter.rb
|
152
69
|
- lib/relaton_iso_bib/ics.rb
|
153
70
|
- lib/relaton_iso_bib/iso_bibliographic_item.rb
|
154
71
|
- lib/relaton_iso_bib/iso_document_relation.rb
|
155
72
|
- lib/relaton_iso_bib/structured_identifier.rb
|
73
|
+
- lib/relaton_iso_bib/util.rb
|
156
74
|
- lib/relaton_iso_bib/version.rb
|
157
75
|
- lib/relaton_iso_bib/xml_parser.rb
|
158
76
|
- relaton_iso_bib.gemspec
|
@@ -160,7 +78,7 @@ homepage: https://github.com/relaton/relaton-iso-bib
|
|
160
78
|
licenses:
|
161
79
|
- BSD-2-Clause
|
162
80
|
metadata: {}
|
163
|
-
post_install_message:
|
81
|
+
post_install_message:
|
164
82
|
rdoc_options: []
|
165
83
|
require_paths:
|
166
84
|
- lib
|
@@ -168,15 +86,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
86
|
requirements:
|
169
87
|
- - ">="
|
170
88
|
- !ruby/object:Gem::Version
|
171
|
-
version: 2.
|
89
|
+
version: 2.7.0
|
172
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
91
|
requirements:
|
174
92
|
- - ">="
|
175
93
|
- !ruby/object:Gem::Version
|
176
94
|
version: '0'
|
177
95
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
179
|
-
signing_key:
|
96
|
+
rubygems_version: 3.3.26
|
97
|
+
signing_key:
|
180
98
|
specification_version: 4
|
181
99
|
summary: 'RelatonIsoBib: Ruby ISOXMLDOC impementation.'
|
182
100
|
test_files: []
|