jeffleeismyhero-acl9 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.textile +28 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +888 -0
- data/Rakefile +39 -0
- data/TODO +42 -0
- data/VERSION.yml +4 -0
- data/lib/acl9/config.rb +9 -0
- data/lib/acl9/controller_extensions/dsl_base.rb +225 -0
- data/lib/acl9/controller_extensions/generators.rb +197 -0
- data/lib/acl9/controller_extensions.rb +85 -0
- data/lib/acl9/helpers.rb +19 -0
- data/lib/acl9/model_extensions/object.rb +59 -0
- data/lib/acl9/model_extensions/subject.rb +150 -0
- data/lib/acl9/model_extensions.rb +132 -0
- data/lib/acl9.rb +16 -0
- data/test/access_control_test.rb +338 -0
- data/test/dsl_base_test.rb +756 -0
- data/test/helpers_test.rb +93 -0
- data/test/roles_test.rb +293 -0
- data/test/support/controllers.rb +207 -0
- data/test/support/models.rb +47 -0
- data/test/support/schema.rb +69 -0
- data/test/test_helper.rb +27 -0
- metadata +101 -0
data/CHANGELOG.textile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
* Fix namespaced models in roles backend (thanks goes to Tomas Jogin)
|
2
|
+
* Action name override in boolean methods.
|
3
|
+
* @:query_method@ option for @access_control@.
|
4
|
+
|
5
|
+
h2. 0.10.0 (03-May-2009)
|
6
|
+
|
7
|
+
* Use context+matchy combo for testing
|
8
|
+
* Bugfix: unwanted double quote in generated SQL statement
|
9
|
+
|
10
|
+
h2. 0.9.4 (27-Feb-2009)
|
11
|
+
|
12
|
+
* Introduce :if and :unless rule options.
|
13
|
+
|
14
|
+
h2. 0.9.3 (04-Feb-2009)
|
15
|
+
|
16
|
+
* Fix bug in delete_role - didn't work with custom class names
|
17
|
+
* Add @:helper@ option for @access_control@.
|
18
|
+
* Ability to generate helper methods directly (place @include Acl9Helpers@ in your helper module).
|
19
|
+
|
20
|
+
h2. 0.9.2 (11-Jan-2009)
|
21
|
+
|
22
|
+
* @access_control :method do end@ as shorter form for @access_control :as_method => :method do end@.
|
23
|
+
* Boolean method can now receive an objects hash which will be looked into first before taking
|
24
|
+
an instance variable.
|
25
|
+
|
26
|
+
h2. 0.9.1 (03-Jan-2009)
|
27
|
+
|
28
|
+
Initial release.
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Oleg Dashevskii
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|