any_login 1.4.1 → 1.4.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
  SHA256:
3
- metadata.gz: 958a28cea801b89afc2d23ddb86f11f1fef8cb60e6326a1f5a18aa4cf11cb3b6
4
- data.tar.gz: 1e6abb114f1ac1c84c5f81974a69b583ed2e65e59c18c49d44fa639a49156d25
3
+ metadata.gz: 777c2dc1222aba1d6d6ea85b46dfb1b47da43e449e6522426756ffcbf7e965f7
4
+ data.tar.gz: 91c5e4da0d91ecf7d7ebe3cd2eb77cf05fcd8e6ac17bc88ee54b2ef5cb08f7cc
5
5
  SHA512:
6
- metadata.gz: fe63825e628cac2558dcb532767c863624f7f97afb7a07b423906293f62bfd5b6ec08afbeb8edcc0041504ab1de4516d6b2ca718d61e3aac7927b5af63ad06a8
7
- data.tar.gz: d0773e8f6519e5b25c6591887bd1b5d5fcfa03eb876dfc74bddf87366ba75780bdc57e15447a654bfc0d91903bb1f0a5ef386739c7ca5bc23ec078c33fead8af
6
+ metadata.gz: f4bde15aaec63b378218426637df030bf262256ef4450fad4d9d51e71fb36e4694ef9fde3965e1f64b19cc3f9d78b59172977f6a37d27c61454bf0eff4bb52f8
7
+ data.tar.gz: 759e08b870d934eec9dc94da2cb6632c555010ddee5a46558d7513f48ba895a1612803536f959c1ac2b58edf7044f0898a4616b7b1b77d2ba76b505274ece7dc
data/lib/any_login.rb CHANGED
@@ -94,7 +94,12 @@ module AnyLogin
94
94
  end
95
95
 
96
96
  def self.cookie_name
97
- "any_login_previous_#{Rails.application.class.parent_name}".underscore
97
+ module_parent_name = if Rails::VERSION::MAJOR >= 6
98
+ Rails.application.class.module_parent_name
99
+ else
100
+ Rails.application.class.parent_name
101
+ end
102
+ "any_login_previous_#{module_parent_name}".underscore
98
103
  end
99
104
 
100
105
  private
@@ -1,3 +1,3 @@
1
1
  module AnyLogin
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.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.4.1
4
+ version: 1.4.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: 2019-07-29 00:00:00.000000000 Z
11
+ date: 2019-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails