micro_auth 0.1.2 → 0.2.0

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.
data/CHANGELOG CHANGED
@@ -1,4 +1,7 @@
1
1
  Changelog:
2
+ 0.2.0:
3
+ - Changed logout behavior to be more logical: on logout users are now redirected to root
4
+ path instead of back.
2
5
  0.1.2:
3
6
  - Added flash message for unauthorized access attempts.
4
7
  0.1.1:
@@ -15,7 +15,7 @@ class MicroAuth::SessionsController < ApplicationController
15
15
  def destroy
16
16
  reset_session
17
17
  session[:admin] = false
18
- redirect_to :back, :notice => 'Logged out.'
18
+ redirect_to root_path, :notice => 'Logged out.'
19
19
  end
20
20
 
21
21
  private
@@ -1,3 +1,3 @@
1
1
  module MicroAuth
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micro_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000Z
12
+ date: 2012-07-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70294875433280 !ruby/object:Gem::Requirement
16
+ requirement: &70109050930000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70294875433280
24
+ version_requirements: *70109050930000
25
25
  description: A super simple session-based authentication gem, for when you need to
26
26
  add basic admin capability to a single-user Rails app.
27
27
  email: andrew@eighty-b.com