six-updater 0.14.8 → 0.14.9

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 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.8'
15
+ s.version = '0.14.9'
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.8'
47
+ VERSION = '0.14.9'
48
48
  COMPONENT = 'six-updater'
49
49
 
50
50
  # Configuration
@@ -313,10 +313,9 @@ module Six
313
313
  file[/(.*)_(.*)\.bikey/]
314
314
  prefix, suffix = $1, $2
315
315
  if suffix && prefix
316
- if suffix[/([0-9]*)/]
317
- suf = suffix.clone
318
- suf.sub!($1, "")
319
- Dir[File.join(k_path, "#{prefix}_#{suf}*.bikey")].each { |delkey| FileUtils.rm_f(delkey) }
316
+ if suffix[/(\D*)\d*/]
317
+ suf = $1
318
+ Dir[File.join(k_path, "#{prefix}_#{suf}*.bikey")].each { |delkey| FileUtils.rm_f(delkey) } if suf
320
319
  end
321
320
  end
322
321
  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.8
4
+ version: 0.14.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy