dor-services 5.26.3 → 5.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/dor-services.rb +0 -1
- data/lib/dor/config.rb +0 -10
- data/lib/dor/datastreams/default_object_rights_ds.rb +2 -1
- data/lib/dor/version.rb +1 -1
- metadata +11 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fa1889d1eae7b26cabf1d1293cc02ee5dd1e13afc319ce459de36e8c14fad0bb
|
4
|
+
data.tar.gz: 7422ee4040faef72149cb36b161e34c446a54fbb1564d83565336d2a7be48071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ceae590cd9c2c91e1a0a98b6eb64f3af3510317c433f3c0ffb8b17976aae8481516513bf4f60587f3115c27a87c81793cde16bd0aa98620ac6e14b3d2f7da27
|
7
|
+
data.tar.gz: f66d778645b6075dd41d882ff1216436adcfd75d6d0e9c795e2508baab5f0e090a1043b711716309318ea990dd6b4c55814755ea36725e030be34c89a6807f31
|
data/lib/dor-services.rb
CHANGED
data/lib/dor/config.rb
CHANGED
@@ -94,16 +94,6 @@ module Dor
|
|
94
94
|
end
|
95
95
|
|
96
96
|
set_callback :configure, :after do |config|
|
97
|
-
# Deprecate fedora.cert_file, fedora.key_file, fedora.key_pass
|
98
|
-
[:cert_file, :key_file, :key_pass].each do |key|
|
99
|
-
next unless config.fedora[key].present?
|
100
|
-
stack = Kernel.caller.dup
|
101
|
-
stack.shift while stack[0] =~ %r{(active_support/callbacks|dor/config|dor-services)\.rb}
|
102
|
-
ActiveSupport::Deprecation.warn "Dor::Config -- fedora.#{key} is deprecated. Please use ssl.#{key} instead.", stack
|
103
|
-
config.ssl[key] = config.fedora[key] unless config.ssl[key].present?
|
104
|
-
config.fedora.delete(key)
|
105
|
-
end
|
106
|
-
|
107
97
|
if config.solrizer.present?
|
108
98
|
stack = Kernel.caller.dup
|
109
99
|
stack.shift while stack[0] =~ %r{(active_support/callbacks|dor/config|dor-services)\.rb}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'stanford/mods/normalizer'
|
1
2
|
module Dor
|
2
3
|
class DefaultObjectRightsDS < ActiveFedora::OmDatastream
|
3
4
|
# Note that the XSL file was taken from the (apparently defunct) nokogiri-pretty project:
|
@@ -118,7 +119,7 @@ module Dor
|
|
118
119
|
end
|
119
120
|
|
120
121
|
# Call out to the general purpose XML normalization service
|
121
|
-
::Normalizer.new.tap do |norm|
|
122
|
+
Stanford::Mods::Normalizer.new.tap do |norm|
|
122
123
|
norm.remove_empty_attributes(doc.root)
|
123
124
|
# cleanup ordering is important here
|
124
125
|
doc.xpath('//machine/text()').each { |node| node.content = node.content.strip }
|
data/lib/dor/version.rb
CHANGED
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.
|
4
|
+
version: 5.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2018-03-
|
17
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: active-fedora
|
@@ -393,39 +393,33 @@ dependencies:
|
|
393
393
|
- !ruby/object:Gem::Version
|
394
394
|
version: '2.0'
|
395
395
|
- !ruby/object:Gem::Dependency
|
396
|
-
name:
|
396
|
+
name: stanford-mods
|
397
397
|
requirement: !ruby/object:Gem::Requirement
|
398
398
|
requirements:
|
399
399
|
- - ">="
|
400
400
|
- !ruby/object:Gem::Version
|
401
|
-
version:
|
402
|
-
- - "<"
|
403
|
-
- !ruby/object:Gem::Version
|
404
|
-
version: '2'
|
401
|
+
version: 2.3.1
|
405
402
|
type: :runtime
|
406
403
|
prerelease: false
|
407
404
|
version_requirements: !ruby/object:Gem::Requirement
|
408
405
|
requirements:
|
409
406
|
- - ">="
|
410
407
|
- !ruby/object:Gem::Version
|
411
|
-
version:
|
412
|
-
- - "<"
|
413
|
-
- !ruby/object:Gem::Version
|
414
|
-
version: '2'
|
408
|
+
version: 2.3.1
|
415
409
|
- !ruby/object:Gem::Dependency
|
416
|
-
name: stanford-mods
|
410
|
+
name: stanford-mods-normalizer
|
417
411
|
requirement: !ruby/object:Gem::Requirement
|
418
412
|
requirements:
|
419
|
-
- - "
|
413
|
+
- - "~>"
|
420
414
|
- !ruby/object:Gem::Version
|
421
|
-
version:
|
415
|
+
version: '0.1'
|
422
416
|
type: :runtime
|
423
417
|
prerelease: false
|
424
418
|
version_requirements: !ruby/object:Gem::Requirement
|
425
419
|
requirements:
|
426
|
-
- - "
|
420
|
+
- - "~>"
|
427
421
|
- !ruby/object:Gem::Version
|
428
|
-
version:
|
422
|
+
version: '0.1'
|
429
423
|
- !ruby/object:Gem::Dependency
|
430
424
|
name: coveralls
|
431
425
|
requirement: !ruby/object:Gem::Requirement
|
@@ -684,7 +678,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
684
678
|
version: 1.3.6
|
685
679
|
requirements: []
|
686
680
|
rubyforge_project:
|
687
|
-
rubygems_version: 2.
|
681
|
+
rubygems_version: 2.7.1
|
688
682
|
signing_key:
|
689
683
|
specification_version: 4
|
690
684
|
summary: Ruby implmentation of DOR services used by the SULAIR Digital Library
|