canvas_oauth_engine 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_oauth/canvas_api.rb +4 -0
- data/lib/canvas_oauth/canvas_config.rb +1 -1
- data/lib/canvas_oauth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeea7a018d9223514938324eca406c1a3bfaa531
|
4
|
+
data.tar.gz: 5b5d1f62203b995e933f66bacbc7a0800fe134f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f2c5aab79984582c12852bff31389482717058c83b08f2d0e5bca32496cfed3fcb03b4553e4097074b8f36e7a91dbbf1291b2fec3e9db0610643adea27275f
|
7
|
+
data.tar.gz: 989c4018501d5c5663dce76f0d0af68098227b9e10859d17051075b1da7cb9ccd001e4c5934a9e06a7c275e13dd799399f70c217afaf4a2e4a125845ebbf7bd8
|
@@ -7,6 +7,10 @@ module CanvasOauth
|
|
7
7
|
attr_reader :canvas_url
|
8
8
|
|
9
9
|
def initialize(canvas_url, token, key, secret)
|
10
|
+
unless [key, secret].all?(&:present?)
|
11
|
+
raise "Invalid Canvas oAuth configuration"
|
12
|
+
end
|
13
|
+
|
10
14
|
self.canvas_url = canvas_url
|
11
15
|
self.token = token
|
12
16
|
self.key = key
|
@@ -21,7 +21,7 @@ module CanvasOauth
|
|
21
21
|
self.key = ENV['CANVAS_KEY']
|
22
22
|
self.secret = ENV['CANVAS_SECRET']
|
23
23
|
else
|
24
|
-
|
24
|
+
warn "Warning: Canvas key and secret not configured (RAILS_ENV = #{ENV['RAILS_ENV']})."
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/lib/canvas_oauth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +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.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Donahue
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|