six-updater-web 0.19.3 → 0.19.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
@@ -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.3'
10
+ s.version = '0.19.4'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -7,7 +7,11 @@ class Arma2OaAppsetting < Arma2Appsetting
7
7
  def found_type
8
8
  return self.class unless self.real_path
9
9
  # TODO: Alternative ways to figure out the edition? Find arma2.exe? etc
10
- if File.directory?(File.join(self.real_path, "Addons")) && File.exists?(File.join(self.real_path, "Addons", "Chernarus.pbo"))
10
+ dir = File.join(self.real_path, "addons")
11
+ rdir = File.directory?(dir) ? dir : File.join(self.real_path, "Addons")
12
+ rdir = File.join(self.real_path, "AddOns") unless File.directory?(rdir)
13
+
14
+ if File.exists?(File.join(rdir, "chernarus.pbo")) || File.exists?(File.join(rdir, "Chernarus.pbo"))
11
15
  Arma2OaCoAppsetting
12
16
  else
13
17
  Arma2OaStAppsetting
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.19.3"
25
+ VERSION = "0.19.4"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -127,6 +127,8 @@ module SixUpdaterWeb
127
127
  DATA_PATH = File.join(File.exists?(File.join(BASE_PATH, "legacy.txt")) ? BASE_PATH : HOME_PATH, "six-updater") # COMPONENT)
128
128
  ARMA_PATH, DISTRO = rpath, distro
129
129
 
130
+ FileUtils.mkdir_p DATA_PATH unless File.directory?(DATA_PATH)
131
+
130
132
  PID_FILE = File.join(DATA_PATH, "#{COMPONENT}.pid")
131
133
  File.open(PID_FILE, 'w') {|f| f.puts Process.pid}
132
134
 
@@ -1,2 +1,2 @@
1
- Any changes made to files in sub-folders will be lost.
2
- See http://activescaffold.com/tutorials/faq#custom-css.
1
+ Any changes made to files in sub-folders will be lost.
2
+ See http://activescaffold.com/tutorials/faq#custom-css.
@@ -1,2 +1,2 @@
1
- Any changes made to files in sub-folders will be lost.
2
- See http://activescaffold.com/tutorials/faq#custom-css.
1
+ Any changes made to files in sub-folders will be lost.
2
+ See http://activescaffold.com/tutorials/faq#custom-css.
@@ -1,2 +1,2 @@
1
- Any changes made to files in sub-folders will be lost.
2
- See http://activescaffold.com/tutorials/faq#custom-css.
1
+ Any changes made to files in sub-folders will be lost.
2
+ See http://activescaffold.com/tutorials/faq#custom-css.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 19
8
- - 3
9
- version: 0.19.3
8
+ - 4
9
+ version: 0.19.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy