six-arma-builder 0.1.2 → 0.1.3

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-builder'
15
- s.version = '0.1.2'
15
+ s.version = '0.1.3'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -13,15 +13,18 @@ module Six
13
13
  # TODO: First reset the package repositories ?
14
14
  mod.process_diffs
15
15
  mod.process_files
16
- begin
17
- mod.commit_destination unless TEST # TODO: ONLY WHEN FINALIZED
18
- rescue
19
- puts "Failed"
16
+ mod.write_changelog
17
+ unless TEST
18
+ begin
19
+ mod.commit_destination # TODO: ONLY WHEN FINALIZED
20
+ # TODO: Only save when finalized
21
+ rescue
22
+ puts "Failed commit/push"
23
+ end
24
+ save # only save if changes were found ??
20
25
  end
21
26
  end
22
27
  end
23
- # TODO: Only save when finalized
24
- save unless TEST
25
28
  end
26
29
  end
27
30
  end
@@ -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.2'
21
+ VERSION = '0.1.3'
22
22
  COMPONENT = 'six-arma-builder'
23
23
  BASE_PATH = Dir.pwd
24
24
 
@@ -330,12 +330,10 @@ module Six
330
330
  end
331
331
  end
332
332
 
333
- def commit_destination
334
- # Combine the changelogs and everything
335
- # Commit and optional Push?
336
- puts
337
- #@destination_changed = true
333
+ def write_changelog
338
334
  if @destination_changed
335
+ puts
336
+ log.info "Writing Changelog..."
339
337
  msgs = ["h2. #{Time.now}\n\nBuild #{@build}\nUpdated to source:@#{@config[:revision][:current]}"]
340
338
  @config[:paths].each_with_index do |path,index|
341
339
  stat = @stats[index]
@@ -367,7 +365,15 @@ module Six
367
365
  file.puts "h2. #{@config[:name].upcase}\n\n"
368
366
  file.puts msgs
369
367
  end
368
+ end
369
+ end
370
370
 
371
+ def commit_destination
372
+ # Combine the changelogs and everything
373
+ # Commit and optional Push?
374
+ #@destination_changed = true
375
+ if @destination_changed
376
+ puts
371
377
  log.info "Committing, Repacking and Pushing..."
372
378
 
373
379
  #path = File.join(BASE_PATH, 'test')
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy