hydra-works 0.8 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hydra/works/models/concerns/collection_behavior.rb +2 -1
- data/lib/hydra/works/models/concerns/file_set_behavior.rb +2 -1
- data/lib/hydra/works/models/concerns/work_behavior.rb +2 -1
- data/lib/hydra/works/version.rb +1 -1
- data/spec/hydra/works/models/file_set_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07b6006359065b77e76cc0b9d5542c9da189a2fb
|
4
|
+
data.tar.gz: 7d37f4d93a294ec62adf36a63362663ca8dea153
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cf2ff2d43e8fec1805c228e2d46793b178993e49ce6837c68e064ec9b68573cfc9f7a51011185cfbbd146d4da55208d6643383adb037e6d4f5772f6d776c57e
|
7
|
+
data.tar.gz: 71eadabf972b27c11dcfdcedb8fba6c078fb78ae7929cbae0678c4450713361980c3e5bf765a8547c362caf8243dd9c3f92ddbf1db672467fe191508b699adb8
|
@@ -23,8 +23,9 @@ module Hydra::Works
|
|
23
23
|
Hydra::Works::NotFileSetValidator
|
24
24
|
)
|
25
25
|
end
|
26
|
-
type [Hydra::PCDM::Vocab::PCDMTerms.Collection, Vocab::WorksTerms.Collection]
|
27
26
|
include Hydra::PCDM::CollectionBehavior
|
27
|
+
|
28
|
+
type [Hydra::PCDM::Vocab::PCDMTerms.Collection, Vocab::WorksTerms.Collection]
|
28
29
|
end
|
29
30
|
|
30
31
|
def ordered_works
|
@@ -18,13 +18,14 @@ module Hydra::Works
|
|
18
18
|
super
|
19
19
|
)
|
20
20
|
end
|
21
|
-
type [Hydra::PCDM::Vocab::PCDMTerms.Object, Vocab::WorksTerms.FileSet]
|
22
21
|
include Hydra::PCDM::ObjectBehavior
|
23
22
|
include Hydra::Works::ContainedFiles
|
24
23
|
include Hydra::Works::Derivatives
|
25
24
|
include Hydra::Works::MimeTypes
|
26
25
|
include Hydra::Works::VersionedContent
|
27
26
|
before_destroy :remove_from_works
|
27
|
+
|
28
|
+
type [Hydra::PCDM::Vocab::PCDMTerms.Object, Vocab::WorksTerms.FileSet]
|
28
29
|
end
|
29
30
|
|
30
31
|
# @return [Boolean] whether this instance is a Hydra::Works Collection.
|
@@ -23,9 +23,10 @@ module Hydra::Works
|
|
23
23
|
super
|
24
24
|
)
|
25
25
|
end
|
26
|
-
type [Hydra::PCDM::Vocab::PCDMTerms.Object, Vocab::WorksTerms.Work]
|
27
26
|
include Hydra::PCDM::ObjectBehavior
|
28
27
|
before_destroy :remove_from_parents
|
28
|
+
|
29
|
+
type [Hydra::PCDM::Vocab::PCDMTerms.Object, Vocab::WorksTerms.Work]
|
29
30
|
end
|
30
31
|
|
31
32
|
def works
|
data/lib/hydra/works/version.rb
CHANGED
@@ -15,6 +15,12 @@ describe Hydra::Works::FileSet do
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
+
describe "#type" do
|
19
|
+
it "returns Object and FileSet" do
|
20
|
+
expect(subject.type).to eq [Hydra::PCDM::Vocab::PCDMTerms.Object, Hydra::Works::Vocab::WorksTerms.FileSet]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
18
24
|
describe '#files' do
|
19
25
|
let(:file1) { file_set.files.build }
|
20
26
|
let(:file2) { file_set.files.build }
|