six-updater-web 0.24.1 → 0.24.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
7
7
 
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'six-updater-web'
10
- s.version = '0.24.1'
10
+ s.version = '0.24.2'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -283,7 +283,7 @@ class MainController < ApplicationController
283
283
  @mods = preset.all_mods(server, setting)
284
284
  @mods.each do |mod|
285
285
  mod.process(setting, reset, @autoskip)
286
- case mod.status
286
+ case mod.status(setting)
287
287
  when :special
288
288
  @special << mod
289
289
  when :disabled
@@ -295,7 +295,7 @@ class MainController < ApplicationController
295
295
  when :install
296
296
  @install << mod
297
297
  else
298
- logger.debug "Warning; weird mod status: #{mod.status}"
298
+ logger.debug "Warning; weird mod status: #{mod.status(setting)}"
299
299
  end
300
300
  end
301
301
  @skip.sort! { |a, b| a.name <=> b.name }
@@ -71,7 +71,7 @@ class Mod < ActiveRecord::Base
71
71
  end
72
72
  end
73
73
 
74
- def status
74
+ def status(setting = Appsetting.new)
75
75
  return :special if self.special
76
76
  return :disabled if self.disabled
77
77
  if self.installed? || self.exists?(setting)
@@ -23,7 +23,7 @@ end
23
23
  require 'open3'
24
24
 
25
25
  module SixUpdaterWeb
26
- VERSION = "0.24.1"
26
+ VERSION = "0.24.2"
27
27
  COMPONENT = "six-updater-web"
28
28
 
29
29
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 24
8
- - 1
9
- version: 0.24.1
8
+ - 2
9
+ version: 0.24.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy