old_sql 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,12 +9,6 @@ module OldSql
9
9
  puts "Hello!
10
10
  Old SQL works with devise. Checking for a current installation of devise!
11
11
  "
12
-
13
- app_path = Rails.public_path.split("/")
14
- app_path.delete_at(-1)
15
- app_path = app_path.join("/")
16
-
17
- puts "User model exists" unless open(app_path+'/db/schema.rb').grep(/users/).count<=0
18
12
 
19
13
  if defined?(Devise)
20
14
  check_for_devise_models
@@ -57,7 +51,7 @@ Old SQL works with devise. Checking for a current installation of devise!
57
51
  app_path.delete_at(-1)
58
52
  app_path = app_path.join("/")
59
53
 
60
- if open(app_path+'/db/schema.rb').grep(/users/).count<=0
54
+ if open(app_path+'/db/schema.rb').grep(/users/).count>0
61
55
  return true
62
56
  else
63
57
  return false
@@ -69,7 +63,7 @@ Old SQL works with devise. Checking for a current installation of devise!
69
63
  app_path.delete_at(-1)
70
64
  app_path = app_path.join("/")
71
65
 
72
- if open(app_path+'/app/models/user.rb').grep(/devise/).count<=0
66
+ if open(app_path+'/app/models/user.rb').grep(/devise/).count>0
73
67
  return true
74
68
  else
75
69
  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.16.0
5
+ version: 0.17.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: -235958455247447896
194
+ hash: -1764160822854652558
195
195
  segments:
196
196
  - 0
197
197
  version: "0"