six-updater-web 0.23.5 → 0.23.6
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
@@ -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.
|
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 =
|
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
|
-
|
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.
|
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
|
-
-
|
9
|
-
version: 0.23.
|
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-
|
17
|
+
date: 2010-07-27 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|