dor-services 5.12.0 → 5.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/certs/dlss-dev-petucket-dor-dev.crt +29 -0
- data/config/certs/dlss-dev-petucket-dor-dev.csr +18 -0
- data/config/certs/dlss-dev-petucket-dor-dev.key +27 -0
- data/config/certs/dlss-dev-petucket-dor-prod.crt +29 -0
- data/config/certs/dlss-dev-petucket-dor-prod.key +27 -0
- data/config/dev_console_env.rb +66 -0
- data/lib/dor-services.rb +16 -3
- data/lib/dor/datastreams/administrative_metadata_ds.rb +5 -0
- data/lib/dor/datastreams/content_metadata_ds.rb +6 -1
- data/lib/dor/datastreams/default_object_rights_ds.rb +5 -0
- data/lib/dor/datastreams/desc_metadata_ds.rb +5 -0
- data/lib/dor/datastreams/embargo_metadata_ds.rb +6 -1
- data/lib/dor/datastreams/events_ds.rb +5 -0
- data/lib/dor/datastreams/geo_metadata_ds.rb +5 -0
- data/lib/dor/datastreams/identity_metadata_ds.rb +6 -1
- data/lib/dor/datastreams/rights_metadata_ds.rb +6 -1
- data/lib/dor/datastreams/role_metadata_ds.rb +5 -0
- data/lib/dor/datastreams/simple_dublin_core_ds.rb +5 -0
- data/lib/dor/datastreams/version_metadata_ds.rb +5 -1
- data/lib/dor/datastreams/workflow_definition_ds.rb +6 -1
- data/lib/dor/datastreams/workflow_ds.rb +6 -1
- data/lib/dor/models/admin_policy_object.rb +1 -1
- data/lib/dor/models/collection.rb +1 -1
- data/lib/dor/models/contentable.rb +2 -2
- data/lib/dor/models/describable.rb +4 -4
- data/lib/dor/models/editable.rb +2 -2
- data/lib/dor/models/governable.rb +1 -1
- data/lib/dor/models/identifiable.rb +1 -1
- data/lib/dor/models/processable.rb +1 -1
- data/lib/dor/models/releaseable.rb +3 -2
- data/lib/dor/models/set.rb +1 -1
- data/lib/dor/services/cleanup_reset_service.rb +1 -1
- data/lib/dor/services/merge_service.rb +2 -2
- data/lib/dor/services/registration_service.rb +1 -1
- data/lib/dor/version.rb +1 -1
- metadata +18 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83ea7517f092cf1a5d89325c43366ccb4e3bee86
|
4
|
+
data.tar.gz: 94eadb824517f646112e73134687684be1e2f47c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5a1a67f735a73ec58a0958f0daeb650d83e42ed09dea6c2fc3592c3d2caa58b4e5fb0187bbe2d4dd5d79741820a3178b6e935933a83569a27e527f50c7b8d37
|
7
|
+
data.tar.gz: 4cd1cdd316963885fe7f3e82ad67fcd1e42aa32170ab6f2e08b4980bc7ebaf10b0d7d9736837bef6defe3a07a1eaba2dc1cb166a5c03087cae55bc3e8a237c0d
|
@@ -0,0 +1,29 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIE3zCCAscCCQCcUJVDTu7rPzANBgkqhkiG9w0BAQUFADCBvzELMAkGA1UEBhMC
|
3
|
+
VVMxEzARBgNVBAgTCkNhbGlmb3JuaWExETAPBgNVBAcTCFN0YW5mb3JkMRwwGgYD
|
4
|
+
VQQKExNTdGFuZm9yZCBVbml2ZXJzaXR5MRIwEAYDVQQLEwlMaWJyYXJpZXMxJTAj
|
5
|
+
BgNVBAMTHFNVTCBET1IgKGRldi90ZXN0KSBhY2Nlc3MgQ0ExLzAtBgkqhkiG9w0B
|
6
|
+
CQEWIHN1bC13ZWJtYXN0ZXJAbGlzdHMuc3RhbmZvcmQuZWR1MB4XDTEyMDkyNjAw
|
7
|
+
Mzg1OFoXDTIyMDkyNDAwMzg1OFowgaIxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpD
|
8
|
+
YWxpZm9ybmlhMREwDwYDVQQHEwhTdGFuZm9yZDEcMBoGA1UEChMTU3RhbmZvcmQg
|
9
|
+
VW5pdmVyc2l0eTEnMCUGA1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.configure do
|
4
|
+
|
5
|
+
fedora do
|
6
|
+
url 'https://sul-dor-test.stanford.edu/fedora'
|
7
|
+
end
|
8
|
+
|
9
|
+
ssl do
|
10
|
+
cert_file File.join(cert_dir,"dlss-dev-petucket-dor-dev.crt")
|
11
|
+
key_file File.join(cert_dir,"dlss-dev-petucket-dor-dev.key")
|
12
|
+
key_pass ''
|
13
|
+
end
|
14
|
+
|
15
|
+
sdr do
|
16
|
+
url 'http://localhost'
|
17
|
+
local_workspace_root '/dor/workspace'
|
18
|
+
local_export_home '/dor/export'
|
19
|
+
end
|
20
|
+
|
21
|
+
suri do
|
22
|
+
mint_ids true
|
23
|
+
id_namespace 'druid'
|
24
|
+
url 'http://sul-lyberservices-test.stanford.edu'
|
25
|
+
user 'labware'
|
26
|
+
pass 'lyberteam'
|
27
|
+
end
|
28
|
+
|
29
|
+
solr.url 'https://sul-solr-tester.stanford.edu/argo_stage'
|
30
|
+
workflow.url 'https://sul-lyberservices-test.stanford.edu/workflow/'
|
31
|
+
|
32
|
+
purl do
|
33
|
+
base_url 'https://purl-test.stanford.edu/'
|
34
|
+
end
|
35
|
+
|
36
|
+
remediation do
|
37
|
+
check_for_versioning_required false # this MUST be true in production; can be false in development and test if you want to ignore workflow checks
|
38
|
+
check_for_in_accessioning false # this MUST be true in production; can be false in development and test if you want to ignore workflow checks
|
39
|
+
end
|
40
|
+
|
41
|
+
dor do
|
42
|
+
service_root 'https://dorAdmin:dorAdmin@sul-lyberservices-test.stanford.edu/dor/v1'
|
43
|
+
num_attempts 3 # the number of attempts to contact the dor web service before throwing an exception
|
44
|
+
sleep_time 2 # sleep time in seconds between attempts to contact the dor service
|
45
|
+
default_label 'Untitled' # the default label for an object that is registered when no label is provided in the manifest
|
46
|
+
end
|
47
|
+
|
48
|
+
content do
|
49
|
+
content_user 'lyberadmin'
|
50
|
+
content_base_dir '/dor/workspace/'
|
51
|
+
content_server 'lyberservices-test'
|
52
|
+
end
|
53
|
+
status do
|
54
|
+
indexer_url 'http://sulstats-raw.stanford.edu//render/?format=json&from=-1minute&until=now&target=stats.gauges.dor-prod.argo.reindexqueue.queue-size.count'
|
55
|
+
end
|
56
|
+
stacks do
|
57
|
+
document_cache_storage_root '/home/lyberadmin/document_cache'
|
58
|
+
document_cache_host 'purl-test.stanford.edu'
|
59
|
+
document_cache_user 'lyberadmin'
|
60
|
+
local_workspace_root '/dor/workspace'
|
61
|
+
storage_root '/stacks'
|
62
|
+
host 'stacks-test.stanford.edu'
|
63
|
+
user 'lyberadmin'
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
data/lib/dor-services.rb
CHANGED
@@ -20,8 +20,8 @@ module Dor
|
|
20
20
|
# @param [String] pid The object's PID
|
21
21
|
def load_instance(pid)
|
22
22
|
ensure_models_loaded!
|
23
|
-
obj = Dor::Abstract.find pid
|
24
|
-
return nil if obj.
|
23
|
+
obj = Dor::Abstract.find pid, cast: false
|
24
|
+
return nil if obj.new_record?
|
25
25
|
object_type = obj.identityMetadata.objectType.first
|
26
26
|
object_class = registered_classes[object_type] || Dor::Item
|
27
27
|
obj.adapt_to(object_class)
|
@@ -51,7 +51,7 @@ module Dor
|
|
51
51
|
begin
|
52
52
|
object_class.load_instance_from_solr solr_doc['id'], solr_doc
|
53
53
|
rescue Exception => e
|
54
|
-
|
54
|
+
Dor.logger.warn("Exception: '#{e.message}' trying to load #{solr_doc['id']} from solr. Loading from Fedora")
|
55
55
|
load_instance(solr_doc['id'])
|
56
56
|
end
|
57
57
|
else
|
@@ -67,6 +67,19 @@ module Dor
|
|
67
67
|
def root
|
68
68
|
File.dirname(__FILE__)
|
69
69
|
end
|
70
|
+
|
71
|
+
def logger
|
72
|
+
require 'logger'
|
73
|
+
@logger ||= if defined?(::Rails) && ::Rails.respond_to?(:logger)
|
74
|
+
Rails.logger
|
75
|
+
else
|
76
|
+
Logger.new(STDOUT)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def logger
|
82
|
+
Dor.logger
|
70
83
|
end
|
71
84
|
|
72
85
|
require 'dor/version'
|
@@ -53,7 +53,7 @@ module Dor
|
|
53
53
|
fail ArgumentError, "Malformed externalFile data: #{externalFile.inspect}" if [src_resource_id, src_file_id, src_druid].map(&:blank?).any?
|
54
54
|
|
55
55
|
# grab source item
|
56
|
-
src_item = Dor
|
56
|
+
src_item = Dor.find(src_druid)
|
57
57
|
|
58
58
|
# locate and extract the resourceId/fileId elements
|
59
59
|
doc = src_item.datastreams['contentMetadata'].ng_xml
|
@@ -367,5 +367,10 @@ module Dor
|
|
367
367
|
end
|
368
368
|
self.content = ng_xml.to_s
|
369
369
|
end
|
370
|
+
|
371
|
+
# maintain AF < 8 indexing behavior
|
372
|
+
def prefix
|
373
|
+
''
|
374
|
+
end
|
370
375
|
end
|
371
376
|
end
|
@@ -28,7 +28,7 @@ class EmbargoMetadataDS < ActiveFedora::OmDatastream
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def to_solr(solr_doc = {}, *args)
|
31
|
-
super
|
31
|
+
solr_doc = super
|
32
32
|
#::Solrizer.insert_field(solr_doc, field_name, value, *index_types)
|
33
33
|
rd1 = release_date
|
34
34
|
rd20 = twenty_pct_release_date
|
@@ -107,5 +107,10 @@ class EmbargoMetadataDS < ActiveFedora::OmDatastream
|
|
107
107
|
ng_xml.root.add_child(new_doc.root.clone)
|
108
108
|
end
|
109
109
|
|
110
|
+
# maintain AF < 8 indexing behavior
|
111
|
+
def prefix
|
112
|
+
''
|
113
|
+
end
|
114
|
+
|
110
115
|
end
|
111
116
|
end
|
@@ -80,7 +80,7 @@ class IdentityMetadataDS < ActiveFedora::OmDatastream
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def to_solr(solr_doc = {}, *args)
|
83
|
-
super(solr_doc, *args)
|
83
|
+
solr_doc = super(solr_doc, *args)
|
84
84
|
|
85
85
|
if digital_object.respond_to?(:profile)
|
86
86
|
digital_object.profile.each_pair do |property, value|
|
@@ -128,5 +128,10 @@ class IdentityMetadataDS < ActiveFedora::OmDatastream
|
|
128
128
|
|
129
129
|
solr_doc
|
130
130
|
end
|
131
|
+
|
132
|
+
# maintain AF < 8 indexing behavior
|
133
|
+
def prefix
|
134
|
+
''
|
135
|
+
end
|
131
136
|
end # class
|
132
137
|
end
|
@@ -96,7 +96,7 @@ module Dor
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def to_solr(solr_doc = {}, *args)
|
99
|
-
super(solr_doc, *args)
|
99
|
+
solr_doc = super(solr_doc, *args)
|
100
100
|
dra = dra_object
|
101
101
|
solr_doc['rights_primary_ssi'] = dra.index_elements[:primary]
|
102
102
|
solr_doc['rights_errors_ssim'] = dra.index_elements[:errors] if dra.index_elements[:errors].size > 0
|
@@ -167,5 +167,10 @@ module Dor
|
|
167
167
|
''
|
168
168
|
end
|
169
169
|
|
170
|
+
# maintain AF < 8 indexing behavior
|
171
|
+
def prefix
|
172
|
+
''
|
173
|
+
end
|
174
|
+
|
170
175
|
end # class
|
171
176
|
end
|
@@ -211,6 +211,11 @@ module Dor
|
|
211
211
|
increment_version(opts[:description], opts[:significance])
|
212
212
|
end
|
213
213
|
|
214
|
+
# maintain AF < 8 indexing behavior
|
215
|
+
def prefix
|
216
|
+
''
|
217
|
+
end
|
218
|
+
|
214
219
|
private
|
215
220
|
|
216
221
|
# @return [Nokogiri::XML::Node] Node representing the current version
|
@@ -223,6 +228,5 @@ module Dor
|
|
223
228
|
tags = find_by_terms(:version, :tag)
|
224
229
|
tags.map {|t| VersionTag.parse(t.value)}.max
|
225
230
|
end
|
226
|
-
|
227
231
|
end
|
228
232
|
end
|
@@ -93,7 +93,7 @@ class WorkflowDefinitionDs < ActiveFedora::OmDatastream
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def to_solr(solr_doc = {}, *args)
|
96
|
-
super(solr_doc, *args)
|
96
|
+
solr_doc = super(solr_doc, *args)
|
97
97
|
add_solr_value(solr_doc, 'workflow_name', name, :symbol, [:symbol])
|
98
98
|
processes.each do |p|
|
99
99
|
add_solr_value(solr_doc, 'process', "#{p.name}|#{p.label}", :symbol, [:displayable])
|
@@ -105,5 +105,10 @@ class WorkflowDefinitionDs < ActiveFedora::OmDatastream
|
|
105
105
|
YAML.dump(configuration)
|
106
106
|
end
|
107
107
|
|
108
|
+
# maintain AF < 8 indexing behavior
|
109
|
+
def prefix
|
110
|
+
''
|
111
|
+
end
|
112
|
+
|
108
113
|
end
|
109
114
|
end
|
@@ -71,8 +71,13 @@ module Dor
|
|
71
71
|
|
72
72
|
def to_solr(solr_doc = {}, *args)
|
73
73
|
# super solr_doc, *args
|
74
|
-
workflows.each { |wf| wf.to_solr(solr_doc, *args) }
|
74
|
+
workflows.each { |wf| solr_doc = wf.to_solr(solr_doc, *args) }
|
75
75
|
solr_doc
|
76
76
|
end
|
77
|
+
|
78
|
+
# maintain AF < 8 indexing behavior
|
79
|
+
def prefix
|
80
|
+
''
|
81
|
+
end
|
77
82
|
end
|
78
83
|
end
|
@@ -7,7 +7,7 @@ module Dor
|
|
7
7
|
include Processable
|
8
8
|
include Versionable
|
9
9
|
|
10
|
-
has_many :things, :property => :is_governed_by, :
|
10
|
+
has_many :things, :property => :is_governed_by, :class_name => 'ActiveFedora::Base'
|
11
11
|
has_object_type 'adminPolicy'
|
12
12
|
has_metadata :name => 'administrativeMetadata', :type => Dor::AdministrativeMetadataDS, :label => 'Administrative Metadata'
|
13
13
|
has_metadata :name => 'roleMetadata', :type => Dor::RoleMetadataDS, :label => 'Role Metadata'
|
@@ -8,7 +8,7 @@ module Dor
|
|
8
8
|
include Versionable
|
9
9
|
include Releaseable
|
10
10
|
|
11
|
-
has_many :members, :property => :is_member_of_collection, :
|
11
|
+
has_many :members, :property => :is_member_of_collection, :class_name => 'ActiveFedora::Base'
|
12
12
|
has_object_type 'collection'
|
13
13
|
end
|
14
14
|
end
|
@@ -41,7 +41,7 @@ module Dor
|
|
41
41
|
|
42
42
|
def replace_file(file, file_name)
|
43
43
|
sftp = Net::SFTP.start(Config.content.content_server, Config.content.content_user, :auth_methods => ['publickey'])
|
44
|
-
item = Dor
|
44
|
+
item = Dor.find(pid)
|
45
45
|
druid_tools = DruidTools::Druid.new(pid, Config.content.content_base_dir)
|
46
46
|
location = druid_tools.path(file_name)
|
47
47
|
oldlocation = location.gsub('/' + pid.gsub('druid:', ''), '')
|
@@ -161,7 +161,7 @@ module Dor
|
|
161
161
|
max_sequence = primary_cm.at_xpath('/contentMetadata/resource[last()]/@sequence').value.to_i
|
162
162
|
|
163
163
|
source_obj_pids.each do |src_pid|
|
164
|
-
source_obj = Dor
|
164
|
+
source_obj = Dor.find src_pid
|
165
165
|
source_cm = source_obj.contentMetadata.ng_xml
|
166
166
|
|
167
167
|
# Copy the resources from each source object
|
@@ -110,7 +110,7 @@ module Dor
|
|
110
110
|
|
111
111
|
def add_related_item_node_for_collection(doc, collection_druid)
|
112
112
|
begin
|
113
|
-
collection_obj = Dor
|
113
|
+
collection_obj = Dor.find(collection_druid)
|
114
114
|
rescue ActiveFedora::ObjectNotFoundError
|
115
115
|
return nil
|
116
116
|
end
|
@@ -172,7 +172,7 @@ module Dor
|
|
172
172
|
'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' ).each do |parent|
|
173
173
|
# fetch the parent object to get title
|
174
174
|
druid = parent['rdf:resource'].gsub(/^info:fedora\//, '')
|
175
|
-
parent_item = Dor
|
175
|
+
parent_item = Dor.find(druid)
|
176
176
|
|
177
177
|
# create the MODS relation
|
178
178
|
relatedItem = doc.create_element 'relatedItem'
|
@@ -209,7 +209,7 @@ module Dor
|
|
209
209
|
end
|
210
210
|
|
211
211
|
def to_solr(solr_doc = {}, *args)
|
212
|
-
super solr_doc, *args
|
212
|
+
solr_doc = super solr_doc, *args
|
213
213
|
mods_sources = {
|
214
214
|
'sw_language_ssim' => :sw_language_facet,
|
215
215
|
'sw_language_tesim' => :sw_language_facet,
|
@@ -246,7 +246,7 @@ module Dor
|
|
246
246
|
creator_title = creator + title
|
247
247
|
add_solr_value(solr_doc, 'creator_title', creator_title, :string, [:stored_sortable])
|
248
248
|
rescue CrosswalkError => e
|
249
|
-
|
249
|
+
Dor.logger.warn "Cannot index #{pid}.descMetadata: #{e.message}"
|
250
250
|
end
|
251
251
|
|
252
252
|
begin
|
data/lib/dor/models/editable.rb
CHANGED
@@ -46,7 +46,7 @@ module Dor
|
|
46
46
|
}.freeze
|
47
47
|
|
48
48
|
def to_solr(solr_doc = {}, *args)
|
49
|
-
super(solr_doc, *args)
|
49
|
+
solr_doc = super(solr_doc, *args)
|
50
50
|
add_solr_value(solr_doc, 'default_rights', default_rights, :string, [:symbol])
|
51
51
|
add_solr_value(solr_doc, 'agreement', agreement, :string, [:symbol]) if agreement_object
|
52
52
|
add_solr_value(solr_doc, 'default_use_license_machine', use_license, :string, [:stored_sortable])
|
@@ -328,7 +328,7 @@ module Dor
|
|
328
328
|
end
|
329
329
|
def agreement=(val)
|
330
330
|
fail ArgumentError, 'agreement must have a valid druid' if val.blank?
|
331
|
-
self.agreement_object = Dor
|
331
|
+
self.agreement_object = Dor.find val.to_s, :cast => true
|
332
332
|
end
|
333
333
|
end
|
334
334
|
end
|
@@ -79,7 +79,8 @@ module Dor
|
|
79
79
|
def get_release_tags_for_item_and_all_governing_sets
|
80
80
|
return_tags = release_nodes || {}
|
81
81
|
collections.each do |collection|
|
82
|
-
|
82
|
+
next if collection.id == id # recursive, so parents of parents are found, but we need to avoid an infinite loop if the collection references itself (i.e. bad data)
|
83
|
+
return_tags = combine_two_release_tag_hashes(return_tags, Dor.find(collection.id).get_release_tags_for_item_and_all_governing_sets)
|
83
84
|
end
|
84
85
|
return_tags
|
85
86
|
end
|
@@ -319,7 +320,7 @@ module Dor
|
|
319
320
|
end
|
320
321
|
|
321
322
|
def to_solr(solr_doc = {}, *args)
|
322
|
-
super(solr_doc, *args)
|
323
|
+
solr_doc = super(solr_doc, *args)
|
323
324
|
|
324
325
|
# TODO: sort of worried about the performance impact in bulk reindex
|
325
326
|
# situations, since released_for recurses all parent collections. jmartin 2015-07-14
|
data/lib/dor/models/set.rb
CHANGED
@@ -7,7 +7,7 @@ module Dor
|
|
7
7
|
include Publishable
|
8
8
|
include Versionable
|
9
9
|
|
10
|
-
has_many :members, :property => :is_member_of_collection, :
|
10
|
+
has_many :members, :property => :is_member_of_collection, :class_name => 'ActiveFedora::Base'
|
11
11
|
has_object_type 'set'
|
12
12
|
end
|
13
13
|
end
|
@@ -11,9 +11,9 @@ module Dor
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def initialize(primary_druid, secondary_pids, tag, logger = nil)
|
14
|
-
@primary = Dor
|
14
|
+
@primary = Dor.find primary_druid
|
15
15
|
@secondary_pids = secondary_pids
|
16
|
-
@secondary_objs = secondary_pids.map {|pid| Dor
|
16
|
+
@secondary_objs = secondary_pids.map {|pid| Dor.find pid }
|
17
17
|
if logger.nil?
|
18
18
|
@logger = Logger.new(STDERR)
|
19
19
|
else
|
@@ -129,7 +129,7 @@ module Dor
|
|
129
129
|
workflow_priority = params[:workflow_priority] ? params[:workflow_priority].to_i : 0
|
130
130
|
|
131
131
|
Array(params[:seed_datastream]).each { |datastream_name| new_item.build_datastream(datastream_name) }
|
132
|
-
Array(params[:initiate_workflow]).each { |workflow_id| new_item.create_workflow(workflow_id, !new_item.
|
132
|
+
Array(params[:initiate_workflow]).each { |workflow_id| new_item.create_workflow(workflow_id, !new_item.new_record?, workflow_priority)}
|
133
133
|
|
134
134
|
new_item.assert_content_model
|
135
135
|
|
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.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -14,22 +14,28 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2016-10-
|
17
|
+
date: 2016-10-24 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: active-fedora
|
21
21
|
requirement: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
|
-
- - "
|
23
|
+
- - ">="
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: '6.0'
|
26
|
+
- - "<"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 9.a
|
26
29
|
type: :runtime
|
27
30
|
prerelease: false
|
28
31
|
version_requirements: !ruby/object:Gem::Requirement
|
29
32
|
requirements:
|
30
|
-
- - "
|
33
|
+
- - ">="
|
31
34
|
- !ruby/object:Gem::Version
|
32
35
|
version: '6.0'
|
36
|
+
- - "<"
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 9.a
|
33
39
|
- !ruby/object:Gem::Dependency
|
34
40
|
name: activesupport
|
35
41
|
requirement: !ruby/object:Gem::Requirement
|
@@ -576,7 +582,13 @@ extensions: []
|
|
576
582
|
extra_rdoc_files: []
|
577
583
|
files:
|
578
584
|
- config/certs/README
|
585
|
+
- config/certs/dlss-dev-petucket-dor-dev.crt
|
586
|
+
- config/certs/dlss-dev-petucket-dor-dev.csr
|
587
|
+
- config/certs/dlss-dev-petucket-dor-dev.key
|
588
|
+
- config/certs/dlss-dev-petucket-dor-prod.crt
|
589
|
+
- config/certs/dlss-dev-petucket-dor-prod.key
|
579
590
|
- config/config_defaults.yml
|
591
|
+
- config/dev_console_env.rb
|
580
592
|
- config/dev_console_env.rb.example
|
581
593
|
- config/predicate_mappings.yml
|
582
594
|
- lib/dor-services.rb
|
@@ -676,8 +688,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
676
688
|
version: 1.3.6
|
677
689
|
requirements: []
|
678
690
|
rubyforge_project:
|
679
|
-
rubygems_version: 2.
|
691
|
+
rubygems_version: 2.6.7
|
680
692
|
signing_key:
|
681
693
|
specification_version: 4
|
682
694
|
summary: Ruby implmentation of DOR services used by the SULAIR Digital Library
|
683
695
|
test_files: []
|
696
|
+
has_rdoc:
|