relaton-3gpp 1.10.0 → 1.10.4

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: 141136c7526afc99951c96b2b7f393d18c4e7a597e967657b7f5dabfc9c54450
4
+ data.tar.gz: 5d7977198895cec13a7b6205712f42e16f6e407b13a2ca30de6e3dafe8917f54
5
5
  SHA512:
6
- metadata.gz: 0ed99e89b880d82467bd2f8d37dec4e2279abf9cb8f6bd5c916f0bf8453042498021090802104043278e7e3266ee5eec4981a9b2dccd00d00d4c80c09710c5da
7
- data.tar.gz: f08d3c529632c1c3c9457fec5b2c221aa492223becea38b3e833d4453f0ab4d355f6d12602670892e3d2103ccfcf1d85e37dfa76fc8455e8494ab98bac04e822
6
+ metadata.gz: 1f02c6ab9a9b0237935db773876c16d86d4cf47be05f8d1b7c016067d6588e2e5f8db6e747f1c3c1f1e7461f32b0098befd9d297ed154b488fe719517369ac1c
7
+ data.tar.gz: 89404e6346bfcdedfde1485b799fe392c0dc793fda39e0e104a81246e43fea6f5ddce5a243e3fa368366ccd4bc21f3b55df91a07c72540ed84775a28d4c874ab
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>
@@ -1,8 +1,3 @@
1
- require "fileutils"
2
- require "net/ftp"
3
- require "zip"
4
- require "mdb"
5
-
6
1
  module Relaton3gpp
7
2
  class DataFetcher
8
3
  CURRENT = "current.yaml".freeze
@@ -13,6 +8,11 @@ module Relaton3gpp
13
8
  # @param [String] format format of output files (xml, yaml, bibxml)
14
9
  #
15
10
  def initialize(output, format)
11
+ require "fileutils"
12
+ require "net/ftp"
13
+ require "zip"
14
+ require "mdb"
15
+
16
16
  @output = output
17
17
  @format = format
18
18
  @ext = format.sub(/^bib/, "")
@@ -64,6 +64,7 @@ module Relaton3gpp
64
64
  # internal: @spec[:"For publication"] == "0",
65
65
  release: parse_release,
66
66
  contributor: parse_contributor,
67
+ place: ["Sophia Antipolis Cedex, France"],
67
68
  )
68
69
  end
69
70
 
@@ -106,7 +107,7 @@ module Relaton3gpp
106
107
  # @return [Arra<RelatonBib::DocumentIdentifier>] docidentifier
107
108
  #
108
109
  def parse_docid
109
- [RelatonBib::DocumentIdentifier.new(type: "3GPP", id: "3GPP #{number}")]
110
+ [RelatonBib::DocumentIdentifier.new(type: "3GPP", id: "3GPP #{number}", primary: true)]
110
111
  end
111
112
 
112
113
  #
@@ -240,8 +241,12 @@ module Relaton3gpp
240
241
  # @return [Array<RelatonBib::ContributionInfo>] contributor
241
242
  #
242
243
  def parse_contributor # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
244
+ address = RelatonBib::Address.new(
245
+ street: ["c/o ETSI 650, route des Lucioles", "3GPP Mobile Competence Centre"],
246
+ postcode: "06921", city: "Sophia Antipolis Cedex", country: "France"
247
+ )
243
248
  org = RelatonBib::Organization.new(
244
- name: "3rd Generation Partnership Project", abbreviation: "3GPP",
249
+ name: "3rd Generation Partnership Project", abbreviation: "3GPP", contact: [address],
245
250
  )
246
251
  contribs = [RelatonBib::ContributionInfo.new(entity: org, role: [type: "author"])]
247
252
  return contribs unless @tstatus && @tstatus[:rapporteur]
@@ -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.4"
5
5
  end
data/relaton_3gpp.gemspec CHANGED
@@ -45,6 +45,7 @@ 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 "net-ftp", "~> 0.1.0"
49
+ spec.add_dependency "relaton-bib", "~> 1.10.1"
49
50
  spec.add_dependency "rubyzip", "~> 2.3.0"
50
51
  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.4
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -136,20 +136,34 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.5.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: net-ftp
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.1.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.1.0
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: relaton-bib
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - "~>"
144
158
  - !ruby/object:Gem::Version
145
- version: 1.10.0
159
+ version: 1.10.1
146
160
  type: :runtime
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: 1.10.0
166
+ version: 1.10.1
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: rubyzip
155
169
  requirement: !ruby/object:Gem::Requirement