any_login 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64e1b0b615f52338d5e2be2557428a7808af546a
4
- data.tar.gz: cc4839e67e8870b98be1d7914cf57a3cd2bc2472
3
+ metadata.gz: 8121378c6956065b2b68622565c4ccf60c627066
4
+ data.tar.gz: 4e67b0b2e6f7ab4181d0705ec604e4ed8dcfec5f
5
5
  SHA512:
6
- metadata.gz: 7683f3fab6d75208fbaff94b9dffa1d5faaec1926fc4f45f10998e975c5cbacaeda0c8d55f4266e14945a5efcb878a805d58865c31995b733f057d28656ff10e
7
- data.tar.gz: a92350d2ec713239f74977a6efd47f886943f286580b0c722c764460d26857c9d82ce1b578bffb42dc75f88a2d7f95fe72bfb5498fc86dd677b37d1895454cd2
6
+ metadata.gz: d5827954cc941218f4c67439af26b20ef468708283a53de955f5483788e6c68f745673ffc489e44667302f05f080c3b77c7aced86f2462b40e5fc6c3348bc4e9
7
+ data.tar.gz: 18729105e35e779598c71ce0aac66173d6fe0a32a423f75f414342a51ec89b456659edc3bacd099110c0b2e2b8a645817ef745cad9d21626118de7952f747364
@@ -9,6 +9,7 @@ module AnyLogin
9
9
  end
10
10
 
11
11
  def any_login_sign_in
12
+ reset_session
12
13
  @loginable = AnyLogin.klass.find(params[:selected_id].presence || params[:id])
13
14
  Object.const_get("#{AnyLogin.klass}Session").create(@loginable)
14
15
  redirect_to main_app.send(AnyLogin.redirect_path_after_login)
@@ -9,6 +9,7 @@ module AnyLogin
9
9
  end
10
10
 
11
11
  def any_login_sign_in
12
+ reset_session
12
13
  @loginable = AnyLogin.klass.find(params[:selected_id].presence || params[:id])
13
14
  sign_in @loginable
14
15
  redirect_to main_app.send(AnyLogin.redirect_path_after_login)
@@ -22,4 +23,4 @@ end
22
23
 
23
24
  AnyLogin.provider = AnyLogin::Provider::Clearance
24
25
 
25
- AnyLogin::ApplicationController.send(:include, ::Clearance::Controller)
26
+ AnyLogin::ApplicationController.send(:include, ::Clearance::Controller)
@@ -9,6 +9,7 @@ module AnyLogin
9
9
  end
10
10
 
11
11
  def any_login_sign_in
12
+ reset_session
12
13
  @loginable = AnyLogin.klass.find(params[:selected_id].presence || params[:id])
13
14
  sign_in AnyLogin.klass.to_s.underscore.to_sym, @loginable
14
15
  redirect_to main_app.send(AnyLogin.redirect_path_after_login)
@@ -20,4 +21,4 @@ module AnyLogin
20
21
  end
21
22
  end
22
23
 
23
- AnyLogin.provider = AnyLogin::Provider::Devise
24
+ AnyLogin.provider = AnyLogin::Provider::Devise
@@ -9,6 +9,7 @@ module AnyLogin
9
9
  end
10
10
 
11
11
  def any_login_sign_in
12
+ reset_session
12
13
  @loginable = AnyLogin.klass.find(params[:selected_id].presence || params[:id])
13
14
  auto_login @loginable
14
15
  redirect_to main_app.send(AnyLogin.redirect_path_after_login)
@@ -20,4 +21,4 @@ module AnyLogin
20
21
  end
21
22
  end
22
23
 
23
- AnyLogin.provider = AnyLogin::Provider::Sorcery
24
+ AnyLogin.provider = AnyLogin::Provider::Sorcery
@@ -1,3 +1,3 @@
1
1
  module AnyLogin
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: any_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -459,7 +459,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
459
459
  version: '0'
460
460
  requirements: []
461
461
  rubyforge_project:
462
- rubygems_version: 2.4.7
462
+ rubygems_version: 2.6.8
463
463
  signing_key:
464
464
  specification_version: 4
465
465
  summary: AnyLogin is created to speedup development process and allow developer's