six-updater 0.14.7 → 0.14.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-updater'
15
- s.version = '0.14.7'
15
+ s.version = '0.14.8'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
data/lib/six/updater.rb CHANGED
@@ -44,7 +44,7 @@ end
44
44
  module Six
45
45
  # TODO: Evaluate if this module should be a class instead?
46
46
  module Updater
47
- VERSION = '0.14.7'
47
+ VERSION = '0.14.8'
48
48
  COMPONENT = 'six-updater'
49
49
 
50
50
  # Configuration
@@ -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
- Dir[File.join(k_path, "#{prefix}_#{suffix.sub($1, "")}*.bikey")].each { |delkey| FileUtils.rm_f(delkey) }
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.7
4
+ version: 0.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy