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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fe62ca3557324aa1d06b321706bef921ed64768
4
- data.tar.gz: afc8ed7122ec5a3902905dca229a5a1768665090
3
+ metadata.gz: be24c7cb774b34fc21d74749c8320f6fcd275310
4
+ data.tar.gz: 20942f3a9129b254cafc6e6a5673648f5fc10851
5
5
  SHA512:
6
- metadata.gz: 9ca71d423754de86d680ac3e3dd28e7f367c202e5db3a3182e74fafa56ffe9dadcc29b731f9908f6efd97244561e05df7d6bccd5a6c271e492bdf5ac2366431e
7
- data.tar.gz: f6ae7e93b05b5cfa69d22a48db2b163a72af5a61033bc88a0869ee25ab706b25843f257c1b7fba33775e99daf7d99cf310ec68c1c9e0ae78d2a3eb1513af9f04
6
+ metadata.gz: f5e5c82b0431194e3abc0884d522c2d855fdae15f61d8690ebbf0ff226e6b9e40b3a08d7ae2cc8d13fcbf68707c21fcd8c6a26a0fc823e7af9b04514e95f309f
7
+ data.tar.gz: 43ce3e8819b323483ab424ea06d26f31ceb103738a9c9ed7c36f2f049a1b99b90e6b43587e1ad33dca95123034a5fcb370101f44b7d8096fda131d7efbad0bef
data/README.md CHANGED
@@ -29,7 +29,7 @@ Check out the [Hydra::Derivatives README](https://github.com/projecthydra/hydra-
29
29
 
30
30
  Add these lines to your application's Gemfile:
31
31
 
32
- gem 'hydra-works', '~> 0.1'
32
+ gem 'hydra-works', '~> 0.15'
33
33
 
34
34
  And then execute:
35
35
 
@@ -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.8'
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'
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module Works
3
- VERSION = '0.14.0'.freeze
3
+ VERSION = '0.15.0'.freeze
4
4
  end
5
5
  end
@@ -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.14.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-09-06 00:00:00.000000000 Z
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.8'
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.8'
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.6.4
325
+ rubygems_version: 2.5.1
326
326
  signing_key:
327
327
  specification_version: 4
328
328
  summary: Fundamental repository data model for hydra