rgossip2 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rgossip2/client.rb +2 -0
  2. metadata +12 -10
@@ -50,6 +50,8 @@ module RGossip2
50
50
  # 初期ノードを追加
51
51
  initial_nodes.uniq.each do |i|
52
52
  addr = name2addr(i)
53
+ # 自ノードはスキップ
54
+ next if addr == @address
53
55
  @node_list[addr] = create(Node, @node_list, @dead_list, addr, nil, nil)
54
56
  end
55
57
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgossip2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
4
+ hash: 11
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-19 00:00:00 Z
18
+ date: 2011-12-30 00:00:00 +00:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: msgpack
@@ -42,15 +43,16 @@ extra_rdoc_files: []
42
43
  files:
43
44
  - README
44
45
  - bin/gossip
45
- - lib/rgossip2.rb
46
+ - lib/rgossip2/receiver.rb
46
47
  - lib/rgossip2/timer.rb
47
48
  - lib/rgossip2/gossipper.rb
49
+ - lib/rgossip2/node.rb
48
50
  - lib/rgossip2/client.rb
49
- - lib/rgossip2/receiver.rb
50
51
  - lib/rgossip2/context.rb
51
- - lib/rgossip2/node.rb
52
- - lib/rgossip2/context_helper.rb
53
52
  - lib/rgossip2/node_list.rb
53
+ - lib/rgossip2/context_helper.rb
54
+ - lib/rgossip2.rb
55
+ has_rdoc: true
54
56
  homepage: https://bitbucket.org/winebarrel/rgossip2
55
57
  licenses: []
56
58
 
@@ -80,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
82
  requirements: []
81
83
 
82
84
  rubyforge_project:
83
- rubygems_version: 1.8.1
85
+ rubygems_version: 1.3.7
84
86
  signing_key:
85
87
  specification_version: 3
86
88
  summary: Basic implementation of a gossip protocol. This is a porting of Java implementation. see http://code.google.com/p/gossip-protocol-java/