old_sql 0.11.0 → 0.12.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.
@@ -55,12 +55,17 @@ Old SQL works with devise. Checking for a current installation of devise!
55
55
  end
56
56
 
57
57
  def user_model_has_devise?
58
- has_devise? = false
58
+ devise_found = false
59
+
60
+ app_path = Rails.public_path.split("/")
61
+ app_path.delete_at(-1)
62
+ app_path = app_path.join("/")
63
+
59
64
  gsub_file app_path+'/app/models/user.rb', /devise/, :green do |match|
60
65
  puts "User model already has devise"
61
- has_devise? = true
66
+ devise_found = true
62
67
  end
63
- has_devise?
68
+ devise_found
64
69
  end
65
70
 
66
71
  def parse_route_files
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: old_sql
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.11.0
5
+ version: 0.12.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: 3313876361865772528
194
+ hash: -2413425905091992699
195
195
  segments:
196
196
  - 0
197
197
  version: "0"