exvo-auth 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ module ExvoAuth::Controllers::Base
33
33
  # Redirect to sign_out_url, signs out and redirects back to "/" (by default).
34
34
  # Usuallly this method is called from your sessions#destroy.
35
35
  def sign_out_and_redirect!(return_to = "/")
36
- session.delete(:user_uid)
36
+ session.clear
37
37
  @current_user = nil
38
38
  redirect_to sign_out_url(return_to)
39
39
  end
@@ -77,7 +77,7 @@ module ExvoAuth::Controllers::Base
77
77
  protected
78
78
 
79
79
  def find_or_create_user_by_uid(uid)
80
- raise "Implement this method in a controller"
80
+ raise "Implement find_or_create_user_by_uid in a controller"
81
81
  end
82
82
 
83
83
  def sign_out_url(return_to)
@@ -1,6 +1,6 @@
1
1
  class ExvoAuth::Dejavu
2
2
  def initialize(app)
3
- @app = app
3
+ @app = app
4
4
  end
5
5
 
6
6
  def call(env)
@@ -7,7 +7,7 @@ class ExvoAuth::SessionStore
7
7
  raise "Please configure :secret_token" unless @secret_token = options[:secret_token]
8
8
  raise "Please configure :domain" unless @domain = options[:domain]
9
9
 
10
- @app = ActionDispatch::Cookies.new(ActionDispatch::Session::CookieStore.new(ActionDispatch::Flash.new(app), :key => "_exvo_session", :domain => @domain))
10
+ @app = ActionDispatch::Cookies.new(ActionDispatch::Session::CookieStore.new(ActionDispatch::Flash.new(app), :key => "_exvo_session", :domain => @domain, :expire_after => 2.weeks))
11
11
  end
12
12
  def call(env)
13
13
  @app.call(env.reverse_merge!(env_defaults))
@@ -1,3 +1,3 @@
1
1
  module ExvoAuth
2
- VERSION = "0.11.2"
2
+ VERSION = "0.12.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo-auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 11
9
- - 2
10
- version: 0.11.2
8
+ - 12
9
+ - 0
10
+ version: 0.12.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacek Becela
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-27 00:00:00 +01:00
18
+ date: 2011-01-19 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -142,7 +142,6 @@ extra_rdoc_files: []
142
142
  files:
143
143
  - .gitignore
144
144
  - Gemfile
145
- - Gemfile.lock
146
145
  - README
147
146
  - Rakefile
148
147
  - exvo-auth.gemspec
data/Gemfile.lock DELETED
@@ -1,76 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- exvo-auth (0.11.2)
5
- actionpack (~> 3.0.0)
6
- activemodel (~> 3.0.0)
7
- httparty (~> 0.6.1)
8
- oa-oauth (~> 0.0.4)
9
-
10
- GEM
11
- remote: http://rubygems.org/
12
- specs:
13
- abstract (1.0.0)
14
- actionpack (3.0.3)
15
- activemodel (= 3.0.3)
16
- activesupport (= 3.0.3)
17
- builder (~> 2.1.2)
18
- erubis (~> 2.6.6)
19
- i18n (~> 0.4)
20
- rack (~> 1.2.1)
21
- rack-mount (~> 0.6.13)
22
- rack-test (~> 0.5.6)
23
- tzinfo (~> 0.3.23)
24
- activemodel (3.0.3)
25
- activesupport (= 3.0.3)
26
- builder (~> 2.1.2)
27
- i18n (~> 0.4)
28
- activesupport (3.0.3)
29
- addressable (2.2.2)
30
- builder (2.1.2)
31
- crack (0.1.8)
32
- erubis (2.6.6)
33
- abstract (>= 1.0.0)
34
- faraday (0.4.6)
35
- addressable (>= 2.1.1)
36
- rack (>= 1.0.1)
37
- httparty (0.6.1)
38
- crack (= 0.1.8)
39
- i18n (0.4.2)
40
- mocha (0.9.9)
41
- rake
42
- multi_json (0.0.5)
43
- nokogiri (1.4.3.1)
44
- oa-core (0.0.5)
45
- rack (~> 1.1)
46
- oa-oauth (0.0.5)
47
- multi_json (~> 0.0.2)
48
- nokogiri (~> 1.4.2)
49
- oa-core (= 0.0.5)
50
- oauth (~> 0.4.0)
51
- oauth2 (~> 0.0.10)
52
- oauth (0.4.4)
53
- oauth2 (0.0.13)
54
- faraday (~> 0.4.1)
55
- multi_json (>= 0.0.4)
56
- rack (1.2.1)
57
- rack-mount (0.6.13)
58
- rack (>= 1.0.0)
59
- rack-test (0.5.6)
60
- rack (>= 1.0)
61
- rake (0.8.7)
62
- test-unit (2.1.1)
63
- tzinfo (0.3.23)
64
-
65
- PLATFORMS
66
- ruby
67
-
68
- DEPENDENCIES
69
- actionpack (~> 3.0.0)
70
- activemodel (~> 3.0.0)
71
- bundler (~> 1.0.0)
72
- exvo-auth!
73
- httparty (~> 0.6.1)
74
- mocha (~> 0.9.8)
75
- oa-oauth (~> 0.0.4)
76
- test-unit (~> 2.1.0)