relaton-bib 1.14.13 → 1.16.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/release.yml +2 -3
- data/grammars/biblio.rng +1 -1
- data/grammars/versions.json +3 -3
- data/lib/relaton_bib/bibliographic_item.rb +4 -4
- data/lib/relaton_bib/document_relation.rb +1 -1
- data/lib/relaton_bib/hash_converter.rb +0 -2
- data/lib/relaton_bib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd317444aa9a19d7743cd045d0bc0e99257d2f8c99bc4bea4faa845a39598650
|
|
4
|
+
data.tar.gz: 665098b0cd7c798d67b46dc783f6e1706f9feb5c20c4ad558f84037a2f258c31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a8f39d133e1f1ca938f72ba75b7bf9aa3e38c156b162fab52f802672d6b1319c1def15442f60a6f8eb8d2ea91ca158dc1fddc68e40e251082ef08117b1c677f
|
|
7
|
+
data.tar.gz: 5c5142f5a69e1000cad1ce7cbbb361de011518aa2f1af2f4b63b57471a1cec0ba205089e7c9f4182243ab0d47cbc370c7abb3d5807acc22c42ca636129be30f1
|
|
@@ -7,11 +7,10 @@ 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
|
-
push:
|
|
14
|
-
tags: [ v* ]
|
|
15
14
|
repository_dispatch:
|
|
16
15
|
types: [ do-release ]
|
|
17
16
|
|
data/grammars/biblio.rng
CHANGED
data/grammars/versions.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"relaton-models": "v1.2.
|
|
2
|
+
"relaton-models": "v1.2.4",
|
|
3
3
|
"basicdoc-models": "v1.0.2",
|
|
4
4
|
"metanorma-requirements-models": "v1.0.0",
|
|
5
5
|
"relaton-model-ieee": "v1.0.0",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"relaton-model-omg": "v1.0.0",
|
|
29
29
|
"relaton-model-oasis": "v1.0.1",
|
|
30
30
|
"relaton-model-jis": "v0.0.1",
|
|
31
|
-
"metanorma-model": "v1.2.
|
|
32
|
-
"date": "2023-08-
|
|
31
|
+
"metanorma-model": "v1.2.4",
|
|
32
|
+
"date": "2023-08-31T02:58:33Z"
|
|
33
33
|
}
|
|
@@ -430,7 +430,7 @@ module RelatonBib
|
|
|
430
430
|
if structuredidentifier&.presence?
|
|
431
431
|
hash["structuredidentifier"] = structuredidentifier.to_hash
|
|
432
432
|
end
|
|
433
|
-
hash["ext"] = { "schema-version" => ext_schema } if !embedded && respond_to?(:ext_schema)
|
|
433
|
+
hash["ext"] = { "schema-version" => ext_schema } if !embedded && respond_to?(:ext_schema) && ext_schema
|
|
434
434
|
hash
|
|
435
435
|
end
|
|
436
436
|
|
|
@@ -487,7 +487,7 @@ module RelatonBib
|
|
|
487
487
|
def to_all_parts # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength,Metrics/PerceivedComplexity
|
|
488
488
|
me = deep_clone
|
|
489
489
|
me.disable_id_attribute
|
|
490
|
-
me.relation << DocumentRelation.new(type: "
|
|
490
|
+
me.relation << DocumentRelation.new(type: "instanceOf", bibitem: self)
|
|
491
491
|
me.language.each do |l|
|
|
492
492
|
me.title.delete_title_part!
|
|
493
493
|
ttl = me.title.select do |t|
|
|
@@ -518,7 +518,7 @@ module RelatonBib
|
|
|
518
518
|
def to_most_recent_reference
|
|
519
519
|
me = deep_clone
|
|
520
520
|
disable_id_attribute
|
|
521
|
-
me.relation << DocumentRelation.new(type: "
|
|
521
|
+
me.relation << DocumentRelation.new(type: "instanceOf", bibitem: self)
|
|
522
522
|
me.abstract = []
|
|
523
523
|
me.date = []
|
|
524
524
|
me.docidentifier.each &:remove_date
|
|
@@ -645,7 +645,7 @@ module RelatonBib
|
|
|
645
645
|
ics.each { |i| i.to_xml b }
|
|
646
646
|
structuredidentifier&.to_xml b
|
|
647
647
|
end
|
|
648
|
-
ext["schema-version"] = ext_schema if !opts[:embedded] && respond_to?(:ext_schema)
|
|
648
|
+
ext["schema-version"] = ext_schema if !opts[:embedded] && respond_to?(:ext_schema) && ext_schema
|
|
649
649
|
end
|
|
650
650
|
end
|
|
651
651
|
xml[:id] = id if id && !opts[:bibdata] && !opts[:embedded]
|
|
@@ -5,7 +5,7 @@ module RelatonBib
|
|
|
5
5
|
|
|
6
6
|
TYPES = %w[
|
|
7
7
|
includes includedIn hasPart partOf merges mergedInto splits splitInto
|
|
8
|
-
|
|
8
|
+
instanceOf hasInstance exemplarOf hasExemplar manifestationOf
|
|
9
9
|
hasManifestation reproductionOf hasReproduction reprintOf hasReprint
|
|
10
10
|
expressionOf hasExpression translatedFrom hasTranslation arrangementOf
|
|
11
11
|
hasArrangement abridgementOf hasAbridgement annotationOf hasAnnotation
|
|
@@ -4,13 +4,11 @@ module RelatonBib
|
|
|
4
4
|
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
|
5
5
|
|
|
6
6
|
# @param args [Hash]
|
|
7
|
-
# @param neated [TrueClas, FalseClass] default false
|
|
8
7
|
# @return [Hash]
|
|
9
8
|
def hash_to_bib(args)
|
|
10
9
|
return nil unless args.is_a?(Hash)
|
|
11
10
|
|
|
12
11
|
ret = Marshal.load(Marshal.dump(symbolize(args))) # deep copy
|
|
13
|
-
# timestamp_hash(ret) unless nested
|
|
14
12
|
title_hash_to_bib(ret)
|
|
15
13
|
link_hash_to_bib(ret)
|
|
16
14
|
language_hash_to_bib(ret)
|
data/lib/relaton_bib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-bib
|
|
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: 2023-
|
|
11
|
+
date: 2023-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|