six-updater 0.15.8 → 0.16.1

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-updater'
15
- s.version = '0.15.8'
15
+ s.version = '0.16.1'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
data/lib/six/updater.rb CHANGED
@@ -45,7 +45,7 @@ end
45
45
  module Six
46
46
  # TODO: Evaluate if this module should be a class instead?
47
47
  module Updater
48
- VERSION = '0.15.8'
48
+ VERSION = '0.16.1'
49
49
  COMPONENT = 'six-updater'
50
50
 
51
51
  # Configuration
@@ -262,6 +262,11 @@ module Six
262
262
  end
263
263
 
264
264
  @config[:folders].uniq!
265
+ @config[:folders].sort! do |a, b|
266
+ a_prio = a[:priority] ? a[:priority] : 9999
267
+ b_prio = b[:priority] ? b[:priority] : 9999
268
+ a_prio <=> b_prio
269
+ end
265
270
  log.debug "@config #{@config}"
266
271
 
267
272
  # PreProcess the config data
@@ -9,7 +9,7 @@ module Six
9
9
  @stat = Hash.new
10
10
  @stat[:changelog] = []
11
11
  @stat[:current], @stat[:previous] = "A", "B"
12
- @path = File.join(@config[:app_modpath], @modconfig[:folder])
12
+ @path = File.join(self.apppath, @modconfig[:folder])
13
13
  get_repositories
14
14
 
15
15
  @modconfig[:folder].gsub!('\\', '/')
@@ -36,10 +36,19 @@ module Six
36
36
  end
37
37
  end
38
38
 
39
+ # TODO: Custom paths need more consideration, especially re the -mod= line
40
+ def apppath
41
+ @modconfig[:path] ? @modconfig[:path] : @config[:app_modpath]
42
+ end
43
+
39
44
  def esc(val)
40
45
  "\"#{val}\""
41
46
  end
42
47
 
48
+ def priority
49
+ @modconfig[:priority] ? @modconfig[:priority] : 9999
50
+ end
51
+
43
52
  def get_repositories
44
53
  cfg = File.join(@path, '.repositories.yml')
45
54
  @repositories = if FileTest.exist?(cfg)
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 15
8
- - 8
9
- version: 0.15.8
7
+ - 16
8
+ - 1
9
+ version: 0.16.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-05 00:00:00 +02:00
17
+ date: 2010-04-10 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency