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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 141136c7526afc99951c96b2b7f393d18c4e7a597e967657b7f5dabfc9c54450
4
- data.tar.gz: 5d7977198895cec13a7b6205712f42e16f6e407b13a2ca30de6e3dafe8917f54
3
+ metadata.gz: 33f2676aba18c2c2b4a37507ec90990be920a33f1eff76063909355486c9e361
4
+ data.tar.gz: 9d825f38c1a26505056692c0fc888085d974fcf8bcda139b098b785d720e2ec0
5
5
  SHA512:
6
- metadata.gz: 1f02c6ab9a9b0237935db773876c16d86d4cf47be05f8d1b7c016067d6588e2e5f8db6e747f1c3c1f1e7461f32b0098befd9d297ed154b488fe719517369ac1c
7
- data.tar.gz: 89404e6346bfcdedfde1485b799fe392c0dc793fda39e0e104a81246e43fea6f5ddce5a243e3fa368366ccd4bc21f3b55df91a07c72540ed84775a28d4c874ab
6
+ metadata.gz: d7884b1ce5abe347dca2b20b73ec09cf120a50585405492017b13f27a752310fcbe9a0d6b0b80dae71bafa1c3cc1e4240eb69cca670eac4ea0f1af7ca36b6f0d
7
+ data.tar.gz: 18c713d764e1548a057cc8da100d6aae25001234248be3be7ea1953243a3758c0000b27a4754ec03da56f16ff27f9edbe69e63ff5d9efc94d468483308d442dd
@@ -134,16 +134,18 @@ module Relaton3gpp
134
134
  # @return [Array<RelatonBib::BibliographicDate>] date
135
135
  #
136
136
  def parse_date
137
- d = []
138
- if @row[:completed]
139
- cd = Date.parse(@row[:completed]).to_s
140
- 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)
141
143
  end
142
144
  if @spec[:"title verified"]
143
145
  td = Date.parse(@spec[:"title verified"]).to_s
144
- d << RelatonBib::BibliographicDate.new(type: "confirmed", on: td)
146
+ dates << RelatonBib::BibliographicDate.new(type: "confirmed", on: td)
145
147
  end
146
- d
148
+ dates
147
149
  end
148
150
 
149
151
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Relaton3gpp
4
- VERSION = "1.10.4"
4
+ VERSION = "1.10.5"
5
5
  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
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 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