panda_pal 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/panda_pal/application.js +13 -0
  5. data/app/assets/javascripts/panda_pal/lti.js +2 -0
  6. data/app/assets/stylesheets/panda_pal/application.css +15 -0
  7. data/app/assets/stylesheets/panda_pal/lti.css +4 -0
  8. data/app/controllers/panda_pal/application_controller.rb +4 -0
  9. data/app/controllers/panda_pal/lti_controller.rb +50 -0
  10. data/app/helpers/panda_pal/application_helper.rb +4 -0
  11. data/app/models/panda_pal/organization.rb +28 -0
  12. data/app/models/panda_pal/session.rb +9 -0
  13. data/app/views/layouts/panda_pal/application.html.erb +14 -0
  14. data/app/views/panda_pal/lti/launch.html.erb +1 -0
  15. data/config/initializers/apartment.rb +15 -0
  16. data/config/initializers/delayed_job.rb +1 -0
  17. data/config/routes.rb +4 -0
  18. data/db/f60326d86923901b6cfdb11a6d8ebd68.sqlite3 +0 -0
  19. data/db/migrate/20160412205931_create_panda_pal_organizations.rb +15 -0
  20. data/db/migrate/20160413132229_create_delayed_jobs.rb +23 -0
  21. data/db/migrate/20160413135653_create_panda_pal_sessions.rb +11 -0
  22. data/lib/panda_pal/engine.rb +45 -0
  23. data/lib/panda_pal/helpers/controller_helper.rb +62 -0
  24. data/lib/panda_pal/helpers/route_helper.rb +17 -0
  25. data/lib/panda_pal/helpers.rb +4 -0
  26. data/lib/panda_pal/plugins/apartment_delayed_jobs_plugin.rb +40 -0
  27. data/lib/panda_pal/plugins.rb +3 -0
  28. data/lib/panda_pal/version.rb +3 -0
  29. data/lib/panda_pal.rb +63 -0
  30. data/lib/tasks/panda_pal_tasks.rake +6 -0
  31. data/panda_pal.gemspec +28 -0
  32. data/spec/dummy/README.rdoc +28 -0
  33. data/spec/dummy/Rakefile +6 -0
  34. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  35. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  36. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  37. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  38. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  39. data/spec/dummy/bin/bundle +3 -0
  40. data/spec/dummy/bin/rails +4 -0
  41. data/spec/dummy/bin/rake +4 -0
  42. data/spec/dummy/bin/setup +29 -0
  43. data/spec/dummy/config/application.rb +26 -0
  44. data/spec/dummy/config/boot.rb +5 -0
  45. data/spec/dummy/config/database.yml +25 -0
  46. data/spec/dummy/config/environment.rb +5 -0
  47. data/spec/dummy/config/environments/development.rb +41 -0
  48. data/spec/dummy/config/environments/production.rb +79 -0
  49. data/spec/dummy/config/environments/test.rb +42 -0
  50. data/spec/dummy/config/initializers/assets.rb +11 -0
  51. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  52. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  53. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  54. data/spec/dummy/config/initializers/inflections.rb +16 -0
  55. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  56. data/spec/dummy/config/initializers/session_store.rb +3 -0
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/dummy/config/locales/en.yml +23 -0
  59. data/spec/dummy/config/routes.rb +4 -0
  60. data/spec/dummy/config/secrets.yml +22 -0
  61. data/spec/dummy/config.ru +4 -0
  62. data/spec/dummy/db/development.sqlite3 +0 -0
  63. data/spec/dummy/db/migrate/20160415162152_create_panda_pal_organizations.panda_pal.rb +16 -0
  64. data/spec/dummy/db/migrate/20160415162153_create_delayed_jobs.panda_pal.rb +24 -0
  65. data/spec/dummy/db/migrate/20160415162154_create_panda_pal_sessions.panda_pal.rb +12 -0
  66. data/spec/dummy/db/schema.rb +55 -0
  67. data/spec/dummy/db/test.sqlite3 +0 -0
  68. data/spec/dummy/log/development.log +101 -0
  69. data/spec/dummy/log/test.log +657 -0
  70. data/spec/dummy/public/404.html +67 -0
  71. data/spec/dummy/public/422.html +67 -0
  72. data/spec/dummy/public/500.html +66 -0
  73. data/spec/dummy/public/favicon.ico +0 -0
  74. data/spec/factories/panda_pal_organizations.rb +8 -0
  75. data/spec/factories/panda_pal_sessions.rb +7 -0
  76. data/spec/models/panda_pal/organization_spec.rb +26 -0
  77. data/spec/models/panda_pal/session_spec.rb +9 -0
  78. data/spec/rails_helper.rb +31 -0
  79. data/spec/spec_helper.rb +85 -0
  80. metadata +296 -0
@@ -0,0 +1,101 @@
1
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
9
+  (0.1ms) select sqlite_version(*)
10
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
14
+ PandaPal::Organization Load (0.1ms) SELECT "panda_pal_organizations".* FROM "panda_pal_organizations" ORDER BY "panda_pal_organizations"."id" ASC LIMIT 1
15
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
17
+  (0.1ms) select sqlite_version(*)
18
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
19
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+ PandaPal::Organization Load (0.1ms) SELECT "panda_pal_organizations".* FROM "panda_pal_organizations" ORDER BY "panda_pal_organizations"."id" ASC LIMIT 1
24
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
31
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
35
+  (0.1ms) select sqlite_version(*)
36
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ Migrating to CreatePandaPalOrganizations (20160415162152)
40
+  (0.1ms) begin transaction
41
+  (0.4ms) CREATE 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) 
42
+  (0.1ms) select sqlite_version(*)
43
+  (0.3ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
44
+  (0.1ms) 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
+  (0.1ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
53
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160415162152"]]
54
+  (1.3ms) commit transaction
55
+ Migrating to CreateDelayedJobs (20160415162153)
56
+  (0.1ms) begin transaction
57
+  (0.3ms) CREATE 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) 
58
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
59
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160415162153"]]
60
+  (0.7ms) commit transaction
61
+ Migrating to CreatePandaPalSessions (20160415162154)
62
+  (0.1ms) begin transaction
63
+  (0.5ms) 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
+  (0.4ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
65
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160415162154"]]
66
+  (0.8ms) commit transaction
67
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+  (0.1ms)  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
+ 
76
+  (0.1ms) 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
+  (0.1ms)  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
+ 
92
+  (0.1ms) 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
+  (0.1ms) SELECT "panda_pal_organizations"."name" FROM "panda_pal_organizations"
101
+  (0.1ms) SELECT "panda_pal_organizations"."name" FROM "panda_pal_organizations"