coalescing_panda 1.1.12 → 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 774e6837cc71f1f234340929fac6ff7403fdeae3
4
- data.tar.gz: 5d04657c83c17e0d06782584ba1e87392a23ecaa
3
+ metadata.gz: 3fe17501cb6fead8f62051c8ff8f0322c1502507
4
+ data.tar.gz: 10a20edfb1cf72463579ce9e57138ad4391cbaf2
5
5
  SHA512:
6
- metadata.gz: e85321af9c0ed92434f308c849734a690eac0f8e53393679fd37ec92a4f7f3bdbb33d1c3238289875d25164636ba2b8b33f10a71127741b8d875064bfd5c7ac5
7
- data.tar.gz: 42acd5abeaaffb4c10abde6670ea86ac8ba428e2aba5e1d7128252527e85e7e9e9f210425a1115d2534e622c7cfd70a72381e8254091b53f8ab117f2009755f2
6
+ metadata.gz: d9e781160a622df9b9f1a61f36d9564e64a578b4700e9a1835e20012ee50eed882e1ae8dc87ea4a0f1fac7cdde6ae31a802a461bfa237fb4c2a424ad722213a9
7
+ data.tar.gz: 869926c854820710cf4742008fae2355f1b00e655f9be002354d307f19eec007ca549f004b305f7f5c783949944a707ba18d321f28beefb6899fc038e39de531
@@ -1,4 +1,21 @@
1
1
  module CoalescingPanda
2
2
  class ApplicationController < ActionController::Base
3
+
4
+ before_filter :session_check
5
+
6
+ def session_check
7
+ user_agent = UserAgent.parse(request.user_agent) # Uses useragent gem!
8
+ if user_agent.browser == 'Safari' # we apply the fix..
9
+ return if session[:safari_cookie_fixed] # it is already fixed.. continue
10
+ if params[:safari_cookie_fix].present? # we should be top window and able to set cookies.. so fix the issue :)
11
+ session[:safari_cookie_fixed] = true
12
+ redirect_to params[:return_to]
13
+ else
14
+ # Redirect the top frame to your server..
15
+ query = params.to_query
16
+ render :text => "<script>var referrer = document.referrer; top.window.location='?safari_cookie_fix=true&return_to='.concat(encodeURI(referrer));</script>"
17
+ end
18
+ end
19
+ end
3
20
  end
4
21
  end
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '1.1.12'
2
+ VERSION = '1.1.13'
3
3
  end
@@ -6,6 +6,7 @@ require 'oauth/request_proxy/rack_request'
6
6
  require 'haml'
7
7
  require 'sass-rails'
8
8
  require 'coffee-rails'
9
+ require 'p3p'
9
10
 
10
11
  module CoalescingPanda
11
12
  class LtiNavigationInUse < StandardError;end
@@ -51,4 +52,3 @@ module CoalescingPanda
51
52
  end
52
53
 
53
54
  end
54
-
@@ -0,0 +1,336 @@
1
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)
5
+  (0.1ms) begin transaction
6
+  (0.3ms) CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar(255), "api_domain" varchar(255), "api_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
+ SQL (2.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131114150001"]]
8
+  (0.9ms) commit transaction
9
+ Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)
10
+  (0.1ms) begin transaction
11
+  (0.3ms) CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "key" varchar(255), "secret" varchar(255), "oauth2_client_id" varchar(255), "oauth2_client_key" varchar(255), "created_at" datetime, "updated_at" datetime) 
12
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]
13
+  (1.0ms) commit transaction
14
+ Migrating to CreateCoalescingPandaLtiNonces (20131119165343)
15
+  (0.1ms) begin transaction
16
+  (0.3ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime) 
17
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]
18
+  (0.7ms) commit transaction
19
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
+  (0.1ms) begin transaction
22
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
23
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
24
+  (0.1ms) rollback transaction
25
+  (0.1ms) begin transaction
26
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
27
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
28
+  (0.1ms) rollback transaction
29
+  (0.1ms) begin transaction
30
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1
31
+  (0.0ms) SAVEPOINT active_record_1
32
+ SQL (4.2ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 08 Jan 2014 15:08:34 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 15:08:34 UTC +00:00], ["user_id", "arbitrary_string"]]
33
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
35
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
36
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"
37
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
38
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
39
+  (0.5ms) rollback transaction
40
+  (0.1ms) begin transaction
41
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
42
+ Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar"}
43
+ CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
44
+ Completed 500 Internal Server Error in 30ms
45
+  (0.1ms) rollback transaction
46
+  (0.1ms) begin transaction
47
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
48
+ Parameters: {"error"=>"your face"}
49
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms)
50
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"
51
+  (0.1ms) rollback transaction
52
+  (0.1ms) begin transaction
53
+  (0.1ms) rollback transaction
54
+  (0.1ms) begin transaction
55
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
56
+ Completed 500 Internal Server Error in 0ms
57
+  (0.1ms) rollback transaction
58
+  (0.1ms) begin transaction
59
+  (0.1ms) rollback transaction
60
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
+  (0.1ms) begin transaction
62
+  (0.1ms) rollback transaction
63
+  (0.1ms) begin transaction
64
+  (0.1ms) rollback transaction
65
+  (0.1ms) begin transaction
66
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
67
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
68
+  (0.1ms) rollback transaction
69
+  (0.1ms) begin transaction
70
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
71
+ Parameters: {"error"=>"your face"}
72
+ Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms)
73
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"
74
+  (0.1ms) rollback transaction
75
+  (0.1ms) begin transaction
76
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
77
+ Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar"}
78
+ CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
79
+ Completed 500 Internal Server Error in 9ms
80
+  (0.1ms) rollback transaction
81
+  (0.1ms) begin transaction
82
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1
83
+  (0.1ms) SAVEPOINT active_record_1
84
+ SQL (5.7ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 08 Jan 2014 15:10:28 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 15:10:28 UTC +00:00], ["user_id", "arbitrary_string"]]
85
+  (0.1ms) RELEASE SAVEPOINT active_record_1
86
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
87
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
88
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"
89
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
90
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
91
+  (0.7ms) rollback transaction
92
+  (0.1ms) begin transaction
93
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
94
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
95
+  (0.1ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
98
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
99
+  (0.1ms) rollback transaction
100
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
101
+  (0.1ms) begin transaction
102
+  (0.1ms) rollback transaction
103
+  (0.1ms) begin transaction
104
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
105
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
106
+  (0.1ms) rollback transaction
107
+  (0.1ms) begin transaction
108
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
109
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
110
+  (0.1ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1
113
+  (0.0ms) SAVEPOINT active_record_1
114
+ SQL (5.7ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 08 Jan 2014 15:12:07 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 15:12:07 UTC +00:00], ["user_id", "arbitrary_string"]]
115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
116
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
117
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
118
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"
119
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
120
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
121
+  (0.6ms) rollback transaction
122
+  (0.1ms) begin transaction
123
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
124
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
125
+  (0.1ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
128
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
129
+  (0.1ms) rollback transaction
130
+  (0.1ms) begin transaction
131
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
132
+ Parameters: {"error"=>"your face"}
133
+ Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)
134
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"
135
+  (0.1ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
138
+ Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar"}
139
+ CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
140
+ Completed 500 Internal Server Error in 8ms
141
+  (0.1ms) rollback transaction
142
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
143
+  (0.1ms) begin transaction
144
+  (0.1ms) rollback transaction
145
+  (0.1ms) begin transaction
146
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
147
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
148
+  (0.1ms) rollback transaction
149
+  (0.1ms) begin transaction
150
+  (0.1ms) rollback transaction
151
+  (0.1ms) begin transaction
152
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1
153
+  (0.0ms) SAVEPOINT active_record_1
154
+ SQL (5.6ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 08 Jan 2014 15:17:23 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 15:17:23 UTC +00:00], ["user_id", "arbitrary_string"]]
155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
156
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
157
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
158
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"
159
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
160
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
161
+  (1.5ms) rollback transaction
162
+  (0.1ms) begin transaction
163
+ CoalescingPanda::CanvasApiAuth Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
164
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
165
+  (0.1ms) rollback transaction
166
+  (0.1ms) begin transaction
167
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
168
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
169
+  (0.1ms) rollback transaction
170
+  (0.1ms) begin transaction
171
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
172
+ Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar"}
173
+ CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
174
+ Completed 500 Internal Server Error in 29ms
175
+  (0.1ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
178
+ Parameters: {"error"=>"your face"}
179
+ Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)
180
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"
181
+  (0.1ms) rollback transaction
182
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
183
+  (0.1ms) begin transaction
184
+  (0.1ms) rollback transaction
185
+  (0.1ms) begin transaction
186
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
187
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
188
+  (0.1ms) rollback transaction
189
+  (0.1ms) begin transaction
190
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
191
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
192
+  (0.1ms) rollback transaction
193
+  (0.1ms) begin transaction
194
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1
195
+  (0.0ms) SAVEPOINT active_record_1
196
+ SQL (5.6ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 08 Jan 2014 15:21:24 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 15:21:24 UTC +00:00], ["user_id", "arbitrary_string"]]
197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
198
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
199
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
200
+ CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"
201
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
202
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'arbitrary_string' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1
203
+  (1.8ms) rollback transaction
204
+  (0.1ms) begin transaction
205
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
206
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
207
+  (0.1ms) rollback transaction
208
+  (0.1ms) begin transaction
209
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
210
+ CoalescingPanda::CanvasApiAuth Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1
211
+  (0.1ms) rollback transaction
212
+  (0.1ms) begin transaction
213
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
214
+ Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar"}
215
+ CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
216
+ Completed 500 Internal Server Error in 8ms
217
+  (0.1ms) rollback transaction
218
+  (0.1ms) begin transaction
219
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
220
+ Parameters: {"error"=>"your face"}
221
+ Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)
222
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"
223
+  (0.1ms) rollback transaction
224
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
225
+  (0.1ms) begin transaction
226
+  (0.1ms) rollback transaction
227
+  (0.1ms) begin transaction
228
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
229
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
230
+  (0.1ms) rollback transaction
231
+  (0.1ms) begin transaction
232
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
233
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
234
+  (0.1ms) rollback transaction
235
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
236
+  (0.1ms) begin transaction
237
+  (0.1ms) rollback transaction
238
+  (0.1ms) begin transaction
239
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
240
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
241
+  (0.1ms) rollback transaction
242
+  (0.1ms) begin transaction
243
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
244
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
245
+  (0.1ms) rollback transaction
246
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
247
+  (0.1ms) begin transaction
248
+  (0.1ms) rollback transaction
249
+  (0.1ms) begin transaction
250
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
251
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
252
+  (0.1ms) rollback transaction
253
+  (0.1ms) begin transaction
254
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
255
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
256
+  (0.1ms) rollback transaction
257
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
258
+  (0.1ms) begin transaction
259
+  (0.1ms) rollback transaction
260
+  (0.1ms) begin transaction
261
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
262
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
263
+  (0.1ms) rollback transaction
264
+  (0.1ms) begin transaction
265
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
266
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
267
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
268
+  (0.1ms) begin transaction
269
+  (0.1ms) rollback transaction
270
+  (0.1ms) begin transaction
271
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
272
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
273
+  (0.1ms) rollback transaction
274
+  (0.1ms) begin transaction
275
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
276
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
277
+  (0.1ms) rollback transaction
278
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
279
+  (0.1ms) begin transaction
280
+  (0.1ms) rollback transaction
281
+  (0.1ms) begin transaction
282
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
283
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
284
+  (0.1ms) rollback transaction
285
+  (0.1ms) begin transaction
286
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
287
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
288
+  (0.1ms) rollback transaction
289
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
290
+  (0.1ms) begin transaction
291
+  (0.1ms) rollback transaction
292
+  (0.1ms) begin transaction
293
+  (0.1ms) rollback transaction
294
+  (0.1ms) begin transaction
295
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
296
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
297
+  (0.1ms) rollback transaction
298
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
299
+  (0.1ms) begin transaction
300
+  (0.1ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
303
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
304
+  (0.1ms) rollback transaction
305
+  (0.1ms) begin transaction
306
+ Processing by CoalescingPanda::LtiController#lti_config as HTML
307
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
308
+  (0.1ms) rollback transaction
309
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
310
+  (0.1ms) begin transaction
311
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
312
+ Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar"}
313
+ CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
314
+ Completed 500 Internal Server Error in 10ms
315
+  (0.1ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
318
+ Parameters: {"error"=>"your face"}
319
+ Completed 200 OK in 39ms (Views: 38.7ms | ActiveRecord: 0.0ms)
320
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"
321
+  (0.1ms) rollback transaction
322
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
323
+  (0.1ms) begin transaction
324
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
325
+ Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar"}
326
+ CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts"
327
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_lti_accounts"
328
+ CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
329
+ Completed 500 Internal Server Error in 441449ms
330
+  (0.1ms) rollback transaction
331
+  (0.1ms) begin transaction
332
+ Processing by CoalescingPanda::Oauth2Controller#redirect as HTML
333
+ Parameters: {"error"=>"your face"}
334
+ Completed 200 OK in 40ms (Views: 39.7ms | ActiveRecord: 0.0ms)
335
+  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"
336
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coalescing_panda
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: useragent
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: sqlite3
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -322,9 +336,9 @@ files:
322
336
  - spec/dummy/config/locales/en.yml
323
337
  - spec/dummy/config/routes.rb
324
338
  - spec/dummy/config.ru
325
- - spec/dummy/db/development.sqlite3
326
339
  - spec/dummy/db/schema.rb
327
- - spec/dummy/log/development.log
340
+ - spec/dummy/db/test.sqlite3
341
+ - spec/dummy/log/test.log
328
342
  - spec/dummy/public/404.html
329
343
  - spec/dummy/public/422.html
330
344
  - spec/dummy/public/500.html
@@ -352,7 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
352
366
  version: '0'
353
367
  requirements: []
354
368
  rubyforge_project:
355
- rubygems_version: 2.0.14
369
+ rubygems_version: 2.0.3
356
370
  signing_key:
357
371
  specification_version: 4
358
372
  summary: Canvas LTI and OAUTH2 mountable engine
@@ -385,9 +399,9 @@ test_files:
385
399
  - spec/dummy/config/locales/en.yml
386
400
  - spec/dummy/config/routes.rb
387
401
  - spec/dummy/config.ru
388
- - spec/dummy/db/development.sqlite3
389
402
  - spec/dummy/db/schema.rb
390
- - spec/dummy/log/development.log
403
+ - spec/dummy/db/test.sqlite3
404
+ - spec/dummy/log/test.log
391
405
  - spec/dummy/public/404.html
392
406
  - spec/dummy/public/422.html
393
407
  - spec/dummy/public/500.html
@@ -1,31 +0,0 @@
1
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)
5
-  (0.1ms) begin transaction
6
-  (0.3ms) CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar(255), "api_domain" varchar(255), "api_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131114150001"]]
8
-  (0.7ms) commit transaction
9
- Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)
10
-  (0.1ms) begin transaction
11
-  (0.3ms) CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "key" varchar(255), "secret" varchar(255), "oauth2_client_id" varchar(255), "oauth2_client_key" varchar(255), "created_at" datetime, "updated_at" datetime) 
12
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]
13
-  (0.8ms) commit transaction
14
- Migrating to CreateCoalescingPandaLtiNonces (20131119165343)
15
-  (0.1ms) begin transaction
16
-  (0.3ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime) 
17
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]
18
-  (0.8ms) commit transaction
19
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
- Migrating to AddSettingsToCoalescingPandaLtiAccount (20140722210735)
22
-  (0.1ms) begin transaction
23
-  (0.4ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "settings" text
24
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722210735"]]
25
-  (0.8ms) commit transaction
26
- Migrating to CreateCoalescingPandaSessions (20140904223159)
27
-  (0.0ms) begin transaction
28
-  (0.2ms) CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "data" text, "created_at" datetime, "updated_at" datetime) 
29
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140904223159"]]
30
-  (0.7ms) commit transaction
31
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"