hydra-access-controls 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +16 -0
- data/hydra-access-controls.gemspec +25 -0
- data/lib/ability.rb +6 -0
- data/lib/hydra-access-controls.rb +17 -0
- data/lib/hydra-access-controls/version.rb +7 -0
- data/lib/hydra/ability.rb +137 -0
- data/lib/hydra/access_controls_enforcement.rb +234 -0
- data/lib/hydra/access_controls_evaluation.rb +38 -0
- data/lib/hydra/datastream.rb +6 -0
- data/lib/hydra/datastream/rights_metadata.rb +192 -0
- data/lib/hydra/model_mixins.rb +7 -0
- data/lib/hydra/model_mixins/rights_metadata.rb +357 -0
- data/lib/hydra/role_mapper_behavior.rb +33 -0
- data/lib/role_mapper.rb +6 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/support/config/role_map_test.yml +14 -0
- data/spec/support/mods_asset.rb +6 -0
- data/spec/unit/ability_spec.rb +82 -0
- data/spec/unit/hydra_rights_metadata_spec.rb +173 -0
- data/spec/unit/rights_metadata_spec.rb +80 -0
- data/spec/unit/role_mapper_spec.rb +28 -0
- metadata +158 -0
metadata
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hydra-access-controls
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Justin Coyne
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-06-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: active-fedora
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: cancan
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: deprecation
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: Access controls for project hydra
|
95
|
+
email:
|
96
|
+
- justin.coyne@yourmediashelf.com
|
97
|
+
executables: []
|
98
|
+
extensions: []
|
99
|
+
extra_rdoc_files: []
|
100
|
+
files:
|
101
|
+
- .gitignore
|
102
|
+
- Gemfile
|
103
|
+
- LICENSE
|
104
|
+
- README.md
|
105
|
+
- Rakefile
|
106
|
+
- hydra-access-controls.gemspec
|
107
|
+
- lib/ability.rb
|
108
|
+
- lib/hydra-access-controls.rb
|
109
|
+
- lib/hydra-access-controls/version.rb
|
110
|
+
- lib/hydra/ability.rb
|
111
|
+
- lib/hydra/access_controls_enforcement.rb
|
112
|
+
- lib/hydra/access_controls_evaluation.rb
|
113
|
+
- lib/hydra/datastream.rb
|
114
|
+
- lib/hydra/datastream/rights_metadata.rb
|
115
|
+
- lib/hydra/model_mixins.rb
|
116
|
+
- lib/hydra/model_mixins/rights_metadata.rb
|
117
|
+
- lib/hydra/role_mapper_behavior.rb
|
118
|
+
- lib/role_mapper.rb
|
119
|
+
- spec/spec_helper.rb
|
120
|
+
- spec/support/config/role_map_test.yml
|
121
|
+
- spec/support/mods_asset.rb
|
122
|
+
- spec/unit/ability_spec.rb
|
123
|
+
- spec/unit/hydra_rights_metadata_spec.rb
|
124
|
+
- spec/unit/rights_metadata_spec.rb
|
125
|
+
- spec/unit/role_mapper_spec.rb
|
126
|
+
homepage: ''
|
127
|
+
licenses: []
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 1.8.23
|
147
|
+
signing_key:
|
148
|
+
specification_version: 3
|
149
|
+
summary: Access controls for project hydra
|
150
|
+
test_files:
|
151
|
+
- spec/spec_helper.rb
|
152
|
+
- spec/support/config/role_map_test.yml
|
153
|
+
- spec/support/mods_asset.rb
|
154
|
+
- spec/unit/ability_spec.rb
|
155
|
+
- spec/unit/hydra_rights_metadata_spec.rb
|
156
|
+
- spec/unit/rights_metadata_spec.rb
|
157
|
+
- spec/unit/role_mapper_spec.rb
|
158
|
+
has_rdoc:
|