murakumo 0.4.3 → 0.4.4
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/README +1 -1
- data/lib/misc/murakumo_const.rb +1 -1
- data/lib/srv/murakumo_balancer.rb +2 -1
- metadata +23 -23
data/README
CHANGED
data/lib/misc/murakumo_const.rb
CHANGED
|
@@ -110,6 +110,7 @@ module Murakumo
|
|
|
110
110
|
# 宛先をソート
|
|
111
111
|
dests = (0...records.length).map {|i| [records[i]['ip_address'], i] }.sort_by {|a, b| a }
|
|
112
112
|
dests_orig = dests
|
|
113
|
+
dests_orig_len = dests_orig.length
|
|
113
114
|
|
|
114
115
|
# 数をそろえる
|
|
115
116
|
if sources.length < dests.length
|
|
@@ -123,7 +124,7 @@ module Murakumo
|
|
|
123
124
|
first_index = sources.zip(dests).index {|s, d| s == @address }
|
|
124
125
|
|
|
125
126
|
# 元の配列に戻す
|
|
126
|
-
dests = (dests_orig + dests_orig).slice(first_index,
|
|
127
|
+
dests = (dests_orig + dests_orig).slice(first_index, dests_orig_len)
|
|
127
128
|
|
|
128
129
|
# 先頭インデックスからレコードを並べ直す
|
|
129
130
|
yield(records.values_at(*dests.map {|addr, i| i }))
|
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: 7
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.4.4
|
|
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: 2012-01-
|
|
18
|
+
date: 2012-01-12 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -26,12 +26,12 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ~>
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
hash:
|
|
29
|
+
hash: 27
|
|
30
30
|
segments:
|
|
31
31
|
- 0
|
|
32
32
|
- 3
|
|
33
|
-
-
|
|
34
|
-
version: 0.3.
|
|
33
|
+
- 4
|
|
34
|
+
version: 0.3.4
|
|
35
35
|
type: :runtime
|
|
36
36
|
version_requirements: *id001
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
@@ -97,36 +97,36 @@ extra_rdoc_files: []
|
|
|
97
97
|
|
|
98
98
|
files:
|
|
99
99
|
- README
|
|
100
|
-
- bin/
|
|
101
|
-
- bin/murakumo
|
|
100
|
+
- bin/murakumo-show-ec2-tags
|
|
102
101
|
- bin/murakumo-install-init-script
|
|
103
102
|
- bin/murakumo-show-ec2-instances
|
|
104
|
-
- bin/murakumo
|
|
103
|
+
- bin/murakumo
|
|
105
104
|
- bin/murakumo-show-ip-address
|
|
106
|
-
-
|
|
107
|
-
- lib/cli/mrkmctl_options.rb
|
|
108
|
-
- lib/cli/murakumo.rb
|
|
109
|
-
- lib/cli/murakumo_initializer_context.rb
|
|
110
|
-
- lib/cli/murakumo_options.rb
|
|
105
|
+
- bin/mrkmctl
|
|
111
106
|
- lib/misc/murakumo_const.rb
|
|
107
|
+
- lib/srv/murakumo_health_check_context.rb
|
|
112
108
|
- lib/srv/murakumo_balancer.rb
|
|
113
109
|
- lib/srv/murakumo_cloud.rb
|
|
114
|
-
- lib/srv/murakumo_health_check_context.rb
|
|
115
110
|
- lib/srv/murakumo_health_check_notifier.rb
|
|
116
111
|
- lib/srv/murakumo_health_checker.rb
|
|
117
112
|
- lib/srv/murakumo_server.rb
|
|
118
|
-
- lib/
|
|
113
|
+
- lib/cli/mrkmctl_options.rb
|
|
114
|
+
- lib/cli/murakumo_initializer_context.rb
|
|
115
|
+
- lib/cli/mrkmctl.rb
|
|
116
|
+
- lib/cli/murakumo.rb
|
|
117
|
+
- lib/cli/murakumo_options.rb
|
|
119
118
|
- lib/util/murakumo_ec2_instances.rb
|
|
120
|
-
- lib/util/murakumo_ec2_tags.rb
|
|
121
119
|
- lib/util/murakumo_self_ip_address.rb
|
|
122
|
-
-
|
|
123
|
-
-
|
|
120
|
+
- lib/util/murakumo_ec2_tags.rb
|
|
121
|
+
- lib/util/murakumo_ec2_client.rb
|
|
124
122
|
- etc/murakumo-init.rb.for-ec2
|
|
125
|
-
- etc/
|
|
123
|
+
- etc/gai.conf.example
|
|
126
124
|
- etc/murakumo.server
|
|
125
|
+
- etc/dhclient-script.patch
|
|
126
|
+
- etc/murakumo-update-config-for-ec2
|
|
127
127
|
- etc/murakumo.yml.example
|
|
128
128
|
has_rdoc: true
|
|
129
|
-
homepage: https://
|
|
129
|
+
homepage: https://github.com/cookpad/murakumo/wiki
|
|
130
130
|
licenses: []
|
|
131
131
|
|
|
132
132
|
post_install_message:
|
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
155
|
requirements: []
|
|
156
156
|
|
|
157
157
|
rubyforge_project:
|
|
158
|
-
rubygems_version: 1.
|
|
158
|
+
rubygems_version: 1.5.3
|
|
159
159
|
signing_key:
|
|
160
160
|
specification_version: 3
|
|
161
161
|
summary: Murakumo is the internal DNS server which manages name information using a gossip protocol.
|