dor-services 5.1.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +13 -5
  2. data/config/dev_console_env.rb +45 -32
  3. data/lib/dor-services.rb +52 -49
  4. data/lib/dor/datastreams/administrative_metadata_ds.rb +2 -2
  5. data/lib/dor/datastreams/content_metadata_ds.rb +114 -144
  6. data/lib/dor/datastreams/default_object_rights_ds.rb +10 -12
  7. data/lib/dor/datastreams/desc_metadata_ds.rb +4 -4
  8. data/lib/dor/datastreams/events_ds.rb +8 -8
  9. data/lib/dor/datastreams/identity_metadata_ds.rb +40 -23
  10. data/lib/dor/datastreams/rights_metadata_ds.rb +109 -0
  11. data/lib/dor/datastreams/role_metadata_ds.rb +4 -4
  12. data/lib/dor/datastreams/simple_dublin_core_ds.rb +6 -6
  13. data/lib/dor/datastreams/version_metadata_ds.rb +29 -10
  14. data/lib/dor/models/admin_policy_object.rb +3 -3
  15. data/lib/dor/models/describable.rb +5 -4
  16. data/lib/dor/models/editable.rb +29 -33
  17. data/lib/dor/models/embargoable.rb +1 -12
  18. data/lib/dor/models/governable.rb +4 -27
  19. data/lib/dor/models/identifiable.rb +60 -58
  20. data/lib/dor/models/item.rb +5 -9
  21. data/lib/dor/models/presentable.rb +15 -2
  22. data/lib/dor/models/processable.rb +34 -30
  23. data/lib/dor/models/publishable.rb +5 -14
  24. data/lib/dor/models/{releasable.rb → releaseable.rb} +59 -15
  25. data/lib/dor/models/rightsable.rb +25 -0
  26. data/lib/dor/models/versionable.rb +6 -3
  27. data/lib/dor/models/workflow_object.rb +4 -4
  28. data/lib/dor/services/cleanup_reset_service.rb +1 -2
  29. data/lib/dor/services/cleanup_service.rb +1 -1
  30. data/lib/dor/services/registration_service.rb +0 -3
  31. data/lib/dor/services/sdr_ingest_service.rb +1 -1
  32. data/lib/dor/services/search_service.rb +1 -1
  33. data/lib/dor/utils/sdr_client.rb +23 -0
  34. data/lib/dor/version.rb +1 -1
  35. data/lib/dor/workflow/document.rb +23 -22
  36. data/lib/tasks/rdoc.rake +4 -4
  37. metadata +113 -96
  38. data/config/environments/development.rb +0 -84
  39. data/config/environments/development.rb.old +0 -84
  40. data/config/environments/test.rb +0 -84
  41. data/lib/tasks/dor.rake +0 -39
@@ -48,7 +48,7 @@ module Dor
48
48
  url = "objects/#{druid}/manifest/signatureCatalog.xml"
49
49
  response = sdr_client[url].get
50
50
  Moab::SignatureCatalog.parse(response)
51
- rescue
51
+ rescue RestClient::ResourceNotFound
52
52
  Moab::SignatureCatalog.new(:digital_object_id => druid, :version_id => 0)
53
53
  end
54
54
 
@@ -111,7 +111,7 @@ module Dor
111
111
  end
112
112
 
113
113
  def find_sdr_graveyard_apo_druid
114
- r = Dor::SearchService.query('dc_title_t:"SDR Graveyard"', :fl => 'id')
114
+ r = Dor::SearchService.query('dc_title_tesim:"SDR Graveyard"', :fl => 'id')
115
115
  if r.docs.empty?
116
116
  nil
117
117
  else
@@ -0,0 +1,23 @@
1
+ module Sdr
2
+
3
+ module Client
4
+ class << self
5
+
6
+ # @param [String] druid id of the object you want the version of
7
+ # @return [Integer] the current version from SDR
8
+ def current_version druid
9
+ sdr_client = Dor::Config.sdr.rest_client
10
+ xml = sdr_client["objects/#{druid}/current_version"].get
11
+
12
+ begin
13
+ doc = Nokogiri::XML xml
14
+ raise if doc.root.name != 'currentVersion'
15
+ return Integer(doc.text)
16
+ rescue => e
17
+ raise "Unable to parse XML from SDR current_version API call: #{xml}"
18
+ end
19
+ end
20
+
21
+ end
22
+ end
23
+ end
data/lib/dor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.1.0'
2
+ VERSION = '5.1.1'
3
3
  end
@@ -91,41 +91,42 @@ module Workflow
91
91
  def to_solr(solr_doc=Hash.new, *args)
92
92
  wf_name = self.workflowId.first
93
93
  repo = self.repository.first
94
- add_solr_value(solr_doc, 'wf', wf_name, :string, [:facetable])
95
- add_solr_value(solr_doc, 'wf_wps', wf_name, :string, [:facetable])
96
- add_solr_value(solr_doc, 'wf_wsp', wf_name, :string, [:facetable])
94
+ wf_solr_type = :string
95
+ wf_solr_attrs = [:symbol]
96
+ add_solr_value(solr_doc, 'wf', wf_name, wf_solr_type, wf_solr_attrs)
97
+ add_solr_value(solr_doc, 'wf_wps', wf_name, wf_solr_type, wf_solr_attrs)
98
+ add_solr_value(solr_doc, 'wf_wsp', wf_name, wf_solr_type, wf_solr_attrs)
97
99
  status = processes.empty? ? 'empty' : (workflow_should_show_completed?(processes) ? 'completed' : 'active')
98
100
  errors = processes.select(&:error?).count
99
- add_solr_value(solr_doc, 'workflow_status', [wf_name,status,errors,repo].join('|'), :string, [:displayable])
101
+ add_solr_value(solr_doc, 'workflow_status', [wf_name,status,errors,repo].join('|'), wf_solr_type, wf_solr_attrs)
100
102
 
101
103
  processes.each do |process|
102
104
  if process.status.present?
103
105
  #add a record of the robot having operated on this item, so we can track robot activity
104
106
  if process.date_time and process.status and (process.status == 'completed' || process.status == 'error')
105
- add_solr_value(solr_doc, "wf_#{wf_name}_#{process.name}", process.date_time+'Z', :date)
107
+ solr_doc["wf_#{wf_name}_#{process.name}_dttsi"] = "#{process.date_time}Z"
106
108
  end
107
- add_solr_value(solr_doc, 'wf_error', "#{wf_name}:#{process.name}:#{process.error_message}", :string, [:facetable,:displayable]) if process.error_message #index the error message without the druid so we hopefully get some overlap
108
- add_solr_value(solr_doc, 'wf_wsp', "#{wf_name}:#{process.status}", :string, [:facetable])
109
- add_solr_value(solr_doc, 'wf_wsp', "#{wf_name}:#{process.status}:#{process.name}", :string, [:facetable])
110
- add_solr_value(solr_doc, 'wf_wps', "#{wf_name}:#{process.name}", :string, [:facetable, :symbol])
111
- add_solr_value(solr_doc, 'wf_wps', "#{wf_name}:#{process.name}:#{process.status}", :string, [:facetable, :symbol])
112
- add_solr_value(solr_doc, 'wf_swp', "#{process.status}", :string, [:facetable])
113
- add_solr_value(solr_doc, 'wf_swp', "#{process.status}:#{wf_name}", :string, [:facetable])
114
- add_solr_value(solr_doc, 'wf_swp', "#{process.status}:#{wf_name}:#{process.name}", :string, [:facetable])
109
+ add_solr_value(solr_doc, 'wf_error', "#{wf_name}:#{process.name}:#{process.error_message}", wf_solr_type, wf_solr_attrs) if process.error_message #index the error message without the druid so we hopefully get some overlap
110
+ add_solr_value(solr_doc, 'wf_wsp', "#{wf_name}:#{process.status}", wf_solr_type, wf_solr_attrs)
111
+ add_solr_value(solr_doc, 'wf_wsp', "#{wf_name}:#{process.status}:#{process.name}", wf_solr_type, wf_solr_attrs)
112
+ add_solr_value(solr_doc, 'wf_wps', "#{wf_name}:#{process.name}", wf_solr_type, wf_solr_attrs)
113
+ add_solr_value(solr_doc, 'wf_wps', "#{wf_name}:#{process.name}:#{process.status}", wf_solr_type, wf_solr_attrs)
114
+ add_solr_value(solr_doc, 'wf_swp', "#{process.status}", wf_solr_type, wf_solr_attrs)
115
+ add_solr_value(solr_doc, 'wf_swp', "#{process.status}:#{wf_name}", wf_solr_type, wf_solr_attrs)
116
+ add_solr_value(solr_doc, 'wf_swp', "#{process.status}:#{wf_name}:#{process.name}", wf_solr_type, wf_solr_attrs)
115
117
  if process.state != process.status
116
- add_solr_value(solr_doc, 'wf_wsp', "#{wf_name}:#{process.state}:#{process.name}", :string, [:facetable])
117
- add_solr_value(solr_doc, 'wf_wps', "#{wf_name}:#{process.name}:#{process.state}", :string, [:facetable, :symbol])
118
- add_solr_value(solr_doc, 'wf_swp', "#{process.state}", :string, [:facetable])
119
- add_solr_value(solr_doc, 'wf_swp', "#{process.state}:#{wf_name}", :string, [:facetable])
120
- add_solr_value(solr_doc, 'wf_swp', "#{process.state}:#{wf_name}:#{process.name}", :string, [:facetable])
118
+ add_solr_value(solr_doc, 'wf_wsp', "#{wf_name}:#{process.state}:#{process.name}", wf_solr_type, wf_solr_attrs)
119
+ add_solr_value(solr_doc, 'wf_wps', "#{wf_name}:#{process.name}:#{process.state}", wf_solr_type, wf_solr_attrs)
120
+ add_solr_value(solr_doc, 'wf_swp', "#{process.state}", wf_solr_type, wf_solr_attrs)
121
+ add_solr_value(solr_doc, 'wf_swp', "#{process.state}:#{wf_name}", wf_solr_type, wf_solr_attrs)
122
+ add_solr_value(solr_doc, 'wf_swp', "#{process.state}:#{wf_name}:#{process.name}", wf_solr_type, wf_solr_attrs)
121
123
  end
122
124
  end
123
125
  end
124
126
 
125
- solr_doc[Solrizer.solr_name('wf_wps', :symbol)].uniq! if solr_doc[Solrizer.solr_name('wf_wps', :symbol)]
126
- solr_doc[Solrizer.solr_name('wf_wps', :facetable)].uniq! if solr_doc[Solrizer.solr_name('wf_wps', :facetable)]
127
- solr_doc[Solrizer.solr_name('wf_wsp', :facetable)].uniq! if solr_doc[Solrizer.solr_name('wf_wsp', :facetable)]
128
- solr_doc[Solrizer.solr_name('wf_swp', :facetable)].uniq! if solr_doc[Solrizer.solr_name('wf_swp', :facetable)]
127
+ solr_doc[Solrizer.solr_name('wf_wps', :symbol)].uniq! if solr_doc[Solrizer.solr_name('wf_wps', :symbol)]
128
+ solr_doc[Solrizer.solr_name('wf_wsp', :symbol)].uniq! if solr_doc[Solrizer.solr_name('wf_wsp', :symbol)]
129
+ solr_doc[Solrizer.solr_name('wf_swp', :symbol)].uniq! if solr_doc[Solrizer.solr_name('wf_swp', :symbol)]
129
130
  solr_doc['workflow_status'].uniq! if solr_doc['workflow_status']
130
131
 
131
132
  solr_doc
data/lib/tasks/rdoc.rake CHANGED
@@ -11,11 +11,11 @@ namespace :doc do
11
11
 
12
12
  YARD::Rake::YardocTask.new(:generate) do |yt|
13
13
  yt.files = Dir.glob(File.join(project_root, 'lib', '*.rb')) +
14
- Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
15
- [ File.join(project_root, 'README.rdoc') ] +
14
+ Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) + ['-']
15
+ [ File.join(project_root, 'README.md') ] +
16
16
  [ File.join(project_root, 'LICENSE') ]
17
17
 
18
- yt.options = ['--output-dir', doc_destination, '--readme', 'README.rdoc']
18
+ yt.options = ['--output-dir', doc_destination, '--readme', 'README.md']
19
19
  end
20
20
  rescue LoadError
21
21
  desc "Generate YARD Documentation"
@@ -29,4 +29,4 @@ namespace :doc do
29
29
  rm_r doc_destination if File.exists?(doc_destination)
30
30
  end
31
31
 
32
- end
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.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -12,300 +12,292 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-04-07 00:00:00.000000000 Z
15
+ date: 2015-07-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: active-fedora
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - "~>"
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
23
  version: '6.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - "~>"
28
+ - - ~>
29
29
  - !ruby/object:Gem::Version
30
30
  version: '6.0'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: activesupport
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - ">="
35
+ - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: 3.2.18
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - ">="
42
+ - - ! '>='
43
43
  - !ruby/object:Gem::Version
44
44
  version: 3.2.18
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: confstruct
47
47
  requirement: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - "~>"
49
+ - - ~>
50
50
  - !ruby/object:Gem::Version
51
51
  version: 0.2.7
52
52
  type: :runtime
53
53
  prerelease: false
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - "~>"
56
+ - - ~>
57
57
  - !ruby/object:Gem::Version
58
58
  version: 0.2.7
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: equivalent-xml
61
61
  requirement: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - "~>"
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: '0.5'
66
+ - - ! '>='
64
67
  - !ruby/object:Gem::Version
65
68
  version: 0.5.1
66
69
  type: :runtime
67
70
  prerelease: false
68
71
  version_requirements: !ruby/object:Gem::Requirement
69
72
  requirements:
70
- - - "~>"
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '0.5'
76
+ - - ! '>='
71
77
  - !ruby/object:Gem::Version
72
78
  version: 0.5.1
73
79
  - !ruby/object:Gem::Dependency
74
80
  name: json
75
81
  requirement: !ruby/object:Gem::Requirement
76
82
  requirements:
77
- - - "~>"
83
+ - - ~>
78
84
  - !ruby/object:Gem::Version
79
85
  version: 1.8.1
80
86
  type: :runtime
81
87
  prerelease: false
82
88
  version_requirements: !ruby/object:Gem::Requirement
83
89
  requirements:
84
- - - "~>"
90
+ - - ~>
85
91
  - !ruby/object:Gem::Version
86
92
  version: 1.8.1
87
93
  - !ruby/object:Gem::Dependency
88
94
  name: net-sftp
89
95
  requirement: !ruby/object:Gem::Requirement
90
96
  requirements:
91
- - - "~>"
97
+ - - ~>
92
98
  - !ruby/object:Gem::Version
93
99
  version: 2.1.2
94
100
  type: :runtime
95
101
  prerelease: false
96
102
  version_requirements: !ruby/object:Gem::Requirement
97
103
  requirements:
98
- - - "~>"
104
+ - - ~>
99
105
  - !ruby/object:Gem::Version
100
106
  version: 2.1.2
101
107
  - !ruby/object:Gem::Dependency
102
108
  name: net-ssh
103
109
  requirement: !ruby/object:Gem::Requirement
104
110
  requirements:
105
- - - "~>"
111
+ - - ~>
106
112
  - !ruby/object:Gem::Version
107
113
  version: 2.6.5
108
114
  type: :runtime
109
115
  prerelease: false
110
116
  version_requirements: !ruby/object:Gem::Requirement
111
117
  requirements:
112
- - - "~>"
118
+ - - ~>
113
119
  - !ruby/object:Gem::Version
114
120
  version: 2.6.5
115
121
  - !ruby/object:Gem::Dependency
116
122
  name: nokogiri
117
123
  requirement: !ruby/object:Gem::Requirement
118
124
  requirements:
119
- - - "~>"
125
+ - - ~>
120
126
  - !ruby/object:Gem::Version
121
127
  version: 1.6.0
122
128
  type: :runtime
123
129
  prerelease: false
124
130
  version_requirements: !ruby/object:Gem::Requirement
125
131
  requirements:
126
- - - "~>"
132
+ - - ~>
127
133
  - !ruby/object:Gem::Version
128
134
  version: 1.6.0
129
135
  - !ruby/object:Gem::Dependency
130
136
  name: om
131
137
  requirement: !ruby/object:Gem::Requirement
132
138
  requirements:
133
- - - "~>"
139
+ - - ~>
134
140
  - !ruby/object:Gem::Version
135
141
  version: '3.0'
136
142
  type: :runtime
137
143
  prerelease: false
138
144
  version_requirements: !ruby/object:Gem::Requirement
139
145
  requirements:
140
- - - "~>"
146
+ - - ~>
141
147
  - !ruby/object:Gem::Version
142
148
  version: '3.0'
143
149
  - !ruby/object:Gem::Dependency
144
150
  name: progressbar
145
151
  requirement: !ruby/object:Gem::Requirement
146
152
  requirements:
147
- - - "~>"
153
+ - - ~>
148
154
  - !ruby/object:Gem::Version
149
155
  version: 0.21.0
150
156
  type: :runtime
151
157
  prerelease: false
152
158
  version_requirements: !ruby/object:Gem::Requirement
153
159
  requirements:
154
- - - "~>"
160
+ - - ~>
155
161
  - !ruby/object:Gem::Version
156
162
  version: 0.21.0
157
163
  - !ruby/object:Gem::Dependency
158
164
  name: rdf
159
165
  requirement: !ruby/object:Gem::Requirement
160
166
  requirements:
161
- - - "~>"
167
+ - - ~>
162
168
  - !ruby/object:Gem::Version
163
169
  version: 1.1.7
164
170
  type: :runtime
165
171
  prerelease: false
166
172
  version_requirements: !ruby/object:Gem::Requirement
167
173
  requirements:
168
- - - "~>"
174
+ - - ~>
169
175
  - !ruby/object:Gem::Version
170
176
  version: 1.1.7
171
177
  - !ruby/object:Gem::Dependency
172
178
  name: rest-client
173
179
  requirement: !ruby/object:Gem::Requirement
174
180
  requirements:
175
- - - "~>"
181
+ - - ~>
176
182
  - !ruby/object:Gem::Version
177
183
  version: '1.7'
178
184
  type: :runtime
179
185
  prerelease: false
180
186
  version_requirements: !ruby/object:Gem::Requirement
181
187
  requirements:
182
- - - "~>"
188
+ - - ~>
183
189
  - !ruby/object:Gem::Version
184
190
  version: '1.7'
185
191
  - !ruby/object:Gem::Dependency
186
192
  name: rsolr-ext
187
193
  requirement: !ruby/object:Gem::Requirement
188
194
  requirements:
189
- - - "~>"
195
+ - - ~>
190
196
  - !ruby/object:Gem::Version
191
197
  version: 1.0.3
192
198
  type: :runtime
193
199
  prerelease: false
194
200
  version_requirements: !ruby/object:Gem::Requirement
195
201
  requirements:
196
- - - "~>"
202
+ - - ~>
197
203
  - !ruby/object:Gem::Version
198
204
  version: 1.0.3
199
205
  - !ruby/object:Gem::Dependency
200
206
  name: ruby-cache
201
207
  requirement: !ruby/object:Gem::Requirement
202
208
  requirements:
203
- - - "~>"
209
+ - - ~>
204
210
  - !ruby/object:Gem::Version
205
211
  version: 0.3.0
206
212
  type: :runtime
207
213
  prerelease: false
208
214
  version_requirements: !ruby/object:Gem::Requirement
209
215
  requirements:
210
- - - "~>"
216
+ - - ~>
211
217
  - !ruby/object:Gem::Version
212
218
  version: 0.3.0
213
219
  - !ruby/object:Gem::Dependency
214
220
  name: ruby-graphviz
215
221
  requirement: !ruby/object:Gem::Requirement
216
222
  requirements:
217
- - - "~>"
223
+ - - ~>
218
224
  - !ruby/object:Gem::Version
219
225
  version: 1.0.9
220
226
  type: :runtime
221
227
  prerelease: false
222
228
  version_requirements: !ruby/object:Gem::Requirement
223
229
  requirements:
224
- - - "~>"
230
+ - - ~>
225
231
  - !ruby/object:Gem::Version
226
232
  version: 1.0.9
227
233
  - !ruby/object:Gem::Dependency
228
234
  name: rubydora
229
235
  requirement: !ruby/object:Gem::Requirement
230
236
  requirements:
231
- - - "~>"
237
+ - - ~>
232
238
  - !ruby/object:Gem::Version
233
239
  version: 1.6.5
234
240
  type: :runtime
235
241
  prerelease: false
236
242
  version_requirements: !ruby/object:Gem::Requirement
237
243
  requirements:
238
- - - "~>"
244
+ - - ~>
239
245
  - !ruby/object:Gem::Version
240
246
  version: 1.6.5
241
247
  - !ruby/object:Gem::Dependency
242
248
  name: solrizer
243
249
  requirement: !ruby/object:Gem::Requirement
244
250
  requirements:
245
- - - "~>"
251
+ - - ~>
246
252
  - !ruby/object:Gem::Version
247
253
  version: '3.0'
248
254
  type: :runtime
249
255
  prerelease: false
250
256
  version_requirements: !ruby/object:Gem::Requirement
251
257
  requirements:
252
- - - "~>"
258
+ - - ~>
253
259
  - !ruby/object:Gem::Version
254
260
  version: '3.0'
255
261
  - !ruby/object:Gem::Dependency
256
262
  name: systemu
257
263
  requirement: !ruby/object:Gem::Requirement
258
264
  requirements:
259
- - - "~>"
265
+ - - ~>
260
266
  - !ruby/object:Gem::Version
261
267
  version: 2.6.0
262
268
  type: :runtime
263
269
  prerelease: false
264
270
  version_requirements: !ruby/object:Gem::Requirement
265
271
  requirements:
266
- - - "~>"
272
+ - - ~>
267
273
  - !ruby/object:Gem::Version
268
274
  version: 2.6.0
269
275
  - !ruby/object:Gem::Dependency
270
276
  name: uuidtools
271
277
  requirement: !ruby/object:Gem::Requirement
272
278
  requirements:
273
- - - "~>"
279
+ - - ~>
274
280
  - !ruby/object:Gem::Version
275
281
  version: 2.1.4
276
282
  type: :runtime
277
283
  prerelease: false
278
284
  version_requirements: !ruby/object:Gem::Requirement
279
285
  requirements:
280
- - - "~>"
286
+ - - ~>
281
287
  - !ruby/object:Gem::Version
282
288
  version: 2.1.4
283
- - !ruby/object:Gem::Dependency
284
- name: validatable
285
- requirement: !ruby/object:Gem::Requirement
286
- requirements:
287
- - - "~>"
288
- - !ruby/object:Gem::Version
289
- version: 1.6.7
290
- type: :runtime
291
- prerelease: false
292
- version_requirements: !ruby/object:Gem::Requirement
293
- requirements:
294
- - - "~>"
295
- - !ruby/object:Gem::Version
296
- version: 1.6.7
297
289
  - !ruby/object:Gem::Dependency
298
290
  name: osullivan
299
291
  requirement: !ruby/object:Gem::Requirement
300
292
  requirements:
301
- - - "~>"
293
+ - - ~>
302
294
  - !ruby/object:Gem::Version
303
295
  version: 0.0.3
304
296
  type: :runtime
305
297
  prerelease: false
306
298
  version_requirements: !ruby/object:Gem::Requirement
307
299
  requirements:
308
- - - "~>"
300
+ - - ~>
309
301
  - !ruby/object:Gem::Version
310
302
  version: 0.0.3
311
303
  - !ruby/object:Gem::Dependency
@@ -326,216 +318,242 @@ dependencies:
326
318
  name: retries
327
319
  requirement: !ruby/object:Gem::Requirement
328
320
  requirements:
329
- - - ">="
321
+ - - ! '>='
330
322
  - !ruby/object:Gem::Version
331
323
  version: '0'
332
324
  type: :runtime
333
325
  prerelease: false
334
326
  version_requirements: !ruby/object:Gem::Requirement
335
327
  requirements:
336
- - - ">="
328
+ - - ! '>='
337
329
  - !ruby/object:Gem::Version
338
330
  version: '0'
339
331
  - !ruby/object:Gem::Dependency
340
332
  name: dor-workflow-service
341
333
  requirement: !ruby/object:Gem::Requirement
342
334
  requirements:
343
- - - "~>"
335
+ - - ~>
344
336
  - !ruby/object:Gem::Version
345
337
  version: '1.7'
346
- - - ">="
338
+ - - ! '>='
347
339
  - !ruby/object:Gem::Version
348
340
  version: 1.7.1
349
341
  type: :runtime
350
342
  prerelease: false
351
343
  version_requirements: !ruby/object:Gem::Requirement
352
344
  requirements:
353
- - - "~>"
345
+ - - ~>
354
346
  - !ruby/object:Gem::Version
355
347
  version: '1.7'
356
- - - ">="
348
+ - - ! '>='
357
349
  - !ruby/object:Gem::Version
358
350
  version: 1.7.1
359
351
  - !ruby/object:Gem::Dependency
360
352
  name: druid-tools
361
353
  requirement: !ruby/object:Gem::Requirement
362
354
  requirements:
363
- - - "~>"
355
+ - - ~>
364
356
  - !ruby/object:Gem::Version
365
357
  version: '0.4'
358
+ - - ! '>='
359
+ - !ruby/object:Gem::Version
360
+ version: 0.4.1
366
361
  type: :runtime
367
362
  prerelease: false
368
363
  version_requirements: !ruby/object:Gem::Requirement
369
364
  requirements:
370
- - - "~>"
365
+ - - ~>
371
366
  - !ruby/object:Gem::Version
372
367
  version: '0.4'
368
+ - - ! '>='
369
+ - !ruby/object:Gem::Version
370
+ version: 0.4.1
371
+ - !ruby/object:Gem::Dependency
372
+ name: dor-rights-auth
373
+ requirement: !ruby/object:Gem::Requirement
374
+ requirements:
375
+ - - ~>
376
+ - !ruby/object:Gem::Version
377
+ version: '1.0'
378
+ - - ! '>='
379
+ - !ruby/object:Gem::Version
380
+ version: 1.0.1
381
+ type: :runtime
382
+ prerelease: false
383
+ version_requirements: !ruby/object:Gem::Requirement
384
+ requirements:
385
+ - - ~>
386
+ - !ruby/object:Gem::Version
387
+ version: '1.0'
388
+ - - ! '>='
389
+ - !ruby/object:Gem::Version
390
+ version: 1.0.1
373
391
  - !ruby/object:Gem::Dependency
374
392
  name: lyber-utils
375
393
  requirement: !ruby/object:Gem::Requirement
376
394
  requirements:
377
- - - "~>"
395
+ - - ~>
378
396
  - !ruby/object:Gem::Version
379
397
  version: 0.1.2
380
398
  type: :runtime
381
399
  prerelease: false
382
400
  version_requirements: !ruby/object:Gem::Requirement
383
401
  requirements:
384
- - - "~>"
402
+ - - ~>
385
403
  - !ruby/object:Gem::Version
386
404
  version: 0.1.2
387
405
  - !ruby/object:Gem::Dependency
388
406
  name: moab-versioning
389
407
  requirement: !ruby/object:Gem::Requirement
390
408
  requirements:
391
- - - "~>"
409
+ - - ~>
392
410
  - !ruby/object:Gem::Version
393
411
  version: 1.4.4
394
412
  type: :runtime
395
413
  prerelease: false
396
414
  version_requirements: !ruby/object:Gem::Requirement
397
415
  requirements:
398
- - - "~>"
416
+ - - ~>
399
417
  - !ruby/object:Gem::Version
400
418
  version: 1.4.4
401
419
  - !ruby/object:Gem::Dependency
402
420
  name: stanford-mods
403
421
  requirement: !ruby/object:Gem::Requirement
404
422
  requirements:
405
- - - "~>"
423
+ - - ~>
406
424
  - !ruby/object:Gem::Version
407
425
  version: '1.1'
408
426
  type: :runtime
409
427
  prerelease: false
410
428
  version_requirements: !ruby/object:Gem::Requirement
411
429
  requirements:
412
- - - "~>"
430
+ - - ~>
413
431
  - !ruby/object:Gem::Version
414
432
  version: '1.1'
415
433
  - !ruby/object:Gem::Dependency
416
434
  name: awesome_print
417
435
  requirement: !ruby/object:Gem::Requirement
418
436
  requirements:
419
- - - ">="
437
+ - - ! '>='
420
438
  - !ruby/object:Gem::Version
421
439
  version: '0'
422
440
  type: :development
423
441
  prerelease: false
424
442
  version_requirements: !ruby/object:Gem::Requirement
425
443
  requirements:
426
- - - ">="
444
+ - - ! '>='
427
445
  - !ruby/object:Gem::Version
428
446
  version: '0'
429
447
  - !ruby/object:Gem::Dependency
430
448
  name: fakeweb
431
449
  requirement: !ruby/object:Gem::Requirement
432
450
  requirements:
433
- - - "~>"
451
+ - - ~>
434
452
  - !ruby/object:Gem::Version
435
453
  version: 1.3.0
436
454
  type: :development
437
455
  prerelease: false
438
456
  version_requirements: !ruby/object:Gem::Requirement
439
457
  requirements:
440
- - - "~>"
458
+ - - ~>
441
459
  - !ruby/object:Gem::Version
442
460
  version: 1.3.0
443
461
  - !ruby/object:Gem::Dependency
444
462
  name: haml
445
463
  requirement: !ruby/object:Gem::Requirement
446
464
  requirements:
447
- - - "~>"
465
+ - - ~>
448
466
  - !ruby/object:Gem::Version
449
467
  version: 4.0.4
450
468
  type: :development
451
469
  prerelease: false
452
470
  version_requirements: !ruby/object:Gem::Requirement
453
471
  requirements:
454
- - - "~>"
472
+ - - ~>
455
473
  - !ruby/object:Gem::Version
456
474
  version: 4.0.4
457
475
  - !ruby/object:Gem::Dependency
458
476
  name: jhove-service
459
477
  requirement: !ruby/object:Gem::Requirement
460
478
  requirements:
461
- - - "~>"
479
+ - - ~>
462
480
  - !ruby/object:Gem::Version
463
481
  version: 1.0.1
464
482
  type: :development
465
483
  prerelease: false
466
484
  version_requirements: !ruby/object:Gem::Requirement
467
485
  requirements:
468
- - - "~>"
486
+ - - ~>
469
487
  - !ruby/object:Gem::Version
470
488
  version: 1.0.1
471
489
  - !ruby/object:Gem::Dependency
472
490
  name: pry
473
491
  requirement: !ruby/object:Gem::Requirement
474
492
  requirements:
475
- - - ">="
493
+ - - ! '>='
476
494
  - !ruby/object:Gem::Version
477
495
  version: '0'
478
496
  type: :development
479
497
  prerelease: false
480
498
  version_requirements: !ruby/object:Gem::Requirement
481
499
  requirements:
482
- - - ">="
500
+ - - ! '>='
483
501
  - !ruby/object:Gem::Version
484
502
  version: '0'
485
503
  - !ruby/object:Gem::Dependency
486
504
  name: rake
487
505
  requirement: !ruby/object:Gem::Requirement
488
506
  requirements:
489
- - - "~>"
507
+ - - ~>
490
508
  - !ruby/object:Gem::Version
491
509
  version: '10.0'
492
510
  type: :development
493
511
  prerelease: false
494
512
  version_requirements: !ruby/object:Gem::Requirement
495
513
  requirements:
496
- - - "~>"
514
+ - - ~>
497
515
  - !ruby/object:Gem::Version
498
516
  version: '10.0'
499
517
  - !ruby/object:Gem::Dependency
500
518
  name: rdoc
501
519
  requirement: !ruby/object:Gem::Requirement
502
520
  requirements:
503
- - - "~>"
521
+ - - ~>
504
522
  - !ruby/object:Gem::Version
505
523
  version: 4.0.1
506
524
  type: :development
507
525
  prerelease: false
508
526
  version_requirements: !ruby/object:Gem::Requirement
509
527
  requirements:
510
- - - "~>"
528
+ - - ~>
511
529
  - !ruby/object:Gem::Version
512
530
  version: 4.0.1
513
531
  - !ruby/object:Gem::Dependency
514
532
  name: rspec
515
533
  requirement: !ruby/object:Gem::Requirement
516
534
  requirements:
517
- - - "~>"
535
+ - - ~>
518
536
  - !ruby/object:Gem::Version
519
537
  version: '3.1'
520
538
  type: :development
521
539
  prerelease: false
522
540
  version_requirements: !ruby/object:Gem::Requirement
523
541
  requirements:
524
- - - "~>"
542
+ - - ~>
525
543
  - !ruby/object:Gem::Version
526
544
  version: '3.1'
527
545
  - !ruby/object:Gem::Dependency
528
546
  name: yard
529
547
  requirement: !ruby/object:Gem::Requirement
530
548
  requirements:
531
- - - "~>"
549
+ - - ~>
532
550
  - !ruby/object:Gem::Version
533
551
  version: 0.8.7
534
552
  type: :development
535
553
  prerelease: false
536
554
  version_requirements: !ruby/object:Gem::Requirement
537
555
  requirements:
538
- - - "~>"
556
+ - - ~>
539
557
  - !ruby/object:Gem::Version
540
558
  version: 0.8.7
541
559
  description: Contains classes to register objects and initialize workflows
@@ -555,9 +573,6 @@ files:
555
573
  - config/config_defaults.yml
556
574
  - config/dev_console_env.rb
557
575
  - config/dev_console_env.rb.example
558
- - config/environments/development.rb
559
- - config/environments/development.rb.old
560
- - config/environments/test.rb
561
576
  - config/predicate_mappings.yml
562
577
  - lib/dor-services.rb
563
578
  - lib/dor/config.rb
@@ -571,6 +586,7 @@ files:
571
586
  - lib/dor/datastreams/geo_metadata_ds.rb
572
587
  - lib/dor/datastreams/identity.xsl
573
588
  - lib/dor/datastreams/identity_metadata_ds.rb
589
+ - lib/dor/datastreams/rights_metadata_ds.rb
574
590
  - lib/dor/datastreams/role_metadata_ds.rb
575
591
  - lib/dor/datastreams/simple_dublin_core_ds.rb
576
592
  - lib/dor/datastreams/version_metadata_ds.rb
@@ -603,7 +619,8 @@ files:
603
619
  - lib/dor/models/preservable.rb
604
620
  - lib/dor/models/processable.rb
605
621
  - lib/dor/models/publishable.rb
606
- - lib/dor/models/releasable.rb
622
+ - lib/dor/models/releaseable.rb
623
+ - lib/dor/models/rightsable.rb
607
624
  - lib/dor/models/set.rb
608
625
  - lib/dor/models/shelvable.rb
609
626
  - lib/dor/models/upgradable.rb
@@ -625,6 +642,7 @@ files:
625
642
  - lib/dor/services/tei2dc.xslt
626
643
  - lib/dor/utils/ng_tidy.rb
627
644
  - lib/dor/utils/predicate_patch.rb
645
+ - lib/dor/utils/sdr_client.rb
628
646
  - lib/dor/utils/solr_doc_helper.rb
629
647
  - lib/dor/version.rb
630
648
  - lib/dor/workflow/document.rb
@@ -632,7 +650,6 @@ files:
632
650
  - lib/dor/workflow/process.rb
633
651
  - lib/gsearch/demoFoxmlToSolr.xslt
634
652
  - lib/gsearch/schema.xml
635
- - lib/tasks/dor.rake
636
653
  - lib/tasks/rdoc.rake
637
654
  homepage:
638
655
  licenses:
@@ -645,17 +662,17 @@ require_paths:
645
662
  - lib
646
663
  required_ruby_version: !ruby/object:Gem::Requirement
647
664
  requirements:
648
- - - ">="
665
+ - - ! '>='
649
666
  - !ruby/object:Gem::Version
650
667
  version: '0'
651
668
  required_rubygems_version: !ruby/object:Gem::Requirement
652
669
  requirements:
653
- - - ">="
670
+ - - ! '>='
654
671
  - !ruby/object:Gem::Version
655
672
  version: 1.3.6
656
673
  requirements: []
657
674
  rubyforge_project:
658
- rubygems_version: 2.4.2
675
+ rubygems_version: 2.2.2
659
676
  signing_key:
660
677
  specification_version: 4
661
678
  summary: Ruby implmentation of DOR services used by the SULAIR Digital Library