six-updater-web 0.19.2 → 0.19.3

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
@@ -7,7 +7,7 @@ require 'rake/testtask'
7
7
 
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'six-updater-web'
10
- s.version = '0.19.2'
10
+ s.version = '0.19.3'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -1,6 +1,6 @@
1
1
  class Arma2Appsetting < Appsetting
2
2
  # Default game (Appsetting) is atm arma2
3
3
  def found_type
4
- return self.class
4
+ Arma2StAppsetting
5
5
  end
6
6
  end
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.19.2"
25
+ VERSION = "0.19.3"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -90,20 +90,36 @@ module SixUpdaterWeb
90
90
  ENV['PATH'] = "#{tpath};#{ENV['PATH']}" unless ENV['PATH'].include?(tpath)
91
91
 
92
92
  begin
93
- rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_STEAM[0])[ARMA2_STEAM[1]]
94
- distro = "STEAM"
93
+ rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_STEAM[0] + " OA")[ARMA2_STEAM[1]]
94
+ distro = "OA STEAM"
95
95
  rescue
96
96
  begin
97
- rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_ALT[0])[ARMA2_ALT[1]]
98
- distro = "ALT"
97
+ rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_ALT[0] + " OA")[ARMA2_ALT[1]]
98
+ distro = "OA ALT"
99
99
  rescue
100
100
  begin
101
- rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2[0])[ARMA2[1]]
102
- distro = "STANDARD"
101
+ rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2[0] + " OA")[ARMA2[1]]
102
+ distro = "OA STANDARD"
103
103
  rescue
104
+ begin
105
+ rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_STEAM[0])[ARMA2_STEAM[1]]
106
+ distro = "A2 STEAM"
107
+ rescue
108
+ begin
109
+ rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2_ALT[0])[ARMA2_ALT[1]]
110
+ distro = "A2 ALT"
111
+ rescue
112
+ begin
113
+ rpath = Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE, ARMA2[0])[ARMA2[1]]
114
+ distro = "A2 STANDARD"
115
+ rescue
116
+ end
117
+ end
118
+ end
104
119
  end
105
120
  end
106
121
  end
122
+
107
123
  else
108
124
  HOME_PATH = "#{ENV['HOME']}" # Unfreezes the string
109
125
  TEMP_PATH = '/tmp'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 19
8
- - 2
9
- version: 0.19.2
8
+ - 3
9
+ version: 0.19.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy