riddle 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -0
- data/lib/riddle/auto_version.rb +1 -1
- data/lib/riddle/client.rb +3 -2
- data/lib/riddle/controller.rb +1 -1
- data/spec/riddle/auto_version_spec.rb +7 -0
- metadata +4 -4
data/README.textile
CHANGED
data/lib/riddle/auto_version.rb
CHANGED
data/lib/riddle/client.rb
CHANGED
@@ -136,8 +136,9 @@ module Riddle
|
|
136
136
|
# accessed and changed via the attribute accessors.
|
137
137
|
def initialize(servers=nil, port=nil)
|
138
138
|
Riddle.version_warning
|
139
|
-
|
140
|
-
|
139
|
+
|
140
|
+
servers = Array(servers || "localhost")
|
141
|
+
@servers = servers.respond_to?(:shuffle) ? servers.shuffle : servers.sort_by{ rand }
|
141
142
|
@port = port || 9312
|
142
143
|
@socket = nil
|
143
144
|
|
data/lib/riddle/controller.rb
CHANGED
@@ -27,5 +27,12 @@ describe Riddle::AutoVersion do
|
|
27
27
|
@controller.stub!(:sphinx_version => '1.10-beta')
|
28
28
|
Riddle::AutoVersion.configure
|
29
29
|
end
|
30
|
+
|
31
|
+
it "should require 1.10 if using 1.10 with 64 bit IDs" do
|
32
|
+
Riddle::AutoVersion.should_receive(:require).with('riddle/1.10')
|
33
|
+
|
34
|
+
@controller.stub!(:sphinx_version => '1.10-id64-beta')
|
35
|
+
Riddle::AutoVersion.configure
|
36
|
+
end
|
30
37
|
end
|
31
38
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riddle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 2
|
10
|
+
version: 1.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Allan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-22 00:00:00 +11:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|