uc3-dmp-citation 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-citation/version.rb +1 -1
- data/lib/uc3-dmp-citation.rb +3 -4
- 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: cbc8446f28748d1fc5ef0b1fac4363fee2e66d3e6896ce8beb4a85b16cf01290
|
4
|
+
data.tar.gz: 002620a70bc0ccc61115832a19408ebd67f38d9881dca2ec2f6dec150d6df4b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 558840c8625a5063cd7bd8cb6917956a420bd2bb08a3320cc55d4f5cb2edc533848a253267688753903b04a53600ed4878500ec315e494e60e7434c5d1487dd3
|
7
|
+
data.tar.gz: 8093cf0790662f2a8f67196130c23c535f5612cdf92457582d812c7faa1ce3e9bcc360d6a702b41163fd64ed1d2d7e83a6803b7fb656f4bd8f1d7401a47eee74
|
data/lib/uc3-dmp-citation.rb
CHANGED
@@ -58,11 +58,10 @@ module Uc3DmpCitation
|
|
58
58
|
|
59
59
|
# If no :work_type was specified we can try to derive it from the BibTeX metadata
|
60
60
|
def _determine_work_type(bibtex:)
|
61
|
-
return '' if bibtex.nil? || bibtex.data.nil? || bibtex.data.first.nil?
|
61
|
+
return '' if bibtex.nil? || bibtex.data.nil? || bibtex.data.first.nil? ||
|
62
|
+
!bibtex.data.first.respond_to?(:journal)
|
62
63
|
|
63
|
-
|
64
|
-
|
65
|
-
''
|
64
|
+
'article'
|
66
65
|
end
|
67
66
|
|
68
67
|
def _cleanse_bibtex(text:)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uc3-dmp-citation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|