six-arma-tools 0.1.4 → 0.1.6

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.4'
15
+ s.version = '0.1.6'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -85,20 +85,21 @@ module Six
85
85
  end
86
86
  end
87
87
 
88
- DEFAULT_UNPACK = {:extract_to_prefix => false, :derapify => true, :prompt_overwrite => true, :silent => true, :list => false}
88
+ DEFAULT_UNPACK = {:extract_to_prefix => true, :derapify => true, :prompt_overwrite => true, :silent => true, :list => false}
89
89
  def unpack(params = {})
90
90
  params = DEFAULT_UNPACK.merge params
91
91
  cmd = []
92
+ cmd << 'k' unless params[:extract_to_prefix]
92
93
  cmd << 'n' unless params[:silent]
93
94
  cmd << 'r' unless params[:derapify]
94
- cmd << 'a' if params[:extract_to_prefix]
95
+ #cmd << 'a' if params[:extract_to_prefix]
95
96
  cmd << 'l' if params[:list]
96
- cmd = " -#{cmd.join('')}" if cmd.size > 0
97
+ cmd = [" -#{cmd.join('')}"] if cmd.size > 0
97
98
  cmd << " -f \"#{params[:files_to_extract]}\"" if params[:files_to_extract]
98
99
  cmd << " -w #{params[:output]}" if params[:output]
99
100
  if @source[/\.pbo/]
100
101
  @source[/(\w*)\.pbo/]
101
- destination = File.join(@destination, $1)
102
+ destination = @destination
102
103
 
103
104
  log.info "Unpacking: #{@source} to #{destination}"
104
105
  output = %x[#{tool('extractpbo.exe')}#{cmd.join('')} "#{@source}" "#{destination}"]
@@ -166,7 +167,7 @@ module Six
166
167
  params += " -TEMP \"#{settings[:temp]}\"" if settings[:temp]
167
168
  params += " -INCLUDE \"#{settings[:include]}\"" if settings[:include]
168
169
  if settings[:project]
169
- if Dir[File.join(@source, "**/*.p3d")].size > 0 # TODO: Configurable?
170
+ if (Dir[File.join(@source, "**/*.p3d")] + Dir[File.join(@source, "**/*.wrp")]).size > 0 # TODO: Configurable?
170
171
  params += " -PROJECT \"#{settings[:project]}\""
171
172
  end
172
173
  end
@@ -10,7 +10,7 @@ module Six
10
10
  Process.exit!
11
11
  end
12
12
  COMPONENT = 'six-arma-tools'
13
- VERSION = "0.1.4"
13
+ VERSION = "0.1.6"
14
14
 
15
15
  @@options = Hash.new unless defined?(@@options)
16
16
  @@config = Hash.new
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-arma-tools
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - ""
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-04 00:00:00 +02:00
18
+ date: 2010-07-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21