exvo-auth 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/exvo-auth.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{exvo-auth}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacek Becela"]
@@ -14,6 +14,11 @@ module ExvoAuth::Controllers::Base
14
14
  end
15
15
  end
16
16
 
17
+ def sign_in_and_redirect!(user_id, url = "/")
18
+ session[:user_id] = user_id
19
+ redirect stored_location || url
20
+ end
21
+
17
22
  def sign_out_and_redirect!(url = sign_out_url)
18
23
  session.delete(:user_id)
19
24
  @current_user = nil
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jacek Becela