ktopping_acl9 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.textile +46 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +903 -0
- data/Rakefile +40 -0
- data/TODO +42 -0
- data/VERSION.yml +5 -0
- data/lib/acl9/config.rb +11 -0
- data/lib/acl9/controller_extensions/dsl_base.rb +230 -0
- data/lib/acl9/controller_extensions/generators.rb +197 -0
- data/lib/acl9/controller_extensions.rb +85 -0
- data/lib/acl9/helpers.rb +42 -0
- data/lib/acl9/model_extensions/for_object.rb +59 -0
- data/lib/acl9/model_extensions/for_subject.rb +184 -0
- data/lib/acl9/model_extensions.rb +139 -0
- data/lib/acl9.rb +16 -0
- data/test/access_control_test.rb +338 -0
- data/test/dsl_base_test.rb +795 -0
- data/test/helpers_test.rb +134 -0
- data/test/roles_test.rb +355 -0
- data/test/support/controllers.rb +207 -0
- data/test/support/models.rb +59 -0
- data/test/support/schema.rb +92 -0
- data/test/test_helper.rb +31 -0
- metadata +119 -0
data/CHANGELOG.textile
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
h2. 0.12.0 (04-Jan-2010)
|
2
|
+
|
3
|
+
An anniversary release of fixes and hacks, introduced by venerable users of the plugin.
|
4
|
+
|
5
|
+
* Allow for inheritance of subject (Jeff Jaco)
|
6
|
+
* Renamed "Object" module in extensions, since it caused some breakage inside activesupport
|
7
|
+
(invisiblelama).
|
8
|
+
* @show_to@ helper for usage in views (Antono Vasiljev)
|
9
|
+
* @:association_name@ config option, now you can change Subject#role_objects to whatever
|
10
|
+
you want (Jeff Tucker).
|
11
|
+
* Fix bug when Subject#id is a string, e.g. UUID (Julien Bachmann)
|
12
|
+
* Bug with action blocks when using anonymous and another role (Franck)
|
13
|
+
|
14
|
+
|
15
|
+
h2. 0.11.0 (16-Sep-2009)
|
16
|
+
|
17
|
+
* :protect_global_roles
|
18
|
+
* Subject#roles renamed to Subject#role_objects
|
19
|
+
* Fix namespaced models in roles backend (thanks goes to Tomas Jogin)
|
20
|
+
* Action name override in boolean methods.
|
21
|
+
* @:query_method@ option for @access_control@.
|
22
|
+
|
23
|
+
h2. 0.10.0 (03-May-2009)
|
24
|
+
|
25
|
+
* Use context+matchy combo for testing
|
26
|
+
* Bugfix: unwanted double quote in generated SQL statement
|
27
|
+
|
28
|
+
h2. 0.9.4 (27-Feb-2009)
|
29
|
+
|
30
|
+
* Introduce :if and :unless rule options.
|
31
|
+
|
32
|
+
h2. 0.9.3 (04-Feb-2009)
|
33
|
+
|
34
|
+
* Fix bug in delete_role - didn't work with custom class names
|
35
|
+
* Add @:helper@ option for @access_control@.
|
36
|
+
* Ability to generate helper methods directly (place @include Acl9Helpers@ in your helper module).
|
37
|
+
|
38
|
+
h2. 0.9.2 (11-Jan-2009)
|
39
|
+
|
40
|
+
* @access_control :method do end@ as shorter form for @access_control :as_method => :method do end@.
|
41
|
+
* Boolean method can now receive an objects hash which will be looked into first before taking
|
42
|
+
an instance variable.
|
43
|
+
|
44
|
+
h2. 0.9.1 (03-Jan-2009)
|
45
|
+
|
46
|
+
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.
|