extreme_aas 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/.gitignore +8 -0
  2. data/.rvmrc +5 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +134 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.rdoc +3 -0
  7. data/Rakefile +25 -0
  8. data/app/models/extreme_aas/application_controller.rb +21 -0
  9. data/app/models/extreme_aas/extreme_action.rb +21 -0
  10. data/app/models/extreme_aas/extreme_action_abstract.rb +22 -0
  11. data/app/models/extreme_aas/extreme_action_edge.rb +6 -0
  12. data/app/models/extreme_aas/extreme_action_group.rb +33 -0
  13. data/app/models/extreme_aas/extreme_grant.rb +13 -0
  14. data/app/models/extreme_aas/extreme_profile.rb +10 -0
  15. data/app/models/extreme_aas/extreme_simple_action.rb +19 -0
  16. data/extreme_aas.gemspec +29 -0
  17. data/lib/extreme_aas/engine.rb +23 -0
  18. data/lib/extreme_aas/version.rb +3 -0
  19. data/lib/extreme_aas.rb +25 -0
  20. data/lib/generators/extreme_aas/extreme_aas_generator.rb +21 -0
  21. data/lib/generators/extreme_aas/templates/migration.rb +36 -0
  22. data/lib/tasks/sync.rake +56 -0
  23. data/spec/dummy/Gemfile.lock +10 -0
  24. data/spec/dummy/Rakefile +7 -0
  25. data/spec/dummy/app/assets/javascripts/users.js +2 -0
  26. data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
  27. data/spec/dummy/app/assets/stylesheets/users.css +4 -0
  28. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  29. data/spec/dummy/app/controllers/users_controller.rb +83 -0
  30. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  31. data/spec/dummy/app/helpers/users_helper.rb +5 -0
  32. data/spec/dummy/app/models/user.rb +3 -0
  33. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/spec/dummy/app/views/users/_form.html.erb +25 -0
  35. data/spec/dummy/app/views/users/edit.html.erb +6 -0
  36. data/spec/dummy/app/views/users/index.html.erb +25 -0
  37. data/spec/dummy/app/views/users/new.html.erb +5 -0
  38. data/spec/dummy/app/views/users/show.html.erb +15 -0
  39. data/spec/dummy/config/application.rb +45 -0
  40. data/spec/dummy/config/boot.rb +10 -0
  41. data/spec/dummy/config/database.yml +28 -0
  42. data/spec/dummy/config/database_template.yml +28 -0
  43. data/spec/dummy/config/environment.rb +5 -0
  44. data/spec/dummy/config/environments/development.rb +24 -0
  45. data/spec/dummy/config/environments/production.rb +49 -0
  46. data/spec/dummy/config/environments/test.rb +35 -0
  47. data/spec/dummy/config/extreme_aas_groups.yml +0 -0
  48. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  49. data/spec/dummy/config/initializers/inflections.rb +10 -0
  50. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  51. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  52. data/spec/dummy/config/initializers/session_store.rb +8 -0
  53. data/spec/dummy/config/locales/en.yml +5 -0
  54. data/spec/dummy/config/routes.rb +60 -0
  55. data/spec/dummy/config.ru +4 -0
  56. data/spec/dummy/db/migrate/20120404105554_create_users.rb +10 -0
  57. data/spec/dummy/db/migrate/20120413132357_create_extreme_aas_tables.rb +36 -0
  58. data/spec/dummy/db/schema.rb +65 -0
  59. data/spec/dummy/public/401.html +26 -0
  60. data/spec/dummy/public/404.html +26 -0
  61. data/spec/dummy/public/422.html +26 -0
  62. data/spec/dummy/public/500.html +26 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/dummy/public/javascripts/application.js +2 -0
  65. data/spec/dummy/public/javascripts/controls.js +965 -0
  66. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  67. data/spec/dummy/public/javascripts/effects.js +1123 -0
  68. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  69. data/spec/dummy/public/javascripts/rails.js +202 -0
  70. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  71. data/spec/dummy/script/rails +6 -0
  72. data/spec/factories.rb +26 -0
  73. data/spec/integration/controller_actions_spec.rb +28 -0
  74. data/spec/integration/navigation_spec.rb +8 -0
  75. data/spec/spec_helper.rb +42 -0
  76. data/spec/support/extreme_aas_groups.yml +8 -0
  77. data/spec/unit/action_group_spec.rb +65 -0
  78. data/spec/unit/simple_action_spec.rb +34 -0
  79. metadata +235 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Unauthorized (401)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/401.html -->
21
+ <div class="dialog">
22
+ <h1>You don't enough privileges.</h1>
23
+ <p>Please contact us if you feel that something is wrong.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,2 @@
1
+ // Place your application-specific JavaScript functions and classes here
2
+ // This file is automatically included by javascript_include_tag :defaults