solidus_auth_devise_devise_token_auth 2.1.0.1 → 2.1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20101026184950_rename_columns_for_devise.rb +81 -13
- data/solidus_auth_devise.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 874de97d25517aabe50c32c31c3b1112aa8558239ff85ad9fe631b2641902bc9
|
4
|
+
data.tar.gz: 3847f1d3ceecee1874d2dfd1df35232efaa228a7e42e61703fe49680b4590c39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41ec9e186219bb5eb9ac289d384eca66e0fc9870170bf4e30a205fceadb990ca34671865fd0ba550953f0f4ad9f42842527fafdfff726cacdc5ac0ad019ff55d
|
7
|
+
data.tar.gz: f3b0859eacef57ba73b02ad689e362352b7771ba62af2ca68ffe7065a9afadb594fb75198cec5cfc1b19c535eb9704046dfbea8d1adc7bab533ce77fdea6aefe
|
@@ -1,24 +1,92 @@
|
|
1
1
|
class RenameColumnsForDevise < SolidusSupport::Migration[4.2]
|
2
2
|
def up
|
3
|
-
return if column_exists?(:spree_users, :password_salt)
|
4
3
|
if column_exists?(:spree_users, :crypted_password)
|
5
4
|
rename_column :spree_users, :crypted_password, :encrypted_password
|
6
5
|
end
|
6
|
+
|
7
7
|
if column_exists?(:spree_users, :salt)
|
8
8
|
rename_column :spree_users, :salt, :password_salt
|
9
9
|
end
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
10
|
+
|
11
|
+
if column_exists?(:spree_users, :remember_token_expires_at)
|
12
|
+
if column_exists?(:spree_users, :remember_created_at)
|
13
|
+
remove_column :spree_users, :remember_token_expires_at
|
14
|
+
else
|
15
|
+
rename_column :spree_users, :remember_token_expires_at, :remember_created_at
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
if column_exists?(:spree_users, :login_count)
|
20
|
+
if column_exists?(:spree_users, :sign_in_count)
|
21
|
+
remove_column :spree_users, :login_count
|
22
|
+
else
|
23
|
+
rename_column :spree_users, :login_count, :sign_in_count
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
if column_exists?(:spree_users, :failed_login_count)
|
28
|
+
if column_exists?(:spree_users, :failed_attempts)
|
29
|
+
remove_column :spree_users, :failed_login_count
|
30
|
+
else
|
31
|
+
rename_column :spree_users, :failed_login_count, :failed_attempts
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
if column_exists?(:spree_users, :single_access_token)
|
36
|
+
if column_exists?(:spree_users, :reset_password_token)
|
37
|
+
remove_column :spree_users, :single_access_token
|
38
|
+
else
|
39
|
+
rename_column :spree_users, :single_access_token, :reset_password_token
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
if column_exists?(:spree_users, :current_login_at)
|
44
|
+
if column_exists?(:spree_users, :current_sign_in_at)
|
45
|
+
remove_column :spree_users, :current_login_at
|
46
|
+
else
|
47
|
+
rename_column :spree_users, :current_login_at, :current_sign_in_at
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
if column_exists?(:spree_users, :last_login_at)
|
52
|
+
if column_exists?(:spree_users, :last_sign_in_at)
|
53
|
+
remove_column :spree_users, :last_login_at
|
54
|
+
else
|
55
|
+
rename_column :spree_users, :last_login_at, :last_sign_in_at
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
if column_exists?(:spree_users, :current_login_ip)
|
60
|
+
if column_exists?(:current_sign_in_ip)
|
61
|
+
remove_column :spree_users, :current_login_ip
|
62
|
+
else
|
63
|
+
rename_column :spree_users, :current_login_ip, :current_sign_in_ip
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
if column_exists?(:spree_users, :last_login_ip)
|
68
|
+
if column_exists?(:spree_users, :last_sign_in_ip)
|
69
|
+
remove_column :spree_users, :last_login_ip
|
70
|
+
else
|
71
|
+
rename_column :spree_users, :last_login_ip, :last_sign_in_ip
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
unless column_exists?(:spree_users, :authentication_token)
|
76
|
+
add_column :spree_users, :authentication_token, :string
|
77
|
+
end
|
78
|
+
|
79
|
+
unless column_exists?(:spree_users, :unlock_token)
|
80
|
+
add_column :spree_users, :unlock_token, :string
|
81
|
+
end
|
82
|
+
|
83
|
+
unless column_exists?(:spree_users, :locked_at)
|
84
|
+
add_column :spree_users, :locked_at, :datetime
|
85
|
+
end
|
86
|
+
|
87
|
+
if column_exists?(:spree_users, :openid_identifier)
|
88
|
+
remove_column :spree_users, :openid_identifier
|
89
|
+
end
|
22
90
|
end
|
23
91
|
|
24
92
|
def down
|
data/solidus_auth_devise.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.name = 'solidus_auth_devise_devise_token_auth'
|
6
|
-
s.version = '2.1.0.
|
6
|
+
s.version = '2.1.0.2'
|
7
7
|
s.summary = 'Provides authentication and authorization services for use with Solidus by using Devise and CanCan (devise_token_auth revised version)'
|
8
8
|
s.description = s.summary
|
9
9
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_auth_devise_devise_token_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Siwek (skycocker)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core_devise_token_auth
|