old_sql 0.37.0 → 0.38.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.
@@ -6,13 +6,13 @@ module OldSql
6
6
  desc "Old SQL Install"
7
7
 
8
8
  def check_for_devise
9
- puts "Old SQL works with devise. Checking for a current installation of devise!
9
+ puts "Old SQL works with devise, cancan and sanitize. Checking for a current installation of devise!
10
10
  "
11
11
 
12
12
  if defined?(Devise)
13
13
  check_for_devise_models
14
14
  else
15
- puts "Please put gem 'devise' into your Gemfile"
15
+ puts "Please put gem 'devise', gem 'cancan', and gem 'sanitize' into your Gemfile"
16
16
  end
17
17
 
18
18
  copy_locales_files
@@ -105,7 +105,7 @@ module OldSql
105
105
  routes_path = "#{app_path}/config/routes.rb"
106
106
  if open(routes_path).grep(/devise_for :#{model_name}/).count<=0
107
107
  puts "Adding devise_for :#{model_name} to #{routes_path}"
108
- insert_into_file routes_path, "devise_for :#{model_name}\n", :after => "ReportDemo::Application.routes.draw do\n"
108
+ insert_into_file routes_path, " devise_for :#{model_name}\n\n", :after => "ReportDemo::Application.routes.draw do\n"
109
109
  end
110
110
  end
111
111
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: old_sql
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.37.0
5
+ version: 0.38.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Eddie Gonzales
@@ -192,7 +192,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - ">="
194
194
  - !ruby/object:Gem::Version
195
- hash: -2567618699866213025
195
+ hash: -859292401670978505
196
196
  segments:
197
197
  - 0
198
198
  version: "0"