flare-tools 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/flare/test/daemon.rb +1 -1
- data/lib/flare/test/node.rb +1 -1
- data/lib/flare/tools.rb +2 -2
- data/lib/flare/tools/client.rb +3 -3
- data/test/unit/bwlimit_test.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/flare/test/daemon.rb
CHANGED
data/lib/flare/test/node.rb
CHANGED
data/lib/flare/tools.rb
CHANGED
@@ -9,8 +9,8 @@ module Flare
|
|
9
9
|
# flare-tools module.
|
10
10
|
module Tools
|
11
11
|
# the version number of flare-tools
|
12
|
-
VERSION = '0.7.
|
13
|
-
TITLE = "Flare-tools version #{VERSION} Copyright (C) GREE, Inc. 2011-
|
12
|
+
VERSION = '0.7.3'
|
13
|
+
TITLE = "Flare-tools version #{VERSION} Copyright (C) GREE, Inc. 2011-2017"
|
14
14
|
autoload :Common, 'flare/tools/common'
|
15
15
|
autoload :Cluster, 'flare/tools/cluster'
|
16
16
|
autoload :Stats, 'flare/tools/stats'
|
data/lib/flare/tools/client.rb
CHANGED
@@ -37,7 +37,7 @@ module Flare
|
|
37
37
|
def initialize(host, port, tout = DefaultTimeout, uplink_limit = DefalutBwlimit, downlink_limit = DefalutBwlimit)
|
38
38
|
@tout = tout
|
39
39
|
@conn = nil
|
40
|
-
timeout(1) do
|
40
|
+
Timeout.timeout(1) do
|
41
41
|
@conn = Flare::Net::Connection.new(host, port, uplink_limit, downlink_limit)
|
42
42
|
end
|
43
43
|
@server_name, @version = server_version
|
@@ -80,7 +80,7 @@ module Flare
|
|
80
80
|
response = nil
|
81
81
|
cmd.chomp!
|
82
82
|
cmd += "\r\n"
|
83
|
-
timeout(tout) do
|
83
|
+
Timeout.timeout(tout) do
|
84
84
|
@conn.send(cmd)
|
85
85
|
response = parser.call(@conn, processor)
|
86
86
|
end
|
@@ -101,7 +101,7 @@ module Flare
|
|
101
101
|
|
102
102
|
def close()
|
103
103
|
begin
|
104
|
-
timeout(1) { quit }
|
104
|
+
Timeout.timeout(1) { quit }
|
105
105
|
rescue Timeout::Error => e
|
106
106
|
end
|
107
107
|
@conn.close
|
data/test/unit/bwlimit_test.rb
CHANGED
@@ -35,7 +35,7 @@ class BwlimitTest < Test::Unit::TestCase
|
|
35
35
|
total = size*1024*duration
|
36
36
|
bwlimit = Bwlimit.new("#{size}kB")
|
37
37
|
assert_nothing_raised {
|
38
|
-
timeout(duration*1.5) {
|
38
|
+
Timeout.timeout(duration*1.5) {
|
39
39
|
while bwlimit.totalbytes < total
|
40
40
|
bwlimit.inc((1500*(rand+1)).to_i)
|
41
41
|
bwlimit.wait
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flare-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: log4r
|
@@ -225,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
segments:
|
227
227
|
- 0
|
228
|
-
hash: -
|
228
|
+
hash: -3029867972087225004
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
230
|
none: false
|
231
231
|
requirements:
|