dor-services 5.2.0 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +5 -13
  2. data/config/certs/robots-dor-dev.crt +29 -0
  3. data/config/certs/robots-dor-dev.key +27 -0
  4. data/config/config_defaults.yml +2 -0
  5. data/config/dev_console_env.rb +77 -0
  6. data/lib/dor-services.rb +31 -27
  7. data/lib/dor/config.rb +25 -19
  8. data/lib/dor/datastreams/administrative_metadata_ds.rb +19 -20
  9. data/lib/dor/datastreams/content_metadata_ds.rb +238 -177
  10. data/lib/dor/datastreams/datastream_spec_solrizer.rb +1 -1
  11. data/lib/dor/datastreams/default_object_rights_ds.rb +99 -16
  12. data/lib/dor/datastreams/desc_metadata_ds.rb +37 -34
  13. data/lib/dor/datastreams/embargo_metadata_ds.rb +16 -16
  14. data/lib/dor/datastreams/events_ds.rb +2 -2
  15. data/lib/dor/datastreams/geo_metadata_ds.rb +5 -10
  16. data/lib/dor/datastreams/identity_metadata_ds.rb +22 -22
  17. data/lib/dor/datastreams/rights_metadata_ds.rb +43 -32
  18. data/lib/dor/datastreams/role_metadata_ds.rb +5 -5
  19. data/lib/dor/datastreams/simple_dublin_core_ds.rb +13 -14
  20. data/lib/dor/datastreams/version_metadata_ds.rb +22 -23
  21. data/lib/dor/datastreams/workflow_definition_ds.rb +15 -15
  22. data/lib/dor/datastreams/workflow_ds.rb +64 -70
  23. data/lib/dor/exceptions.rb +0 -1
  24. data/lib/dor/migrations/identifiable/uriify_augmented_contentlocation_refs.rb +4 -4
  25. data/lib/dor/migrations/processable/unify_workflows.rb +1 -1
  26. data/lib/dor/models/admin_policy_object.rb +4 -4
  27. data/lib/dor/models/assembleable.rb +2 -3
  28. data/lib/dor/models/collection.rb +1 -1
  29. data/lib/dor/models/contentable.rb +113 -108
  30. data/lib/dor/models/describable.rb +136 -95
  31. data/lib/dor/models/editable.rb +205 -119
  32. data/lib/dor/models/embargoable.rb +16 -16
  33. data/lib/dor/models/eventable.rb +2 -2
  34. data/lib/dor/models/geoable.rb +3 -3
  35. data/lib/dor/models/governable.rb +25 -26
  36. data/lib/dor/models/identifiable.rb +66 -55
  37. data/lib/dor/models/item.rb +0 -1
  38. data/lib/dor/models/itemizable.rb +7 -8
  39. data/lib/dor/models/preservable.rb +7 -8
  40. data/lib/dor/models/processable.rb +76 -73
  41. data/lib/dor/models/publishable.rb +25 -30
  42. data/lib/dor/models/releaseable.rb +118 -155
  43. data/lib/dor/models/rightsable.rb +2 -3
  44. data/lib/dor/models/set.rb +1 -1
  45. data/lib/dor/models/shelvable.rb +8 -10
  46. data/lib/dor/models/upgradable.rb +5 -6
  47. data/lib/dor/models/versionable.rb +3 -4
  48. data/lib/dor/models/workflow_object.rb +15 -16
  49. data/lib/dor/services/cleanup_reset_service.rb +15 -16
  50. data/lib/dor/services/cleanup_service.rb +2 -4
  51. data/lib/dor/services/digital_stacks_service.rb +10 -13
  52. data/lib/dor/services/merge_service.rb +8 -9
  53. data/lib/dor/services/metadata_handlers/catalog_handler.rb +1 -1
  54. data/lib/dor/services/metadata_handlers/mdtoolkit_handler.rb +3 -3
  55. data/lib/dor/services/metadata_service.rb +19 -20
  56. data/lib/dor/services/registration_service.rb +80 -61
  57. data/lib/dor/services/reset_workspace_service.rb +6 -10
  58. data/lib/dor/services/sdr_ingest_service.rb +15 -16
  59. data/lib/dor/services/search_service.rb +18 -23
  60. data/lib/dor/services/suri_service.rb +6 -6
  61. data/lib/dor/services/technical_metadata_service.rb +27 -44
  62. data/lib/dor/utils/ng_tidy.rb +3 -3
  63. data/lib/dor/utils/sdr_client.rb +2 -3
  64. data/lib/dor/utils/solr_doc_helper.rb +1 -3
  65. data/lib/dor/version.rb +1 -1
  66. data/lib/dor/workflow/document.rb +43 -40
  67. data/lib/dor/workflow/graph.rb +26 -26
  68. data/lib/dor/workflow/process.rb +34 -35
  69. data/lib/tasks/rdoc.rake +5 -5
  70. metadata +129 -111
  71. data/lib/dor/models/presentable.rb +0 -146
@@ -4,20 +4,20 @@ module Dor
4
4
  module Workflow
5
5
  class Graph
6
6
 
7
- FILL_COLORS = { 'waiting' => "white", 'ready' => "white", 'error' => "#8B0000", 'blocked' => "white", 'completed' => "darkgreen", 'unknown' => "#CFCFCF" }
8
- TEXT_COLORS = { 'waiting' => "black", 'ready' => "black", 'error' => "white", 'blocked' => "#8B0000", 'completed' => "white", 'unknown' => "black" }
9
- PATTERNS = { 'waiting' => "diagonals", 'ready' => "filled", 'error' => "filled", 'blocked' => "diagonals", 'completed' => "filled", 'unknown' => "filled" }
7
+ FILL_COLORS = { 'waiting' => 'white', 'ready' => 'white', 'error' => '#8B0000', 'blocked' => 'white', 'completed' => 'darkgreen', 'unknown' => '#CFCFCF' }
8
+ TEXT_COLORS = { 'waiting' => 'black', 'ready' => 'black', 'error' => 'white', 'blocked' => '#8B0000', 'completed' => 'white', 'unknown' => 'black' }
9
+ PATTERNS = { 'waiting' => 'diagonals', 'ready' => 'filled', 'error' => 'filled', 'blocked' => 'diagonals', 'completed' => 'filled', 'unknown' => 'filled' }
10
10
  RESERVED_KEYS = %w(repository name)
11
11
 
12
12
  attr_reader :repo, :name, :processes, :graph, :root
13
13
 
14
14
  def self.from_config(name, config, parent = nil)
15
- wf = self.new(config['repository'], name, parent)
15
+ wf = new(config['repository'], name, parent)
16
16
  config.keys.each { |p| wf.add_process(p.to_s) unless RESERVED_KEYS.include?(p) }
17
17
  config.keys.each { |p|
18
18
  next unless wf.processes[p]
19
19
  Array(config[p]['prerequisite']).each { |prereq|
20
- prereq.sub!(/^#{config['repository']}:#{name}:/e,'')
20
+ prereq.sub!(/^#{config['repository']}:#{name}:/e, '')
21
21
  if wf.processes[prereq]
22
22
  wf.processes[p].depends_on(wf.processes[prereq])
23
23
  else
@@ -26,17 +26,17 @@ class Graph
26
26
  }
27
27
  }
28
28
  wf.finish
29
- return wf
29
+ wf
30
30
  end
31
31
 
32
32
  def self.from_processes(repo, name, processes, parent = nil)
33
- wf = self.new(repo, name, parent)
33
+ wf = new(repo, name, parent)
34
34
  processes.each { |p|
35
35
  wf.add_process(p.name).status = p.state || 'unknown'
36
36
  }
37
37
  processes.each { |p|
38
38
  p.prerequisite.each { |prereq|
39
- prereq.sub!(/^#{repo}:#{name}:/e,'')
39
+ prereq.sub!(/^#{repo}:#{name}:/e, '')
40
40
  if wf.processes[prereq]
41
41
  wf.processes[p.name].depends_on(wf.processes[prereq])
42
42
  else
@@ -45,7 +45,7 @@ class Graph
45
45
  }
46
46
  }
47
47
  wf.finish
48
- return wf
48
+ wf
49
49
  end
50
50
 
51
51
  def initialize(repo, name, parent = nil)
@@ -53,7 +53,7 @@ class Graph
53
53
  @name = name
54
54
  if parent.nil?
55
55
  @graph = GraphViz.new(qname)
56
- @root = self.add_nodes(name)
56
+ @root = add_nodes(name)
57
57
  else
58
58
  @graph = parent.subgraph(qname)
59
59
  @root = parent.add_nodes(name)
@@ -64,14 +64,14 @@ class Graph
64
64
  end
65
65
 
66
66
  def qname
67
- [@repo,@name].join(':')
67
+ [@repo, @name].join(':')
68
68
  end
69
69
 
70
70
  def add_process(name, external = false)
71
- pqname = name.split(/:/).length == 3 ? name : [qname,name].join(':')
71
+ pqname = name.split(/:/).length == 3 ? name : [qname, name].join(':')
72
72
  p = Process.new(self, pqname, name)
73
73
  @processes[name] = p
74
- return p
74
+ p
75
75
  end
76
76
 
77
77
  def finish
@@ -83,16 +83,16 @@ class Graph
83
83
  end
84
84
 
85
85
  @root.fontname = 'Helvetica'
86
- return self
86
+ self
87
87
  end
88
88
 
89
89
  def inspect
90
- "#{self.to_s[0..-2]} #{repo}:#{name} (#{processes.keys.join(', ')})>"
90
+ "#{to_s[0..-2]} #{repo}:#{name} (#{processes.keys.join(', ')})>"
91
91
  end
92
92
 
93
- def method_missing(sym,*args)
93
+ def method_missing(sym, *args)
94
94
  if @graph.respond_to?(sym)
95
- @graph.send(sym,*args)
95
+ @graph.send(sym, *args)
96
96
  else
97
97
  super
98
98
  end
@@ -109,7 +109,7 @@ class Graph
109
109
  @node.shape = 'box'
110
110
  @node.label = name
111
111
  @prerequisites = []
112
- self.set_status('unknown')
112
+ set_status('unknown')
113
113
  end
114
114
 
115
115
  def id
@@ -119,11 +119,11 @@ class Graph
119
119
  def status=(s)
120
120
  @status = s
121
121
  if s == 'external'
122
- @node.fillcolor = "gray"
123
- @node.fontcolor = "black"
124
- @node.style = "dashed"
122
+ @node.fillcolor = 'gray'
123
+ @node.fontcolor = 'black'
124
+ @node.style = 'dashed'
125
125
  else
126
- @node.fillcolor = FILL_COLORS[s] || "yellow"
126
+ @node.fillcolor = FILL_COLORS[s] || 'yellow'
127
127
  @node.fontcolor = TEXT_COLORS[s]
128
128
  @node.style = PATTERNS[s]
129
129
  end
@@ -131,11 +131,11 @@ class Graph
131
131
 
132
132
  def set_status(s)
133
133
  self.status = s
134
- return self
134
+ self
135
135
  end
136
136
 
137
137
  def depends_on(*processes)
138
- wf1 = self.id.split(/:/)[0..1].join(':')
138
+ wf1 = id.split(/:/)[0..1].join(':')
139
139
  processes.each { |process|
140
140
  wf2 = process.id.split(/:/)[0..1].join(':')
141
141
  edge = (process.node << @node)
@@ -143,9 +143,9 @@ class Graph
143
143
  edge.arrowhead = 'none'
144
144
  edge.arrowtail = 'none'
145
145
  edge.style = 'dashed' if (wf1 != wf2)
146
- self.prerequisites << process
146
+ prerequisites << process
147
147
  }
148
- return self
148
+ self
149
149
  end
150
150
 
151
151
  def same_as(process)
@@ -15,50 +15,49 @@ module Workflow
15
15
 
16
16
  def init_from_node(node)
17
17
  @attrs = {
18
- 'name' => node['name'],
19
- 'sequence' => node['sequence'] ? node['sequence'].to_i : nil,
20
- 'status' => node['status'], # TODO see how this affects argo
21
- 'lifecycle' => node['lifecycle'],
22
- 'label' => node.at_xpath('label/text()').to_s,
23
- 'batch_limit' => node['batch-limit'] ? node['batch-limit'].to_i : nil,
24
- 'error_limit' => node['error-limit'] ? node['error-limit'].to_i : nil,
18
+ 'name' => node['name'],
19
+ 'sequence' => node['sequence'] ? node['sequence'].to_i : nil,
20
+ 'status' => node['status'], # TODO: see how this affects argo
21
+ 'lifecycle' => node['lifecycle'],
22
+ 'label' => node.at_xpath('label/text()').to_s,
23
+ 'batch_limit' => node['batch-limit'] ? node['batch-limit'].to_i : nil,
24
+ 'error_limit' => node['error-limit'] ? node['error-limit'].to_i : nil,
25
+ 'priority' => node['priority'] ? node['priority'].to_i : 0,
25
26
  'prerequisite' => node.xpath('prereq').collect { |p|
26
- repo = (p['repository'].nil? || p['repository'] == @repo) ? nil : p['repository']
27
- wf = (p['workflow'].nil? || p['workflow'] == @workflow) ? nil : p['workflow']
28
- [repo,wf,p.text.to_s].compact.join(':')
29
- },
30
- 'priority' => node['priority'] ? node['priority'].to_i : 0
27
+ repo = (p['repository'].nil? || p['repository'] == @repo ) ? nil : p['repository']
28
+ wf = (p['workflow'].nil? || p['workflow'] == @workflow) ? nil : p['workflow']
29
+ [repo, wf, p.text.to_s].compact.join(':')
30
+ }
31
31
  }
32
32
  end
33
33
 
34
- def name ; @attrs['name'] ; end
35
- def sequence ; @attrs['sequence'] ; end
36
- def lifecycle ; @attrs['lifecycle'] ; end
37
- def label ; @attrs['label'] ; end
38
- def batch_limit ; @attrs['batch_limit'] ; end
39
- def error_limit ; @attrs['error_limit'] ; end
40
- def error_message ; @attrs['errorMessage'] ; end
41
- def prerequisite ; @attrs['prerequisite'] ; end
42
- def status ; @attrs['status'] ; end
43
- def note ; @attrs['note'] ; end
44
- def version ; @attrs['version'] ; end
45
- def priority ; @attrs['priority'] ; end
46
- def completed? ; self.status == 'completed' ; end
47
- def error? ; self.status == 'error' ; end
48
- def waiting? ; self.status == 'waiting' ; end
49
- def date_time ;@attrs['datetime'] ; end
34
+ def name ; @attrs['name'] ; end
35
+ def sequence ; @attrs['sequence'] ; end
36
+ def lifecycle ; @attrs['lifecycle'] ; end
37
+ def label ; @attrs['label'] ; end
38
+ def batch_limit ; @attrs['batch_limit'] ; end
39
+ def error_limit ; @attrs['error_limit'] ; end
40
+ def error_message ; @attrs['errorMessage'] ; end
41
+ def prerequisite ; @attrs['prerequisite'] ; end
42
+ def status ; @attrs['status'] ; end
43
+ def note ; @attrs['note'] ; end
44
+ def version ; @attrs['version'] ; end
45
+ def priority ; @attrs['priority'] ; end
46
+ def completed? ; status == 'completed' ; end
47
+ def error? ; status == 'error' ; end
48
+ def waiting? ; status == 'waiting' ; end
49
+ def date_time ; @attrs['datetime'] ; end
50
50
 
51
51
  def archived?
52
- return true if @attrs['archived'] =~ /true$/i
53
- return false
52
+ @attrs['archived'] =~ /true$/i
54
53
  end
55
54
 
56
55
  def ready?
57
- self.waiting? && (!self.prerequisite.nil?) && self.prerequisite.all? { |pr| (prq = self.owner[pr]) && prq.completed? }
56
+ self.waiting? && (!prerequisite.nil?) && prerequisite.all? { |pr| (prq = owner[pr]) && prq.completed? }
58
57
  end
59
58
 
60
59
  def blocked?
61
- self.waiting? && (!self.prerequisite.nil?) && self.prerequisite.any? { |pr| (prq = self.owner[pr]) && (prq.error? || prq.blocked?) }
60
+ self.waiting? && (!prerequisite.nil?) && prerequisite.any? { |pr| (prq = owner[pr]) && (prq.error? || prq.blocked?) }
62
61
  end
63
62
 
64
63
  def state
@@ -83,16 +82,16 @@ module Workflow
83
82
  @attrs['elapsed'].nil? ? nil : @attrs['elapsed'].to_f
84
83
  end
85
84
 
86
- def update!(info, new_owner=nil)
85
+ def update!(info, new_owner = nil)
87
86
  @owner = new_owner unless new_owner.nil?
88
87
  if info.is_a? Nokogiri::XML::Node
89
- info = Hash[info.attributes.collect { |k,v| [k,v.value] }]
88
+ info = Hash[info.attributes.collect { |k, v| [k, v.value] }]
90
89
  end
91
90
  @attrs.merge! info
92
91
  end
93
92
 
94
93
  def to_hash
95
- @attrs.reject { |k,v| v.nil? || v == 0 || (v.respond_to?(:empty?) && v.empty?) }
94
+ @attrs.reject { |k, v| v.nil? || v == 0 || (v.respond_to?(:empty?) && v.empty?) }
96
95
  end
97
96
  end
98
97
  end
data/lib/tasks/rdoc.rake CHANGED
@@ -1,4 +1,4 @@
1
- desc "Generate RDoc"
1
+ desc 'Generate RDoc'
2
2
  task :doc => ['doc:generate']
3
3
 
4
4
  namespace :doc do
@@ -18,15 +18,15 @@ namespace :doc do
18
18
  yt.options = ['--output-dir', doc_destination, '--readme', 'README.md']
19
19
  end
20
20
  rescue LoadError
21
- desc "Generate YARD Documentation"
21
+ desc 'Generate YARD Documentation'
22
22
  task :generate do
23
- abort "Please install the YARD gem to generate rdoc."
23
+ abort 'Please install the YARD gem to generate rdoc.'
24
24
  end
25
25
  end
26
26
 
27
- desc "Remove generated documenation"
27
+ desc 'Remove generated documenation'
28
28
  task :clean do
29
- rm_r doc_destination if File.exists?(doc_destination)
29
+ rm_r doc_destination if File.exist?(doc_destination)
30
30
  end
31
31
 
32
32
  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.2.0
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -9,551 +9,567 @@ authors:
9
9
  - Chris Fitzpatrick
10
10
  - Richard Anderson
11
11
  - Renzo Sanchez-Silva
12
+ - Joseph Atzberger
13
+ - Johnathan Martin
12
14
  autorequire:
13
15
  bindir: bin
14
16
  cert_chain: []
15
- date: 2015-09-05 00:00:00.000000000 Z
17
+ date: 2015-12-18 00:00:00.000000000 Z
16
18
  dependencies:
17
19
  - !ruby/object:Gem::Dependency
18
20
  name: active-fedora
19
21
  requirement: !ruby/object:Gem::Requirement
20
22
  requirements:
21
- - - ~>
23
+ - - "~>"
22
24
  - !ruby/object:Gem::Version
23
25
  version: '6.0'
24
26
  type: :runtime
25
27
  prerelease: false
26
28
  version_requirements: !ruby/object:Gem::Requirement
27
29
  requirements:
28
- - - ~>
30
+ - - "~>"
29
31
  - !ruby/object:Gem::Version
30
32
  version: '6.0'
31
33
  - !ruby/object:Gem::Dependency
32
34
  name: activesupport
33
35
  requirement: !ruby/object:Gem::Requirement
34
36
  requirements:
35
- - - ! '>='
37
+ - - ">="
36
38
  - !ruby/object:Gem::Version
37
39
  version: 3.2.18
38
40
  type: :runtime
39
41
  prerelease: false
40
42
  version_requirements: !ruby/object:Gem::Requirement
41
43
  requirements:
42
- - - ! '>='
44
+ - - ">="
43
45
  - !ruby/object:Gem::Version
44
46
  version: 3.2.18
45
47
  - !ruby/object:Gem::Dependency
46
48
  name: confstruct
47
49
  requirement: !ruby/object:Gem::Requirement
48
50
  requirements:
49
- - - ~>
51
+ - - "~>"
50
52
  - !ruby/object:Gem::Version
51
53
  version: 0.2.7
52
54
  type: :runtime
53
55
  prerelease: false
54
56
  version_requirements: !ruby/object:Gem::Requirement
55
57
  requirements:
56
- - - ~>
58
+ - - "~>"
57
59
  - !ruby/object:Gem::Version
58
60
  version: 0.2.7
59
61
  - !ruby/object:Gem::Dependency
60
62
  name: equivalent-xml
61
63
  requirement: !ruby/object:Gem::Requirement
62
64
  requirements:
63
- - - ~>
65
+ - - "~>"
64
66
  - !ruby/object:Gem::Version
65
67
  version: '0.5'
66
- - - ! '>='
68
+ - - ">="
67
69
  - !ruby/object:Gem::Version
68
70
  version: 0.5.1
69
71
  type: :runtime
70
72
  prerelease: false
71
73
  version_requirements: !ruby/object:Gem::Requirement
72
74
  requirements:
73
- - - ~>
75
+ - - "~>"
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0.5'
76
- - - ! '>='
78
+ - - ">="
77
79
  - !ruby/object:Gem::Version
78
80
  version: 0.5.1
79
81
  - !ruby/object:Gem::Dependency
80
82
  name: json
81
83
  requirement: !ruby/object:Gem::Requirement
82
84
  requirements:
83
- - - ~>
85
+ - - "~>"
84
86
  - !ruby/object:Gem::Version
85
87
  version: 1.8.1
86
88
  type: :runtime
87
89
  prerelease: false
88
90
  version_requirements: !ruby/object:Gem::Requirement
89
91
  requirements:
90
- - - ~>
92
+ - - "~>"
91
93
  - !ruby/object:Gem::Version
92
94
  version: 1.8.1
93
95
  - !ruby/object:Gem::Dependency
94
96
  name: net-sftp
95
97
  requirement: !ruby/object:Gem::Requirement
96
98
  requirements:
97
- - - ~>
99
+ - - "~>"
98
100
  - !ruby/object:Gem::Version
99
101
  version: 2.1.2
100
102
  type: :runtime
101
103
  prerelease: false
102
104
  version_requirements: !ruby/object:Gem::Requirement
103
105
  requirements:
104
- - - ~>
106
+ - - "~>"
105
107
  - !ruby/object:Gem::Version
106
108
  version: 2.1.2
107
109
  - !ruby/object:Gem::Dependency
108
110
  name: net-ssh
109
111
  requirement: !ruby/object:Gem::Requirement
110
112
  requirements:
111
- - - ~>
113
+ - - "~>"
112
114
  - !ruby/object:Gem::Version
113
115
  version: 2.6.5
114
116
  type: :runtime
115
117
  prerelease: false
116
118
  version_requirements: !ruby/object:Gem::Requirement
117
119
  requirements:
118
- - - ~>
120
+ - - "~>"
119
121
  - !ruby/object:Gem::Version
120
122
  version: 2.6.5
121
123
  - !ruby/object:Gem::Dependency
122
124
  name: nokogiri
123
125
  requirement: !ruby/object:Gem::Requirement
124
126
  requirements:
125
- - - ~>
127
+ - - "~>"
126
128
  - !ruby/object:Gem::Version
127
129
  version: 1.6.0
128
130
  type: :runtime
129
131
  prerelease: false
130
132
  version_requirements: !ruby/object:Gem::Requirement
131
133
  requirements:
132
- - - ~>
134
+ - - "~>"
133
135
  - !ruby/object:Gem::Version
134
136
  version: 1.6.0
137
+ - !ruby/object:Gem::Dependency
138
+ name: nokogiri-pretty
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: 0.1.0
144
+ type: :runtime
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: 0.1.0
135
151
  - !ruby/object:Gem::Dependency
136
152
  name: om
137
153
  requirement: !ruby/object:Gem::Requirement
138
154
  requirements:
139
- - - ~>
155
+ - - "~>"
140
156
  - !ruby/object:Gem::Version
141
157
  version: '3.0'
142
158
  type: :runtime
143
159
  prerelease: false
144
160
  version_requirements: !ruby/object:Gem::Requirement
145
161
  requirements:
146
- - - ~>
162
+ - - "~>"
147
163
  - !ruby/object:Gem::Version
148
164
  version: '3.0'
149
165
  - !ruby/object:Gem::Dependency
150
166
  name: progressbar
151
167
  requirement: !ruby/object:Gem::Requirement
152
168
  requirements:
153
- - - ~>
169
+ - - "~>"
154
170
  - !ruby/object:Gem::Version
155
171
  version: 0.21.0
156
172
  type: :runtime
157
173
  prerelease: false
158
174
  version_requirements: !ruby/object:Gem::Requirement
159
175
  requirements:
160
- - - ~>
176
+ - - "~>"
161
177
  - !ruby/object:Gem::Version
162
178
  version: 0.21.0
163
179
  - !ruby/object:Gem::Dependency
164
180
  name: rdf
165
181
  requirement: !ruby/object:Gem::Requirement
166
182
  requirements:
167
- - - ~>
183
+ - - "~>"
168
184
  - !ruby/object:Gem::Version
169
185
  version: 1.1.7
170
186
  type: :runtime
171
187
  prerelease: false
172
188
  version_requirements: !ruby/object:Gem::Requirement
173
189
  requirements:
174
- - - ~>
190
+ - - "~>"
175
191
  - !ruby/object:Gem::Version
176
192
  version: 1.1.7
177
193
  - !ruby/object:Gem::Dependency
178
194
  name: rest-client
179
195
  requirement: !ruby/object:Gem::Requirement
180
196
  requirements:
181
- - - ~>
197
+ - - "~>"
182
198
  - !ruby/object:Gem::Version
183
199
  version: '1.7'
184
200
  type: :runtime
185
201
  prerelease: false
186
202
  version_requirements: !ruby/object:Gem::Requirement
187
203
  requirements:
188
- - - ~>
204
+ - - "~>"
189
205
  - !ruby/object:Gem::Version
190
206
  version: '1.7'
191
207
  - !ruby/object:Gem::Dependency
192
208
  name: rsolr-ext
193
209
  requirement: !ruby/object:Gem::Requirement
194
210
  requirements:
195
- - - ~>
211
+ - - "~>"
196
212
  - !ruby/object:Gem::Version
197
213
  version: 1.0.3
198
214
  type: :runtime
199
215
  prerelease: false
200
216
  version_requirements: !ruby/object:Gem::Requirement
201
217
  requirements:
202
- - - ~>
218
+ - - "~>"
203
219
  - !ruby/object:Gem::Version
204
220
  version: 1.0.3
205
221
  - !ruby/object:Gem::Dependency
206
222
  name: ruby-cache
207
223
  requirement: !ruby/object:Gem::Requirement
208
224
  requirements:
209
- - - ~>
225
+ - - "~>"
210
226
  - !ruby/object:Gem::Version
211
227
  version: 0.3.0
212
228
  type: :runtime
213
229
  prerelease: false
214
230
  version_requirements: !ruby/object:Gem::Requirement
215
231
  requirements:
216
- - - ~>
232
+ - - "~>"
217
233
  - !ruby/object:Gem::Version
218
234
  version: 0.3.0
219
235
  - !ruby/object:Gem::Dependency
220
236
  name: ruby-graphviz
221
237
  requirement: !ruby/object:Gem::Requirement
222
238
  requirements:
223
- - - ~>
239
+ - - ">="
224
240
  - !ruby/object:Gem::Version
225
- version: 1.0.9
241
+ version: '0'
226
242
  type: :runtime
227
243
  prerelease: false
228
244
  version_requirements: !ruby/object:Gem::Requirement
229
245
  requirements:
230
- - - ~>
246
+ - - ">="
231
247
  - !ruby/object:Gem::Version
232
- version: 1.0.9
248
+ version: '0'
233
249
  - !ruby/object:Gem::Dependency
234
250
  name: rubydora
235
251
  requirement: !ruby/object:Gem::Requirement
236
252
  requirements:
237
- - - ~>
253
+ - - "~>"
238
254
  - !ruby/object:Gem::Version
239
255
  version: 1.6.5
240
256
  type: :runtime
241
257
  prerelease: false
242
258
  version_requirements: !ruby/object:Gem::Requirement
243
259
  requirements:
244
- - - ~>
260
+ - - "~>"
245
261
  - !ruby/object:Gem::Version
246
262
  version: 1.6.5
247
263
  - !ruby/object:Gem::Dependency
248
264
  name: solrizer
249
265
  requirement: !ruby/object:Gem::Requirement
250
266
  requirements:
251
- - - ~>
267
+ - - "~>"
252
268
  - !ruby/object:Gem::Version
253
269
  version: '3.0'
254
270
  type: :runtime
255
271
  prerelease: false
256
272
  version_requirements: !ruby/object:Gem::Requirement
257
273
  requirements:
258
- - - ~>
274
+ - - "~>"
259
275
  - !ruby/object:Gem::Version
260
276
  version: '3.0'
261
277
  - !ruby/object:Gem::Dependency
262
278
  name: systemu
263
279
  requirement: !ruby/object:Gem::Requirement
264
280
  requirements:
265
- - - ~>
281
+ - - "~>"
266
282
  - !ruby/object:Gem::Version
267
283
  version: 2.6.0
268
284
  type: :runtime
269
285
  prerelease: false
270
286
  version_requirements: !ruby/object:Gem::Requirement
271
287
  requirements:
272
- - - ~>
288
+ - - "~>"
273
289
  - !ruby/object:Gem::Version
274
290
  version: 2.6.0
275
291
  - !ruby/object:Gem::Dependency
276
292
  name: uuidtools
277
293
  requirement: !ruby/object:Gem::Requirement
278
294
  requirements:
279
- - - ~>
295
+ - - "~>"
280
296
  - !ruby/object:Gem::Version
281
297
  version: 2.1.4
282
298
  type: :runtime
283
299
  prerelease: false
284
300
  version_requirements: !ruby/object:Gem::Requirement
285
301
  requirements:
286
- - - ~>
302
+ - - "~>"
287
303
  - !ruby/object:Gem::Version
288
304
  version: 2.1.4
289
305
  - !ruby/object:Gem::Dependency
290
306
  name: osullivan
291
307
  requirement: !ruby/object:Gem::Requirement
292
308
  requirements:
293
- - - ~>
309
+ - - "~>"
294
310
  - !ruby/object:Gem::Version
295
311
  version: 0.0.3
296
312
  type: :runtime
297
313
  prerelease: false
298
314
  version_requirements: !ruby/object:Gem::Requirement
299
315
  requirements:
300
- - - ~>
316
+ - - "~>"
301
317
  - !ruby/object:Gem::Version
302
318
  version: 0.0.3
303
- - !ruby/object:Gem::Dependency
304
- name: addressable
305
- requirement: !ruby/object:Gem::Requirement
306
- requirements:
307
- - - '='
308
- - !ruby/object:Gem::Version
309
- version: 2.3.5
310
- type: :runtime
311
- prerelease: false
312
- version_requirements: !ruby/object:Gem::Requirement
313
- requirements:
314
- - - '='
315
- - !ruby/object:Gem::Version
316
- version: 2.3.5
317
319
  - !ruby/object:Gem::Dependency
318
320
  name: retries
319
321
  requirement: !ruby/object:Gem::Requirement
320
322
  requirements:
321
- - - ! '>='
323
+ - - ">="
322
324
  - !ruby/object:Gem::Version
323
325
  version: '0'
324
326
  type: :runtime
325
327
  prerelease: false
326
328
  version_requirements: !ruby/object:Gem::Requirement
327
329
  requirements:
328
- - - ! '>='
330
+ - - ">="
329
331
  - !ruby/object:Gem::Version
330
332
  version: '0'
331
333
  - !ruby/object:Gem::Dependency
332
334
  name: dor-workflow-service
333
335
  requirement: !ruby/object:Gem::Requirement
334
336
  requirements:
335
- - - ~>
337
+ - - "~>"
336
338
  - !ruby/object:Gem::Version
337
- version: '1.7'
338
- - - ! '>='
339
+ version: '1.8'
340
+ - - ">="
339
341
  - !ruby/object:Gem::Version
340
- version: 1.7.1
342
+ version: 1.8.0
341
343
  type: :runtime
342
344
  prerelease: false
343
345
  version_requirements: !ruby/object:Gem::Requirement
344
346
  requirements:
345
- - - ~>
347
+ - - "~>"
346
348
  - !ruby/object:Gem::Version
347
- version: '1.7'
348
- - - ! '>='
349
+ version: '1.8'
350
+ - - ">="
349
351
  - !ruby/object:Gem::Version
350
- version: 1.7.1
352
+ version: 1.8.0
351
353
  - !ruby/object:Gem::Dependency
352
354
  name: druid-tools
353
355
  requirement: !ruby/object:Gem::Requirement
354
356
  requirements:
355
- - - ~>
357
+ - - "~>"
356
358
  - !ruby/object:Gem::Version
357
359
  version: '0.4'
358
- - - ! '>='
360
+ - - ">="
359
361
  - !ruby/object:Gem::Version
360
362
  version: 0.4.1
361
363
  type: :runtime
362
364
  prerelease: false
363
365
  version_requirements: !ruby/object:Gem::Requirement
364
366
  requirements:
365
- - - ~>
367
+ - - "~>"
366
368
  - !ruby/object:Gem::Version
367
369
  version: '0.4'
368
- - - ! '>='
370
+ - - ">="
369
371
  - !ruby/object:Gem::Version
370
372
  version: 0.4.1
371
373
  - !ruby/object:Gem::Dependency
372
374
  name: dor-rights-auth
373
375
  requirement: !ruby/object:Gem::Requirement
374
376
  requirements:
375
- - - ~>
377
+ - - "~>"
376
378
  - !ruby/object:Gem::Version
377
379
  version: '1.0'
378
- - - ! '>='
380
+ - - ">="
379
381
  - !ruby/object:Gem::Version
380
- version: 1.0.1
382
+ version: 1.0.2
381
383
  type: :runtime
382
384
  prerelease: false
383
385
  version_requirements: !ruby/object:Gem::Requirement
384
386
  requirements:
385
- - - ~>
387
+ - - "~>"
386
388
  - !ruby/object:Gem::Version
387
389
  version: '1.0'
388
- - - ! '>='
390
+ - - ">="
389
391
  - !ruby/object:Gem::Version
390
- version: 1.0.1
392
+ version: 1.0.2
391
393
  - !ruby/object:Gem::Dependency
392
394
  name: lyber-utils
393
395
  requirement: !ruby/object:Gem::Requirement
394
396
  requirements:
395
- - - ~>
397
+ - - "~>"
396
398
  - !ruby/object:Gem::Version
397
399
  version: 0.1.2
398
400
  type: :runtime
399
401
  prerelease: false
400
402
  version_requirements: !ruby/object:Gem::Requirement
401
403
  requirements:
402
- - - ~>
404
+ - - "~>"
403
405
  - !ruby/object:Gem::Version
404
406
  version: 0.1.2
405
407
  - !ruby/object:Gem::Dependency
406
408
  name: moab-versioning
407
409
  requirement: !ruby/object:Gem::Requirement
408
410
  requirements:
409
- - - ~>
411
+ - - "~>"
410
412
  - !ruby/object:Gem::Version
411
413
  version: 1.4.4
412
414
  type: :runtime
413
415
  prerelease: false
414
416
  version_requirements: !ruby/object:Gem::Requirement
415
417
  requirements:
416
- - - ~>
418
+ - - "~>"
417
419
  - !ruby/object:Gem::Version
418
420
  version: 1.4.4
421
+ - !ruby/object:Gem::Dependency
422
+ name: modsulator
423
+ requirement: !ruby/object:Gem::Requirement
424
+ requirements:
425
+ - - "~>"
426
+ - !ruby/object:Gem::Version
427
+ version: 0.0.7
428
+ type: :runtime
429
+ prerelease: false
430
+ version_requirements: !ruby/object:Gem::Requirement
431
+ requirements:
432
+ - - "~>"
433
+ - !ruby/object:Gem::Version
434
+ version: 0.0.7
419
435
  - !ruby/object:Gem::Dependency
420
436
  name: stanford-mods
421
437
  requirement: !ruby/object:Gem::Requirement
422
438
  requirements:
423
- - - ~>
439
+ - - "~>"
424
440
  - !ruby/object:Gem::Version
425
441
  version: '1.1'
426
442
  type: :runtime
427
443
  prerelease: false
428
444
  version_requirements: !ruby/object:Gem::Requirement
429
445
  requirements:
430
- - - ~>
446
+ - - "~>"
431
447
  - !ruby/object:Gem::Version
432
448
  version: '1.1'
433
449
  - !ruby/object:Gem::Dependency
434
450
  name: awesome_print
435
451
  requirement: !ruby/object:Gem::Requirement
436
452
  requirements:
437
- - - ! '>='
453
+ - - ">="
438
454
  - !ruby/object:Gem::Version
439
455
  version: '0'
440
456
  type: :development
441
457
  prerelease: false
442
458
  version_requirements: !ruby/object:Gem::Requirement
443
459
  requirements:
444
- - - ! '>='
460
+ - - ">="
445
461
  - !ruby/object:Gem::Version
446
462
  version: '0'
447
463
  - !ruby/object:Gem::Dependency
448
- name: fakeweb
464
+ name: coveralls
449
465
  requirement: !ruby/object:Gem::Requirement
450
466
  requirements:
451
- - - ~>
467
+ - - ">="
452
468
  - !ruby/object:Gem::Version
453
- version: 1.3.0
469
+ version: '0'
454
470
  type: :development
455
471
  prerelease: false
456
472
  version_requirements: !ruby/object:Gem::Requirement
457
473
  requirements:
458
- - - ~>
474
+ - - ">="
459
475
  - !ruby/object:Gem::Version
460
- version: 1.3.0
476
+ version: '0'
461
477
  - !ruby/object:Gem::Dependency
462
478
  name: haml
463
479
  requirement: !ruby/object:Gem::Requirement
464
480
  requirements:
465
- - - ~>
481
+ - - "~>"
466
482
  - !ruby/object:Gem::Version
467
483
  version: 4.0.4
468
484
  type: :development
469
485
  prerelease: false
470
486
  version_requirements: !ruby/object:Gem::Requirement
471
487
  requirements:
472
- - - ~>
488
+ - - "~>"
473
489
  - !ruby/object:Gem::Version
474
490
  version: 4.0.4
475
491
  - !ruby/object:Gem::Dependency
476
492
  name: jhove-service
477
493
  requirement: !ruby/object:Gem::Requirement
478
494
  requirements:
479
- - - ~>
495
+ - - "~>"
480
496
  - !ruby/object:Gem::Version
481
497
  version: 1.0.1
482
498
  type: :development
483
499
  prerelease: false
484
500
  version_requirements: !ruby/object:Gem::Requirement
485
501
  requirements:
486
- - - ~>
502
+ - - "~>"
487
503
  - !ruby/object:Gem::Version
488
504
  version: 1.0.1
489
505
  - !ruby/object:Gem::Dependency
490
506
  name: pry
491
507
  requirement: !ruby/object:Gem::Requirement
492
508
  requirements:
493
- - - ! '>='
509
+ - - ">="
494
510
  - !ruby/object:Gem::Version
495
511
  version: '0'
496
512
  type: :development
497
513
  prerelease: false
498
514
  version_requirements: !ruby/object:Gem::Requirement
499
515
  requirements:
500
- - - ! '>='
516
+ - - ">="
501
517
  - !ruby/object:Gem::Version
502
518
  version: '0'
503
519
  - !ruby/object:Gem::Dependency
504
520
  name: rake
505
521
  requirement: !ruby/object:Gem::Requirement
506
522
  requirements:
507
- - - ~>
523
+ - - "~>"
508
524
  - !ruby/object:Gem::Version
509
525
  version: '10.0'
510
526
  type: :development
511
527
  prerelease: false
512
528
  version_requirements: !ruby/object:Gem::Requirement
513
529
  requirements:
514
- - - ~>
530
+ - - "~>"
515
531
  - !ruby/object:Gem::Version
516
532
  version: '10.0'
517
533
  - !ruby/object:Gem::Dependency
518
534
  name: rdoc
519
535
  requirement: !ruby/object:Gem::Requirement
520
536
  requirements:
521
- - - ~>
537
+ - - "~>"
522
538
  - !ruby/object:Gem::Version
523
539
  version: 4.0.1
524
540
  type: :development
525
541
  prerelease: false
526
542
  version_requirements: !ruby/object:Gem::Requirement
527
543
  requirements:
528
- - - ~>
544
+ - - "~>"
529
545
  - !ruby/object:Gem::Version
530
546
  version: 4.0.1
531
547
  - !ruby/object:Gem::Dependency
532
548
  name: rspec
533
549
  requirement: !ruby/object:Gem::Requirement
534
550
  requirements:
535
- - - ~>
551
+ - - "~>"
536
552
  - !ruby/object:Gem::Version
537
553
  version: '3.1'
538
554
  type: :development
539
555
  prerelease: false
540
556
  version_requirements: !ruby/object:Gem::Requirement
541
557
  requirements:
542
- - - ~>
558
+ - - "~>"
543
559
  - !ruby/object:Gem::Version
544
560
  version: '3.1'
545
561
  - !ruby/object:Gem::Dependency
546
562
  name: yard
547
563
  requirement: !ruby/object:Gem::Requirement
548
564
  requirements:
549
- - - ~>
565
+ - - "~>"
550
566
  - !ruby/object:Gem::Version
551
567
  version: 0.8.7
552
568
  type: :development
553
569
  prerelease: false
554
570
  version_requirements: !ruby/object:Gem::Requirement
555
571
  requirements:
556
- - - ~>
572
+ - - "~>"
557
573
  - !ruby/object:Gem::Version
558
574
  version: 0.8.7
559
575
  description: Contains classes to register objects and initialize workflows
@@ -564,7 +580,10 @@ extensions: []
564
580
  extra_rdoc_files: []
565
581
  files:
566
582
  - config/certs/README
583
+ - config/certs/robots-dor-dev.crt
584
+ - config/certs/robots-dor-dev.key
567
585
  - config/config_defaults.yml
586
+ - config/dev_console_env.rb
568
587
  - config/dev_console_env.rb.example
569
588
  - config/predicate_mappings.yml
570
589
  - lib/dor-services.rb
@@ -608,7 +627,6 @@ files:
608
627
  - lib/dor/models/item.rb
609
628
  - lib/dor/models/itemizable.rb
610
629
  - lib/dor/models/mods2dc.xslt
611
- - lib/dor/models/presentable.rb
612
630
  - lib/dor/models/preservable.rb
613
631
  - lib/dor/models/processable.rb
614
632
  - lib/dor/models/publishable.rb
@@ -655,17 +673,17 @@ require_paths:
655
673
  - lib
656
674
  required_ruby_version: !ruby/object:Gem::Requirement
657
675
  requirements:
658
- - - ! '>='
676
+ - - ">="
659
677
  - !ruby/object:Gem::Version
660
678
  version: '0'
661
679
  required_rubygems_version: !ruby/object:Gem::Requirement
662
680
  requirements:
663
- - - ! '>='
681
+ - - ">="
664
682
  - !ruby/object:Gem::Version
665
683
  version: 1.3.6
666
684
  requirements: []
667
685
  rubyforge_project:
668
- rubygems_version: 2.4.8
686
+ rubygems_version: 2.4.6
669
687
  signing_key:
670
688
  specification_version: 4
671
689
  summary: Ruby implmentation of DOR services used by the SULAIR Digital Library