sixarma 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ require 'rake/testtask'
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'sixarma'
15
15
  s.rubyforge_project = s.name
16
- s.version = '0.4.3'
16
+ s.version = '0.4.4'
17
17
  s.has_rdoc = true
18
18
  s.extra_rdoc_files = ['README', 'LICENSE']
19
19
  s.summary = 'Basic function library for the Armed Assault game by Bohemia Interactive Studios'
@@ -23,8 +23,8 @@ spec = Gem::Specification.new do |s|
23
23
  s.homepage = 'http://6thsense.eu'
24
24
  # s.executables = ['your_executable_here']
25
25
  s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*.rb") + Dir.glob("{bin,lib,spec}/**/*.yaml")
26
- s.require_path = "lib"
27
- s.bindir = "bin"
26
+ s.require_path = 'lib'
27
+ s.bindir = 'bin'
28
28
  s.add_dependency('sixcore', '>= 0.3.0')
29
29
  end
30
30
 
@@ -37,8 +37,8 @@ end
37
37
  Rake::RDocTask.new do |rdoc|
38
38
  files =['README', 'LICENSE', 'lib/**/*.rb']
39
39
  rdoc.rdoc_files.add(files)
40
- rdoc.main = "README" # page to start on
41
- rdoc.title = "sixarma Docs"
40
+ rdoc.main = 'README' # page to start on
41
+ rdoc.title = 'sixarma Docs'
42
42
  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
43
43
  rdoc.options << '--line-numbers'
44
44
  end
data/lib/sixarma.rb CHANGED
@@ -6,5 +6,5 @@ module SixArma
6
6
  end
7
7
 
8
8
  component = '6thSense.eu ArmA'
9
- version = '0.4.3'
10
- SixCore::debugs '#{component} #{version} loaded'
9
+ version = '0.4.4'
10
+ SixCore::debugs "#{component} #{version} loaded""
@@ -1,6 +1,6 @@
1
- BINPBO = "C:\\Program Files (x86)\\Bohemia Interactive\\Tools\\BinPBO Personal Edition\\BINPbo.exe"
2
- TEMPPATH = "H:\\temp\\binpbo"
3
- INCLUDEFILE = "I:\\ACE\\trunk\\build-scripts\\_include.txt"
1
+ BINPBO = 'C:\\Program Files (x86)\\Bohemia Interactive\\Tools\\BinPBO Personal Edition\\BINPbo.exe'
2
+ TEMPPATH = 'H:\\temp\\binpbo'
3
+ INCLUDEFILE = 'I:\\ACE\\trunk\\build-scripts\\_include.txt'
4
4
  BINPBOPARAMSBIN = "-BINARIZE -CLEAR -TEMP #{TEMPPATH} -DEBUG -INCLUDE #{INCLUDEFILE}"
5
5
  BINPBOPARAMSPBO = "-CLEAR -TEMP #{TEMPPATH} -DEBUG"
6
- PREFIX_FILE = "$PBOPREFIX$"
6
+ PREFIX_FILE = '$PBOPREFIX$'
@@ -1,3 +1,3 @@
1
- SIGNPATH = "L:\\signing"
1
+ SIGNPATH = 'L:\\signing'
2
2
  DSCREATE = "#{SIGNPATH}\\dscreatekey"
3
3
  DSSIGN = "#{SIGNPATH}\\dssignfile"
@@ -10,20 +10,20 @@ module SixArma
10
10
  module_function
11
11
  # Checks prefix, returns read from file prefix, empty prefix, or given prefix
12
12
  # source:: Source folder to look for PREFIX_FILE file
13
- # prefix:: String: Empty, "__AUTO__" or specific prefix can be given
13
+ # prefix:: String: Empty, '__AUTO__' or specific prefix can be given
14
14
  def check_prefix(source, prefix)
15
- return prefix unless prefix == "__AUTO__"
15
+ return prefix unless prefix == '__AUTO__'
16
16
  if FileTest.exist?("#{source}\\#{PREFIX_FILE}")
17
17
  pf = File.open("#{source}\\#{PREFIX_FILE}") do |file|
18
18
  file.readlines.map { |line| SixCore::clean(line) }
19
19
  end
20
20
  if pf[0].empty?
21
- return ""
21
+ return ''
22
22
  else
23
23
  return pf[0]
24
24
  end
25
25
  else
26
- return ""
26
+ return ''
27
27
  end
28
28
  end
29
29
 
@@ -31,7 +31,7 @@ module SixArma
31
31
  # source:: source folder incl addon name
32
32
  # destination:: destination folder without addon name
33
33
  # prf:: Prefix, see check_prefix
34
- def binarize(source, destination, prf = "")
34
+ def binarize(source, destination, prf = '')
35
35
  params = BINPBOPARAMSBIN
36
36
  prefix = check_prefix(source, prf)
37
37
  params += " -PREFIX #{prefix}" unless prefix.empty?
data/lib/sixarma/sign.rb CHANGED
@@ -1,19 +1,19 @@
1
1
  =begin
2
2
  6thSense.eu ArmA BuildTools (Sign), by Sickboy (sb_at_6thSense.eu)
3
3
  =end
4
- require "sixarma"
4
+ require 'sixarma'
5
5
 
6
6
  module SixArma
7
7
  module Sign
8
- require "sixarma/config/sign"
9
- COMPONENT = "SixArma::Sign"
8
+ require 'sixarma/config/sign'
9
+ COMPONENT = 'SixArma::Sign'
10
10
 
11
11
  module_function
12
12
  # Creates signature file (.bisign and .biprivatekey), unless it exists already.
13
13
  # Returns created files
14
14
  # name:: String name of key
15
15
  def create(name)
16
- SixCore::debug("Creating Signature", COMPONENT, name)
16
+ SixCore::debug('Creating Signature', COMPONENT, name)
17
17
 
18
18
  # create the key
19
19
  signfile = "#{name}.biprivatekey"
@@ -30,12 +30,12 @@ module SixArma
30
30
  # destination:: Destination folder
31
31
  # signfile:: Signature file name
32
32
  def sign(destination, signfile)
33
- SixCore::debug("Signing...", COMPONENT, [destination, signfile])
33
+ SixCore::debug('Signing...', COMPONENT, [destination, signfile])
34
34
  if signfile.empty?
35
35
  return 1
36
36
  else
37
37
  Dir.chdir(destination)
38
- Dir.glob("*.pbo") { |file| SixCore::proc_cmd "#{DSSIGN} #{SIGNPATH}\\#{signfile} #{file}" }
38
+ Dir.glob('*.pbo') { |file| SixCore::proc_cmd "#{DSSIGN} #{SIGNPATH}\\#{signfile} #{file}" }
39
39
  Dir.chdir(SixCore::MAINDIR)
40
40
  return 0
41
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-29 00:00:00 +01:00
12
+ date: 2008-11-30 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency