six-arma-builder 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
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-builder'
15
- s.version = '0.1.5'
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'
@@ -8,13 +8,14 @@ module Six
8
8
  #parse_options
9
9
  initialize
10
10
  @config[:mods].each do |config|
11
- if true#['six'].include? config[:name]
11
+ if true #['six'].include? config[:name]
12
12
  mod = Mod.new(config)
13
13
  # TODO: First reset the package repositories ?
14
14
  mod.process_diffs
15
15
  mod.process_files
16
- mod.write_changelog
17
16
  unless TEST
17
+ mod.write_changelog
18
+ mod.sign_files
18
19
  begin
19
20
  mod.commit_destination # TODO: ONLY WHEN FINALIZED
20
21
  # TODO: Only save when finalized
@@ -18,7 +18,7 @@ require 'six/arma/builder/mod'
18
18
  module Six
19
19
  module Arma
20
20
  module Builder
21
- VERSION = '0.1.5'
21
+ VERSION = '0.1.6'
22
22
  COMPONENT = 'six-arma-builder'
23
23
  BASE_PATH = Dir.pwd
24
24
 
@@ -61,7 +61,7 @@ module Six
61
61
  change.path[/\A(#{path[:folder]})\/(\w*)\/?(.*)/]
62
62
  new[:base], new[:folder], new[:file] = $1, $2, $3
63
63
  path = "#{new[:base]}/#{new[:folder]}"
64
- unless stat[:changed].include?(path) || !File.directory?(File.join(@config[:source], path))
64
+ unless stat[:changed].include?(path)
65
65
  #log.info "#{change.typ} #{change.path}"
66
66
  case new[:type]
67
67
  when 'deleted'
@@ -181,6 +181,22 @@ module Six
181
181
  stat[:packed] = []
182
182
  prep_folder(path, stat)
183
183
  build_changed_addons(path, stat)
184
+ #sign_changed_addons(path, stat)
185
+ # TODO: Make choice
186
+ #sign_all_addons(path, stat, true)
187
+ end
188
+ end
189
+ end
190
+
191
+ def sign_files
192
+ puts
193
+ #log.info "Signing ..."
194
+ @config[:paths].each_with_index do |path,index|
195
+ puts
196
+ log.info "Path: #{path[:folder]}"
197
+ stat = @stats[index]
198
+ case path[:type]
199
+ when :addons
184
200
  #sign_changed_addons(path, stat)
185
201
  # TODO: Make choice
186
202
  sign_all_addons(path, stat, true)
@@ -226,6 +242,7 @@ module Six
226
242
  log.info "Deleting #{change}"
227
243
  change[/(.*)\/(.*)/]
228
244
  folder, file = $1, $2
245
+ # TODO: Add PREFIX_ instead of * ?
229
246
  Dir[File.join(@config[:destination], path[:folder], "*#{file}*")].each do |file|
230
247
  FileUtils.rm_f file
231
248
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-arma-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
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: 2010-02-16 00:00:00 +01:00
12
+ date: 2010-02-21 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency