bolognese 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/bolognese/author_utils.rb +1 -1
- data/lib/bolognese/utils.rb +6 -6
- data/lib/bolognese/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: e62e869dcbfd583f9d84e47d1c43eb3b227bdeb9cb8525486752cd1416b9167d
|
4
|
+
data.tar.gz: 2eaaaa5b287acf3454eae5fa030fe0622e1ef9e5080b0035e264393552a092ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5a8750d51bf9654ca68b13021037076209070242774caefb23148e6da206286fff5894b00e427f9ef4b31455b42c8801b0571999a600c9d77d179a2d89f82ae
|
7
|
+
data.tar.gz: 8c2581fb4cc314633655b5480b201a41cd2e5bd68ddce0384f037af5f405a6c0a1a53e085ea5431fa81cba2267244828559dfbbf89e5735c9f03349f50bc2764
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bolognese (1.3.
|
4
|
+
bolognese (1.3.3)
|
5
5
|
activesupport (>= 4.2.5, < 6)
|
6
6
|
benchmark_methods (~> 0.7)
|
7
7
|
bibtex-ruby (~> 4.1)
|
@@ -76,7 +76,7 @@ GEM
|
|
76
76
|
tilt
|
77
77
|
hamster (3.0.0)
|
78
78
|
concurrent-ruby (~> 1.0)
|
79
|
-
hashdiff (1.0.0
|
79
|
+
hashdiff (1.0.0)
|
80
80
|
htmlentities (4.3.4)
|
81
81
|
i18n (1.6.0)
|
82
82
|
concurrent-ruby (~> 1.0)
|
@@ -143,7 +143,7 @@ module Bolognese
|
|
143
143
|
else
|
144
144
|
affiliation_identifier = a["affiliationIdentifier"]
|
145
145
|
affiliation_identifier = !affiliation_identifier.to_s.start_with?("https://") && a["schemeURI"].present? ? normalize_id(a["schemeURI"] + affiliation_identifier) : normalize_id(affiliation_identifier)
|
146
|
-
name = a["__content__"].squish
|
146
|
+
name = a["__content__"].to_s.squish.presence
|
147
147
|
affiliation_identifier_scheme = a["affiliationIdentifierScheme"]
|
148
148
|
scheme_uri = a["SchemeURI"]
|
149
149
|
end
|
data/lib/bolognese/utils.rb
CHANGED
@@ -579,15 +579,15 @@ module Bolognese
|
|
579
579
|
c["affiliation"] = Array.wrap(c["affiliation"]).map do |a|
|
580
580
|
if a.is_a?(String)
|
581
581
|
name = a
|
582
|
-
|
582
|
+
affiliation_identifier = nil
|
583
583
|
else
|
584
584
|
name = a["name"]
|
585
|
-
|
585
|
+
affiliation_identifier = a["affiliationIdentifier"]
|
586
586
|
end
|
587
587
|
|
588
588
|
{
|
589
589
|
"@type" => "Organization",
|
590
|
-
"@id" =>
|
590
|
+
"@id" => affiliation_identifier,
|
591
591
|
"name" => name }.compact
|
592
592
|
end.unwrap
|
593
593
|
c["@type"] = c["nameType"].present? ? c["nameType"][0..-3] : nil
|
@@ -602,15 +602,15 @@ module Bolognese
|
|
602
602
|
c["affiliation"] = Array.wrap(c["affiliation"]).map do |a|
|
603
603
|
if a.is_a?(String)
|
604
604
|
name = a
|
605
|
-
|
605
|
+
affiliation_identifier = nil
|
606
606
|
else
|
607
607
|
name = a["name"]
|
608
|
-
|
608
|
+
affiliation_identifier = a["affiliationIdentifier"]
|
609
609
|
end
|
610
610
|
|
611
611
|
{
|
612
612
|
"@type" => "Organization",
|
613
|
-
"@id" =>
|
613
|
+
"@id" => affiliation_identifier,
|
614
614
|
"name" => name }.compact
|
615
615
|
end.unwrap
|
616
616
|
c["@type"] = c["nameType"].present? ? c["nameType"][0..-3] : nil
|
data/lib/bolognese/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolognese
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maremma
|