six-updater 0.12.3 → 0.12.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.12.3'
15
+ s.version = '0.12.4'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -77,7 +77,8 @@ module Six
77
77
 
78
78
  puts
79
79
  log.info "Ready!"
80
-
80
+ beta_msg
81
+
81
82
  FileUtils.rm_f PID_FILE if File.exist?(PID_FILE)
82
83
 
83
84
  if @config[:wait]
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.12.3'
47
+ VERSION = '0.12.4'
48
48
  COMPONENT = 'six-updater'
49
49
 
50
50
  # Configuration
@@ -277,6 +277,10 @@ module Six
277
277
  @mods = []
278
278
  @mods << @config[:mods] if @config[:mods]
279
279
 
280
+ @beta = false
281
+ @beta_exe = false
282
+ @beta_exe = true if @config[:app_exe][/beta\/arma2.*\.exe/]
283
+
280
284
  @config[:folders].each do |folder|
281
285
  unless folder[:disabled]
282
286
  folder[:folder].gsub!('\\', '/')
@@ -284,6 +288,7 @@ module Six
284
288
  @mods << folder[:mods]
285
289
  else
286
290
  @mods << folder[:folder]
291
+ @beta = true if folder[:folder] == 'beta'
287
292
  end
288
293
  end
289
294
  end
@@ -291,7 +296,7 @@ module Six
291
296
 
292
297
  # Output processed config data
293
298
  log.info "Manager for: #{@mods}"
294
-
299
+ beta_msg
295
300
 
296
301
  # Prepare stats
297
302
  @stats = []
@@ -303,6 +308,14 @@ module Six
303
308
  end
304
309
  end
305
310
 
311
+ def beta_msg
312
+ if @beta_exe && !@beta
313
+ log.warn "WARNING: You do not seem to be running the 'beta' modfolder, but have selected 'beta/arma2.exe'"
314
+ elsif !@beta_exe && @beta
315
+ log.warn "WARNING: You seem to be running the 'beta' modfolder, but have not selected 'beta/arma2.exe'"
316
+ end
317
+ end
318
+
306
319
  def log
307
320
  @@log
308
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.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy