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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c470f4a7231fe120bbcfe85bb804b7b092df761a7273883211afca1dec075b07
4
- data.tar.gz: 502d58d7e1e81be65cc22ced4d67d0e01408678b6f1601f338631c95455e7c41
3
+ metadata.gz: e62e869dcbfd583f9d84e47d1c43eb3b227bdeb9cb8525486752cd1416b9167d
4
+ data.tar.gz: 2eaaaa5b287acf3454eae5fa030fe0622e1ef9e5080b0035e264393552a092ed
5
5
  SHA512:
6
- metadata.gz: 5ee3911bffb285fb868f7eb7dcea74cfe8fde2f7e64bcf06409b190bb71067da272deffefd50bbf9d8c10c6ca17442afd930aac8330c7918bcde235f996a6e37
7
- data.tar.gz: 25cd55aae3ebea0206f93a46b4af8b51fede6bde3fc03be3f1aa37ed79b5bf1d36d5024338b21ba5e16a11609210ea607b8211ff8cf46da4db05a351bf0bd3b1
6
+ metadata.gz: b5a8750d51bf9654ca68b13021037076209070242774caefb23148e6da206286fff5894b00e427f9ef4b31455b42c8801b0571999a600c9d77d179a2d89f82ae
7
+ data.tar.gz: 8c2581fb4cc314633655b5480b201a41cd2e5bd68ddce0384f037af5f405a6c0a1a53e085ea5431fa81cba2267244828559dfbbf89e5735c9f03349f50bc2764
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.3.2)
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.beta1)
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
@@ -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
- id = nil
582
+ affiliation_identifier = nil
583
583
  else
584
584
  name = a["name"]
585
- id = a["affiliationIdentifier"]
585
+ affiliation_identifier = a["affiliationIdentifier"]
586
586
  end
587
587
 
588
588
  {
589
589
  "@type" => "Organization",
590
- "@id" => 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
- id = nil
605
+ affiliation_identifier = nil
606
606
  else
607
607
  name = a["name"]
608
- id = a["affiliationIdentifier"]
608
+ affiliation_identifier = a["affiliationIdentifier"]
609
609
  end
610
610
 
611
611
  {
612
612
  "@type" => "Organization",
613
- "@id" => 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
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  end
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.2
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-14 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma