relaton-bib 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/relaton_bib/bibliographic_item.rb +8 -8
- data/lib/relaton_bib/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: 036777d6efe6a40b3f0ec2e6c1e1acfaf793d556cbaf907f330ee867716dc5b8
|
|
4
|
+
data.tar.gz: c16adf3cedb42c0521266792c1fefbdae2081a3a5561dda64fa373965e24f225
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f03693eca920a087d1a0e1f7d2ff0d30a69e4a70fabc4a68f2ce92dff39a091e871eb9dbdf51cbd637af12b7b88ab0b0ce8000cf8dd7e78e7ca76b0d788c23ad
|
|
7
|
+
data.tar.gz: 571a1e896ad96a4b7c76a32c12596694ea8528c91fab2a14c5d93106dd4c8f10ae73823fee8e5c6123a8e0a095ae6bb1425234e52cce21268dc503cb108e62f7
|
data/Gemfile.lock
CHANGED
|
@@ -284,7 +284,7 @@ module RelatonBib
|
|
|
284
284
|
hash["contributor"] = single_element_array(contributor) if contributor&.any?
|
|
285
285
|
hash["edition"] = edition if edition
|
|
286
286
|
hash["version"] = version.to_hash if version
|
|
287
|
-
hash["revdate"] = revdate
|
|
287
|
+
hash["revdate"] = revdate if revdate
|
|
288
288
|
hash["biblionote"] = single_element_array(biblionote) if biblionote&.any?
|
|
289
289
|
hash["language"] = single_element_array(language) if language&.any?
|
|
290
290
|
hash["script"] = single_element_array(script) if script&.any?
|
|
@@ -304,18 +304,18 @@ module RelatonBib
|
|
|
304
304
|
hash
|
|
305
305
|
end
|
|
306
306
|
|
|
307
|
-
private
|
|
308
|
-
|
|
309
307
|
# If revision_date exists then returns it else returns published date or nil
|
|
310
308
|
# @return [String, NilClass]
|
|
311
309
|
def revdate
|
|
312
|
-
if version&.revision_date
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
310
|
+
@revdate ||= if version&.revision_date
|
|
311
|
+
version.revision_date
|
|
312
|
+
else
|
|
313
|
+
date.detect { |d| d.type == "published" }&.on&.to_s
|
|
314
|
+
end
|
|
317
315
|
end
|
|
318
316
|
|
|
317
|
+
private
|
|
318
|
+
|
|
319
319
|
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
|
320
320
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
321
321
|
# rubocop:disable Style/NestedParenthesizedCalls, Metrics/BlockLength
|
data/lib/relaton_bib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-bib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-10-
|
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|