hydra-access-controls 9.9.0 → 9.10.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: e5e8e75ab64b8c7d4c45303b419f85541723e456
4
- data.tar.gz: aa314f6c97078f405da78244abef65b2c009f6eb
3
+ metadata.gz: ce4b268308e0df8c7d1aa5d8996b19c0670cf52c
4
+ data.tar.gz: b6071f5b3965cad44bc26605fed0d7c72b436967
5
5
  SHA512:
6
- metadata.gz: bcc97deb25bd78cae7feaf01cffeedda9fc618648579326019676a0b6c34e6cb149d3612d805fca471b52b6b5363bcbe804e6ff38d5999a38d472b6d7915e0ed
7
- data.tar.gz: 2b48522f260eb8394cca5d1e0a86a417f5059636339317e4ae80762de1629b15ee5f5c202cbe7da7da7194dba99b0ffb2d4ea9664bc8b105ef4ebd265f0b1f7d
6
+ metadata.gz: 4479206b877bce374fc5be89d50b69688dfc8a35304f6d20a1eeb0d8c5b5768d3d2dee3eaa5ed8eae13f2c406fa42033c080b048226b6ea6480e46fe45148216
7
+ data.tar.gz: d91c7e7f5e83aa16658674f63b654d55a36357e60f32758c8394e281dc89f6393d9239fb10f8e9ee2f503d7ffde3edfc7f2a344bcc0fa7e9509a56bf45c49299
@@ -5,20 +5,12 @@ module Hydra
5
5
  include Hydra::AccessControls::Visibility
6
6
 
7
7
  included do
8
- has_many :permissions, predicate: ::ACL.accessTo, class_name: 'Hydra::AccessControls::Permission', inverse_of: :access_to
8
+ has_many :permissions, predicate: ::ACL.accessTo, class_name: 'Hydra::AccessControls::Permission', inverse_of: :access_to, dependent: :destroy
9
9
  accepts_nested_attributes_for :permissions, allow_destroy: true
10
10
  alias_method :permissions_attributes_without_uniqueness=, :permissions_attributes=
11
11
  alias_method :permissions_attributes=, :permissions_attributes_with_uniqueness=
12
-
13
- before_destroy :remove_permissions
14
- end
15
-
16
- # Destroy and permission objects associated with this object
17
- def remove_permissions
18
- permissions.destroy_all
19
12
  end
20
13
 
21
-
22
14
  def to_solr(solr_doc = {})
23
15
  super.tap do |doc|
24
16
  [:discover, :read, :edit].each do |access|
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.required_ruby_version = '>= 1.9.3'
20
20
 
21
21
  gem.add_dependency 'activesupport', '~> 4.0'
22
- gem.add_dependency "active-fedora", '~> 9.10.0'
22
+ gem.add_dependency "active-fedora", '~> 9.11'
23
23
  gem.add_dependency 'cancancan', '~> 1.8'
24
24
  gem.add_dependency 'deprecation', '~> 0.2'
25
25
  gem.add_dependency "blacklight", '>= 5.16'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-access-controls
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.9.0
4
+ version: 9.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-03-28 00:00:00.000000000 Z
13
+ date: 2016-04-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 9.10.0
35
+ version: '9.11'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 9.10.0
42
+ version: '9.11'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: cancancan
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.5.1
229
+ rubygems_version: 2.4.5.1
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Access controls for project hydra