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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27512d5016c98d576aea24005ffae12e1a1d6cee
4
- data.tar.gz: b29233aa5ef5a4639b41c5db82d8d46d59f02896
3
+ metadata.gz: aeea7a018d9223514938324eca406c1a3bfaa531
4
+ data.tar.gz: 5b5d1f62203b995e933f66bacbc7a0800fe134f3
5
5
  SHA512:
6
- metadata.gz: 761b7661314fa8a34b1438a9d6ccdc932aa6c0bd7ba5dda0099b5934199155b89abc701d0006a68929c43686288c187681658961b0df799bd5e3716f44e74c76
7
- data.tar.gz: c7f2b447c20265f136bd77f3e9d110259e9f00ea823d9ed793f8c7275707d3bf5d7b8ca3b9d28f60887ce23258497d4382e1880add34c787b8223fea54cc7491
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
- raise "Warning: Canvas key and secret not configured (RAILS_ENV = #{ENV['RAILS_ENV']})."
24
+ warn "Warning: Canvas key and secret not configured (RAILS_ENV = #{ENV['RAILS_ENV']})."
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasOauth
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
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.3
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-08-21 00:00:00.000000000 Z
13
+ date: 2015-09-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails