old_sql 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -39,6 +39,7 @@ Old SQL works with devise. Checking for a current installation of devise!
|
|
39
39
|
invoke 'devise:install'
|
40
40
|
elsif !user_model_has_devise?
|
41
41
|
invoke 'old_sql:install_devise_migrations'
|
42
|
+
#todo add devise stuff to users
|
42
43
|
end
|
43
44
|
|
44
45
|
set_devise
|
@@ -46,6 +47,7 @@ Old SQL works with devise. Checking for a current installation of devise!
|
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
50
|
+
#todo user :model_name
|
49
51
|
def user_model_exists?
|
50
52
|
app_path = Rails.public_path.split("/")
|
51
53
|
app_path.delete_at(-1)
|
@@ -63,7 +65,7 @@ Old SQL works with devise. Checking for a current installation of devise!
|
|
63
65
|
app_path.delete_at(-1)
|
64
66
|
app_path = app_path.join("/")
|
65
67
|
|
66
|
-
if open(app_path+'/app/models/user.rb').grep(/devise/).count>0
|
68
|
+
if File.exists?(app_path+'/app/models/user.rb') && open(app_path+'/app/models/user.rb').grep(/devise/).count>0
|
67
69
|
return true
|
68
70
|
else
|
69
71
|
return false
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: old_sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.18.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Eddie Gonzales
|
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
191
|
requirements:
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
hash:
|
194
|
+
hash: 1657993977260470537
|
195
195
|
segments:
|
196
196
|
- 0
|
197
197
|
version: "0"
|