six-updater 0.14.3 → 0.14.4
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/Rakefile +1 -1
- data/lib/six/updater.rb +1 -1
- data/lib/six/updater/mod.rb +6 -7
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/six/updater.rb
CHANGED
data/lib/six/updater/mod.rb
CHANGED
@@ -309,14 +309,13 @@ module Six
|
|
309
309
|
k_path = File.join(@config[:app_path], 'keys')
|
310
310
|
Dir[File.join(path, '*.bikey')].each do |key|
|
311
311
|
key[/(.*)\/(.*)/]
|
312
|
-
$2
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
end
|
312
|
+
path, file = $1, $2
|
313
|
+
file[/(.*)_(.*)/]
|
314
|
+
prefix, suffix = $1, $2
|
315
|
+
if suffix && prefix
|
316
|
+
Dir[File.join(k_path, "#{prefix}_*.bikey")].each { |delkey| FileUtils.rm_f(delkey) } if suffix[/[0-9]/]
|
318
317
|
end
|
319
|
-
FileUtils
|
318
|
+
FileUtils.cp(key, k_path)
|
320
319
|
end
|
321
320
|
end
|
322
321
|
end
|