bolognese 1.7.2 → 1.7.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: 7446775419fc2bf90ef92cae706c719008e19c5916eca5d9fa7fae985814103d
4
- data.tar.gz: 54c8eba0583ce6238d7adb52f19323de12f93b7ff8df787d19f5167ac636df72
3
+ metadata.gz: 3ac0ee73b69d1bcb02c47710f614f155f29c749dfe11bdbac818543ff7a4d552
4
+ data.tar.gz: c887eb61cf622633d71c36437eac5926fa4e40638f5a7fe5ae4c894ed52b39ad
5
5
  SHA512:
6
- metadata.gz: 0452a44753fb0ed02b0a9f03a477b52a8edd569822ac972a13b0b950d0819023ada9bcac8801fd2b178d986b5617c895971deee44948960ead9dfef765c93f01
7
- data.tar.gz: e7fbfe6eb47e5111cb12b53bcf1125d97b2727221b2ffbf6b804496cb5585fdd17bb53573357aa2c8046045e6ed474c0da355c58672e4353cba5b714b6158798
6
+ metadata.gz: d617a7cd669a789a7b12a92c2e7c958fb1a1f0ac8953d105218ea2f027d63b635bd973504688ff958f91183a0894111c542410a013bbcdf1c7e2dfa30a580a51
7
+ data.tar.gz: 14024d1535562346ca08c236c9bbf7403bcae3b8b06e2db264ef7717e136c7d1e633fa6f96ff859d78b3ddc7d513bf7dc65b944be2dc18e3dffbbf3df0b9c51c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.7.2)
4
+ bolognese (1.7.3)
5
5
  activesupport (>= 4.2.5)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -116,10 +116,11 @@ module Bolognese
116
116
  end
117
117
 
118
118
  def insert_alternate_identifiers(xml)
119
- return xml unless identifiers.present?
119
+ alternate_identifiers = Array.wrap(identifiers).select { |r| r["identifierType"] != "DOI" }
120
+ return xml unless alternate_identifiers.present?
120
121
 
121
122
  xml.alternateIdentifiers do
122
- Array.wrap(identifiers).each do |alternate_identifier|
123
+ Array.wrap(alternate_identifiers).each do |alternate_identifier|
123
124
  xml.alternateIdentifier(alternate_identifier["identifier"], 'alternateIdentifierType' => alternate_identifier["identifierType"])
124
125
  end
125
126
  end
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.7.2"
2
+ VERSION = "1.7.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.7.2
4
+ version: 1.7.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: 2020-07-12 00:00:00.000000000 Z
11
+ date: 2020-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma