six-updater 0.12.1 → 0.12.2

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.12.1'
15
+ s.version = '0.12.2'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -43,28 +43,28 @@ module Six
43
43
  puts
44
44
  log.info "Processing:"
45
45
  @config[:folders].each_with_index do |config, index|
46
- unless config[:skip] || config[:disabled]
47
- # TODO: Only display message when there are actually todo's
48
- puts
49
- log.info "= #{config[:folder]}"
50
- mod = Mod.new(config, @config)
51
- mods[index] = mod
52
- @todo.each { |t| mod.send t }
53
- end
46
+ #unless config[:skip] || config[:disabled]
47
+ # TODO: Only display message when there are actually todo's
48
+ puts
49
+ log.info "= #{config[:folder]}"
50
+ mod = Mod.new(config, @config)
51
+ mods[index] = mod
52
+ @todo.each { |t| mod.send t }
53
+ # end
54
54
  end
55
55
 
56
56
  puts
57
57
  log.info "Postprocessing:"
58
58
  @config[:folders].each_with_index do |config, index|
59
- unless config[:skip] || config[:disabled]
60
- mod = mods[index]
61
- if mod.changed || @config[:force]
62
- # TODO: Only display message when there are actually todo's
63
- puts
64
- log.info "= #{config[:folder]}"
65
- @second_todo.each { |t| mod.send t }
66
- end
59
+ # unless config[:skip] || config[:disabled]
60
+ mod = mods[index]
61
+ if mod.changed || @config[:force]
62
+ # TODO: Only display message when there are actually todo's
63
+ puts
64
+ log.info "= #{config[:folder]}"
65
+ @second_todo.each { |t| mod.send t }
67
66
  end
67
+ # end
68
68
  end
69
69
 
70
70
  puts
@@ -44,7 +44,7 @@ end
44
44
  module Six
45
45
  # TODO: Evaluate if this module should be a class instead?
46
46
  module Updater
47
- VERSION = '0.12.1'
47
+ VERSION = '0.12.2'
48
48
  COMPONENT = 'six-updater'
49
49
 
50
50
  # Configuration
@@ -135,6 +135,11 @@ module Six
135
135
  end
136
136
 
137
137
  def changelog
138
+ if @modconfig[:disabled]
139
+ log.info "Mod is tagged 'disabled' in the configuration file. Skipping..."
140
+ return
141
+ end
142
+
138
143
  unless @installed
139
144
  not_a_repository
140
145
  return
@@ -166,6 +171,10 @@ module Six
166
171
  # TODO: run with --aggressive every 100 commits or so :O | Evaluate repack -adf f being more aggressive?
167
172
  # Is aggressive usable yet? http://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/
168
173
  def cleanup
174
+ if @modconfig[:disabled]
175
+ log.info "Mod is tagged 'disabled' in the configuration file. Skipping..."
176
+ return
177
+ end
169
178
  unless @installed
170
179
  not_a_repository
171
180
  return
@@ -181,10 +190,16 @@ module Six
181
190
 
182
191
  # RESET process (incase everything FOOKED :D)
183
192
  def reset
193
+ if @modconfig[:disabled]
194
+ log.info "Mod is tagged 'disabled' in the configuration file. Skipping..."
195
+ return
196
+ end
197
+
184
198
  unless @installed
185
199
  not_a_repository
186
200
  return
187
201
  end
202
+
188
203
  log.warn "###########"
189
204
  log.warn "# WARNING #"
190
205
  log.warn "###########"
@@ -197,6 +212,16 @@ module Six
197
212
 
198
213
  # UPDATE Process
199
214
  def update
215
+ if @modconfig[:skip]
216
+ log.info "Mod is tagged 'skip' in the configuration file. Skipping..."
217
+ return
218
+ else
219
+ if @modconfig[:disabled]
220
+ log.info "Mod is tagged 'disabled' in the configuration file. Skipping..."
221
+ return
222
+ end
223
+ end
224
+
200
225
  unless @installed
201
226
  not_a_repository
202
227
  return
@@ -339,6 +364,10 @@ module Six
339
364
 
340
365
  # UNINSTALL process
341
366
  def uninstall
367
+ if @modconfig[:disabled]
368
+ log.info "Mod is tagged 'disabled' in the configuration file. Skipping..."
369
+ return
370
+ end
342
371
  if FileTest.exist?(@path)
343
372
  log.warn "###########"
344
373
  log.warn "# WARNING #"
@@ -356,6 +385,10 @@ module Six
356
385
  # Process userconfigs
357
386
  # TODO: Add this processing to update, aka; IF userconfig has changed THEN update it
358
387
  def userconfig(force = true)
388
+ if @modconfig[:disabled]
389
+ log.info "Mod is tagged 'disabled' in the configuration file. Skipping..."
390
+ return
391
+ end
359
392
  unless @installed
360
393
  not_a_repository
361
394
  return
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
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: 2009-12-15 00:00:00 +01:00
12
+ date: 2009-12-17 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency