maestrano-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/LICENSE +21 -0
  2. data/README.md +164 -0
  3. data/Rakefile +38 -0
  4. data/app/controllers/maestrano/rails/saml_base_controller.rb +39 -0
  5. data/lib/generators/active_record/maestrano_group_generator.rb +38 -0
  6. data/lib/generators/active_record/maestrano_user_generator.rb +38 -0
  7. data/lib/generators/active_record/templates/migration.rb +12 -0
  8. data/lib/generators/maestrano/USAGE +2 -0
  9. data/lib/generators/maestrano/group_generator.rb +11 -0
  10. data/lib/generators/maestrano/install_generator.rb +30 -0
  11. data/lib/generators/maestrano/orm_helpers.rb +75 -0
  12. data/lib/generators/maestrano/templates/maestrano.rb +84 -0
  13. data/lib/generators/maestrano/templates/saml_controller.rb +52 -0
  14. data/lib/generators/maestrano/user_generator.rb +11 -0
  15. data/lib/generators/mongoid/maestrano_group_generator.rb +26 -0
  16. data/lib/generators/mongoid/maestrano_user_generator.rb +26 -0
  17. data/lib/maestrano/rails/controllers/maestrano_security.rb +32 -0
  18. data/lib/maestrano/rails/models/maestrano_auth_resource.rb +96 -0
  19. data/lib/maestrano/rails/version.rb +5 -0
  20. data/lib/maestrano/rails.rb +10 -0
  21. data/lib/maestrano-rails.rb +1 -0
  22. data/test/controllers/generic_controller_test.rb +54 -0
  23. data/test/controllers/saml_controller_test.rb +117 -0
  24. data/test/dummy/README.rdoc +261 -0
  25. data/test/dummy/Rakefile +7 -0
  26. data/test/dummy/app/assets/javascripts/application.js +15 -0
  27. data/test/dummy/app/assets/javascripts/pages.js +2 -0
  28. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  29. data/test/dummy/app/assets/stylesheets/pages.css +4 -0
  30. data/test/dummy/app/controllers/application_controller.rb +3 -0
  31. data/test/dummy/app/controllers/maestrano/auth/saml_controller.rb +14 -0
  32. data/test/dummy/app/controllers/pages_controller.rb +4 -0
  33. data/test/dummy/app/helpers/application_helper.rb +2 -0
  34. data/test/dummy/app/helpers/pages_helper.rb +2 -0
  35. data/test/dummy/app/models/admin/monster.rb +2 -0
  36. data/test/dummy/app/models/admin.rb +5 -0
  37. data/test/dummy/app/models/mno_crew.rb +7 -0
  38. data/test/dummy/app/models/mno_monster.rb +9 -0
  39. data/test/dummy/app/models/monster.rb +2 -0
  40. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  41. data/test/dummy/app/views/pages/home.html.erb +2 -0
  42. data/test/dummy/config/application.rb +56 -0
  43. data/test/dummy/config/boot.rb +10 -0
  44. data/test/dummy/config/database.yml +25 -0
  45. data/test/dummy/config/environment.rb +5 -0
  46. data/test/dummy/config/environments/development.rb +37 -0
  47. data/test/dummy/config/environments/production.rb +67 -0
  48. data/test/dummy/config/environments/test.rb +37 -0
  49. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  50. data/test/dummy/config/initializers/inflections.rb +15 -0
  51. data/test/dummy/config/initializers/maestrano.rb +84 -0
  52. data/test/dummy/config/initializers/mime_types.rb +5 -0
  53. data/test/dummy/config/initializers/secret_token.rb +7 -0
  54. data/test/dummy/config/initializers/session_store.rb +8 -0
  55. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  56. data/test/dummy/config/locales/en.yml +5 -0
  57. data/test/dummy/config/routes.rb +70 -0
  58. data/test/dummy/config.ru +4 -0
  59. data/test/dummy/db/development.sqlite3 +0 -0
  60. data/test/dummy/db/migrate/20140526125222_create_monsters.rb +8 -0
  61. data/test/dummy/db/migrate/20140526125242_create_admin_monsters.rb +8 -0
  62. data/test/dummy/db/migrate/20140526144828_create_mno_monsters.rb +13 -0
  63. data/test/dummy/db/migrate/20140526151139_create_mno_crews.rb +11 -0
  64. data/test/dummy/db/schema.rb +44 -0
  65. data/test/dummy/db/test.sqlite3 +0 -0
  66. data/test/dummy/log/development.log +76 -0
  67. data/test/dummy/log/test.log +3732 -0
  68. data/test/dummy/public/404.html +26 -0
  69. data/test/dummy/public/422.html +26 -0
  70. data/test/dummy/public/500.html +25 -0
  71. data/test/dummy/public/favicon.ico +0 -0
  72. data/test/dummy/script/rails +6 -0
  73. data/test/dummy/test/fixtures/admin/monsters.yml +11 -0
  74. data/test/dummy/test/fixtures/mno_crews.yml +11 -0
  75. data/test/dummy/test/fixtures/mno_monsters.yml +15 -0
  76. data/test/dummy/test/fixtures/monsters.yml +11 -0
  77. data/test/dummy/test/functional/pages_controller_test.rb +9 -0
  78. data/test/dummy/test/unit/admin/monster_test.rb +7 -0
  79. data/test/dummy/test/unit/helpers/pages_helper_test.rb +4 -0
  80. data/test/dummy/test/unit/mno_crew_test.rb +7 -0
  81. data/test/dummy/test/unit/mno_monster_test.rb +7 -0
  82. data/test/dummy/test/unit/monster_test.rb +7 -0
  83. data/test/generators/group/active_record_generator_test.rb +79 -0
  84. data/test/generators/group/mongoid_generator_test.rb +76 -0
  85. data/test/generators/group_generator_test.rb +39 -0
  86. data/test/generators/install_generator_test.rb +36 -0
  87. data/test/generators/user/active_record_generator_test.rb +79 -0
  88. data/test/generators/user/mongoid_generator_test.rb +76 -0
  89. data/test/generators/user_generator_test.rb +39 -0
  90. data/test/maestrano-rails_test.rb +7 -0
  91. data/test/models/maestrano_group_via_test.rb +66 -0
  92. data/test/models/maestrano_user_via_test.rb +70 -0
  93. data/test/test_files/config/routes.rb +58 -0
  94. data/test/test_helper.rb +24 -0
  95. data/test/tmp/app/models/monster.rb +20 -0
  96. metadata +287 -0
@@ -0,0 +1,76 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+  (0.2ms) select sqlite_version(*)
5
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
8
+ Migrating to CreateMonsters (20140526125222)
9
+  (0.0ms) begin transaction
10
+  (0.4ms) CREATE TABLE "monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
11
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140526125222')
12
+  (1.0ms) commit transaction
13
+ Migrating to CreateAdminMonsters (20140526125242)
14
+  (0.0ms) begin transaction
15
+  (0.3ms) CREATE TABLE "admin_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
16
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140526125242')
17
+  (0.8ms) commit transaction
18
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
19
+ Connecting to database specified by database.yml
20
+ Connecting to database specified by database.yml
21
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
22
+ Migrating to CreateMonsters (20140526125222)
23
+ Migrating to CreateAdminMonsters (20140526125242)
24
+ Migrating to CreateMnoMonsters (20140526144828)
25
+  (0.1ms) select sqlite_version(*)
26
+  (0.1ms) begin transaction
27
+  (0.6ms) CREATE TABLE "mno_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "provider" varchar(255), "uid" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
28
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140526144828')
29
+  (0.8ms) commit transaction
30
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
31
+ Connecting to database specified by database.yml
32
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
33
+ Migrating to CreateMonsters (20140526125222)
34
+ Migrating to CreateAdminMonsters (20140526125242)
35
+ Migrating to CreateMnoMonsters (20140526144828)
36
+  (0.1ms) select sqlite_version(*)
37
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
38
+ Connecting to database specified by database.yml
39
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
40
+  (0.4ms) select sqlite_version(*)
41
+  (1.2ms) CREATE TABLE "admin_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
42
+  (1.0ms) CREATE TABLE "mno_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "provider" varchar(255), "uid" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
43
+  (1.0ms) CREATE TABLE "monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
44
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
45
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
46
+  (0.1ms) SELECT version FROM "schema_migrations"
47
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140526144828')
48
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140526125222')
49
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140526125242')
50
+ Connecting to database specified by database.yml
51
+ Connecting to database specified by database.yml
52
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
53
+ Migrating to CreateMonsters (20140526125222)
54
+ Migrating to CreateAdminMonsters (20140526125242)
55
+ Migrating to CreateMnoMonsters (20140526144828)
56
+ Migrating to CreateMnoCrews (20140526151139)
57
+  (0.0ms) select sqlite_version(*)
58
+  (0.0ms) begin transaction
59
+  (0.6ms) CREATE TABLE "mno_crews" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "provider" varchar(255), "uid" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
60
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140526151139')
61
+  (3.0ms) commit transaction
62
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
63
+ Connecting to database specified by database.yml
64
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
65
+  (0.3ms) select sqlite_version(*)
66
+  (3.3ms) CREATE TABLE "admin_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
67
+  (0.8ms) CREATE TABLE "mno_crews" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "provider" varchar(255), "uid" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
68
+  (0.8ms) CREATE TABLE "mno_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "provider" varchar(255), "uid" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
69
+  (0.9ms) CREATE TABLE "monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
70
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
71
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
72
+  (0.1ms) SELECT version FROM "schema_migrations"
73
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140526151139')
74
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140526125222')
75
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140526125242')
76
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140526144828')