quik 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/lib/quik/merger.rb +5 -1
- data/lib/quik/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65fe26ef815eb90f5e1de85b2412b3fa7dde87a9
|
4
|
+
data.tar.gz: 23ed7b59e429b71018274ab205ac136f5fad91c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81293ea7a0377d720b2b1406c1c975c516c20575655e0220056cbd3437a8860da7d8aac0570a1ed58ed3b5cfbc939ed1e5672701c1869313fce1afcb25204db7
|
7
|
+
data.tar.gz: 476d30c40d69977c8bff72faa98b8e7f9f83fa2de2b48fd56d9ed04d60af2ef8c2631bf44d2a4cb2299b7bc517de72fa62fe14d656796fc086e5c866866cb6ca
|
data/lib/quik/merger.rb
CHANGED
@@ -66,6 +66,8 @@ class Merger
|
|
66
66
|
puts " *** move file #{old_name} => #{new_name} (#{root_dir})"
|
67
67
|
src_path = "#{root_dir}/#{old_name}"
|
68
68
|
dest_path = "#{root_dir}/#{new_name}"
|
69
|
+
## note: make sure subpath exists (e.g. replacement might include new (sub)dirs too)
|
70
|
+
FileUtils.mkdir_p( File.dirname( dest_path ), flags ) unless Dir.exist?( File.dirname( dest_path ))
|
69
71
|
FileUtils.mv( src_path, dest_path, flags )
|
70
72
|
end
|
71
73
|
end
|
@@ -87,6 +89,8 @@ class Merger
|
|
87
89
|
puts " *** move dir #{old_name} => #{new_name} (#{root_dir})"
|
88
90
|
src_path = "#{root_dir}/#{old_name}"
|
89
91
|
dest_path = "#{root_dir}/#{new_name}"
|
92
|
+
## note: make sure subpath exists (e.g. replacement might include new (sub)dirs too)
|
93
|
+
FileUtils.mkdir_p( File.dirname( dest_path ), flags ) unless Dir.exist?( File.dirname( dest_path ))
|
90
94
|
FileUtils.mv( src_path, dest_path, flags )
|
91
95
|
end
|
92
96
|
end
|
@@ -132,7 +136,7 @@ class Merger
|
|
132
136
|
dest_path = "#{dest_root}/#{relative_path}"
|
133
137
|
## make sure dest_path exists
|
134
138
|
dest_dir = File.dirname( dest_path )
|
135
|
-
FileUtils.mkdir_p( dest_dir ) unless Dir.
|
139
|
+
FileUtils.mkdir_p( dest_dir ) unless Dir.exist?( dest_dir )
|
136
140
|
else
|
137
141
|
dest_root = root_dir
|
138
142
|
dest_path = "#{dest_root}/#{relative_path}"
|
data/lib/quik/version.rb
CHANGED