dor-services 5.20.0 → 5.21.1

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
  SHA1:
3
- metadata.gz: 39d428d9a931ec01cf66aa31d6b57b8799790d25
4
- data.tar.gz: cf2c1b5e154ec386b91c25acd0a3fad3e972c721
3
+ metadata.gz: 76758fc98336146e0216518645fc860aed8633c4
4
+ data.tar.gz: d211ecc1df9a9f222eef2676b77f9cbbfaf478af
5
5
  SHA512:
6
- metadata.gz: 24ae862bf0f70a297e2cb19d52f1589664fe20ed0c5cc289e954e1efb3906098f11d8ba22f2daed4b6a131c7478ef2c9a39299aaf0e5c7b425db00b59f3e9b17
7
- data.tar.gz: f8977fc6407cd2054f787423e3ea21579ed3efa359a5560d4f006b29f02908191b086efccdec5435f99155c51d7563872f194132c4886e6ad36edf7bbe936d45
6
+ metadata.gz: a7d0c1e8776bdaf84bfccb7fd5fc650fafb46ce2ea28aad12b6956a0177b64f3afef0f2f4d34de8380e96a670aa540a682cf1c8d9d63de5b64e2e03e50062df4
7
+ data.tar.gz: c1a7a3f174d1ee2f252d5de13a16efc1eb7a29a91e521c3fc7888598e9360851222652eb009596946404169c8c50b5acb2baa53980b841102226ee0014ca7362
@@ -51,8 +51,7 @@ class IdentityMetadataDS < ActiveFedora::OmDatastream
51
51
  node.remove unless node.nil?
52
52
  return nil
53
53
  end
54
- parts = value.split(':').map(&:strip)
55
- # parts = value.split(/:/, 2).map(&:strip) # if we needed to allow colons in values or bunched colon separators
54
+ parts = value.split(':', 2).map(&:strip)
56
55
  raise ArgumentError, "Source ID must follow the format 'namespace:value', not '#{value}'" unless
57
56
  parts.length == 2 && parts[0].present? && parts[1].present?
58
57
  node ||= ng_xml.root.add_child('<sourceId/>').first
@@ -187,7 +187,7 @@ module Dor
187
187
 
188
188
  def ids_to_hash(ids)
189
189
  return nil if ids.nil?
190
- Hash[Array(ids).map { |id| id.split(/:/) }]
190
+ Hash[Array(ids).map { |id| id.split(':', 2) }]
191
191
  end
192
192
  end
193
193
  end
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.20.0'.freeze
2
+ VERSION = '5.21.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.20.0
4
+ version: 5.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -682,8 +682,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
682
682
  version: 1.3.6
683
683
  requirements: []
684
684
  rubyforge_project:
685
- rubygems_version: 2.5.2
685
+ rubygems_version: 2.4.5.1
686
686
  signing_key:
687
687
  specification_version: 4
688
688
  summary: Ruby implmentation of DOR services used by the SULAIR Digital Library
689
689
  test_files: []
690
+ has_rdoc: