old_sql 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -54,8 +54,9 @@ Old SQL works with devise. Checking for a current installation of devise!
|
|
54
54
|
app_path = Rails.public_path.split("/")
|
55
55
|
app_path.delete_at(-1)
|
56
56
|
app_path = app_path.join("/")
|
57
|
+
schema_path = app_path+'/db/schema.rb'
|
57
58
|
|
58
|
-
if open(
|
59
|
+
if File.exists?(schema_path) && open(schema_path).grep(/users/).count>0
|
59
60
|
return true
|
60
61
|
else
|
61
62
|
return false
|
@@ -66,8 +67,9 @@ Old SQL works with devise. Checking for a current installation of devise!
|
|
66
67
|
app_path = Rails.public_path.split("/")
|
67
68
|
app_path.delete_at(-1)
|
68
69
|
app_path = app_path.join("/")
|
69
|
-
|
70
|
-
|
70
|
+
schema_path = app_path+'/db/schema.rb'
|
71
|
+
|
72
|
+
if File.exists?(schema_path) && open(schema_path).grep(/database_authenticatable/).count>0
|
71
73
|
return true
|
72
74
|
else
|
73
75
|
return false
|
File without changes
|
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.23.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Eddie Gonzales
|
@@ -86,7 +86,7 @@ files:
|
|
86
86
|
- lib/generators/old_sql/install_migrations_generator.rb
|
87
87
|
- lib/generators/old_sql/old_sql_generator.rb
|
88
88
|
- lib/generators/old_sql/templates/add_old_sql_admin_to_users_migration.rb
|
89
|
-
- lib/generators/old_sql/templates/devise/
|
89
|
+
- lib/generators/old_sql/templates/devise/add_devise_to_users_migration.rb
|
90
90
|
- lib/old_sql.rb
|
91
91
|
- lib/old_sql/engine.rb
|
92
92
|
- lib/old_sql/report_processor/base.rb
|
@@ -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: 3012857382134146477
|
195
195
|
segments:
|
196
196
|
- 0
|
197
197
|
version: "0"
|