relaton-3gpp 1.10.4 → 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/parser.rb +8 -6
- data/lib/relaton_3gpp/version.rb +1 -1
- metadata +2 -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
|
data/lib/relaton_3gpp/parser.rb
CHANGED
@@ -134,16 +134,18 @@ module Relaton3gpp
|
|
134
134
|
# @return [Array<RelatonBib::BibliographicDate>] date
|
135
135
|
#
|
136
136
|
def parse_date
|
137
|
-
|
138
|
-
if @row[:completed]
|
139
|
-
|
140
|
-
|
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)
|
141
143
|
end
|
142
144
|
if @spec[:"title verified"]
|
143
145
|
td = Date.parse(@spec[:"title verified"]).to_s
|
144
|
-
|
146
|
+
dates << RelatonBib::BibliographicDate.new(type: "confirmed", on: td)
|
145
147
|
end
|
146
|
-
|
148
|
+
dates
|
147
149
|
end
|
148
150
|
|
149
151
|
#
|
data/lib/relaton_3gpp/version.rb
CHANGED
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
|