hydra-works 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/hydra-works.gemspec +1 -1
- data/lib/hydra/works/version.rb +1 -1
- data/spec/hydra/works/models/work_spec.rb +12 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be24c7cb774b34fc21d74749c8320f6fcd275310
|
4
|
+
data.tar.gz: 20942f3a9129b254cafc6e6a5673648f5fc10851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5e5c82b0431194e3abc0884d522c2d855fdae15f61d8690ebbf0ff226e6b9e40b3a08d7ae2cc8d13fcbf68707c21fcd8c6a26a0fc823e7af9b04514e95f309f
|
7
|
+
data.tar.gz: 43ce3e8819b323483ab424ea06d26f31ceb103738a9c9ed7c36f2f049a1b99b90e6b43587e1ad33dca95123034a5fcb370101f44b7d8096fda131d7efbad0bef
|
data/README.md
CHANGED
data/hydra-works.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-pcdm', '>= 0.
|
21
|
+
spec.add_dependency 'hydra-pcdm', '>= 0.9'
|
22
22
|
spec.add_dependency 'hydra-derivatives', '~> 3.0'
|
23
23
|
spec.add_dependency 'hydra-file_characterization', '~> 0.3', '>= 0.3.3'
|
24
24
|
spec.add_dependency 'om', '~> 3.1'
|
data/lib/hydra/works/version.rb
CHANGED
@@ -267,4 +267,16 @@ describe Hydra::Works::Work do
|
|
267
267
|
expect(work2.in_works).to eq [work1]
|
268
268
|
end
|
269
269
|
end
|
270
|
+
|
271
|
+
describe 'member_of_collections' do
|
272
|
+
let(:collection1) { Hydra::Works::Collection.create }
|
273
|
+
before do
|
274
|
+
work1.member_of_collections = [collection1]
|
275
|
+
end
|
276
|
+
|
277
|
+
it 'is a member of the collection' do
|
278
|
+
expect(work1.member_of_collections).to eq [collection1]
|
279
|
+
expect(work1.member_of_collection_ids).to eq [collection1.id]
|
280
|
+
end
|
281
|
+
end
|
270
282
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-works
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hydra-pcdm
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hydra-derivatives
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -322,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
324
|
rubyforge_project:
|
325
|
-
rubygems_version: 2.
|
325
|
+
rubygems_version: 2.5.1
|
326
326
|
signing_key:
|
327
327
|
specification_version: 4
|
328
328
|
summary: Fundamental repository data model for hydra
|