curation_concerns 0.14.0 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/curation_concerns/file_set/full_text_indexing.rb +1 -1
- data/curation_concerns.gemspec +5 -4
- data/lib/curation_concerns/configuration.rb +0 -5
- data/lib/curation_concerns/version.rb +1 -1
- data/lib/generators/curation_concerns/templates/config/curation_concerns.rb +0 -3
- data/lib/generators/curation_concerns/templates/config/redis_config.rb +3 -26
- metadata +36 -27
- data/lib/tasks/migrate.rake +0 -11
- data/spec/tasks/rake_spec.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82ff29ee951976ef550ed0a64a07495a4eacad37
|
4
|
+
data.tar.gz: c2537a3a7611199f193a9643a53e98dacccb2d96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b97ceab4d2982f871070aa678f66e8d37dfb04f1184a22b66b0d34d07fc08269e3ac0817a2fbc0fce55767bddfa952eed57871141d2f3ceadacee084336bf34
|
7
|
+
data.tar.gz: e1b11872f569fe9a090a35a71984374812b85de8cdcbd022fe2a0f3f8a0ea22203b57a3e802ae51c7bbe3f55f72dd37880606d8e334703463855f8bd250ed34a
|
data/curation_concerns.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'hydra-head', '
|
21
|
+
spec.add_dependency 'hydra-head', '>= 10.0.0.beta1', '< 11'
|
22
22
|
spec.add_dependency 'blacklight', '~> 6.1'
|
23
23
|
spec.add_dependency "breadcrumbs_on_rails", "~> 2.3"
|
24
24
|
spec.add_dependency "jquery-ui-rails"
|
@@ -30,16 +30,17 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'kaminari_route_prefix', '~> 0.0.1'
|
31
31
|
spec.add_dependency 'active_attr'
|
32
32
|
spec.add_dependency 'hydra-works', '~> 0.8', '>= 0.8.1'
|
33
|
+
# This allows bundler to resolve a dependency tree.
|
34
|
+
# TODO: I suspect we can remove it when hydra-pcdm 0.8.0 is released.
|
35
|
+
spec.add_dependency 'hydra-pcdm', '>= 0.8.0.beta1', '< 1'
|
33
36
|
spec.add_dependency 'active_fedora-noid', '~> 1.0'
|
34
37
|
spec.add_dependency 'qa', '~> 0.5'
|
35
38
|
spec.add_dependency 'redlock', '~> 0.1.2'
|
36
39
|
spec.add_dependency 'solrizer', '~> 3.4'
|
37
|
-
spec.add_dependency '
|
38
|
-
spec.add_dependency 'deprecation', '~> 0.1'
|
40
|
+
spec.add_dependency 'deprecation', '~> 1.0'
|
39
41
|
spec.add_dependency 'rdf', '~> 1.99'
|
40
42
|
spec.add_dependency 'rdf-vocab', '~> 0'
|
41
43
|
spec.add_dependency 'awesome_nested_set', '~> 3.0'
|
42
|
-
|
43
44
|
|
44
45
|
spec.add_development_dependency 'solr_wrapper', '~> 0.4'
|
45
46
|
spec.add_development_dependency 'fcrepo_wrapper', '~> 0.1'
|
@@ -91,11 +91,6 @@ module CurationConcerns
|
|
91
91
|
@minter_statefile ||= '/tmp/minter-state'
|
92
92
|
end
|
93
93
|
|
94
|
-
attr_writer :redis_namespace
|
95
|
-
def redis_namespace
|
96
|
-
@redis_namespace ||= 'curation_concerns'
|
97
|
-
end
|
98
|
-
|
99
94
|
attr_writer :display_media_download_link
|
100
95
|
def display_media_download_link
|
101
96
|
return @display_media_download_link unless @display_media_download_link.nil?
|
@@ -46,9 +46,6 @@ CurationConcerns.configure do |config|
|
|
46
46
|
# If you use a multi-server architecture, this MUST be on a shared volume.
|
47
47
|
# config.minter_statefile = '/tmp/minter-state'
|
48
48
|
|
49
|
-
# Specify the prefix for Redis keys:
|
50
|
-
# config.redis_namespace = "curation_concerns"
|
51
|
-
|
52
49
|
# Specify whether the media display partial should render a download link
|
53
50
|
# config.display_media_download_link = true
|
54
51
|
|
@@ -1,26 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
if forked
|
5
|
-
# Re-establish redis connection
|
6
|
-
require 'redis'
|
7
|
-
config = YAML.load(ERB.new(IO.read(File.join(Rails.root, 'config', 'redis.yml'))).result)[Rails.env].with_indifferent_access
|
8
|
-
|
9
|
-
# The important two lines
|
10
|
-
Redis.current.disconnect!
|
11
|
-
Redis.current = begin
|
12
|
-
Redis.new(config.merge(thread_safe: true))
|
13
|
-
rescue
|
14
|
-
nil
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
else
|
19
|
-
config = YAML.load(ERB.new(IO.read(File.join(Rails.root, 'config', 'redis.yml'))).result)[Rails.env].with_indifferent_access
|
20
|
-
require 'redis'
|
21
|
-
Redis.current = begin
|
22
|
-
Redis.new(config.merge(thread_safe: true))
|
23
|
-
rescue
|
24
|
-
nil
|
25
|
-
end
|
26
|
-
end
|
1
|
+
require 'redis'
|
2
|
+
config = YAML.load(ERB.new(IO.read(File.join(Rails.root, 'config', 'redis.yml'))).result)[Rails.env].with_indifferent_access
|
3
|
+
Redis.current = Redis.new(config.merge(thread_safe: true))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curation_concerns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zumwalt
|
@@ -10,22 +10,28 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-05-
|
13
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hydra-head
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 10.0.0.beta1
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '11'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- - "
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 10.0.0.beta1
|
32
|
+
- - "<"
|
27
33
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
34
|
+
version: '11'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: blacklight
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,6 +192,26 @@ dependencies:
|
|
186
192
|
- - ">="
|
187
193
|
- !ruby/object:Gem::Version
|
188
194
|
version: 0.8.1
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: hydra-pcdm
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.8.0.beta1
|
202
|
+
- - "<"
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '1'
|
205
|
+
type: :runtime
|
206
|
+
prerelease: false
|
207
|
+
version_requirements: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: 0.8.0.beta1
|
212
|
+
- - "<"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '1'
|
189
215
|
- !ruby/object:Gem::Dependency
|
190
216
|
name: active_fedora-noid
|
191
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -242,34 +268,20 @@ dependencies:
|
|
242
268
|
- - "~>"
|
243
269
|
- !ruby/object:Gem::Version
|
244
270
|
version: '3.4'
|
245
|
-
- !ruby/object:Gem::Dependency
|
246
|
-
name: active-fedora
|
247
|
-
requirement: !ruby/object:Gem::Requirement
|
248
|
-
requirements:
|
249
|
-
- - "~>"
|
250
|
-
- !ruby/object:Gem::Version
|
251
|
-
version: '9.9'
|
252
|
-
type: :runtime
|
253
|
-
prerelease: false
|
254
|
-
version_requirements: !ruby/object:Gem::Requirement
|
255
|
-
requirements:
|
256
|
-
- - "~>"
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
version: '9.9'
|
259
271
|
- !ruby/object:Gem::Dependency
|
260
272
|
name: deprecation
|
261
273
|
requirement: !ruby/object:Gem::Requirement
|
262
274
|
requirements:
|
263
275
|
- - "~>"
|
264
276
|
- !ruby/object:Gem::Version
|
265
|
-
version: '0
|
277
|
+
version: '1.0'
|
266
278
|
type: :runtime
|
267
279
|
prerelease: false
|
268
280
|
version_requirements: !ruby/object:Gem::Requirement
|
269
281
|
requirements:
|
270
282
|
- - "~>"
|
271
283
|
- !ruby/object:Gem::Version
|
272
|
-
version: '0
|
284
|
+
version: '1.0'
|
273
285
|
- !ruby/object:Gem::Dependency
|
274
286
|
name: rdf
|
275
287
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1002,7 +1014,6 @@ files:
|
|
1002
1014
|
- lib/generators/curation_concerns/work/templates/model_spec.rb.erb
|
1003
1015
|
- lib/generators/curation_concerns/work/work_generator.rb
|
1004
1016
|
- lib/tasks/curation_concerns.rake
|
1005
|
-
- lib/tasks/migrate.rake
|
1006
1017
|
- lib/tasks/solr_reindex.rake
|
1007
1018
|
- solr/config/_rest_managed.json
|
1008
1019
|
- solr/config/admin-extra.html
|
@@ -1164,7 +1175,6 @@ files:
|
|
1164
1175
|
- spec/support/shared/shared_examples_has_dc_metadata.rb
|
1165
1176
|
- spec/support/shared/shared_examples_is_embargoable.rb
|
1166
1177
|
- spec/support/shared/shared_examples_with_access_rights.rb
|
1167
|
-
- spec/tasks/rake_spec.rb
|
1168
1178
|
- spec/test_app_templates/Gemfile.extra
|
1169
1179
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
1170
1180
|
- spec/views/catalog/_action_menu_partials/_default.html.erb_spec.rb
|
@@ -1211,9 +1221,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1211
1221
|
version: '0'
|
1212
1222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1213
1223
|
requirements:
|
1214
|
-
- - "
|
1224
|
+
- - ">"
|
1215
1225
|
- !ruby/object:Gem::Version
|
1216
|
-
version:
|
1226
|
+
version: 1.3.1
|
1217
1227
|
requirements: []
|
1218
1228
|
rubyforge_project:
|
1219
1229
|
rubygems_version: 2.5.1
|
@@ -1366,7 +1376,6 @@ test_files:
|
|
1366
1376
|
- spec/support/shared/shared_examples_has_dc_metadata.rb
|
1367
1377
|
- spec/support/shared/shared_examples_is_embargoable.rb
|
1368
1378
|
- spec/support/shared/shared_examples_with_access_rights.rb
|
1369
|
-
- spec/tasks/rake_spec.rb
|
1370
1379
|
- spec/test_app_templates/Gemfile.extra
|
1371
1380
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
1372
1381
|
- spec/views/catalog/_action_menu_partials/_default.html.erb_spec.rb
|
data/lib/tasks/migrate.rake
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
namespace :curation_concerns do
|
2
|
-
namespace :migrate do
|
3
|
-
desc "Migrate audit logs"
|
4
|
-
task audit_logs: :environment do
|
5
|
-
ChecksumAuditLog.all.each do |cs|
|
6
|
-
cs.file_set_id = cs.file_set_id.delete "#{CurationConcerns.config.redis_namespace}:"
|
7
|
-
cs.save
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
data/spec/tasks/rake_spec.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'rake'
|
3
|
-
|
4
|
-
describe 'Rake tasks' do
|
5
|
-
describe 'curation_concerns:migrate' do
|
6
|
-
let(:namespaced_id) { 'curation_concerns:123' }
|
7
|
-
let(:corrected_id) { '123' }
|
8
|
-
before do
|
9
|
-
load File.expand_path('../../../lib/tasks/migrate.rake', __FILE__)
|
10
|
-
Rake::Task.define_task(:environment)
|
11
|
-
end
|
12
|
-
|
13
|
-
describe 'deleting the namespace from ChecksumAuditLog#file_set_id' do
|
14
|
-
before do
|
15
|
-
ChecksumAuditLog.create(file_set_id: namespaced_id)
|
16
|
-
Rake::Task['curation_concerns:migrate:audit_logs'].invoke
|
17
|
-
end
|
18
|
-
subject { ChecksumAuditLog.first.file_set_id }
|
19
|
-
it { is_expected.to eql corrected_id }
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|