wize_upgrader 0.0.2 → 0.0.3
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.
- data/lib/wize_upgrader.rb +3 -2
- metadata +1 -1
data/lib/wize_upgrader.rb
CHANGED
|
@@ -6,7 +6,6 @@ module Wize
|
|
|
6
6
|
class Upgrader
|
|
7
7
|
SOFT_DIR_MAPPINGS = {
|
|
8
8
|
".git" => ".git",
|
|
9
|
-
"app" => "app",
|
|
10
9
|
"script" => "bin",
|
|
11
10
|
"db" => "db",
|
|
12
11
|
"lib" => "lib",
|
|
@@ -14,6 +13,7 @@ module Wize
|
|
|
14
13
|
"vendor" => "vendor"
|
|
15
14
|
}
|
|
16
15
|
HARD_DIR_MAPPINGS = {
|
|
16
|
+
"app" => "app",
|
|
17
17
|
"config/locales" => "config/locales",
|
|
18
18
|
"config/initializers" => "config/initializers"
|
|
19
19
|
}
|
|
@@ -169,8 +169,9 @@ end
|
|
|
169
169
|
def unusual_gems(gemfile)
|
|
170
170
|
old_gems = File.readlines(gemfile)
|
|
171
171
|
old_gems.select! do |gem|
|
|
172
|
-
gem.start_with?("gem") && !COMMON_GEMS.include?(gem.chomp)
|
|
172
|
+
gem.strip.start_with?("gem") && !COMMON_GEMS.include?(gem.chomp)
|
|
173
173
|
end
|
|
174
|
+
puts "CHECK THE GEM GROUPS!!"
|
|
174
175
|
puts "Special gems: "
|
|
175
176
|
old_gems
|
|
176
177
|
end
|