flying-sphinx 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +3 -0
- data/lib/flying_sphinx/configuration.rb +14 -2
- data/lib/flying_sphinx/version.rb +1 -1
- metadata +7 -37
data/HISTORY
CHANGED
@@ -13,11 +13,11 @@ class FlyingSphinx::Configuration
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def start_sphinx
|
16
|
-
|
16
|
+
change 'starting', 'started'
|
17
17
|
end
|
18
18
|
|
19
19
|
def stop_sphinx
|
20
|
-
|
20
|
+
change 'stopping', 'stopped'
|
21
21
|
end
|
22
22
|
|
23
23
|
def client_key
|
@@ -33,6 +33,18 @@ class FlyingSphinx::Configuration
|
|
33
33
|
private
|
34
34
|
|
35
35
|
attr_reader :identifier, :api_key
|
36
|
+
|
37
|
+
def change(initial, expected)
|
38
|
+
api.post(initial)
|
39
|
+
|
40
|
+
response = api.get('daemon')
|
41
|
+
while response.body.status == initial
|
42
|
+
sleep 0.5
|
43
|
+
response = api.get('daemon')
|
44
|
+
end
|
45
|
+
|
46
|
+
response.body.status == expected
|
47
|
+
end
|
36
48
|
|
37
49
|
def set_from_server
|
38
50
|
response = api.get '/'
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flying-sphinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
8
|
+
- 1
|
9
|
+
version: 0.7.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Pat Allan
|
@@ -15,17 +14,16 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2012-
|
17
|
+
date: 2012-12-10 00:00:00 +11:00
|
18
|
+
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: thinking-sphinx
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
24
|
requirements:
|
26
25
|
- - ">="
|
27
26
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
27
|
segments:
|
30
28
|
- 0
|
31
29
|
version: "0"
|
@@ -35,11 +33,9 @@ dependencies:
|
|
35
33
|
name: riddle
|
36
34
|
prerelease: false
|
37
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
36
|
requirements:
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
hash: 3
|
43
39
|
segments:
|
44
40
|
- 1
|
45
41
|
- 5
|
@@ -51,11 +47,9 @@ dependencies:
|
|
51
47
|
name: net-ssh
|
52
48
|
prerelease: false
|
53
49
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
50
|
requirements:
|
56
51
|
- - ">="
|
57
52
|
- !ruby/object:Gem::Version
|
58
|
-
hash: 33
|
59
53
|
segments:
|
60
54
|
- 2
|
61
55
|
- 0
|
@@ -67,11 +61,9 @@ dependencies:
|
|
67
61
|
name: multi_json
|
68
62
|
prerelease: false
|
69
63
|
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
64
|
requirements:
|
72
65
|
- - ">="
|
73
66
|
- !ruby/object:Gem::Version
|
74
|
-
hash: 21
|
75
67
|
segments:
|
76
68
|
- 1
|
77
69
|
- 0
|
@@ -83,11 +75,9 @@ dependencies:
|
|
83
75
|
name: faraday_middleware
|
84
76
|
prerelease: false
|
85
77
|
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
78
|
requirements:
|
88
79
|
- - ~>
|
89
80
|
- !ruby/object:Gem::Version
|
90
|
-
hash: 5
|
91
81
|
segments:
|
92
82
|
- 0
|
93
83
|
- 7
|
@@ -98,11 +88,9 @@ dependencies:
|
|
98
88
|
name: rash
|
99
89
|
prerelease: false
|
100
90
|
requirement: &id006 !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
91
|
requirements:
|
103
92
|
- - ~>
|
104
93
|
- !ruby/object:Gem::Version
|
105
|
-
hash: 19
|
106
94
|
segments:
|
107
95
|
- 0
|
108
96
|
- 3
|
@@ -114,11 +102,9 @@ dependencies:
|
|
114
102
|
name: rake
|
115
103
|
prerelease: false
|
116
104
|
requirement: &id007 !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
105
|
requirements:
|
119
106
|
- - ~>
|
120
107
|
- !ruby/object:Gem::Version
|
121
|
-
hash: 63
|
122
108
|
segments:
|
123
109
|
- 0
|
124
110
|
- 9
|
@@ -130,11 +116,9 @@ dependencies:
|
|
130
116
|
name: rspec
|
131
117
|
prerelease: false
|
132
118
|
requirement: &id008 !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
119
|
requirements:
|
135
120
|
- - ~>
|
136
121
|
- !ruby/object:Gem::Version
|
137
|
-
hash: 21
|
138
122
|
segments:
|
139
123
|
- 2
|
140
124
|
- 11
|
@@ -145,11 +129,9 @@ dependencies:
|
|
145
129
|
name: rspec-fire
|
146
130
|
prerelease: false
|
147
131
|
requirement: &id009 !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
132
|
requirements:
|
150
133
|
- - ~>
|
151
134
|
- !ruby/object:Gem::Version
|
152
|
-
hash: 19
|
153
135
|
segments:
|
154
136
|
- 1
|
155
137
|
- 1
|
@@ -161,11 +143,9 @@ dependencies:
|
|
161
143
|
name: yajl-ruby
|
162
144
|
prerelease: false
|
163
145
|
requirement: &id010 !ruby/object:Gem::Requirement
|
164
|
-
none: false
|
165
146
|
requirements:
|
166
147
|
- - ~>
|
167
148
|
- !ruby/object:Gem::Version
|
168
|
-
hash: 59
|
169
149
|
segments:
|
170
150
|
- 0
|
171
151
|
- 8
|
@@ -177,11 +157,9 @@ dependencies:
|
|
177
157
|
name: fakeweb
|
178
158
|
prerelease: false
|
179
159
|
requirement: &id011 !ruby/object:Gem::Requirement
|
180
|
-
none: false
|
181
160
|
requirements:
|
182
161
|
- - ~>
|
183
162
|
- !ruby/object:Gem::Version
|
184
|
-
hash: 27
|
185
163
|
segments:
|
186
164
|
- 1
|
187
165
|
- 3
|
@@ -193,11 +171,9 @@ dependencies:
|
|
193
171
|
name: fakeweb-matcher
|
194
172
|
prerelease: false
|
195
173
|
requirement: &id012 !ruby/object:Gem::Requirement
|
196
|
-
none: false
|
197
174
|
requirements:
|
198
175
|
- - ~>
|
199
176
|
- !ruby/object:Gem::Version
|
200
|
-
hash: 27
|
201
177
|
segments:
|
202
178
|
- 1
|
203
179
|
- 2
|
@@ -209,11 +185,9 @@ dependencies:
|
|
209
185
|
name: delayed_job
|
210
186
|
prerelease: false
|
211
187
|
requirement: &id013 !ruby/object:Gem::Requirement
|
212
|
-
none: false
|
213
188
|
requirements:
|
214
189
|
- - ~>
|
215
190
|
- !ruby/object:Gem::Version
|
216
|
-
hash: 3
|
217
191
|
segments:
|
218
192
|
- 2
|
219
193
|
- 1
|
@@ -264,6 +238,7 @@ files:
|
|
264
238
|
- spec/specs/index_request_spec.rb
|
265
239
|
- spec/specs/setting_files_spec.rb
|
266
240
|
- spec/specs/sphinx_configuration_spec.rb
|
241
|
+
has_rdoc: true
|
267
242
|
homepage: https://flying-sphinx.com
|
268
243
|
licenses: []
|
269
244
|
|
@@ -277,27 +252,23 @@ rdoc_options: []
|
|
277
252
|
require_paths:
|
278
253
|
- lib
|
279
254
|
required_ruby_version: !ruby/object:Gem::Requirement
|
280
|
-
none: false
|
281
255
|
requirements:
|
282
256
|
- - ">="
|
283
257
|
- !ruby/object:Gem::Version
|
284
|
-
hash: 3
|
285
258
|
segments:
|
286
259
|
- 0
|
287
260
|
version: "0"
|
288
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
|
-
none: false
|
290
262
|
requirements:
|
291
263
|
- - ">="
|
292
264
|
- !ruby/object:Gem::Version
|
293
|
-
hash: 3
|
294
265
|
segments:
|
295
266
|
- 0
|
296
267
|
version: "0"
|
297
268
|
requirements: []
|
298
269
|
|
299
270
|
rubyforge_project:
|
300
|
-
rubygems_version: 1.
|
271
|
+
rubygems_version: 1.3.6
|
301
272
|
signing_key:
|
302
273
|
specification_version: 3
|
303
274
|
summary: Sphinx in the Cloud
|
@@ -311,4 +282,3 @@ test_files:
|
|
311
282
|
- spec/specs/index_request_spec.rb
|
312
283
|
- spec/specs/setting_files_spec.rb
|
313
284
|
- spec/specs/sphinx_configuration_spec.rb
|
314
|
-
has_rdoc:
|