curation_concerns 0.14.0.pre2 → 0.14.0.pre3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/RELEASING.md +1 -1
- data/app/actors/curation_concerns/file_set_actor.rb +2 -4
- data/app/jobs/ingest_file_job.rb +0 -1
- data/lib/curation_concerns/version.rb +1 -1
- data/spec/actors/curation_concerns/file_set_actor_spec.rb +2 -1
- data/spec/jobs/ingest_file_job_spec.rb +0 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 499d0f504305d4a3527b20952256ca5c479495f6
|
4
|
+
data.tar.gz: 198f23262a6af4305f350622678666ae444d4c9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc6d2a67ff1711383d698b083ccbd4e869f1031354fd302512787abddeb656a43ac12b6b87d1bb163230ee1db5da17684190deff4fa28f1f2dc99b240870c503
|
7
|
+
data.tar.gz: 48549fbe68acc204baf000be4464be9363b00dff9ebb77198deb2c8eb2f15115143881f2f07f80176ea38b5be71cf9c576fcb614f0e4c37573c985abd521a79f
|
data/RELEASING.md
CHANGED
@@ -69,10 +69,7 @@ module CurationConcerns
|
|
69
69
|
stack = ActorStack.new(file_set,
|
70
70
|
user,
|
71
71
|
[InterpretVisibilityActor, BaseActor])
|
72
|
-
|
73
|
-
CurationConcerns.config.callback.run(:after_update_metadata, file_set, user)
|
74
|
-
end
|
75
|
-
result
|
72
|
+
stack.update(attributes)
|
76
73
|
end
|
77
74
|
|
78
75
|
def destroy
|
@@ -123,6 +120,7 @@ module CurationConcerns
|
|
123
120
|
# Save the work so the association between the work and the file_set is persisted (head_id)
|
124
121
|
work.save
|
125
122
|
end
|
123
|
+
CurationConcerns.config.callback.run(:after_create_fileset, file_set, user)
|
126
124
|
end
|
127
125
|
|
128
126
|
def assign_visibility?(file_set_params = {})
|
data/app/jobs/ingest_file_job.rb
CHANGED
@@ -35,7 +35,7 @@ describe CurationConcerns::FileSetActor do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
context 'when a work is provided' do
|
38
|
-
let(:work) {
|
38
|
+
let(:work) { create(:generic_work) }
|
39
39
|
|
40
40
|
it 'adds the generic file to the parent work' do
|
41
41
|
expect(subject.generic_works).to eq [work]
|
@@ -203,6 +203,7 @@ describe CurationConcerns::FileSetActor do
|
|
203
203
|
end
|
204
204
|
|
205
205
|
it "writes to the most up to date version" do
|
206
|
+
expect(CurationConcerns.config.callback).to receive(:run).with(:after_create_fileset, file_set3, user)
|
206
207
|
# using send(), because attach_file_to_work is private
|
207
208
|
actor.send(:attach_file_to_work, work_v1, file_set3, {})
|
208
209
|
expect(work_v1.members.size).to eq 3
|
@@ -67,12 +67,4 @@ describe IngestFileJob do
|
|
67
67
|
expect(VersionCommitter.where(version_id: versions.last.uri).pluck(:committer_login)).to eq [user2.user_key]
|
68
68
|
end
|
69
69
|
end
|
70
|
-
|
71
|
-
describe "the after_create_fileset callback" do
|
72
|
-
subject { CurationConcerns.config.callback }
|
73
|
-
it 'runs with file_set and user arguments' do
|
74
|
-
expect(subject).to receive(:run).with(:after_create_fileset, file_set, user)
|
75
|
-
described_class.perform_now(file_set, filename, 'image/png', user)
|
76
|
-
end
|
77
|
-
end
|
78
70
|
end
|
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.14.0.
|
4
|
+
version: 0.14.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zumwalt
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-04-
|
13
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hydra-head
|