panda_pal 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/panda_pal/application.js +13 -0
- data/app/assets/javascripts/panda_pal/lti.js +2 -0
- data/app/assets/stylesheets/panda_pal/application.css +15 -0
- data/app/assets/stylesheets/panda_pal/lti.css +4 -0
- data/app/controllers/panda_pal/application_controller.rb +4 -0
- data/app/controllers/panda_pal/lti_controller.rb +50 -0
- data/app/helpers/panda_pal/application_helper.rb +4 -0
- data/app/models/panda_pal/organization.rb +28 -0
- data/app/models/panda_pal/session.rb +9 -0
- data/app/views/layouts/panda_pal/application.html.erb +14 -0
- data/app/views/panda_pal/lti/launch.html.erb +1 -0
- data/config/initializers/apartment.rb +15 -0
- data/config/initializers/delayed_job.rb +1 -0
- data/config/routes.rb +4 -0
- data/db/f60326d86923901b6cfdb11a6d8ebd68.sqlite3 +0 -0
- data/db/migrate/20160412205931_create_panda_pal_organizations.rb +15 -0
- data/db/migrate/20160413132229_create_delayed_jobs.rb +23 -0
- data/db/migrate/20160413135653_create_panda_pal_sessions.rb +11 -0
- data/lib/panda_pal/engine.rb +45 -0
- data/lib/panda_pal/helpers/controller_helper.rb +62 -0
- data/lib/panda_pal/helpers/route_helper.rb +17 -0
- data/lib/panda_pal/helpers.rb +4 -0
- data/lib/panda_pal/plugins/apartment_delayed_jobs_plugin.rb +40 -0
- data/lib/panda_pal/plugins.rb +3 -0
- data/lib/panda_pal/version.rb +3 -0
- data/lib/panda_pal.rb +63 -0
- data/lib/tasks/panda_pal_tasks.rake +6 -0
- data/panda_pal.gemspec +28 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20160415162152_create_panda_pal_organizations.panda_pal.rb +16 -0
- data/spec/dummy/db/migrate/20160415162153_create_delayed_jobs.panda_pal.rb +24 -0
- data/spec/dummy/db/migrate/20160415162154_create_panda_pal_sessions.panda_pal.rb +12 -0
- data/spec/dummy/db/schema.rb +55 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +101 -0
- data/spec/dummy/log/test.log +657 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/panda_pal_organizations.rb +8 -0
- data/spec/factories/panda_pal_sessions.rb +7 -0
- data/spec/models/panda_pal/organization_spec.rb +26 -0
- data/spec/models/panda_pal/session_spec.rb +9 -0
- data/spec/rails_helper.rb +31 -0
- data/spec/spec_helper.rb +85 -0
- metadata +296 -0
@@ -0,0 +1,101 @@
|
|
1
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
9
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
10
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
11
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14
|
+
[1m[36mPandaPal::Organization Load (0.1ms)[0m [1mSELECT "panda_pal_organizations".* FROM "panda_pal_organizations" ORDER BY "panda_pal_organizations"."id" ASC LIMIT 1[0m
|
15
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
17
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
18
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
19
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
+
[1m[36mPandaPal::Organization Load (0.1ms)[0m [1mSELECT "panda_pal_organizations".* FROM "panda_pal_organizations" ORDER BY "panda_pal_organizations"."id" ASC LIMIT 1[0m
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
26
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
35
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
36
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
37
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
38
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
39
|
+
Migrating to CreatePandaPalOrganizations (20160415162152)
|
40
|
+
[1m[35m (0.1ms)[0m begin transaction
|
41
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "panda_pal_organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "key" varchar, "secret" varchar, "canvas_account_id" varchar, "settings" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
42
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
43
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")[0m
|
44
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
45
|
+
FROM sqlite_master
|
46
|
+
WHERE name='index_panda_pal_organizations_on_name' AND type='index'
|
47
|
+
UNION ALL
|
48
|
+
SELECT sql
|
49
|
+
FROM sqlite_temp_master
|
50
|
+
WHERE name='index_panda_pal_organizations_on_name' AND type='index'
|
51
|
+
|
52
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")[0m
|
53
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160415162152"]]
|
54
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
55
|
+
Migrating to CreateDelayedJobs (20160415162153)
|
56
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "tenant" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
58
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
59
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160415162153"]]
|
60
|
+
[1m[35m (0.7ms)[0m commit transaction
|
61
|
+
Migrating to CreatePandaPalSessions (20160415162154)
|
62
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "panda_pal_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_key" varchar, "data" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
64
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")[0m
|
65
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160415162154"]]
|
66
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
67
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
68
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
69
|
+
FROM sqlite_master
|
70
|
+
WHERE name='delayed_jobs_priority' AND type='index'
|
71
|
+
UNION ALL
|
72
|
+
SELECT sql
|
73
|
+
FROM sqlite_temp_master
|
74
|
+
WHERE name='delayed_jobs_priority' AND type='index'
|
75
|
+
[0m
|
76
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
77
|
+
FROM sqlite_master
|
78
|
+
WHERE name='index_panda_pal_organizations_on_key' AND type='index'
|
79
|
+
UNION ALL
|
80
|
+
SELECT sql
|
81
|
+
FROM sqlite_temp_master
|
82
|
+
WHERE name='index_panda_pal_organizations_on_key' AND type='index'
|
83
|
+
|
84
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
85
|
+
FROM sqlite_master
|
86
|
+
WHERE name='index_panda_pal_organizations_on_name' AND type='index'
|
87
|
+
UNION ALL
|
88
|
+
SELECT sql
|
89
|
+
FROM sqlite_temp_master
|
90
|
+
WHERE name='index_panda_pal_organizations_on_name' AND type='index'
|
91
|
+
[0m
|
92
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
93
|
+
FROM sqlite_master
|
94
|
+
WHERE name='index_panda_pal_sessions_on_session_key' AND type='index'
|
95
|
+
UNION ALL
|
96
|
+
SELECT sql
|
97
|
+
FROM sqlite_temp_master
|
98
|
+
WHERE name='index_panda_pal_sessions_on_session_key' AND type='index'
|
99
|
+
|
100
|
+
[1m[36m (0.1ms)[0m [1mSELECT "panda_pal_organizations"."name" FROM "panda_pal_organizations"[0m
|
101
|
+
[1m[35m (0.1ms)[0m SELECT "panda_pal_organizations"."name" FROM "panda_pal_organizations"
|