rack-ninja_auth 0.3.1 → 0.3.2

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: 2a18a18cef7e69b3f90c67672f3d3ce25e2155fb
4
- data.tar.gz: 7d6a3166123146afbf45c38a484ed54f4d070ee5
3
+ metadata.gz: 174579d995ee1be8f7a9409c88b1131f7bf14e1c
4
+ data.tar.gz: a31a7e284cb8377f9ed5c4cc08d199abe75d3af5
5
5
  SHA512:
6
- metadata.gz: 3d4bcc2bde5b08384754abacac9d95da1a42fef45de276eac52d6f8d589c311b0bbd15f953217be5e8eb0cefcf43eebe0630c8a7794c9b19c060c176bf6d5795
7
- data.tar.gz: 302445d13b231b36130c580039d883fc0e5c4c0033cce1d195b9253451e5b2c424b5ede169812bad5563065e8e14413df2ecdc32a27b229367ffc2c6de283edf
6
+ metadata.gz: 312395898d8fa5206fae25b966c9a5d0c027826a6a576136a382f3e70481ee825ff563fe3b5157ba8651e74854a83e939f3519bf2263c389535ebd74e662e201
7
+ data.tar.gz: 306a92b1ccb214bf54216a68d0760b367cfe01d0320bb76722558370b23a5e9ed658566705a510e3ca0e51570a27af40973eaa8307caf1cc90d6d7b0e4e118f5
@@ -13,12 +13,12 @@ module Rack
13
13
  expire_after: 2592000,
14
14
  redis_server: ENV['NINJA_REDIS_URL'] || 'redis://127.0.0.1:6379/0/rack:ninja_auth'
15
15
 
16
- raise "Please set NINJA_GOOGLE_CLIENT_ID and NINJA_GOOGLE_CLIENT_SECRET to use NinjaAuth" unless ENV["NINJA_GOOGLE_CLIENT_ID"] && ENV["NINJA_GOOGLE_CLIENT_SECRET"]
17
16
  use OmniAuth::Builder do
18
17
  provider :google_oauth2, ENV["NINJA_GOOGLE_CLIENT_ID"], ENV["NINJA_GOOGLE_CLIENT_SECRET"]
19
18
  end
20
19
 
21
20
  def initialize(app, email_matcher = //, not_allowed_file = nil)
21
+ puts "Please set NINJA_GOOGLE_CLIENT_ID and NINJA_GOOGLE_CLIENT_SECRET to use NinjaAuth" unless ENV["NINJA_GOOGLE_CLIENT_ID"] && ENV["NINJA_GOOGLE_CLIENT_SECRET"]
22
22
  @main_app = app
23
23
  @email_matcher = email_matcher
24
24
  @not_allowed_file = not_allowed_file || ::File.expand_path('../../../views/401.html', __FILE__)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module NinjaAuth
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ninja_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Hastings-Spital