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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 275ee049ce18d121101b1bc9d3e77bf50740172f13c61e1849606814aab0d88f
4
- data.tar.gz: 888698e5663d0bd316f42d0742677efdd8fb70c7552e1524cf67b4d9fbb5698e
3
+ metadata.gz: 33f2676aba18c2c2b4a37507ec90990be920a33f1eff76063909355486c9e361
4
+ data.tar.gz: 9d825f38c1a26505056692c0fc888085d974fcf8bcda139b098b785d720e2ec0
5
5
  SHA512:
6
- metadata.gz: 1dd744071cbc47d39d57dab35bffc4585375d80c4084d70d9c032b5005be008af08e8a714e0f819f74a181f5cfca9d21eec5b693dfc38d704d596818b855734c
7
- data.tar.gz: 97fcb1b2dd3417870e39cfb309808cd6d14826d267f8f920d9329a9ca80ae071234c076f22a4695a913be4f430a8ac21df56273820ff5695a4770f007a82d0b5
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/, "")
@@ -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
- d = []
137
- if @row[:completed]
138
- cd = Date.parse(@row[:completed]).to_s
139
- d << RelatonBib::BibliographicDate.new(type: "created", on: cd)
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
- d << RelatonBib::BibliographicDate.new(type: "confirmed", on: td)
146
+ dates << RelatonBib::BibliographicDate.new(type: "confirmed", on: td)
144
147
  end
145
- d
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Relaton3gpp
4
- VERSION = "1.10.1"
4
+ VERSION = "1.10.5"
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 "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.1
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-09 00:00:00.000000000 Z
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