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