inquisitio 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/inquisitio.gemspec +12 -12
- data/lib/inquisitio/search_url_builder.rb +4 -4
- data/lib/inquisitio/searcher.rb +5 -4
- data/lib/inquisitio/version.rb +1 -1
- data/test/{test_document.rb → document_test.rb} +1 -1
- data/test/{test_indexer_for_2011.rb → indexer_for_2011_test.rb} +1 -1
- data/test/{test_search_url_builder_for_2011.rb → search_url_builder_for_2011_test.rb} +1 -1
- data/test/{test_search_url_builder_for_2013.rb → search_url_builder_for_2013_test.rb} +1 -1
- data/test/{test_searcher.rb → searcher_test.rb} +43 -36
- metadata +30 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67547bfc9d3965184e9755285695e3b77dbc89b2
|
4
|
+
data.tar.gz: 422e0d69eeadb40dae78ce83fbd00017321b8138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b33be2d4a73a54d9794a41dff1abb7125b3e3f1f314651848377260f46ad55433f4d367e7ef6dc3a9fbb1279e814f83d450a3efe4c7a1bfcc9fdefa007055c8
|
7
|
+
data.tar.gz: 9020cc0137072a4a6bf0a6a5671dc3d67e65e53e356f106affe62df0d4cfbfa2c09150087ba19245a2fda0662ae6a5a0f4dec20308e8dabc332162760f76da2b
|
data/CHANGELOG.md
CHANGED
data/inquisitio.gemspec
CHANGED
@@ -4,25 +4,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'inquisitio/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'inquisitio'
|
8
8
|
spec.version = Inquisitio::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Jeremy Walker', 'Charles Care', 'Malcolm Landon', 'Rob Styles']
|
10
|
+
spec.email = ['jeremy@meducation.net', 'charles@meducation.net', 'malcolm@meducation.net', 'rob@meducation.net']
|
11
11
|
spec.description = %q{A Ruby Gem that wraps search for CloudSearch}
|
12
12
|
spec.summary = %q{This wraps AWS CloudSearch in a Ruby Gem}
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
13
|
+
spec.homepage = 'https://github.com/meducation/inquisition'
|
14
|
+
spec.license = 'AGPL3'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency
|
21
|
+
spec.add_dependency 'excon', '~> 0.25.0'
|
22
22
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency
|
27
|
-
spec.add_development_dependency
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
|
+
spec.add_development_dependency 'rake'
|
25
|
+
spec.add_development_dependency 'mocha'
|
26
|
+
spec.add_development_dependency 'yard'
|
27
|
+
spec.add_development_dependency 'minitest', '~> 5.0.8'
|
28
28
|
end
|
@@ -24,7 +24,7 @@ module Inquisitio
|
|
24
24
|
components << "&size=#{@size}" unless @arguments[:size]
|
25
25
|
components << "&start=#{@start}" unless @arguments[:start] || @start == 0 || @start == '0'
|
26
26
|
components << '&sort=' + @sort.map {|k,v| "#{k}%20#{v}"}.join(',') unless @sort.empty?
|
27
|
-
components.join(
|
27
|
+
components.join('')
|
28
28
|
end
|
29
29
|
|
30
30
|
private
|
@@ -50,7 +50,7 @@ module Inquisitio
|
|
50
50
|
elsif value.is_a?(Array)
|
51
51
|
"(or #{value.map {|v| "#{sanitise(key)}:'#{sanitise(v)}'" }.join(" ")})"
|
52
52
|
else
|
53
|
-
raise InquisitioError.new(
|
53
|
+
raise InquisitioError.new('Filter values must be strings or arrays.')
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
@@ -66,7 +66,7 @@ module Inquisitio
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def return_fields_query_string
|
69
|
-
return
|
69
|
+
return '' if @return_fields.nil?
|
70
70
|
if Inquisitio.config.api_version == '2011-02-01'
|
71
71
|
"&return-fields=#{URI::encode(@return_fields.join(',').gsub('\'',''))}"
|
72
72
|
elsif Inquisitio.config.api_version == '2013-01-01'
|
@@ -75,7 +75,7 @@ module Inquisitio
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def arguments
|
78
|
-
return
|
78
|
+
return '' if @arguments.nil?
|
79
79
|
@arguments.map{|key,value| "&#{key.to_s.gsub('\'','')}=#{value.to_s.gsub('\'','')}"}.join("")
|
80
80
|
end
|
81
81
|
|
data/lib/inquisitio/searcher.rb
CHANGED
@@ -45,14 +45,14 @@ module Inquisitio
|
|
45
45
|
end
|
46
46
|
|
47
47
|
objs = klasses.map { |klass_name, ids|
|
48
|
-
klass_name = klass_name.gsub(
|
48
|
+
klass_name = klass_name.gsub('_', '::')
|
49
49
|
klass = klass_name.constantize
|
50
50
|
klass.where(id: ids)
|
51
51
|
}.flatten
|
52
52
|
|
53
53
|
results.each do |result|
|
54
54
|
klass_name = result['data']['type'].first
|
55
|
-
klass_name = klass_name.gsub(
|
55
|
+
klass_name = klass_name.gsub('_', '::')
|
56
56
|
id = result['data']['id'].first
|
57
57
|
record = objs.select { |r|
|
58
58
|
r.class.name == klass_name && r.id == id.to_i
|
@@ -69,6 +69,7 @@ module Inquisitio
|
|
69
69
|
s.params[:criteria] += value
|
70
70
|
elsif value.is_a?(Hash)
|
71
71
|
value.each do |k, v|
|
72
|
+
k = k.to_sym
|
72
73
|
s.params[:filters][k] ||= []
|
73
74
|
if v.is_a?(Array)
|
74
75
|
s.params[:filters][k] = v
|
@@ -146,7 +147,7 @@ module Inquisitio
|
|
146
147
|
Inquisitio.config.logger.error("Retrying search #{@failed_attempts}/#{Inquisitio.config.max_attempts}")
|
147
148
|
results
|
148
149
|
else
|
149
|
-
raise InquisitioError.new(
|
150
|
+
raise InquisitioError.new('Exception performing search')
|
150
151
|
end
|
151
152
|
end
|
152
153
|
|
@@ -171,7 +172,7 @@ module Inquisitio
|
|
171
172
|
end
|
172
173
|
|
173
174
|
def clone
|
174
|
-
params_clone = JSON.parse(params.to_json)
|
175
|
+
params_clone = JSON.parse(params.to_json, symbolize_names: true)
|
175
176
|
symbolised_params = params_clone.inject({}) do |h, (key, value)|
|
176
177
|
h[key.to_sym] = value
|
177
178
|
h
|
data/lib/inquisitio/version.rb
CHANGED
@@ -2,7 +2,7 @@ require File.expand_path('../test_helper', __FILE__)
|
|
2
2
|
require 'json'
|
3
3
|
|
4
4
|
module Inquisitio
|
5
|
-
class
|
5
|
+
class DocumentTest < Minitest::Test
|
6
6
|
|
7
7
|
def test_initialization_sets_type
|
8
8
|
document = Document.new('add', '12345', 1, {:title => 'The Title', :author => 'The Author'})
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require File.expand_path('../test_helper', __FILE__)
|
2
2
|
|
3
3
|
module Inquisitio
|
4
|
-
class
|
4
|
+
class IndexerFor2011Test < Minitest::Test
|
5
5
|
def setup
|
6
6
|
@document_endpoint = 'http://my.document-endpoint.com'
|
7
7
|
Inquisitio.config.document_endpoint = @document_endpoint
|
@@ -18,15 +18,15 @@ module Inquisitio
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
class
|
21
|
+
class SearcherTest < Minitest::Test
|
22
22
|
def setup
|
23
23
|
super
|
24
24
|
@search_endpoint = 'http://my.search-endpoint.com'
|
25
25
|
Inquisitio.config.search_endpoint = @search_endpoint
|
26
26
|
Inquisitio.config.api_version = nil
|
27
|
-
@result_1 = {'data' => {'id' => ['1'], 'title' => [
|
28
|
-
@result_2 = {'data' => {'id' => ['2'], 'title' => [
|
29
|
-
@result_3 = {'data' => {'id' => ['20'], 'title' => [
|
27
|
+
@result_1 = {'data' => {'id' => ['1'], 'title' => ['Foobar'], 'type' => ['Cat']}}
|
28
|
+
@result_2 = {'data' => {'id' => ['2'], 'title' => ['Foobar'], 'type' => ['Cat']}}
|
29
|
+
@result_3 = {'data' => {'id' => ['20'], 'title' => ['Foobar2'], 'type' => ['Module_Dog']}}
|
30
30
|
@expected_results = [@result_1, @result_2, @result_3]
|
31
31
|
@start = 5
|
32
32
|
@found = 8
|
@@ -51,7 +51,7 @@ module Inquisitio
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def test_where_sets_variable_with_an_array
|
54
|
-
criteria =
|
54
|
+
criteria = %w(Star Wars)
|
55
55
|
searcher = Searcher.where(criteria)
|
56
56
|
assert_equal criteria, searcher.params[:criteria]
|
57
57
|
end
|
@@ -82,16 +82,23 @@ module Inquisitio
|
|
82
82
|
assert_equal({genre: ['Animation'], foobar: ['Cat']}, searcher.params[:filters])
|
83
83
|
end
|
84
84
|
|
85
|
+
def test_symbolizes_where_keys
|
86
|
+
filters1 = {'genre' => 'Animation'}
|
87
|
+
filters2 = {'foobar' => 'Cat'}
|
88
|
+
searcher = Searcher.where(filters1).where(filters2)
|
89
|
+
assert_equal({genre: ['Animation'], foobar: ['Cat']}, searcher.params[:filters])
|
90
|
+
end
|
91
|
+
|
85
92
|
def test_where_merges_filters_with_same_key
|
86
93
|
filters1 = {genre: 'Animation'}
|
87
94
|
filters2 = {genre: 'Action'}
|
88
95
|
searcher = Searcher.where(filters1).where(filters2)
|
89
|
-
assert_equal({genre:
|
96
|
+
assert_equal({genre: %w(Animation Action)}, searcher.params[:filters])
|
90
97
|
end
|
91
98
|
|
92
99
|
def test_where_gets_correct_url
|
93
100
|
searcher = Searcher.where('Star Wars')
|
94
|
-
assert searcher.send(:search_url).include?
|
101
|
+
assert searcher.send(:search_url).include? 'q=Star%20Wars'
|
95
102
|
end
|
96
103
|
|
97
104
|
def test_where_gets_correct_url_with_filters_for_2011
|
@@ -106,14 +113,14 @@ module Inquisitio
|
|
106
113
|
end
|
107
114
|
|
108
115
|
def test_where_works_with_array_in_a_hash
|
109
|
-
criteria = {thing:
|
116
|
+
criteria = {thing: %w(foo bar)}
|
110
117
|
searcher = Searcher.where(criteria)
|
111
118
|
assert_equal criteria, searcher.params[:filters]
|
112
119
|
end
|
113
120
|
|
114
121
|
def test_where_works_with_string_and_array
|
115
122
|
str_criteria = 'Star Wars'
|
116
|
-
hash_criteria = {thing:
|
123
|
+
hash_criteria = {thing: %w(foo bar)}
|
117
124
|
searcher = Searcher.where(str_criteria).where(hash_criteria)
|
118
125
|
assert_equal hash_criteria, searcher.params[:filters]
|
119
126
|
assert_equal [str_criteria], searcher.params[:criteria]
|
@@ -137,13 +144,13 @@ module Inquisitio
|
|
137
144
|
end
|
138
145
|
|
139
146
|
def test_per_parses_a_string
|
140
|
-
searcher = Searcher.per(
|
147
|
+
searcher = Searcher.per('15')
|
141
148
|
assert_equal 15, searcher.params[:per]
|
142
149
|
end
|
143
150
|
|
144
151
|
def test_per_gets_correct_url
|
145
152
|
searcher = Searcher.per(15)
|
146
|
-
assert searcher.send(:search_url).include?
|
153
|
+
assert searcher.send(:search_url).include? '&size=15'
|
147
154
|
end
|
148
155
|
|
149
156
|
def test_page_doesnt_mutate_searcher
|
@@ -164,7 +171,7 @@ module Inquisitio
|
|
164
171
|
end
|
165
172
|
|
166
173
|
def test_page_parses_a_string
|
167
|
-
searcher = Searcher.page(
|
174
|
+
searcher = Searcher.page('15')
|
168
175
|
assert_equal 15, searcher.params[:page]
|
169
176
|
end
|
170
177
|
|
@@ -174,7 +181,7 @@ module Inquisitio
|
|
174
181
|
end
|
175
182
|
|
176
183
|
def test_that_starts_at_zero
|
177
|
-
searcher = Searcher.where(
|
184
|
+
searcher = Searcher.where('foo')
|
178
185
|
refute searcher.send(:search_url).include? '&start='
|
179
186
|
end
|
180
187
|
|
@@ -197,34 +204,34 @@ module Inquisitio
|
|
197
204
|
|
198
205
|
def test_returns_gets_correct_urlns_appends_variable_for_2011
|
199
206
|
searcher = Searcher.returns('foobar')
|
200
|
-
assert searcher.send(:search_url).include?
|
207
|
+
assert searcher.send(:search_url).include? '&return-fields=foobar'
|
201
208
|
end
|
202
209
|
|
203
210
|
def test_returns_gets_correct_urlns_appends_variable_for_2013
|
204
211
|
Inquisitio.config.api_version = '2013-01-01'
|
205
212
|
searcher = Searcher.returns('foobar')
|
206
|
-
assert searcher.send(:search_url).include?
|
213
|
+
assert searcher.send(:search_url).include? '&return=foobar'
|
207
214
|
end
|
208
215
|
|
209
216
|
def test_returns_with_array_sets_variable
|
210
217
|
searcher = Searcher.returns('dog', 'cat')
|
211
|
-
assert_equal
|
218
|
+
assert_equal %w(dog cat), searcher.params[:returns]
|
212
219
|
end
|
213
220
|
|
214
221
|
def test_returns_with_array_gets_correct_url_for_2011
|
215
222
|
searcher = Searcher.returns('id', 'foobar')
|
216
|
-
assert searcher.send(:search_url).include?
|
223
|
+
assert searcher.send(:search_url).include? '&return-fields=id,foobar'
|
217
224
|
end
|
218
225
|
|
219
226
|
def test_returns_with_array_gets_correct_url_for_2013
|
220
227
|
Inquisitio.config.api_version = '2013-01-01'
|
221
228
|
searcher = Searcher.returns('id', 'foobar')
|
222
|
-
assert searcher.send(:search_url).include?
|
229
|
+
assert searcher.send(:search_url).include? '&return=id,foobar'
|
223
230
|
end
|
224
231
|
|
225
232
|
def test_returns_appends_variable
|
226
233
|
searcher = Searcher.returns('id').returns('foobar')
|
227
|
-
assert_equal
|
234
|
+
assert_equal %w(id foobar), searcher.params[:returns]
|
228
235
|
end
|
229
236
|
|
230
237
|
def test_with_saves_variable
|
@@ -239,11 +246,11 @@ module Inquisitio
|
|
239
246
|
|
240
247
|
def test_with_gets_correct_url
|
241
248
|
searcher = Searcher.with(foo: 'bar').with(cat: 'dog')
|
242
|
-
assert searcher.send(:search_url).include?
|
249
|
+
assert searcher.send(:search_url).include? '&foo=bar&cat=dog'
|
243
250
|
end
|
244
251
|
|
245
252
|
def test_search_calls_search_url_builder
|
246
|
-
SearchUrlBuilder.any_instance.expects(build:
|
253
|
+
SearchUrlBuilder.any_instance.expects(build: 'http://www.example.com')
|
247
254
|
searcher = Searcher.where('Star Wars')
|
248
255
|
searcher.search
|
249
256
|
end
|
@@ -254,7 +261,7 @@ module Inquisitio
|
|
254
261
|
searcher = Searcher.where('Star Wars')
|
255
262
|
searcher.instance_variable_set(:@failed_attempts, 3)
|
256
263
|
|
257
|
-
assert_raises(InquisitioError,
|
264
|
+
assert_raises(InquisitioError, 'Search failed with status code 500') do
|
258
265
|
searcher.search
|
259
266
|
end
|
260
267
|
end
|
@@ -274,45 +281,45 @@ module Inquisitio
|
|
274
281
|
Excon.expects(:get).raises(Excon::Errors::Timeout).times(3)
|
275
282
|
|
276
283
|
searcher = Searcher.where('Star Wars')
|
277
|
-
assert_raises(InquisitioError,
|
284
|
+
assert_raises(InquisitioError, 'Search failed with status code 500') do
|
278
285
|
searcher.search
|
279
286
|
end
|
280
287
|
end
|
281
288
|
|
282
289
|
def test_that_iterating_calls_results
|
283
|
-
searcher = Searcher.where(
|
290
|
+
searcher = Searcher.where('star_wars')
|
284
291
|
searcher.expects(results: [])
|
285
292
|
searcher.each {}
|
286
293
|
end
|
287
294
|
|
288
295
|
def test_that_iterating_calls_each
|
289
|
-
searcher = Searcher.where(
|
296
|
+
searcher = Searcher.where('star_wars')
|
290
297
|
searcher.search
|
291
298
|
searcher.send(:results).expects(:each)
|
292
299
|
searcher.each {}
|
293
300
|
end
|
294
301
|
|
295
302
|
def test_that_select_calls_each
|
296
|
-
searcher = Searcher.where(
|
303
|
+
searcher = Searcher.where('star_wars')
|
297
304
|
searcher.search
|
298
305
|
searcher.send(:results).expects(:select)
|
299
306
|
searcher.select {}
|
300
307
|
end
|
301
308
|
|
302
309
|
def test_search_should_set_results
|
303
|
-
searcher = Searcher.where(
|
310
|
+
searcher = Searcher.where('star_wars')
|
304
311
|
searcher.search
|
305
|
-
assert_equal @expected_results, searcher.instance_variable_get(
|
312
|
+
assert_equal @expected_results, searcher.instance_variable_get('@results')
|
306
313
|
end
|
307
314
|
|
308
315
|
def test_search_should_create_a_results_object
|
309
|
-
searcher = Searcher.where(
|
316
|
+
searcher = Searcher.where('star_wars')
|
310
317
|
searcher.search
|
311
|
-
assert Results, searcher.instance_variable_get(
|
318
|
+
assert Results, searcher.instance_variable_get('@results').class
|
312
319
|
end
|
313
320
|
|
314
321
|
def test_search_only_runs_once
|
315
|
-
searcher = Searcher.where(
|
322
|
+
searcher = Searcher.where('star_wars')
|
316
323
|
Excon.expects(:get).returns(mock(status: 200, body: @body)).once
|
317
324
|
2.times { searcher.search }
|
318
325
|
end
|
@@ -320,15 +327,15 @@ module Inquisitio
|
|
320
327
|
def test_should_return_type_and_id_by_default_for_2011
|
321
328
|
searcher = Searcher.where('Star Wars')
|
322
329
|
assert_equal [], searcher.params[:returns]
|
323
|
-
assert searcher.send(:search_url).include?
|
330
|
+
assert searcher.send(:search_url).include? '&return-fields=type,id'
|
324
331
|
end
|
325
332
|
|
326
333
|
def test_should_not_specify_return_by_default_for_2013
|
327
334
|
Inquisitio.config.api_version = '2013-01-01'
|
328
335
|
searcher = Searcher.where('Star Wars')
|
329
336
|
assert_equal [], searcher.params[:returns]
|
330
|
-
refute searcher.send(:search_url).include?
|
331
|
-
refute searcher.send(:search_url).include?
|
337
|
+
refute searcher.send(:search_url).include? '&return='
|
338
|
+
refute searcher.send(:search_url).include? '&return-fields='
|
332
339
|
end
|
333
340
|
|
334
341
|
def test_should_return_ids
|
@@ -341,7 +348,7 @@ module Inquisitio
|
|
341
348
|
expected_2 = Giraffe.new(20, 'Wolf')
|
342
349
|
expected_3 = Elephant.new(1, 'Gobbolino')
|
343
350
|
|
344
|
-
Elephant.expects(:where).with(id:
|
351
|
+
Elephant.expects(:where).with(id: %w(2 1)).returns([expected_3, expected_1])
|
345
352
|
Giraffe.expects(:where).with(id: ['20']).returns([expected_2])
|
346
353
|
|
347
354
|
searcher = Searcher.new
|
@@ -350,7 +357,7 @@ module Inquisitio
|
|
350
357
|
{'data' => {'id' => ['20'], 'type' => ['Inquisitio_Giraffe']}},
|
351
358
|
{'data' => {'id' => ['1'], 'type' => ['Inquisitio_Elephant']}}
|
352
359
|
]
|
353
|
-
searcher.instance_variable_set(
|
360
|
+
searcher.instance_variable_set('@results', result)
|
354
361
|
expected_records = [expected_1, expected_2, expected_3]
|
355
362
|
actual_records = searcher.records
|
356
363
|
assert_equal expected_records, actual_records
|
metadata
CHANGED
@@ -1,99 +1,100 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inquisitio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Walker
|
8
8
|
- Charles Care
|
9
9
|
- Malcolm Landon
|
10
|
+
- Rob Styles
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: excon
|
17
18
|
requirement: !ruby/object:Gem::Requirement
|
18
19
|
requirements:
|
19
|
-
- - ~>
|
20
|
+
- - "~>"
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: 0.25.0
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
26
|
requirements:
|
26
|
-
- - ~>
|
27
|
+
- - "~>"
|
27
28
|
- !ruby/object:Gem::Version
|
28
29
|
version: 0.25.0
|
29
30
|
- !ruby/object:Gem::Dependency
|
30
31
|
name: bundler
|
31
32
|
requirement: !ruby/object:Gem::Requirement
|
32
33
|
requirements:
|
33
|
-
- - ~>
|
34
|
+
- - "~>"
|
34
35
|
- !ruby/object:Gem::Version
|
35
36
|
version: '1.3'
|
36
37
|
type: :development
|
37
38
|
prerelease: false
|
38
39
|
version_requirements: !ruby/object:Gem::Requirement
|
39
40
|
requirements:
|
40
|
-
- - ~>
|
41
|
+
- - "~>"
|
41
42
|
- !ruby/object:Gem::Version
|
42
43
|
version: '1.3'
|
43
44
|
- !ruby/object:Gem::Dependency
|
44
45
|
name: rake
|
45
46
|
requirement: !ruby/object:Gem::Requirement
|
46
47
|
requirements:
|
47
|
-
- -
|
48
|
+
- - ">="
|
48
49
|
- !ruby/object:Gem::Version
|
49
50
|
version: '0'
|
50
51
|
type: :development
|
51
52
|
prerelease: false
|
52
53
|
version_requirements: !ruby/object:Gem::Requirement
|
53
54
|
requirements:
|
54
|
-
- -
|
55
|
+
- - ">="
|
55
56
|
- !ruby/object:Gem::Version
|
56
57
|
version: '0'
|
57
58
|
- !ruby/object:Gem::Dependency
|
58
59
|
name: mocha
|
59
60
|
requirement: !ruby/object:Gem::Requirement
|
60
61
|
requirements:
|
61
|
-
- -
|
62
|
+
- - ">="
|
62
63
|
- !ruby/object:Gem::Version
|
63
64
|
version: '0'
|
64
65
|
type: :development
|
65
66
|
prerelease: false
|
66
67
|
version_requirements: !ruby/object:Gem::Requirement
|
67
68
|
requirements:
|
68
|
-
- -
|
69
|
+
- - ">="
|
69
70
|
- !ruby/object:Gem::Version
|
70
71
|
version: '0'
|
71
72
|
- !ruby/object:Gem::Dependency
|
72
73
|
name: yard
|
73
74
|
requirement: !ruby/object:Gem::Requirement
|
74
75
|
requirements:
|
75
|
-
- -
|
76
|
+
- - ">="
|
76
77
|
- !ruby/object:Gem::Version
|
77
78
|
version: '0'
|
78
79
|
type: :development
|
79
80
|
prerelease: false
|
80
81
|
version_requirements: !ruby/object:Gem::Requirement
|
81
82
|
requirements:
|
82
|
-
- -
|
83
|
+
- - ">="
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: '0'
|
85
86
|
- !ruby/object:Gem::Dependency
|
86
87
|
name: minitest
|
87
88
|
requirement: !ruby/object:Gem::Requirement
|
88
89
|
requirements:
|
89
|
-
- - ~>
|
90
|
+
- - "~>"
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: 5.0.8
|
92
93
|
type: :development
|
93
94
|
prerelease: false
|
94
95
|
version_requirements: !ruby/object:Gem::Requirement
|
95
96
|
requirements:
|
96
|
-
- - ~>
|
97
|
+
- - "~>"
|
97
98
|
- !ruby/object:Gem::Version
|
98
99
|
version: 5.0.8
|
99
100
|
description: A Ruby Gem that wraps search for CloudSearch
|
@@ -101,6 +102,7 @@ email:
|
|
101
102
|
- jeremy@meducation.net
|
102
103
|
- charles@meducation.net
|
103
104
|
- malcolm@meducation.net
|
105
|
+
- rob@meducation.net
|
104
106
|
executables:
|
105
107
|
- boolean_query
|
106
108
|
- facet_query
|
@@ -109,8 +111,8 @@ executables:
|
|
109
111
|
extensions: []
|
110
112
|
extra_rdoc_files: []
|
111
113
|
files:
|
112
|
-
- .gitignore
|
113
|
-
- .travis.yml
|
114
|
+
- ".gitignore"
|
115
|
+
- ".travis.yml"
|
114
116
|
- CHANGELOG.md
|
115
117
|
- CONTRIBUTING.md
|
116
118
|
- Gemfile
|
@@ -134,14 +136,14 @@ files:
|
|
134
136
|
- lib/inquisitio/searcher.rb
|
135
137
|
- lib/inquisitio/version.rb
|
136
138
|
- test/configuration_test.rb
|
139
|
+
- test/document_test.rb
|
140
|
+
- test/indexer_for_2011_test.rb
|
137
141
|
- test/logger_test.rb
|
138
142
|
- test/results_test.rb
|
139
|
-
- test/
|
143
|
+
- test/search_url_builder_for_2011_test.rb
|
144
|
+
- test/search_url_builder_for_2013_test.rb
|
145
|
+
- test/searcher_test.rb
|
140
146
|
- test/test_helper.rb
|
141
|
-
- test/test_indexer_for_2011.rb
|
142
|
-
- test/test_search_url_builder_for_2011.rb
|
143
|
-
- test/test_search_url_builder_for_2013.rb
|
144
|
-
- test/test_searcher.rb
|
145
147
|
homepage: https://github.com/meducation/inquisition
|
146
148
|
licenses:
|
147
149
|
- AGPL3
|
@@ -152,12 +154,12 @@ require_paths:
|
|
152
154
|
- lib
|
153
155
|
required_ruby_version: !ruby/object:Gem::Requirement
|
154
156
|
requirements:
|
155
|
-
- -
|
157
|
+
- - ">="
|
156
158
|
- !ruby/object:Gem::Version
|
157
159
|
version: '0'
|
158
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
161
|
requirements:
|
160
|
-
- -
|
162
|
+
- - ">="
|
161
163
|
- !ruby/object:Gem::Version
|
162
164
|
version: '0'
|
163
165
|
requirements: []
|
@@ -168,12 +170,12 @@ specification_version: 4
|
|
168
170
|
summary: This wraps AWS CloudSearch in a Ruby Gem
|
169
171
|
test_files:
|
170
172
|
- test/configuration_test.rb
|
173
|
+
- test/document_test.rb
|
174
|
+
- test/indexer_for_2011_test.rb
|
171
175
|
- test/logger_test.rb
|
172
176
|
- test/results_test.rb
|
173
|
-
- test/
|
177
|
+
- test/search_url_builder_for_2011_test.rb
|
178
|
+
- test/search_url_builder_for_2013_test.rb
|
179
|
+
- test/searcher_test.rb
|
174
180
|
- test/test_helper.rb
|
175
|
-
- test/test_indexer_for_2011.rb
|
176
|
-
- test/test_search_url_builder_for_2011.rb
|
177
|
-
- test/test_search_url_builder_for_2013.rb
|
178
|
-
- test/test_searcher.rb
|
179
181
|
has_rdoc:
|