relaton-3gpp 1.10.0 → 1.10.1

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: eac224a4609354886ca793dd735e6cef536cd98299f5758e39e6346cc062c6eb
4
- data.tar.gz: 8e27c8e34ab23b7771a364bff3e42a9407b1372dd8fee36d8e29a5fb0734ecd7
3
+ metadata.gz: 275ee049ce18d121101b1bc9d3e77bf50740172f13c61e1849606814aab0d88f
4
+ data.tar.gz: 888698e5663d0bd316f42d0742677efdd8fb70c7552e1524cf67b4d9fbb5698e
5
5
  SHA512:
6
- metadata.gz: 0ed99e89b880d82467bd2f8d37dec4e2279abf9cb8f6bd5c916f0bf8453042498021090802104043278e7e3266ee5eec4981a9b2dccd00d00d4c80c09710c5da
7
- data.tar.gz: f08d3c529632c1c3c9457fec5b2c221aa492223becea38b3e833d4453f0ab4d355f6d12602670892e3d2103ccfcf1d85e37dfa76fc8455e8494ab98bac04e822
6
+ metadata.gz: 1dd744071cbc47d39d57dab35bffc4585375d80c4084d70d9c032b5005be008af08e8a714e0f819f74a181f5cfca9d21eec5b693dfc38d704d596818b855734c
7
+ data.tar.gz: 97fcb1b2dd3417870e39cfb309808cd6d14826d267f8f920d9329a9ca80ae071234c076f22a4695a913be4f430a8ac21df56273820ff5695a4770f007a82d0b5
data/grammars/biblio.rng CHANGED
@@ -209,9 +209,6 @@
209
209
  <zeroOrMore>
210
210
  <ref name="contact"/>
211
211
  </zeroOrMore>
212
- <zeroOrMore>
213
- <ref name="uri"/>
214
- </zeroOrMore>
215
212
  </element>
216
213
  </define>
217
214
  <define name="fullname">
@@ -828,6 +825,11 @@
828
825
  <optional>
829
826
  <attribute name="scope"/>
830
827
  </optional>
828
+ <optional>
829
+ <attribute name="primary">
830
+ <data type="boolean"/>
831
+ </attribute>
832
+ </optional>
831
833
  <text/>
832
834
  </element>
833
835
  </define>
@@ -106,7 +106,7 @@ module Relaton3gpp
106
106
  # @return [Arra<RelatonBib::DocumentIdentifier>] docidentifier
107
107
  #
108
108
  def parse_docid
109
- [RelatonBib::DocumentIdentifier.new(type: "3GPP", id: "3GPP #{number}")]
109
+ [RelatonBib::DocumentIdentifier.new(type: "3GPP", id: "3GPP #{number}", primary: true)]
110
110
  end
111
111
 
112
112
  #
@@ -52,10 +52,15 @@ module Relaton3gpp
52
52
  end
53
53
  end
54
54
 
55
+ #
56
+ # Render Hash.
57
+ #
58
+ # @return [Hash]
59
+ #
55
60
  def to_hash
56
61
  hash = {}
57
62
  instance_variables.each do |var|
58
- unless instance_variable_get(var).nil?
63
+ unless instance_variable_get(var).nil?
59
64
  hash[var.to_s.delete("@")] = instance_variable_get var
60
65
  end
61
66
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Relaton3gpp
4
- VERSION = "1.10.0"
4
+ VERSION = "1.10.1"
5
5
  end
data/relaton_3gpp.gemspec CHANGED
@@ -45,6 +45,6 @@ Gem::Specification.new do |spec|
45
45
  spec.add_development_dependency "webmock", "~> 3.14.0"
46
46
 
47
47
  spec.add_dependency "mdb", "~> 0.5.0"
48
- spec.add_dependency "relaton-bib", "~> 1.10.0"
48
+ spec.add_dependency "relaton-bib", "~> 1.10.1"
49
49
  spec.add_dependency "rubyzip", "~> 2.3.0"
50
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-3gpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-30 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.10.0
145
+ version: 1.10.1
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.10.0
152
+ version: 1.10.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubyzip
155
155
  requirement: !ruby/object:Gem::Requirement