six-updater-web 0.23.5 → 0.23.6

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.23.5'
10
+ s.version = '0.23.6'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -133,7 +133,7 @@ class Mod < ActiveRecord::Base
133
133
  end
134
134
  prio = nil
135
135
  rep.each {|e| unless e.priority.nil?; prio = true; break; end }
136
- prio ? rep.sort{|a, b| a.priority <=> b.priority} : rep.shuffle
136
+ prio ? rep.sort{|a, b| a.prio <=> b.prio} : rep.shuffle
137
137
  end
138
138
 
139
139
  def update_skip
@@ -4,7 +4,7 @@ class Repository < ActiveRecord::Base
4
4
 
5
5
  attr_accessor :ping_value
6
6
 
7
- PING_PACKET_SIZE = 1400
7
+ PING_PACKET_SIZE = 1372
8
8
 
9
9
  def self.rank(pr = false)
10
10
  repos = self.find(:all)
@@ -21,6 +21,9 @@ class Repository < ActiveRecord::Base
21
21
  repos
22
22
  end
23
23
 
24
+ def prio
25
+ self.priority.nil? ? 9999 : self.priority
26
+ end
24
27
 
25
28
  def ping!
26
29
  logger.info "Handling #{self.address}"
@@ -1,7 +1,17 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  # Set default encoding
4
- Encoding.default_internal, Encoding.default_external = ['utf-8'] * 2
4
+ case RUBY_VERSION
5
+ when /1\.8\.[0-9]/
6
+ class Array
7
+ def to_s
8
+ "[#{self.join(', ')}]"
9
+ end
10
+ end
11
+ else
12
+ Encoding.default_internal, Encoding.default_external = ['utf-8'] * 2
13
+ end
14
+
5
15
 
6
16
  case RUBY_PLATFORM
7
17
  when /-mingw32$/, /-mswin32$/
@@ -12,17 +22,8 @@ case RUBY_PLATFORM
12
22
  end
13
23
  require 'open3'
14
24
 
15
- case RUBY_VERSION
16
- when /1\.8\.[0-9]/
17
- class Array
18
- def to_s
19
- "[#{self.join(', ')}]"
20
- end
21
- end
22
- end
23
-
24
25
  module SixUpdaterWeb
25
- VERSION = "0.23.5"
26
+ VERSION = "0.23.6"
26
27
  COMPONENT = "six-updater-web"
27
28
 
28
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
  - 23
8
- - 5
9
- version: 0.23.5
8
+ - 6
9
+ version: 0.23.6
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-07-26 00:00:00 +02:00
17
+ date: 2010-07-27 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency