sts 0.6.9 → 0.6.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55257a4c0bd11d4374ea655ffdef2d2a51c1e2fe8761cabbe450188065b85cb6
4
- data.tar.gz: afe4c91a2e1b739eeffee4d044e8ea03b28774d43146aafdbd2d744d7577880a
3
+ metadata.gz: 8ec7f2054e0a0f1d755836c5a17049c1a051500385431eac39add4e6f11c1e67
4
+ data.tar.gz: 202e00365cc1709cf582381b6dc039b3a9e20b27626b38918eed595899399079
5
5
  SHA512:
6
- metadata.gz: be6961ce1a6581c1fa6d7a51cb80253a99e01d53fabb31cb3d4feff43f8d87f7a2b283b3fbb8aa07ad31a91e4ac0a634e1bbbcbbf5dce733f45ad93bc77fdfc8
7
- data.tar.gz: 9c476be12a1c7d51c9552892c2ad0bd677f16677e10587865d5a127ff20cf1be67b9e241a17e90155845ba704b58b404317cd1292bd138ddd00a182b875cb01e
6
+ metadata.gz: 9ec40f2942d952cdc9ca29cf4d7d71796bba929091dc1395737cb3c8c088b3d9a2b4714596db5fcb645433a07e43729168397b3dafc9e7b6bf3d53236bc10207
7
+ data.tar.gz: fac7161add1b4ccbf01ddd89b9528e70f517622bda3c85ad759c51b109b2c92b87405735265acc77ff8d0827195d01bef627095d9332e929f511a9f06bcbdc60
data/.rubocop_todo.yml CHANGED
@@ -25,6 +25,7 @@ Layout/LineLength:
25
25
  - 'lib/sts/tbx_iso_tml/term_type.rb'
26
26
  - 'spec/elements/new_elements_spec.rb'
27
27
  - 'spec/iso_sts/schema_validation_spec.rb'
28
+ - 'spec/niso_sts/metadata_cardinality_spec.rb'
28
29
  - 'spec/round_trip/reference_docs_spec.rb'
29
30
  - 'spec/spec_helper.rb'
30
31
 
@@ -127,3 +128,4 @@ RSpec/SpecFilePathFormat:
127
128
  - 'spec/iso_sts/iso_sts_spec.rb'
128
129
  - 'spec/iso_sts/iso_sts_element_spec.rb'
129
130
  - 'spec/iso_sts/schema_validation_spec.rb'
131
+ - 'spec/niso_sts/metadata_cardinality_spec.rb'
@@ -4,21 +4,22 @@ module Sts
4
4
  module NisoSts
5
5
  class MetadataIso < Lutaml::Model::Serializable
6
6
  attribute :comm_ref, :string
7
- attribute :content_language, :string
8
- attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup
7
+ attribute :content_language, :string, collection: true
8
+ attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
9
+ collection: true
9
10
  attribute :doc_ident, ::Sts::NisoSts::DocumentIdentification
10
11
  attribute :doc_ref, :string
11
- attribute :ics, :string
12
- attribute :meta_date, ::Sts::NisoSts::MetaDate
12
+ attribute :ics, :string, collection: true
13
+ attribute :meta_date, ::Sts::NisoSts::MetaDate, collection: true
13
14
  attribute :page_count, ::Sts::NisoSts::PageCount
14
- attribute :permissions, ::Sts::NisoSts::Permissions
15
+ attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
15
16
  attribute :pub_date, :string
16
- attribute :release_date, :string
17
+ attribute :release_date, :string, collection: true
17
18
  attribute :secretariat, :string
18
19
  attribute :std_ident, ::Sts::NisoSts::StandardIdentification
19
- attribute :std_ref, ::Sts::NisoSts::StandardRef
20
- attribute :std_xref, ::Sts::NisoSts::StdCrossReference
21
- attribute :title_wrap, ::Sts::NisoSts::TitleWrap
20
+ attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
21
+ attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
22
+ attribute :title_wrap, ::Sts::NisoSts::TitleWrap, collection: true
22
23
 
23
24
  xml do
24
25
  element "iso-meta"
@@ -36,7 +37,8 @@ module Sts
36
37
  map_element "permissions", to: :permissions
37
38
  map_element "pub-date", to: :pub_date
38
39
  map_element "release-date", to: :release_date
39
- map_element "secretariat", to: :secretariat
40
+ map_element "secretariat", to: :secretariat,
41
+ value_map: { to: { empty: :empty } }
40
42
  map_element "std-ident", to: :std_ident
41
43
  map_element "std-ref", to: :std_ref
42
44
  map_element "std-xref", to: :std_xref
@@ -6,7 +6,7 @@ module Sts
6
6
  attribute :id, :string
7
7
  attribute :std_meta_type, :string
8
8
  attribute :title_wrap, ::Sts::NisoSts::TitleWrap, collection: true
9
- attribute :content_language, :string
9
+ attribute :content_language, :string, collection: true
10
10
  attribute :std_ident, ::Sts::NisoSts::StandardIdentification
11
11
  attribute :doc_ident, ::Sts::NisoSts::DocumentIdentification
12
12
  attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
@@ -16,14 +16,14 @@ module Sts
16
16
  attribute :release_date, ::Sts::NisoSts::ReleaseDate, collection: true
17
17
  attribute :release_version, ::Sts::NisoSts::ReleaseVersion
18
18
  attribute :std_org, ::Sts::NisoSts::StdOrg, collection: true
19
- attribute :std_org_group, ::Sts::NisoSts::StdOrgGroup
19
+ attribute :std_org_group, ::Sts::NisoSts::StdOrgGroup, collection: true
20
20
  attribute :comm_ref, :string
21
21
  attribute :secretariat, :string
22
22
  attribute :ics, :string, collection: true
23
23
  attribute :page_count, ::Sts::NisoSts::PageCount
24
24
  attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
25
25
  attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
26
- attribute :self_uri, ::Sts::NisoSts::SelfUri
26
+ attribute :self_uri, ::Sts::NisoSts::SelfUri, collection: true
27
27
  attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
28
28
  attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
29
29
  collection: true
@@ -10,11 +10,11 @@ module Sts
10
10
  attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
11
11
  attribute :doc_ref, :string
12
12
  attribute :pub_date, :string
13
- attribute :release_date, :string
13
+ attribute :release_date, ::Sts::NisoSts::ReleaseDate, collection: true
14
14
  attribute :release_version, :string
15
15
  attribute :comm_ref, :string
16
16
  attribute :secretariat, :string
17
- attribute :ics, :string
17
+ attribute :ics, :string, collection: true
18
18
  attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
19
19
  attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
20
20
  attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
@@ -34,8 +34,10 @@ module Sts
34
34
  map_element "pub-date", to: :pub_date
35
35
  map_element "release-date", to: :release_date
36
36
  map_element "release-version", to: :release_version
37
- map_element "comm-ref", to: :comm_ref
38
- map_element "secretariat", to: :secretariat
37
+ map_element "comm-ref", to: :comm_ref,
38
+ value_map: { to: { empty: :empty } }
39
+ map_element "secretariat", to: :secretariat,
40
+ value_map: { to: { empty: :empty } }
39
41
  map_element "ics", to: :ics
40
42
  map_element "std-xref", to: :std_xref
41
43
  map_element "permissions", to: :permissions
@@ -10,11 +10,11 @@ module Sts
10
10
  attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
11
11
  attribute :doc_ref, :string
12
12
  attribute :pub_date, :string
13
- attribute :release_date, :string
13
+ attribute :release_date, ::Sts::NisoSts::ReleaseDate, collection: true
14
14
  attribute :release_version, :string
15
15
  attribute :comm_ref, :string
16
16
  attribute :secretariat, :string
17
- attribute :ics, :string
17
+ attribute :ics, :string, collection: true
18
18
  attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
19
19
  attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
20
20
  attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
@@ -34,8 +34,10 @@ module Sts
34
34
  map_element "pub-date", to: :pub_date
35
35
  map_element "release-date", to: :release_date
36
36
  map_element "release-version", to: :release_version
37
- map_element "comm-ref", to: :comm_ref
38
- map_element "secretariat", to: :secretariat
37
+ map_element "comm-ref", to: :comm_ref,
38
+ value_map: { to: { empty: :empty } }
39
+ map_element "secretariat", to: :secretariat,
40
+ value_map: { to: { empty: :empty } }
39
41
  map_element "ics", to: :ics
40
42
  map_element "std-xref", to: :std_xref
41
43
  map_element "permissions", to: :permissions
data/lib/sts/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sts
4
- VERSION = "0.6.9"
4
+ VERSION = "0.6.11"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose