hydra-access-controls 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/Gemfile +6 -0
- data/README.textile +100 -0
- data/Rakefile +6 -3
- data/config/fedora.yml +8 -0
- data/config/jetty.yml +5 -0
- data/config/solr.yml +6 -0
- data/hydra-access-controls.gemspec +3 -2
- data/lib/ability.rb +1 -0
- data/lib/hydra-access-controls.rb +10 -0
- data/lib/hydra-access-controls/version.rb +1 -1
- data/lib/hydra/ability.rb +14 -13
- data/lib/hydra/access_controls_enforcement.rb +27 -16
- data/lib/hydra/admin_policy.rb +81 -0
- data/lib/hydra/datastream.rb +1 -0
- data/lib/hydra/datastream/inheritable_rights_metadata.rb +22 -0
- data/lib/hydra/policy_aware_ability.rb +128 -0
- data/lib/hydra/policy_aware_access_controls_enforcement.rb +70 -0
- data/lib/hydra/role_mapper_behavior.rb +16 -2
- data/lib/hydra/user.rb +42 -0
- data/lib/tasks/hydra-access-controls.rake +18 -0
- data/lib/tasks/hydra_jetty.rake +55 -0
- data/solr_conf/conf/schema.xml +124 -0
- data/solr_conf/conf/solrconfig.xml +329 -0
- data/solr_conf/solr.xml +35 -0
- data/spec/factories.rb +101 -0
- data/spec/spec_helper.rb +28 -0
- data/spec/support/blacklight.rb +7 -0
- data/spec/support/config/solr.yml +4 -0
- data/spec/support/mods_asset.rb +4 -1
- data/spec/support/rails.rb +10 -0
- data/spec/support/solr_document.rb +13 -0
- data/spec/support/user.rb +32 -0
- data/spec/unit/ability_spec.rb +338 -56
- data/spec/unit/access_controls_enforcement_spec.rb +180 -0
- data/spec/unit/admin_policy_spec.rb +89 -0
- data/spec/unit/inheritable_rights_metadata_spec.rb +66 -0
- data/spec/unit/policy_aware_ability_spec.rb +92 -0
- data/spec/unit/policy_aware_access_controls_enforcement_spec.rb +109 -0
- metadata +59 -4
- data/README.md +0 -29
metadata
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-access-controls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
+
- Chris Beer
|
8
9
|
- Justin Coyne
|
10
|
+
- Matt Zumwalt
|
9
11
|
autorequire:
|
10
12
|
bindir: bin
|
11
13
|
cert_chain: []
|
12
|
-
date: 2012-
|
14
|
+
date: 2012-07-09 00:00:00.000000000 Z
|
13
15
|
dependencies:
|
14
16
|
- !ruby/object:Gem::Dependency
|
15
17
|
name: activesupport
|
@@ -75,6 +77,22 @@ dependencies:
|
|
75
77
|
- - ! '>='
|
76
78
|
- !ruby/object:Gem::Version
|
77
79
|
version: '0'
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: blacklight
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
78
96
|
- !ruby/object:Gem::Dependency
|
79
97
|
name: rake
|
80
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,16 +127,21 @@ dependencies:
|
|
109
127
|
version: '0'
|
110
128
|
description: Access controls for project hydra
|
111
129
|
email:
|
112
|
-
-
|
130
|
+
- hydra-tech@googlegroups.com
|
113
131
|
executables: []
|
114
132
|
extensions: []
|
115
133
|
extra_rdoc_files: []
|
116
134
|
files:
|
117
135
|
- .gitignore
|
136
|
+
- .gitmodules
|
137
|
+
- .rspec
|
118
138
|
- Gemfile
|
119
139
|
- LICENSE
|
120
|
-
- README.
|
140
|
+
- README.textile
|
121
141
|
- Rakefile
|
142
|
+
- config/fedora.yml
|
143
|
+
- config/jetty.yml
|
144
|
+
- config/solr.yml
|
122
145
|
- hydra-access-controls.gemspec
|
123
146
|
- lib/ability.rb
|
124
147
|
- lib/hydra-access-controls.rb
|
@@ -126,16 +149,37 @@ files:
|
|
126
149
|
- lib/hydra/ability.rb
|
127
150
|
- lib/hydra/access_controls_enforcement.rb
|
128
151
|
- lib/hydra/access_controls_evaluation.rb
|
152
|
+
- lib/hydra/admin_policy.rb
|
129
153
|
- lib/hydra/datastream.rb
|
154
|
+
- lib/hydra/datastream/inheritable_rights_metadata.rb
|
130
155
|
- lib/hydra/datastream/rights_metadata.rb
|
131
156
|
- lib/hydra/model_mixins/rights_metadata.rb
|
157
|
+
- lib/hydra/policy_aware_ability.rb
|
158
|
+
- lib/hydra/policy_aware_access_controls_enforcement.rb
|
132
159
|
- lib/hydra/role_mapper_behavior.rb
|
160
|
+
- lib/hydra/user.rb
|
133
161
|
- lib/role_mapper.rb
|
162
|
+
- lib/tasks/hydra-access-controls.rake
|
163
|
+
- lib/tasks/hydra_jetty.rake
|
164
|
+
- solr_conf/conf/schema.xml
|
165
|
+
- solr_conf/conf/solrconfig.xml
|
166
|
+
- solr_conf/solr.xml
|
167
|
+
- spec/factories.rb
|
134
168
|
- spec/spec_helper.rb
|
169
|
+
- spec/support/blacklight.rb
|
135
170
|
- spec/support/config/role_map_test.yml
|
171
|
+
- spec/support/config/solr.yml
|
136
172
|
- spec/support/mods_asset.rb
|
173
|
+
- spec/support/rails.rb
|
174
|
+
- spec/support/solr_document.rb
|
175
|
+
- spec/support/user.rb
|
137
176
|
- spec/unit/ability_spec.rb
|
177
|
+
- spec/unit/access_controls_enforcement_spec.rb
|
178
|
+
- spec/unit/admin_policy_spec.rb
|
138
179
|
- spec/unit/hydra_rights_metadata_spec.rb
|
180
|
+
- spec/unit/inheritable_rights_metadata_spec.rb
|
181
|
+
- spec/unit/policy_aware_ability_spec.rb
|
182
|
+
- spec/unit/policy_aware_access_controls_enforcement_spec.rb
|
139
183
|
- spec/unit/rights_metadata_spec.rb
|
140
184
|
- spec/unit/role_mapper_spec.rb
|
141
185
|
homepage: ''
|
@@ -163,11 +207,22 @@ signing_key:
|
|
163
207
|
specification_version: 3
|
164
208
|
summary: Access controls for project hydra
|
165
209
|
test_files:
|
210
|
+
- spec/factories.rb
|
166
211
|
- spec/spec_helper.rb
|
212
|
+
- spec/support/blacklight.rb
|
167
213
|
- spec/support/config/role_map_test.yml
|
214
|
+
- spec/support/config/solr.yml
|
168
215
|
- spec/support/mods_asset.rb
|
216
|
+
- spec/support/rails.rb
|
217
|
+
- spec/support/solr_document.rb
|
218
|
+
- spec/support/user.rb
|
169
219
|
- spec/unit/ability_spec.rb
|
220
|
+
- spec/unit/access_controls_enforcement_spec.rb
|
221
|
+
- spec/unit/admin_policy_spec.rb
|
170
222
|
- spec/unit/hydra_rights_metadata_spec.rb
|
223
|
+
- spec/unit/inheritable_rights_metadata_spec.rb
|
224
|
+
- spec/unit/policy_aware_ability_spec.rb
|
225
|
+
- spec/unit/policy_aware_access_controls_enforcement_spec.rb
|
171
226
|
- spec/unit/rights_metadata_spec.rb
|
172
227
|
- spec/unit/role_mapper_spec.rb
|
173
228
|
has_rdoc:
|
data/README.md
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# Hydra::Access::Controls
|
2
|
-
|
3
|
-
TODO: Write a gem description
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
gem 'hydra-access-controls'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install hydra-access-controls
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Contributing
|
24
|
-
|
25
|
-
1. Fork it
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|