canvas_oauth_engine 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 27512d5016c98d576aea24005ffae12e1a1d6cee
4
+ data.tar.gz: b29233aa5ef5a4639b41c5db82d8d46d59f02896
5
+ SHA512:
6
+ metadata.gz: 761b7661314fa8a34b1438a9d6ccdc932aa6c0bd7ba5dda0099b5934199155b89abc701d0006a68929c43686288c187681658961b0df799bd5e3716f44e74c76
7
+ data.tar.gz: c7f2b447c20265f136bd77f3e9d110259e9f00ea823d9ed793f8c7275707d3bf5d7b8ca3b9d28f60887ce23258497d4382e1880add34c787b8223fea54cc7491
data/README.md CHANGED
@@ -4,6 +4,14 @@ CanvasOauth is a mountable engine for handling the oauth workflow with canvas
4
4
  and making api calls from your rails app. This is tested with Rails 3.2, we'll
5
5
  be looking at verifying with Rails 4 soon.
6
6
 
7
+ ## Warning
8
+
9
+ The current version of this gem relies heavily on being able to access the user
10
+ session. Since LTI apps generally run in an iframe inside the LMS, this means
11
+ that tools using this engine MUST run on the same root domain as the LMS they
12
+ are plugging into. This is obviously not ideal, and we will be working to
13
+ remove this limitation in the future.
14
+
7
15
  ## Installation
8
16
 
9
17
  Add the gem to your `Gemfile` with the following line, and then `bundle install`
@@ -52,7 +60,7 @@ generate in the canvas application.
52
60
  Finally, run migrations:
53
61
 
54
62
  ```
55
- bundle exec install
63
+ bundle install
56
64
  bundle exec rake railties:install:migrations
57
65
  bundle exec rake db:migrate
58
66
  ```
@@ -1,5 +1,5 @@
1
1
  module CanvasOauth
2
- class CanvasController < CanvasOauth::ApplicationController
2
+ class CanvasController < CanvasOauth::OauthApplicationController
3
3
  skip_before_filter :request_canvas_authentication
4
4
 
5
5
  def oauth
@@ -1,5 +1,5 @@
1
1
  module CanvasOauth
2
- class ApplicationController < ActionController::Base
2
+ class OauthApplicationController < ActionController::Base
3
3
  include CanvasOauth::CanvasApplication
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasOauth
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -8125,3 +8125,199 @@ API call (0.06ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :h
8125
8125
   (0.1ms) begin transaction
8126
8126
  API call (0.06ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
8127
8127
   (0.1ms) rollback transaction
8128
+ Initializing Canvas using configuration in /Users/simon/Instructure/projects/canvas_oauth_engine/spec/dummy/config/canvas.yml
8129
+  (0.3ms) begin transaction
8130
+ CanvasOauth::Authorization Load (2.9ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
8131
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8132
+ Parameters: {"code"=>"valid"}
8133
+ Rendered text template (0.0ms)
8134
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
8135
+  (0.1ms) rollback transaction
8136
+  (0.0ms) begin transaction
8137
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
8138
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8139
+ Parameters: {"code"=>"valid"}
8140
+  (0.1ms) SAVEPOINT active_record_1
8141
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
8142
+ Redirected to http://test.host/
8143
+ Completed 302 Found in 29ms (ActiveRecord: 0.3ms)
8144
+  (0.1ms) rollback transaction
8145
+  (0.1ms) begin transaction
8146
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
8147
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8148
+ Parameters: {"code"=>"invalid"}
8149
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
8150
+  (0.1ms) rollback transaction
8151
+  (0.0ms) begin transaction
8152
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8153
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
8154
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
8155
+  (0.1ms) rollback transaction
8156
+  (0.0ms) begin transaction
8157
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8158
+ Parameters: {"code"=>"valid"}
8159
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
8160
+  (0.0ms) rollback transaction
8161
+  (0.0ms) begin transaction
8162
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
8163
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8164
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
8165
+  (0.0ms) SAVEPOINT active_record_1
8166
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
8167
+ Redirected to http://test.host/
8168
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
8169
+  (0.0ms) rollback transaction
8170
+  (0.0ms) begin transaction
8171
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
8172
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8173
+ Parameters: {"code"=>"valid", "state"=>"mismatch"}
8174
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
8175
+  (0.0ms) rollback transaction
8176
+  (0.0ms) begin transaction
8177
+ Processing by CanvasOauth::CanvasController#oauth as HTML
8178
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
8179
+  (0.0ms) rollback transaction
8180
+  (0.0ms) begin transaction
8181
+  (0.0ms) rollback transaction
8182
+  (0.0ms) begin transaction
8183
+  (0.0ms) rollback transaction
8184
+  (0.0ms) begin transaction
8185
+  (0.0ms) rollback transaction
8186
+  (0.0ms) begin transaction
8187
+  (0.0ms) SAVEPOINT active_record_1
8188
+ SQL (0.8ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.484089"], ["last_used_at", "2015-08-20 23:05:23.483817"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.484089"]]
8189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8190
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
8191
+  (0.7ms) rollback transaction
8192
+  (0.1ms) begin transaction
8193
+  (0.0ms) SAVEPOINT active_record_1
8194
+ SQL (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.496170"], ["last_used_at", "2015-08-20 23:05:23.495840"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.496170"]]
8195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8196
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
8197
+  (0.3ms) rollback transaction
8198
+  (0.0ms) begin transaction
8199
+  (0.0ms) SAVEPOINT active_record_1
8200
+ SQL (0.1ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.498854"], ["last_used_at", "2015-08-20 23:05:23.498666"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.498854"]]
8201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8202
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
8203
+  (0.3ms) rollback transaction
8204
+  (0.0ms) begin transaction
8205
+  (0.0ms) SAVEPOINT active_record_1
8206
+ SQL (0.2ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.500963"], ["last_used_at", "2015-08-20 23:05:23.500742"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.500963"]]
8207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8208
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
8209
+  (0.3ms) rollback transaction
8210
+  (0.0ms) begin transaction
8211
+  (0.0ms) SAVEPOINT active_record_1
8212
+ SQL (0.1ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.503087"], ["last_used_at", "2015-08-20 23:05:23.502904"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.503087"]]
8213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8214
+  (0.0ms) SAVEPOINT active_record_1
8215
+ SQL (0.9ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.503931"], ["last_used_at", "2015-08-20 23:05:23.503773"], ["token", "def"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.503931"]]
8216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8217
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1
8218
+  (0.0ms) SAVEPOINT active_record_1
8219
+ SQL (0.1ms) UPDATE "canvas_oauth_authorizations" SET "last_used_at" = ?, "updated_at" = ? WHERE "canvas_oauth_authorizations"."id" = 2 [["last_used_at", "2015-08-20 23:05:23.506114"], ["updated_at", "2015-08-20 23:05:23.506363"]]
8220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8221
+  (0.6ms) rollback transaction
8222
+  (0.0ms) begin transaction
8223
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1
8224
+  (0.0ms) rollback transaction
8225
+  (0.0ms) begin transaction
8226
+  (0.0ms) SAVEPOINT active_record_1
8227
+ SQL (0.2ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.509973"], ["last_used_at", "2015-08-20 23:05:23.509726"], ["token", "abc"], ["tool_consumer_instance_guid", "wrong"], ["updated_at", "2015-08-20 23:05:23.509973"]]
8228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8229
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1
8230
+  (0.4ms) rollback transaction
8231
+  (0.0ms) begin transaction
8232
+  (0.1ms) rollback transaction
8233
+  (0.0ms) begin transaction
8234
+  (0.1ms) rollback transaction
8235
+  (0.0ms) begin transaction
8236
+  (0.0ms) rollback transaction
8237
+  (0.0ms) begin transaction
8238
+  (0.0ms) rollback transaction
8239
+  (0.0ms) begin transaction
8240
+  (0.0ms) rollback transaction
8241
+  (0.0ms) begin transaction
8242
+  (0.0ms) rollback transaction
8243
+  (0.0ms) begin transaction
8244
+  (0.0ms) rollback transaction
8245
+  (0.0ms) begin transaction
8246
+  (0.0ms) rollback transaction
8247
+  (0.0ms) begin transaction
8248
+  (0.0ms) rollback transaction
8249
+  (0.0ms) begin transaction
8250
+  (0.0ms) rollback transaction
8251
+  (0.1ms) begin transaction
8252
+  (0.0ms) rollback transaction
8253
+  (0.0ms) begin transaction
8254
+  (0.0ms) rollback transaction
8255
+  (0.0ms) begin transaction
8256
+  (0.0ms) rollback transaction
8257
+  (0.0ms) begin transaction
8258
+  (0.0ms) rollback transaction
8259
+  (0.0ms) begin transaction
8260
+  (0.0ms) rollback transaction
8261
+  (0.0ms) begin transaction
8262
+  (0.0ms) rollback transaction
8263
+  (0.0ms) begin transaction
8264
+ API call (0.02ms): get ["/path", {:query=>"stuff", :headers=>{}}]
8265
+  (0.0ms) rollback transaction
8266
+  (0.0ms) begin transaction
8267
+ API call (0.04ms): get ["/path", {:headers=>{}}]
8268
+  (0.0ms) rollback transaction
8269
+  (0.0ms) begin transaction
8270
+ API call (0.02ms): get ["/path", {:headers=>{}}]
8271
+  (0.0ms) rollback transaction
8272
+  (0.0ms) begin transaction
8273
+ API call (0.02ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
8274
+  (0.1ms) rollback transaction
8275
+  (0.0ms) begin transaction
8276
+  (0.0ms) rollback transaction
8277
+  (0.0ms) begin transaction
8278
+ API call (0.02ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
8279
+  (0.0ms) rollback transaction
8280
+  (0.0ms) begin transaction
8281
+ API call (0.02ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
8282
+  (0.0ms) rollback transaction
8283
+  (0.1ms) begin transaction
8284
+  (0.0ms) rollback transaction
8285
+  (0.0ms) begin transaction
8286
+ API call (0.02ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
8287
+  (0.0ms) rollback transaction
8288
+  (0.0ms) begin transaction
8289
+  (0.0ms) rollback transaction
8290
+  (0.0ms) begin transaction
8291
+ API call (0.02ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
8292
+  (0.0ms) rollback transaction
8293
+  (0.0ms) begin transaction
8294
+  (0.0ms) rollback transaction
8295
+  (0.0ms) begin transaction
8296
+ API call (0.02ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
8297
+  (0.0ms) rollback transaction
8298
+  (0.0ms) begin transaction
8299
+ API call (0.03ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
8300
+  (0.1ms) rollback transaction
8301
+  (0.0ms) begin transaction
8302
+  (0.0ms) rollback transaction
8303
+  (0.0ms) begin transaction
8304
+ API call (0.02ms): get ["/api/v1/courses/123", {:headers=>{}}]
8305
+  (0.0ms) rollback transaction
8306
+  (0.0ms) begin transaction
8307
+ API call (0.02ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
8308
+  (0.0ms) rollback transaction
8309
+  (0.0ms) begin transaction
8310
+  (0.0ms) rollback transaction
8311
+  (0.0ms) begin transaction
8312
+ API call (0.02ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
8313
+  (0.0ms) rollback transaction
8314
+  (0.0ms) begin transaction
8315
+  (0.0ms) rollback transaction
8316
+  (0.0ms) begin transaction
8317
+  (0.0ms) rollback transaction
8318
+  (0.1ms) begin transaction
8319
+  (0.0ms) rollback transaction
8320
+  (0.1ms) begin transaction
8321
+  (0.0ms) rollback transaction
8322
+  (0.0ms) begin transaction
8323
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_oauth_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dave Donahue
@@ -11,50 +10,45 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2015-01-26 00:00:00.000000000 Z
13
+ date: 2015-08-21 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rails
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - ">="
22
20
  - !ruby/object:Gem::Version
23
21
  version: '3.2'
24
- - - <
22
+ - - "<"
25
23
  - !ruby/object:Gem::Version
26
24
  version: '4.2'
27
25
  type: :runtime
28
26
  prerelease: false
29
27
  version_requirements: !ruby/object:Gem::Requirement
30
- none: false
31
28
  requirements:
32
- - - ! '>='
29
+ - - ">="
33
30
  - !ruby/object:Gem::Version
34
31
  version: '3.2'
35
- - - <
32
+ - - "<"
36
33
  - !ruby/object:Gem::Version
37
34
  version: '4.2'
38
35
  - !ruby/object:Gem::Dependency
39
36
  name: httparty
40
37
  requirement: !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
- - - ! '>='
39
+ - - ">="
44
40
  - !ruby/object:Gem::Version
45
41
  version: 0.9.0
46
42
  type: :runtime
47
43
  prerelease: false
48
44
  version_requirements: !ruby/object:Gem::Requirement
49
- none: false
50
45
  requirements:
51
- - - ! '>='
46
+ - - ">="
52
47
  - !ruby/object:Gem::Version
53
48
  version: 0.9.0
54
49
  - !ruby/object:Gem::Dependency
55
50
  name: link_header
56
51
  requirement: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
53
  - - '='
60
54
  - !ruby/object:Gem::Version
@@ -62,7 +56,6 @@ dependencies:
62
56
  type: :runtime
63
57
  prerelease: false
64
58
  version_requirements: !ruby/object:Gem::Requirement
65
- none: false
66
59
  requirements:
67
60
  - - '='
68
61
  - !ruby/object:Gem::Version
@@ -70,161 +63,127 @@ dependencies:
70
63
  - !ruby/object:Gem::Dependency
71
64
  name: sqlite3
72
65
  requirement: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
- - - ! '>='
67
+ - - ">="
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
70
  type: :development
79
71
  prerelease: false
80
72
  version_requirements: !ruby/object:Gem::Requirement
81
- none: false
82
73
  requirements:
83
- - - ! '>='
74
+ - - ">="
84
75
  - !ruby/object:Gem::Version
85
76
  version: '0'
86
77
  - !ruby/object:Gem::Dependency
87
78
  name: rspec
88
79
  requirement: !ruby/object:Gem::Requirement
89
- none: false
90
80
  requirements:
91
- - - ! '>='
81
+ - - ">="
92
82
  - !ruby/object:Gem::Version
93
83
  version: '0'
94
84
  type: :development
95
85
  prerelease: false
96
86
  version_requirements: !ruby/object:Gem::Requirement
97
- none: false
98
87
  requirements:
99
- - - ! '>='
88
+ - - ">="
100
89
  - !ruby/object:Gem::Version
101
90
  version: '0'
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: rspec-its
104
93
  requirement: !ruby/object:Gem::Requirement
105
- none: false
106
94
  requirements:
107
- - - ! '>='
95
+ - - ">="
108
96
  - !ruby/object:Gem::Version
109
97
  version: '0'
110
98
  type: :development
111
99
  prerelease: false
112
100
  version_requirements: !ruby/object:Gem::Requirement
113
- none: false
114
101
  requirements:
115
- - - ! '>='
102
+ - - ">="
116
103
  - !ruby/object:Gem::Version
117
104
  version: '0'
118
105
  - !ruby/object:Gem::Dependency
119
106
  name: rspec-rails
120
107
  requirement: !ruby/object:Gem::Requirement
121
- none: false
122
108
  requirements:
123
- - - ! '>='
109
+ - - ">="
124
110
  - !ruby/object:Gem::Version
125
111
  version: '0'
126
112
  type: :development
127
113
  prerelease: false
128
114
  version_requirements: !ruby/object:Gem::Requirement
129
- none: false
130
115
  requirements:
131
- - - ! '>='
116
+ - - ">="
132
117
  - !ruby/object:Gem::Version
133
118
  version: '0'
134
119
  - !ruby/object:Gem::Dependency
135
120
  name: rspec-rails-mocha
136
121
  requirement: !ruby/object:Gem::Requirement
137
- none: false
138
122
  requirements:
139
- - - ! '>='
123
+ - - ">="
140
124
  - !ruby/object:Gem::Version
141
125
  version: '0'
142
126
  type: :development
143
127
  prerelease: false
144
128
  version_requirements: !ruby/object:Gem::Requirement
145
- none: false
146
129
  requirements:
147
- - - ! '>='
130
+ - - ">="
148
131
  - !ruby/object:Gem::Version
149
132
  version: '0'
150
133
  - !ruby/object:Gem::Dependency
151
134
  name: shoulda-matchers
152
135
  requirement: !ruby/object:Gem::Requirement
153
- none: false
154
136
  requirements:
155
- - - ! '>='
137
+ - - ">="
156
138
  - !ruby/object:Gem::Version
157
139
  version: '0'
158
140
  type: :development
159
141
  prerelease: false
160
142
  version_requirements: !ruby/object:Gem::Requirement
161
- none: false
162
143
  requirements:
163
- - - ! '>='
144
+ - - ">="
164
145
  - !ruby/object:Gem::Version
165
146
  version: '0'
166
147
  - !ruby/object:Gem::Dependency
167
148
  name: webmock
168
149
  requirement: !ruby/object:Gem::Requirement
169
- none: false
170
150
  requirements:
171
- - - ! '>='
151
+ - - ">="
172
152
  - !ruby/object:Gem::Version
173
153
  version: '0'
174
154
  type: :development
175
155
  prerelease: false
176
156
  version_requirements: !ruby/object:Gem::Requirement
177
- none: false
178
157
  requirements:
179
- - - ! '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- - !ruby/object:Gem::Dependency
183
- name: debugger
184
- requirement: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- type: :development
191
- prerelease: false
192
- version_requirements: !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
195
- - - ! '>='
158
+ - - ">="
196
159
  - !ruby/object:Gem::Version
197
160
  version: '0'
198
161
  - !ruby/object:Gem::Dependency
199
162
  name: guard-rspec
200
163
  requirement: !ruby/object:Gem::Requirement
201
- none: false
202
164
  requirements:
203
- - - ! '>='
165
+ - - ">="
204
166
  - !ruby/object:Gem::Version
205
167
  version: '0'
206
168
  type: :development
207
169
  prerelease: false
208
170
  version_requirements: !ruby/object:Gem::Requirement
209
- none: false
210
171
  requirements:
211
- - - ! '>='
172
+ - - ">="
212
173
  - !ruby/object:Gem::Version
213
174
  version: '0'
214
175
  - !ruby/object:Gem::Dependency
215
176
  name: rb-fsevent
216
177
  requirement: !ruby/object:Gem::Requirement
217
- none: false
218
178
  requirements:
219
- - - ! '>='
179
+ - - ">="
220
180
  - !ruby/object:Gem::Version
221
181
  version: '0'
222
182
  type: :development
223
183
  prerelease: false
224
184
  version_requirements: !ruby/object:Gem::Requirement
225
- none: false
226
185
  requirements:
227
- - - ! '>='
186
+ - - ">="
228
187
  - !ruby/object:Gem::Version
229
188
  version: '0'
230
189
  description:
@@ -235,12 +194,16 @@ executables: []
235
194
  extensions: []
236
195
  extra_rdoc_files: []
237
196
  files:
238
- - app/controllers/canvas_oauth/application_controller.rb
197
+ - MIT-LICENSE
198
+ - README.md
199
+ - Rakefile
239
200
  - app/controllers/canvas_oauth/canvas_controller.rb
201
+ - app/controllers/canvas_oauth/oauth_application_controller.rb
240
202
  - app/models/canvas_oauth/authorization.rb
241
203
  - config/canvas.yml.example
242
204
  - config/routes.rb
243
205
  - db/migrate/20121121005358_create_canvas_oauth_authorizations.rb
206
+ - lib/canvas_oauth.rb
244
207
  - lib/canvas_oauth/canvas_api.rb
245
208
  - lib/canvas_oauth/canvas_api_extensions.rb
246
209
  - lib/canvas_oauth/canvas_application.rb
@@ -248,14 +211,13 @@ files:
248
211
  - lib/canvas_oauth/config.rb
249
212
  - lib/canvas_oauth/engine.rb
250
213
  - lib/canvas_oauth/version.rb
251
- - lib/canvas_oauth.rb
252
214
  - lib/tasks/canvas_oauth_tasks.rake
253
- - MIT-LICENSE
254
- - Rakefile
255
- - README.md
256
215
  - spec/controllers/canvas_oauth/canvas_controller_spec.rb
216
+ - spec/dummy/README.rdoc
217
+ - spec/dummy/Rakefile
257
218
  - spec/dummy/app/controllers/application_controller.rb
258
219
  - spec/dummy/app/controllers/welcome_controller.rb
220
+ - spec/dummy/config.ru
259
221
  - spec/dummy/config/application.rb
260
222
  - spec/dummy/config/boot.rb
261
223
  - spec/dummy/config/canvas.yml
@@ -272,7 +234,6 @@ files:
272
234
  - spec/dummy/config/initializers/wrap_parameters.rb
273
235
  - spec/dummy/config/locales/en.yml
274
236
  - spec/dummy/config/routes.rb
275
- - spec/dummy/config.ru
276
237
  - spec/dummy/db/migrate/20130326194409_create_canvas_oauth_authorizations.canvas_oauth.rb
277
238
  - spec/dummy/db/schema.rb
278
239
  - spec/dummy/db/test.sqlite3
@@ -282,8 +243,6 @@ files:
282
243
  - spec/dummy/public/500.html
283
244
  - spec/dummy/public/favicon.ico
284
245
  - spec/dummy/public/robots.txt
285
- - spec/dummy/Rakefile
286
- - spec/dummy/README.rdoc
287
246
  - spec/dummy/script/rails
288
247
  - spec/lib/canvas_oauth/canvas_api_extensions_spec.rb
289
248
  - spec/lib/canvas_oauth/canvas_api_spec.rb
@@ -291,27 +250,26 @@ files:
291
250
  - spec/spec_helper.rb
292
251
  homepage: ''
293
252
  licenses: []
253
+ metadata: {}
294
254
  post_install_message:
295
255
  rdoc_options: []
296
256
  require_paths:
297
257
  - lib
298
258
  required_ruby_version: !ruby/object:Gem::Requirement
299
- none: false
300
259
  requirements:
301
- - - ! '>='
260
+ - - ">="
302
261
  - !ruby/object:Gem::Version
303
262
  version: '0'
304
263
  required_rubygems_version: !ruby/object:Gem::Requirement
305
- none: false
306
264
  requirements:
307
- - - ! '>='
265
+ - - ">="
308
266
  - !ruby/object:Gem::Version
309
267
  version: '0'
310
268
  requirements: []
311
269
  rubyforge_project:
312
- rubygems_version: 1.8.25
270
+ rubygems_version: 2.4.8
313
271
  signing_key:
314
- specification_version: 3
272
+ specification_version: 4
315
273
  summary: CanvasOauth is a mountable engine for handling the oauth workflow with canvas
316
274
  and making api calls from your rails app.
317
275
  test_files:
@@ -351,3 +309,4 @@ test_files:
351
309
  - spec/lib/canvas_oauth/canvas_api_spec.rb
352
310
  - spec/models/canvas_oauth/authorization_spec.rb
353
311
  - spec/spec_helper.rb
312
+ has_rdoc: