six-arma-tools 0.1.6 → 0.2.0

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-arma-tools'
15
- s.version = '0.1.6'
15
+ s.version = '0.2.0'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -10,7 +10,7 @@ module Six
10
10
  Process.exit!
11
11
  end
12
12
  COMPONENT = 'six-arma-tools'
13
- VERSION = "0.1.6"
13
+ VERSION = "0.2.0"
14
14
 
15
15
  @@options = Hash.new unless defined?(@@options)
16
16
  @@config = Hash.new
@@ -166,15 +166,20 @@ module Six
166
166
  params = "-BINARIZE -CLEAR -DEBUG"
167
167
  params += " -TEMP \"#{settings[:temp]}\"" if settings[:temp]
168
168
  params += " -INCLUDE \"#{settings[:include]}\"" if settings[:include]
169
- if settings[:project]
169
+
170
+ @source[/(.:[\/][\w0-9@]*)[\/]./]
171
+ proj = settings[:project] ? settings[:project] : $1
172
+
173
+ unless proj.nil?
170
174
  if (Dir[File.join(@source, "**/*.p3d")] + Dir[File.join(@source, "**/*.wrp")]).size > 0 # TODO: Configurable?
171
- params += " -PROJECT \"#{settings[:project]}\""
175
+ params += " -PROJECT \"#{proj}\""
172
176
  end
173
177
  end
178
+
174
179
  prefix = check_prefix(@source, '__AUTO__')
175
180
  params += " -PREFIX #{prefix}" unless prefix.empty?
176
181
  log.info "BinPBO: #{@source}"
177
- exec = "#{tool('binpbo.exe')} \"#{@source}\" \"#{@destination}\" #{params}".gsub('/', '\\')
182
+ exec = "\"#{tool('binpbo.exe')}\" \"#{@source}\" \"#{@destination}\" #{params}".gsub('/', '\\')
178
183
  log.info exec
179
184
  output = %x[#{exec}]
180
185
  log.debug output
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 6
10
- version: 0.1.6
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - ""