six-updater 0.14.6 → 0.14.7

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.6'
15
+ s.version = '0.14.7'
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.6'
47
+ VERSION = '0.14.7'
48
48
  COMPONENT = 'six-updater'
49
49
 
50
50
  # Configuration
@@ -313,7 +313,9 @@ module Six
313
313
  file[/(.*)_(.*)/]
314
314
  prefix, suffix = $1, $2
315
315
  if suffix && prefix
316
- Dir[File.join(k_path, "#{prefix}_*.bikey")].each { |delkey| FileUtils.rm_f(delkey) } if suffix[/[0-9]/]
316
+ if suffix[/([0-9]*)/]
317
+ Dir[File.join(k_path, "#{prefix}_#{suffix.sub($1, "")}*.bikey")].each { |delkey| FileUtils.rm_f(delkey) }
318
+ end
317
319
  end
318
320
  FileUtils.cp(key, k_path)
319
321
  end
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.6
4
+ version: 0.14.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-12 00:00:00 +01:00
12
+ date: 2010-01-15 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency