hydra-access-controls 6.2.2 → 6.3.0.rc1

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: a9ab5ff5dd113d153750288e038a75ab36d53ed9
4
- data.tar.gz: db5e2a8772177b3e2df411f1dc711a807a0209b8
3
+ metadata.gz: 3a98f75ea6ac177df7ee8357e6abb65e815510ae
4
+ data.tar.gz: ae6fa061a924866ad1e64fdea5735aee3d11f003
5
5
  SHA512:
6
- metadata.gz: 23003e32b9a7a0db212091222726077bd2f1c336ab1f5d037296a945fe58b653f60fe2e71c6f2f840c0886e161679d58e436abc6597fbf2d932e42985129a567
7
- data.tar.gz: d0ae6b4160474dd0500c383e7c66ec3b424926f351f7cb4c2a27b548b9cbe1a990db1481966e7911a3ccff5fcb94ca2e3378089c515a91cbeb14da4519003d27
6
+ metadata.gz: 69cb4ed2d30fbe897f9a58726f44c164f50d99ad64379a73f88fc50c537c3abbb08b6788678762ced021db33b76084b661b76964aba3d33d54073373f2f0da9e
7
+ data.tar.gz: 77819f2c0ba60dca1c9e2e6ddd8c1983c2b23d4118409640c80a3152fb0711048f874ebb3443e04848577c1fe316ae03ca921b8c55fdfd048290289d374ca7ae
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency "active-fedora", '~> 6.1'
22
22
  gem.add_dependency 'cancan'
23
23
  gem.add_dependency 'deprecation'
24
- gem.add_dependency 'blacklight'
24
+ gem.add_dependency 'blacklight', '~> 4.0'
25
25
 
26
26
  gem.add_development_dependency("rake")
27
27
  gem.add_development_dependency 'rspec'
@@ -109,7 +109,8 @@ module Hydra
109
109
  remove_all_permissions(selector)
110
110
  unless new_access_level == "none"
111
111
  access_type_symbol = "#{new_access_level}_access".to_sym
112
- result = self.update_values([access_type_symbol, type] => {"-1"=>actor})
112
+ current_values = term_values(access_type_symbol, type)
113
+ self.update_values([access_type_symbol, type] => current_values + [actor] )
113
114
  end
114
115
  return new_access_level
115
116
  end
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: 6.2.2
4
+ version: 6.3.0.rc1
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: 2013-06-14 00:00:00.000000000 Z
13
+ date: 2013-06-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -72,16 +72,16 @@ dependencies:
72
72
  name: blacklight
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: '0'
77
+ version: '4.0'
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ~>
83
83
  - !ruby/object:Gem::Version
84
- version: '0'
84
+ version: '4.0'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: rake
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -173,9 +173,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: 1.9.3
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - '>='
176
+ - - '>'
177
177
  - !ruby/object:Gem::Version
178
- version: '0'
178
+ version: 1.3.1
179
179
  requirements: []
180
180
  rubyforge_project:
181
181
  rubygems_version: 2.0.3