flare-tools 0.7.2 → 0.7.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.
@@ -1,3 +1,7 @@
1
+ === 0.7.3 / 2017-04-14
2
+ * Minor Enhancements
3
+ * Avoid using deprecated methods.
4
+
1
5
  === 0.7.2 / 2016-03-01
2
6
  * Minor Enhancements
3
7
  * Modify 'index' subcommand to output node_map_version with Flare 1.3.1 or later.
@@ -142,7 +142,7 @@ module Flare
142
142
  def kill_node_process(pid)
143
143
  STDERR.print " #{pid}"
144
144
  begin
145
- timeout(10) do
145
+ Timeout.timeout(10) do
146
146
  Process.kill :TERM, pid
147
147
  Process.waitpid pid
148
148
  end
@@ -45,7 +45,7 @@ module Flare
45
45
  def terminate
46
46
  puts "killing... #{@pid}"
47
47
  begin
48
- timeout(10) do
48
+ Timeout.timeout(10) do
49
49
  Process.kill :TERM, @pid
50
50
  Process.waitpid @pid
51
51
  end
@@ -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.2'
13
- TITLE = "Flare-tools version #{VERSION} Copyright (C) GREE, Inc. 2011-2016"
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'
@@ -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
@@ -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.2
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: 2016-03-01 00:00:00.000000000 Z
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: -3541811138210506065
228
+ hash: -3029867972087225004
229
229
  required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  none: false
231
231
  requirements: