eaco 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/.rspec +2 -0
- data/.travis.yml +18 -0
- data/.yardopts +1 -0
- data/Appraisals +22 -0
- data/Gemfile +4 -0
- data/Guardfile +34 -0
- data/LICENSE.txt +23 -0
- data/README.md +225 -0
- data/Rakefile +26 -0
- data/eaco.gemspec +27 -0
- data/features/active_record.example.yml +8 -0
- data/features/active_record.travis.yml +7 -0
- data/features/rails_integration.feature +10 -0
- data/features/step_definitions/database.rb +7 -0
- data/features/step_definitions/resource_authorization.rb +15 -0
- data/features/support/env.rb +9 -0
- data/gemfiles/rails_3.2.gemfile +9 -0
- data/gemfiles/rails_4.0.gemfile +8 -0
- data/gemfiles/rails_4.1.gemfile +8 -0
- data/gemfiles/rails_4.2.gemfile +8 -0
- data/lib/eaco.rb +93 -0
- data/lib/eaco/acl.rb +206 -0
- data/lib/eaco/actor.rb +86 -0
- data/lib/eaco/adapters.rb +14 -0
- data/lib/eaco/adapters/active_record.rb +70 -0
- data/lib/eaco/adapters/active_record/compatibility.rb +83 -0
- data/lib/eaco/adapters/active_record/compatibility/v32.rb +27 -0
- data/lib/eaco/adapters/active_record/compatibility/v40.rb +59 -0
- data/lib/eaco/adapters/active_record/compatibility/v41.rb +16 -0
- data/lib/eaco/adapters/active_record/compatibility/v42.rb +17 -0
- data/lib/eaco/adapters/active_record/postgres_jsonb.rb +36 -0
- data/lib/eaco/adapters/couchrest_model.rb +37 -0
- data/lib/eaco/adapters/couchrest_model/couchdb_lucene.rb +71 -0
- data/lib/eaco/controller.rb +158 -0
- data/lib/eaco/cucumber.rb +11 -0
- data/lib/eaco/cucumber/active_record.rb +163 -0
- data/lib/eaco/cucumber/active_record/department.rb +19 -0
- data/lib/eaco/cucumber/active_record/document.rb +18 -0
- data/lib/eaco/cucumber/active_record/position.rb +21 -0
- data/lib/eaco/cucumber/active_record/schema.rb +36 -0
- data/lib/eaco/cucumber/active_record/user.rb +24 -0
- data/lib/eaco/cucumber/world.rb +136 -0
- data/lib/eaco/designator.rb +264 -0
- data/lib/eaco/dsl.rb +40 -0
- data/lib/eaco/dsl/acl.rb +163 -0
- data/lib/eaco/dsl/actor.rb +139 -0
- data/lib/eaco/dsl/actor/designators.rb +110 -0
- data/lib/eaco/dsl/base.rb +52 -0
- data/lib/eaco/dsl/resource.rb +129 -0
- data/lib/eaco/dsl/resource/permissions.rb +131 -0
- data/lib/eaco/error.rb +36 -0
- data/lib/eaco/railtie.rb +46 -0
- data/lib/eaco/rake.rb +10 -0
- data/lib/eaco/rake/default_task.rb +164 -0
- data/lib/eaco/resource.rb +234 -0
- data/lib/eaco/version.rb +7 -0
- data/spec/eaco/acl_spec.rb +147 -0
- data/spec/eaco/actor_spec.rb +13 -0
- data/spec/eaco/adapters/active_record/postgres_jsonb_spec.rb +9 -0
- data/spec/eaco/adapters/active_record_spec.rb +13 -0
- data/spec/eaco/adapters/couchrest_model/couchdb_lucene_spec.rb +9 -0
- data/spec/eaco/adapters/couchrest_model_spec.rb +9 -0
- data/spec/eaco/controller_spec.rb +12 -0
- data/spec/eaco/designator_spec.rb +25 -0
- data/spec/eaco/dsl/acl_spec.rb +9 -0
- data/spec/eaco/dsl/actor/designators_spec.rb +7 -0
- data/spec/eaco/dsl/actor_spec.rb +15 -0
- data/spec/eaco/dsl/resource/permissions_spec.rb +7 -0
- data/spec/eaco/dsl/resource_spec.rb +17 -0
- data/spec/eaco/error_spec.rb +9 -0
- data/spec/eaco/resource_spec.rb +31 -0
- data/spec/eaco_spec.rb +49 -0
- data/spec/spec_helper.rb +71 -0
- metadata +296 -0
metadata
ADDED
@@ -0,0 +1,296 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: eaco
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marcello Barnaba
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: byebug
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: yard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: appraisal
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yard-rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: cucumber
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard-cucumber
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description:
|
168
|
+
email:
|
169
|
+
- vjt@openssl.it
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- ".gitignore"
|
175
|
+
- ".rspec"
|
176
|
+
- ".travis.yml"
|
177
|
+
- ".yardopts"
|
178
|
+
- Appraisals
|
179
|
+
- Gemfile
|
180
|
+
- Guardfile
|
181
|
+
- LICENSE.txt
|
182
|
+
- README.md
|
183
|
+
- Rakefile
|
184
|
+
- eaco.gemspec
|
185
|
+
- features/active_record.example.yml
|
186
|
+
- features/active_record.travis.yml
|
187
|
+
- features/rails_integration.feature
|
188
|
+
- features/step_definitions/database.rb
|
189
|
+
- features/step_definitions/resource_authorization.rb
|
190
|
+
- features/support/env.rb
|
191
|
+
- gemfiles/rails_3.2.gemfile
|
192
|
+
- gemfiles/rails_4.0.gemfile
|
193
|
+
- gemfiles/rails_4.1.gemfile
|
194
|
+
- gemfiles/rails_4.2.gemfile
|
195
|
+
- lib/eaco.rb
|
196
|
+
- lib/eaco/acl.rb
|
197
|
+
- lib/eaco/actor.rb
|
198
|
+
- lib/eaco/adapters.rb
|
199
|
+
- lib/eaco/adapters/active_record.rb
|
200
|
+
- lib/eaco/adapters/active_record/compatibility.rb
|
201
|
+
- lib/eaco/adapters/active_record/compatibility/v32.rb
|
202
|
+
- lib/eaco/adapters/active_record/compatibility/v40.rb
|
203
|
+
- lib/eaco/adapters/active_record/compatibility/v41.rb
|
204
|
+
- lib/eaco/adapters/active_record/compatibility/v42.rb
|
205
|
+
- lib/eaco/adapters/active_record/postgres_jsonb.rb
|
206
|
+
- lib/eaco/adapters/couchrest_model.rb
|
207
|
+
- lib/eaco/adapters/couchrest_model/couchdb_lucene.rb
|
208
|
+
- lib/eaco/controller.rb
|
209
|
+
- lib/eaco/cucumber.rb
|
210
|
+
- lib/eaco/cucumber/active_record.rb
|
211
|
+
- lib/eaco/cucumber/active_record/department.rb
|
212
|
+
- lib/eaco/cucumber/active_record/document.rb
|
213
|
+
- lib/eaco/cucumber/active_record/position.rb
|
214
|
+
- lib/eaco/cucumber/active_record/schema.rb
|
215
|
+
- lib/eaco/cucumber/active_record/user.rb
|
216
|
+
- lib/eaco/cucumber/world.rb
|
217
|
+
- lib/eaco/designator.rb
|
218
|
+
- lib/eaco/dsl.rb
|
219
|
+
- lib/eaco/dsl/acl.rb
|
220
|
+
- lib/eaco/dsl/actor.rb
|
221
|
+
- lib/eaco/dsl/actor/designators.rb
|
222
|
+
- lib/eaco/dsl/base.rb
|
223
|
+
- lib/eaco/dsl/resource.rb
|
224
|
+
- lib/eaco/dsl/resource/permissions.rb
|
225
|
+
- lib/eaco/error.rb
|
226
|
+
- lib/eaco/railtie.rb
|
227
|
+
- lib/eaco/rake.rb
|
228
|
+
- lib/eaco/rake/default_task.rb
|
229
|
+
- lib/eaco/resource.rb
|
230
|
+
- lib/eaco/version.rb
|
231
|
+
- spec/eaco/acl_spec.rb
|
232
|
+
- spec/eaco/actor_spec.rb
|
233
|
+
- spec/eaco/adapters/active_record/postgres_jsonb_spec.rb
|
234
|
+
- spec/eaco/adapters/active_record_spec.rb
|
235
|
+
- spec/eaco/adapters/couchrest_model/couchdb_lucene_spec.rb
|
236
|
+
- spec/eaco/adapters/couchrest_model_spec.rb
|
237
|
+
- spec/eaco/controller_spec.rb
|
238
|
+
- spec/eaco/designator_spec.rb
|
239
|
+
- spec/eaco/dsl/acl_spec.rb
|
240
|
+
- spec/eaco/dsl/actor/designators_spec.rb
|
241
|
+
- spec/eaco/dsl/actor_spec.rb
|
242
|
+
- spec/eaco/dsl/resource/permissions_spec.rb
|
243
|
+
- spec/eaco/dsl/resource_spec.rb
|
244
|
+
- spec/eaco/error_spec.rb
|
245
|
+
- spec/eaco/resource_spec.rb
|
246
|
+
- spec/eaco_spec.rb
|
247
|
+
- spec/spec_helper.rb
|
248
|
+
homepage: https://github.com/ifad/eaco
|
249
|
+
licenses:
|
250
|
+
- MIT
|
251
|
+
metadata: {}
|
252
|
+
post_install_message:
|
253
|
+
rdoc_options: []
|
254
|
+
require_paths:
|
255
|
+
- lib
|
256
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
257
|
+
requirements:
|
258
|
+
- - ">="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: '0'
|
261
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
263
|
+
- - ">="
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0'
|
266
|
+
requirements: []
|
267
|
+
rubyforge_project:
|
268
|
+
rubygems_version: 2.4.5
|
269
|
+
signing_key:
|
270
|
+
specification_version: 4
|
271
|
+
summary: Authorization framework
|
272
|
+
test_files:
|
273
|
+
- features/active_record.example.yml
|
274
|
+
- features/active_record.travis.yml
|
275
|
+
- features/rails_integration.feature
|
276
|
+
- features/step_definitions/database.rb
|
277
|
+
- features/step_definitions/resource_authorization.rb
|
278
|
+
- features/support/env.rb
|
279
|
+
- spec/eaco/acl_spec.rb
|
280
|
+
- spec/eaco/actor_spec.rb
|
281
|
+
- spec/eaco/adapters/active_record/postgres_jsonb_spec.rb
|
282
|
+
- spec/eaco/adapters/active_record_spec.rb
|
283
|
+
- spec/eaco/adapters/couchrest_model/couchdb_lucene_spec.rb
|
284
|
+
- spec/eaco/adapters/couchrest_model_spec.rb
|
285
|
+
- spec/eaco/controller_spec.rb
|
286
|
+
- spec/eaco/designator_spec.rb
|
287
|
+
- spec/eaco/dsl/acl_spec.rb
|
288
|
+
- spec/eaco/dsl/actor/designators_spec.rb
|
289
|
+
- spec/eaco/dsl/actor_spec.rb
|
290
|
+
- spec/eaco/dsl/resource/permissions_spec.rb
|
291
|
+
- spec/eaco/dsl/resource_spec.rb
|
292
|
+
- spec/eaco/error_spec.rb
|
293
|
+
- spec/eaco/resource_spec.rb
|
294
|
+
- spec/eaco_spec.rb
|
295
|
+
- spec/spec_helper.rb
|
296
|
+
has_rdoc:
|