the_role 1.5.1 → 1.6.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.
Files changed (45) hide show
  1. data/Bye_bye_CanCan_I_got_the_Role.png +0 -0
  2. data/README.md +82 -92
  3. data/app/assets/javascripts/admin_the_role.js +3 -0
  4. data/app/assets/javascripts/bootstrap-dropdown.js +100 -0
  5. data/app/assets/stylesheets/admin_the_role.css +7 -0
  6. data/app/assets/stylesheets/alerts.less +58 -0
  7. data/app/assets/stylesheets/button-groups.less +191 -0
  8. data/app/assets/stylesheets/buttons.less +191 -0
  9. data/app/assets/stylesheets/custom.scss +3 -0
  10. data/app/assets/stylesheets/dropdowns.less +143 -0
  11. data/app/assets/stylesheets/forms.less +583 -0
  12. data/app/assets/stylesheets/grid.less +5 -0
  13. data/app/assets/stylesheets/headers.scss +15 -0
  14. data/app/assets/stylesheets/layouts.less +17 -0
  15. data/app/assets/stylesheets/mix.scss +41 -0
  16. data/app/assets/stylesheets/mixins.less +646 -0
  17. data/app/assets/stylesheets/reset.css +117 -0
  18. data/app/assets/stylesheets/role_set.less +136 -0
  19. data/app/assets/stylesheets/scaffolding.less +29 -0
  20. data/app/assets/stylesheets/variables.less +206 -0
  21. data/app/assets/stylesheets/wells.less +27 -0
  22. data/app/controllers/admin/role_sections_controller.rb +40 -17
  23. data/app/controllers/admin/roles_controller.rb +8 -6
  24. data/app/views/admin/roles/_role.html.haml +53 -0
  25. data/app/views/admin/roles/_sidebar.html.haml +8 -0
  26. data/app/views/admin/roles/edit.html.haml +2 -42
  27. data/app/views/admin/roles/index.haml +2 -15
  28. data/app/views/admin/roles/new.html.haml +5 -4
  29. data/app/views/layouts/the_role.html.haml +24 -0
  30. data/config/routes.rb +5 -1
  31. data/lib/the_role/engine.rb +2 -2
  32. data/lib/the_role/hash.rb +50 -14
  33. data/lib/the_role/modules/base.rb +4 -4
  34. data/lib/the_role/modules/controller_requires.rb +4 -15
  35. data/lib/the_role/modules/role_model.rb +14 -13
  36. data/lib/the_role/param_helper.rb +15 -0
  37. data/lib/the_role/version.rb +1 -1
  38. data/lib/the_role.rb +13 -11
  39. data/pic.png +0 -0
  40. data/the_role.gemspec +5 -2
  41. metadata +58 -16
  42. data/app/assets/stylesheets/the_role/form.css +0 -57
  43. data/app/assets/stylesheets/the_role/headers.css.scss +0 -15
  44. data/app/assets/stylesheets/the_role/style.css.scss +0 -75
  45. data/lib/the_role/modules/param_helper.rb +0 -7
@@ -1,75 +0,0 @@
1
- .the_role{
2
- ul.index{
3
- position: relative;
4
- li{
5
- position: relative;
6
- p{
7
- border-bottom: 1px solid Lavender;
8
- font-size: 16px;
9
- margin-bottom: 10px;
10
- padding: 5px;
11
- &:hover{ background: #EEE; }
12
- a.delete{
13
- position: absolute;
14
- bottom: 5px; right: 0;
15
- color: IndianRed;
16
- }
17
- }
18
- }
19
- }//ul.index
20
-
21
- h4{
22
- position: relative;
23
- padding: 5px;
24
- background: LightBlue;
25
- .controls{
26
- a{
27
- color: blue;
28
- }
29
- }
30
- }
31
-
32
- .controls{
33
- position:absolute;
34
- right:10px;
35
- top:10%;
36
- zoom:1;
37
- padding-bottom:6px;
38
- }
39
- .controls a{
40
- margin:0 10px;
41
- font-size:10pt;
42
- color:#CCC;
43
- border:1px solid transparent;
44
- padding:3px;
45
- text-decoration:none;
46
- }
47
- .controls a:hover{
48
- color:#999;
49
- border:1px solid #999;
50
- }
51
- ul.rights{
52
- margin:0 0 20px;
53
- }
54
- ul.rights li{
55
- margin:0 0 5px 20px;
56
- position:relative;
57
- zoom:1;
58
- border-bottom:1px solid #EEE;
59
- padding: 5px 0;
60
- font-size:9pt;
61
- }
62
- ul.rights li .controls{
63
- top:10%;
64
- right:5px;
65
- padding:5px;
66
- }
67
- form.new_action{
68
- padding:15px;
69
- background:#EEE;
70
- margin:0 0 50px 0;
71
- }
72
- form{
73
- margin:0 0 50px 0;
74
- }
75
- }
@@ -1,7 +0,0 @@
1
- module TheRole
2
- module ParamHelper
3
- def param_prepare param
4
- param.to_s.parameterize.underscore.to_sym
5
- end
6
- end
7
- end