exvo-auth 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -17,7 +17,7 @@ There are two middlewares. Usually you will need the "interactive" one:
17
17
  Both middlewares need client_id and client_secret arguments.
18
18
  In Rails, the relevant line could look like this:
19
19
 
20
- config.middleware.use ExvoAuth::Strategies::Interactive, "client_id", "client_secret"
20
+ config.middleware.use ExvoAuth::Strategies::Interactive, :client_id => "client_id, :client_secret => "client_secret"
21
21
 
22
22
 
23
23
  3. Add routes.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/exvo-auth.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{exvo-auth}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
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"]
12
- s.date = %q{2010-07-09}
12
+ s.date = %q{2010-07-12}
13
13
  s.description = %q{Sign in with Exvo account}
14
14
  s.email = %q{jacek.becela@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -13,10 +13,13 @@ module ExvoAuth::Controllers::Base
13
13
  end
14
14
  end
15
15
  end
16
-
17
- def sign_in_and_redirect!(user_id, url = "/")
16
+
17
+ # If there's no stored location then it's a popup login.
18
+ # If there's a stored location then it's a redirect login
19
+ # caused by #authenticate_user! method.
20
+ def sign_in_and_redirect!(user_id)
18
21
  session[:user_id] = user_id
19
- redirect_to stored_location || url
22
+ redirect_to stored_location || ExvoAuth::Config.host + "/close_popup.html"
20
23
  end
21
24
 
22
25
  def sign_out_and_redirect!(url = sign_out_url)
@@ -49,7 +52,7 @@ module ExvoAuth::Controllers::Base
49
52
  def sign_up_path
50
53
  "/auth/interactive"
51
54
  end
52
-
55
+
53
56
  def sign_out_url
54
57
  ExvoAuth::Config.host + "/users/sign_out"
55
58
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 2
9
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jacek Becela
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-09 00:00:00 +02:00
17
+ date: 2010-07-12 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency