six-updater 0.10.1 → 0.10.2

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six/updater.rb +5 -9
  3. metadata +1 -1
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.10.1'
15
+ s.version = '0.10.2'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -43,7 +43,7 @@ end
43
43
  module Six
44
44
  # TODO: Evaluate if this module should be a class instead?
45
45
  module Updater
46
- VERSION = '0.10.1'
46
+ VERSION = '0.10.2'
47
47
  COMPONENT = 'six-updater'
48
48
 
49
49
  # Configuration
@@ -168,20 +168,16 @@ module Six
168
168
  cmd << " -connect=#{@config[:server][:address]}" if @config[:server][:address]
169
169
  cmd << " -port=#{@config[:server][:port]}" if @config[:server][:port]
170
170
  cmd << " -password=#{@config[:server][:password]}" if @config[:server][:password]
171
- log.info "Starting the game with #{@config[:app_params]} -mod=#{@mods}#{cmd}"
172
- cwd = Dir.pwd
173
- Dir.chdir @config[:app_path]
174
- system "\"#{@config[:app_exe]}\" #{@config[:app_params]} -mod=#{@mods}#{cmd}"
175
- Dir.chdir cwd
171
+ startgame(cmd)
176
172
  end
177
173
 
178
- def startgame
179
- log.info "Starting the game with #{@config[:app_params]} -mod=#{@mods}"
174
+ def startgame(cmd = nil)
175
+ log.info "Starting the game with #{@config[:app_params]} -mod=#{@mods}#{cmd}"
180
176
  #system "\"#{@config[:app_exe]}\" #{@config[:app_params]} -mod=#{@mods}"
181
177
  begin
182
178
  struct = Process.create(
183
179
  :app_name => File.join(@config[:app_path], @config[:app_exe]),
184
- :command_line => "#{@config[:app_params]} -mod=#{@mods}",
180
+ :command_line => " #{@config[:app_params]} -mod=#{@mods}#{cmd}",
185
181
  :creation_flags => Process::DETACHED_PROCESS,
186
182
  :process_inherit => false,
187
183
  :thread_inherit => false,
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.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy