shibboleth-rails 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ class UserSessionsController < ApplicationController
23
23
 
24
24
  private
25
25
  def not_in_production
26
- redirect_to root_url if Rails.env.production?
26
+ redirect_to root_url if Rails.env.production? or Rails.env.staging?
27
27
  end
28
28
 
29
29
  end
data/config/routes.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  Rails.application.routes.draw do
2
- unless Rails.env.production?
2
+ unless Rails.env.production? or Rails.env.staging?
3
3
  resource :user_session, :only => [:new, :create, :destroy]
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ module Shibboleth::Rails
28
28
  session.delete('new')
29
29
  else
30
30
  session['new'] = true
31
- if Rails.env.production?
31
+ if Rails.env.production? or Rails.env.staging?
32
32
  redirect_to [request.protocol, request.host,
33
33
  '/Shibboleth.sso/Login?target=', CGI.escape(requested_url)].join
34
34
  else
@@ -1,5 +1,5 @@
1
1
  module Shibboleth
2
2
  module Rails
3
- VERSION = "0.3.8"
3
+ VERSION = "0.3.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shibboleth-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 8
10
- version: 0.3.8
9
+ - 9
10
+ version: 0.3.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - mikegee
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-01 00:00:00 Z
18
+ date: 2012-02-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails