six-updater-web 0.22.2 → 0.22.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
@@ -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.22.2'
10
+ s.version = '0.22.3'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -166,7 +166,7 @@ class Mod < ActiveRecord::Base
166
166
  Dir.chdir setting.real_modpath.clone do
167
167
  Dir["@*"].each do |dir|
168
168
  next unless File.directory?(dir)
169
- m = Mod.find(:first, :conditions => "name LIKE '#{dir}'")
169
+ m = Mod.find(:first, :conditions => ["name LIKE ?", dir])
170
170
  unless m
171
171
  m = Mod.new :name => dir
172
172
  m.save
@@ -32,7 +32,7 @@ class Queryserver < ActiveRecord::Base
32
32
  def mods_fetch
33
33
  if self.mod.size > 0
34
34
  self.mod.reject {|m| SYS_MODS.include? m }.map do |m|
35
- mods = Mod.find(:all, :conditions => "name LIKE '#{m}'") # needed for case insensitivity :S
35
+ mods = Mod.find(:all, :conditions => ["name LIKE ?", m]) # needed for case insensitivity :S
36
36
  mod = nil
37
37
  mods.each do |mo|
38
38
  if mo.name.downcase == m.downcase
@@ -58,7 +58,7 @@ class Queryserver < ActiveRecord::Base
58
58
  def mods_fetch2
59
59
  if self.mod.size > 0
60
60
  self.mod.reject {|m| SYS_MODS.include? m }.map do |m|
61
- mods = Mod.find(:all, :conditions => "name LIKE '#{m}'") # needed for case insensitivity :S
61
+ mods = Mod.find(:all, :conditions => ["name LIKE ?", m]) # needed for case insensitivity :S
62
62
  mod = nil
63
63
  mods.each do |mo|
64
64
  if mo.name.downcase == m.downcase
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.22.2"
25
+ VERSION = "0.22.3"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  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
  - 22
8
- - 2
9
- version: 0.22.2
8
+ - 3
9
+ version: 0.22.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy