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