murakumo 0.1.1 → 0.1.2
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/lib/cli/mrkmctl_options.rb +1 -1
- data/lib/cli/murakumo_options.rb +1 -1
- data/lib/misc/murakumo_const.rb +2 -0
- data/lib/srv/murakumo_cloud.rb +6 -2
- metadata +7 -7
data/lib/cli/mrkmctl_options.rb
CHANGED
data/lib/cli/murakumo_options.rb
CHANGED
data/lib/misc/murakumo_const.rb
CHANGED
data/lib/srv/murakumo_cloud.rb
CHANGED
@@ -49,10 +49,14 @@ module Murakumo
|
|
49
49
|
})
|
50
50
|
|
51
51
|
# ノードの更新をフック
|
52
|
-
@gossip.context.callback_handler = lambda do |act, addr, ts, dt|
|
52
|
+
@gossip.context.callback_handler = lambda do |act, addr, ts, dt, old_dt|
|
53
53
|
case act
|
54
|
-
when :add, :comeback
|
54
|
+
when :add, :comeback
|
55
|
+
# 追加・復帰の時は無条件に更新
|
55
56
|
update(addr, dt)
|
57
|
+
when :update
|
58
|
+
# 更新の時はデータが更新されたときのみ更新
|
59
|
+
update(addr, dt) if dt != old_dt
|
56
60
|
when :delete
|
57
61
|
delete(addr)
|
58
62
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: murakumo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- winebarrel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
18
|
+
date: 2011-11-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rubydns
|
@@ -41,12 +41,12 @@ dependencies:
|
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
44
|
+
hash: 23
|
45
45
|
segments:
|
46
46
|
- 0
|
47
47
|
- 1
|
48
|
-
-
|
49
|
-
version: 0.1.
|
48
|
+
- 6
|
49
|
+
version: 0.1.6
|
50
50
|
type: :runtime
|
51
51
|
version_requirements: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|