bushido 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/Gemfile +23 -0
  2. data/Rakefile +9 -3
  3. data/app/controllers/bushido/data_controller.rb +4 -2
  4. data/app/controllers/bushido/envs_controller.rb +11 -3
  5. data/bushido.gemspec +1 -0
  6. data/lib/bushido/data.rb +44 -29
  7. data/lib/bushido/envs.rb +3 -31
  8. data/lib/bushido/hooks.rb +38 -0
  9. data/lib/bushido/ido_schema.rb +17 -0
  10. data/lib/bushido/middleware.rb +6 -5
  11. data/lib/bushido/models.rb +144 -0
  12. data/lib/bushido/orm/active_record.rb +44 -0
  13. data/lib/bushido/orm/mongoid.rb +31 -0
  14. data/lib/bushido/platform.rb +4 -1
  15. data/lib/bushido/schema.rb +42 -0
  16. data/lib/bushido/version.rb +1 -1
  17. data/lib/bushido.rb +17 -2
  18. data/lib/engine.rb +4 -7
  19. data/lib/generators/active_record/bushido_generator.rb +28 -0
  20. data/lib/generators/active_record/templates/migration.rb +20 -0
  21. data/lib/generators/bushido/bushido_generator.rb +14 -0
  22. data/lib/generators/bushido/install_generator.rb +24 -0
  23. data/lib/generators/bushido/orm_helpers.rb +21 -0
  24. data/lib/generators/mongoid/bushido_generator.rb +17 -0
  25. data/lib/generators/templates/README +5 -0
  26. data/lib/generators/templates/bushido.rb +10 -0
  27. data/lib/rails/#routes.rb# +16 -0
  28. data/test/controllers/envs_controller_test.rb +21 -0
  29. data/test/rails_app/Rakefile +9 -0
  30. data/test/rails_app/app/controllers/application_controller.rb +7 -0
  31. data/test/rails_app/app/helpers/application_helper.rb +2 -0
  32. data/test/rails_app/app/views/application/index.html.erb +1 -0
  33. data/test/rails_app/app/views/layouts/application.html.erb +14 -0
  34. data/test/rails_app/config/application.rb +50 -0
  35. data/test/rails_app/config/boot.rb +10 -0
  36. data/test/rails_app/config/database.yml +22 -0
  37. data/test/rails_app/config/environment.rb +5 -0
  38. data/test/rails_app/config/environments/development.rb +26 -0
  39. data/test/rails_app/config/environments/production.rb +49 -0
  40. data/test/rails_app/config/environments/test.rb +35 -0
  41. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  42. data/test/rails_app/config/initializers/inflections.rb +10 -0
  43. data/test/rails_app/config/initializers/mime_types.rb +5 -0
  44. data/test/rails_app/config/initializers/secret_token.rb +7 -0
  45. data/test/rails_app/config/initializers/session_store.rb +8 -0
  46. data/test/rails_app/config/locales/en.yml +5 -0
  47. data/test/rails_app/config/routes.rb +62 -0
  48. data/test/rails_app/config.ru +4 -0
  49. data/test/rails_app/db/development.sqlite3 +0 -0
  50. data/test/rails_app/db/test.sqlite3 +0 -0
  51. data/test/rails_app/log/development.log +66 -0
  52. data/test/rails_app/log/production.log +0 -0
  53. data/test/rails_app/log/server.log +0 -0
  54. data/test/rails_app/log/test.log +0 -0
  55. data/test/rails_app/public/404.html +26 -0
  56. data/test/rails_app/public/422.html +26 -0
  57. data/test/rails_app/public/500.html +26 -0
  58. data/test/rails_app/public/favicon.ico +0 -0
  59. data/test/rails_app/public/javascripts/application.js +2 -0
  60. data/test/rails_app/public/javascripts/controls.js +965 -0
  61. data/test/rails_app/public/javascripts/dragdrop.js +974 -0
  62. data/test/rails_app/public/javascripts/effects.js +1123 -0
  63. data/test/rails_app/public/javascripts/prototype.js +6001 -0
  64. data/test/rails_app/public/javascripts/rails.js +191 -0
  65. data/test/rails_app/public/stylesheets/.gitkeep +0 -0
  66. data/test/rails_app/script/rails +6 -0
  67. data/test/test_helper.rb +9 -0
  68. metadata +154 -79
  69. data/config/routes.rb +0 -1
  70. data/test/routes_test.rb +0 -12
  71. data/test/test_executable.rb +0 -10
@@ -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