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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 028f44443d1d3bdcfbff713b15bc1b59cffb8e2c
4
- data.tar.gz: 401c0b9112abc87e79319fe6ba0a3bf2849be4db
3
+ metadata.gz: 07b6006359065b77e76cc0b9d5542c9da189a2fb
4
+ data.tar.gz: 7d37f4d93a294ec62adf36a63362663ca8dea153
5
5
  SHA512:
6
- metadata.gz: 93b2a91ae3c98474558c00d1b23d9cc006028aa13f6691adc5850d28ca7efa39a15fdfca577852b3633eabaf259f0d7cc22c0b7964b40c32a32ce5f6f0ed9634
7
- data.tar.gz: f0bc3421b8a91e55c20f815b0b6fb2600c2aee1bf287de7e36aca8fe204a3ebe104d10468360018a1ce35792c1d48875285f3cd5b1323598f4365fa4947c362c
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
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module Works
3
- VERSION = '0.8'.freeze
3
+ VERSION = '0.8.1'.freeze
4
4
  end
5
5
  end
@@ -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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-works
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne