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 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.3'
15
+ s.version = '0.14.4'
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.3'
47
+ VERSION = '0.14.4'
48
48
  COMPONENT = 'six-updater'
49
49
 
50
50
  # Configuration
@@ -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
- k = $1
314
- if k
315
- Dir[File.join(k_path, "#{k}_*.bikey")].each do |delkey|
316
- FileUtils::rm_f(delkey)
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::cp(key, k_path)
318
+ FileUtils.cp(key, k_path)
320
319
  end
321
320
  end
322
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.3
4
+ version: 0.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy