relaton-3gpp 1.10.1 → 1.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_3gpp/data_fetcher.rb +5 -5
- data/lib/relaton_3gpp/parser.rb +14 -7
- data/lib/relaton_3gpp/version.rb +1 -1
- data/relaton_3gpp.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33f2676aba18c2c2b4a37507ec90990be920a33f1eff76063909355486c9e361
|
4
|
+
data.tar.gz: 9d825f38c1a26505056692c0fc888085d974fcf8bcda139b098b785d720e2ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7884b1ce5abe347dca2b20b73ec09cf120a50585405492017b13f27a752310fcbe9a0d6b0b80dae71bafa1c3cc1e4240eb69cca670eac4ea0f1af7ca36b6f0d
|
7
|
+
data.tar.gz: 18c713d764e1548a057cc8da100d6aae25001234248be3be7ea1953243a3758c0000b27a4754ec03da56f16ff27f9edbe69e63ff5d9efc94d468483308d442dd
|
@@ -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/, "")
|
data/lib/relaton_3gpp/parser.rb
CHANGED
@@ -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
|
|
@@ -133,16 +134,18 @@ module Relaton3gpp
|
|
133
134
|
# @return [Array<RelatonBib::BibliographicDate>] date
|
134
135
|
#
|
135
136
|
def parse_date
|
136
|
-
|
137
|
-
if @row[:completed]
|
138
|
-
|
139
|
-
|
137
|
+
dates = { completed: "created", ACHIEVED_DATE: "published" }.each_with_object([]) do |(k, t), d|
|
138
|
+
# if @row[:completed]
|
139
|
+
next unless @row[k]
|
140
|
+
|
141
|
+
cd = Date.parse(@row[k]).to_s
|
142
|
+
d << RelatonBib::BibliographicDate.new(type: t, on: cd)
|
140
143
|
end
|
141
144
|
if @spec[:"title verified"]
|
142
145
|
td = Date.parse(@spec[:"title verified"]).to_s
|
143
|
-
|
146
|
+
dates << RelatonBib::BibliographicDate.new(type: "confirmed", on: td)
|
144
147
|
end
|
145
|
-
|
148
|
+
dates
|
146
149
|
end
|
147
150
|
|
148
151
|
#
|
@@ -240,8 +243,12 @@ module Relaton3gpp
|
|
240
243
|
# @return [Array<RelatonBib::ContributionInfo>] contributor
|
241
244
|
#
|
242
245
|
def parse_contributor # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
246
|
+
address = RelatonBib::Address.new(
|
247
|
+
street: ["c/o ETSI 650, route des Lucioles", "3GPP Mobile Competence Centre"],
|
248
|
+
postcode: "06921", city: "Sophia Antipolis Cedex", country: "France"
|
249
|
+
)
|
243
250
|
org = RelatonBib::Organization.new(
|
244
|
-
name: "3rd Generation Partnership Project", abbreviation: "3GPP",
|
251
|
+
name: "3rd Generation Partnership Project", abbreviation: "3GPP", contact: [address],
|
245
252
|
)
|
246
253
|
contribs = [RelatonBib::ContributionInfo.new(entity: org, role: [type: "author"])]
|
247
254
|
return contribs unless @tstatus && @tstatus[:rapporteur]
|
data/lib/relaton_3gpp/version.rb
CHANGED
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 "net-ftp", "~> 0.1.0"
|
48
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.
|
4
|
+
version: 1.10.5
|
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-02-
|
11
|
+
date: 2022-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -136,6 +136,20 @@ 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
|