mebla 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/mebla/context.rb +37 -11
- data/lib/mebla/result_set.rb +4 -4
- data/mebla.gemspec +65 -5
- data/spec/mebla/searching_spec.rb +10 -10
- metadata +248 -28
data/Gemfile.lock
CHANGED
@@ -4,7 +4,7 @@ PATH
|
|
4
4
|
mebla (1.1.4)
|
5
5
|
mebla
|
6
6
|
mongoid (~> 2.0.1)
|
7
|
-
slingshot-rb (
|
7
|
+
slingshot-rb (= 0.0.8)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
@@ -50,7 +50,7 @@ GEM
|
|
50
50
|
rspec-expectations (2.3.0)
|
51
51
|
diff-lcs (~> 1.1.2)
|
52
52
|
rspec-mocks (2.3.0)
|
53
|
-
slingshot-rb (0.0.
|
53
|
+
slingshot-rb (0.0.8)
|
54
54
|
bundler (~> 1.0.0)
|
55
55
|
rest-client (~> 1.6.0)
|
56
56
|
yajl-ruby (> 0.7.9)
|
data/Rakefile
CHANGED
@@ -24,7 +24,7 @@ Jeweler::Tasks.new do |gem|
|
|
24
24
|
gem.authors = ["Omar Mekky"]
|
25
25
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
26
26
|
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
27
|
-
gem.add_runtime_dependency 'slingshot-rb', '
|
27
|
+
gem.add_runtime_dependency 'slingshot-rb', '0.0.8'
|
28
28
|
gem.add_runtime_dependency 'mongoid', '~> 2.0.1'
|
29
29
|
|
30
30
|
gem.add_development_dependency 'bson', '~> 1.3.0'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.5
|
data/lib/mebla/context.rb
CHANGED
@@ -140,34 +140,60 @@ module Mebla
|
|
140
140
|
# only index search fields and methods
|
141
141
|
document.class.search_fields.each do |field|
|
142
142
|
if document.attributes.keys.include?(field.to_s)
|
143
|
-
attrs[field] = document.attributes[field.to_s]
|
143
|
+
attrs[field] = document.attributes[field.to_s] # attribute
|
144
144
|
else
|
145
|
-
attrs[field] = document.send(field)
|
145
|
+
attrs[field] = document.send(field) # method
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
149
|
# index relational fields
|
150
150
|
document.class.search_relations.each do |relation, fields|
|
151
|
-
items = document.send(relation.to_sym)
|
151
|
+
items = document.send(relation.to_sym) # get the relation document
|
152
152
|
|
153
153
|
next if items.nil?
|
154
154
|
|
155
|
+
# N relation side
|
155
156
|
if items.is_a?(Array)
|
156
157
|
next if items.empty?
|
157
158
|
attrs[relation] = []
|
158
159
|
items.each do |item|
|
159
|
-
if fields.is_a?(Array)
|
160
|
-
|
161
|
-
|
162
|
-
|
160
|
+
if fields.is_a?(Array) # given multiple fields to index
|
161
|
+
fields_values = {}
|
162
|
+
fields.each do |field|
|
163
|
+
if item.attributes.keys.include?(field.to_s)
|
164
|
+
fields_values.merge!({ field => item.attributes[fields.to_s] }) # attribute
|
165
|
+
else
|
166
|
+
fields_values.merge!({ field => item.send(field) }) # method
|
167
|
+
end
|
168
|
+
end
|
169
|
+
attrs[relation] << fields_values
|
170
|
+
else # only index one field in the relation
|
171
|
+
if item.attributes.keys.include?(fields.to_s)
|
172
|
+
attrs[relation] << { fields => item.attributes[fields.to_s] } # attribute
|
173
|
+
else
|
174
|
+
attrs[relation] << { fields => item.send(fields) } # method
|
175
|
+
end
|
163
176
|
end
|
164
177
|
end
|
178
|
+
# 1 relation side
|
165
179
|
else
|
166
180
|
attrs[relation] = {}
|
167
|
-
if fields.is_a?(Array)
|
168
|
-
|
169
|
-
|
170
|
-
|
181
|
+
if fields.is_a?(Array) # given multiple fields to index
|
182
|
+
fields_values = {}
|
183
|
+
fields.each do |field|
|
184
|
+
if items.attributes.keys.include?(field.to_s)
|
185
|
+
fields_values.merge!({ field => items.attributes[fields.to_s] }) # attribute
|
186
|
+
else
|
187
|
+
fields_values.merge!({ field => items.send(field) }) # method
|
188
|
+
end
|
189
|
+
end
|
190
|
+
attrs[relation].merge!(fields_values)
|
191
|
+
else # only index one field in the relation
|
192
|
+
if items.attributes.keys.include?(fields.to_s)
|
193
|
+
attrs[relation].merge!({ fields => items.attributes[fields.to_s] }) # attribute
|
194
|
+
else
|
195
|
+
attrs[relation].merge!({ fields => items.send(fields) }) # method
|
196
|
+
end
|
171
197
|
end
|
172
198
|
end
|
173
199
|
end
|
data/lib/mebla/result_set.rb
CHANGED
@@ -45,14 +45,14 @@ module Mebla
|
|
45
45
|
end
|
46
46
|
# collect ids
|
47
47
|
# {class => [ids]}
|
48
|
-
model_ids[model_class]
|
48
|
+
model_ids[model_class] << hit['_source']['id']
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
52
|
# Cast the results into their appropriate classes
|
53
53
|
@entries = []
|
54
|
-
|
55
|
-
model_ids.
|
54
|
+
|
55
|
+
model_ids.each_pair do |model_class, ids|
|
56
56
|
unless model_class.embedded?
|
57
57
|
# Retrieve the results from the database
|
58
58
|
@entries += model_class.any_in(:_id => ids).entries
|
@@ -61,7 +61,7 @@ module Mebla
|
|
61
61
|
parent_class = model_class.embedded_parent
|
62
62
|
access_method = model_class.embedded_as
|
63
63
|
|
64
|
-
ids.
|
64
|
+
ids.each_pair do |parent_id, entries_ids|
|
65
65
|
parent = parent_class.find parent_id
|
66
66
|
|
67
67
|
# Retrieve the results from the database
|
data/mebla.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mebla}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Omar Mekky"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-05-24}
|
13
13
|
s.description = %q{
|
14
14
|
An elasticsearch wrapper for mongoid odm based on slingshot. Makes integration between ElasticSearch full-text
|
15
15
|
search engine and Mongoid documents seemless and simple.
|
@@ -107,7 +107,27 @@ Gem::Specification.new do |s|
|
|
107
107
|
s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
108
108
|
s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
109
109
|
s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
110
|
-
s.
|
110
|
+
s.add_development_dependency(%q<bson>, ["~> 1.3.0"])
|
111
|
+
s.add_development_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
112
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
113
|
+
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
114
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
115
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
116
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
117
|
+
s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
118
|
+
s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
119
|
+
s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
120
|
+
s.add_development_dependency(%q<bson>, ["~> 1.3.0"])
|
121
|
+
s.add_development_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
122
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
123
|
+
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
124
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
125
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
126
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
127
|
+
s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
128
|
+
s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
129
|
+
s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
130
|
+
s.add_runtime_dependency(%q<slingshot-rb>, ["= 0.0.8"])
|
111
131
|
s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.1"])
|
112
132
|
s.add_development_dependency(%q<bson>, ["~> 1.3.0"])
|
113
133
|
s.add_development_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
@@ -147,7 +167,27 @@ Gem::Specification.new do |s|
|
|
147
167
|
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
148
168
|
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
149
169
|
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
150
|
-
s.add_dependency(%q<
|
170
|
+
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
171
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
172
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
173
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
174
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
175
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
176
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
177
|
+
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
178
|
+
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
179
|
+
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
180
|
+
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
181
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
182
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
183
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
184
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
185
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
186
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
187
|
+
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
188
|
+
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
189
|
+
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
190
|
+
s.add_dependency(%q<slingshot-rb>, ["= 0.0.8"])
|
151
191
|
s.add_dependency(%q<mongoid>, ["~> 2.0.1"])
|
152
192
|
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
153
193
|
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
@@ -188,7 +228,27 @@ Gem::Specification.new do |s|
|
|
188
228
|
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
189
229
|
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
190
230
|
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
191
|
-
s.add_dependency(%q<
|
231
|
+
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
232
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
233
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
234
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
235
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
236
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
237
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
238
|
+
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
239
|
+
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
240
|
+
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
241
|
+
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
242
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
243
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
244
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
245
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
246
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
247
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
248
|
+
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
249
|
+
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
250
|
+
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
251
|
+
s.add_dependency(%q<slingshot-rb>, ["= 0.0.8"])
|
192
252
|
s.add_dependency(%q<mongoid>, ["~> 2.0.1"])
|
193
253
|
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
194
254
|
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
@@ -10,7 +10,7 @@ describe "Mebla" do
|
|
10
10
|
it "should search and return the only relevant result" do
|
11
11
|
results=MongoidAlpha.search "name: Testing index"
|
12
12
|
|
13
|
-
results.
|
13
|
+
results.total.should == 1
|
14
14
|
end
|
15
15
|
|
16
16
|
it "should search and return the only relevant result, and cast it into the correct class type" do
|
@@ -34,7 +34,7 @@ describe "Mebla" do
|
|
34
34
|
it "should search within arrays" do
|
35
35
|
results = MongoidZeta.search "item2"
|
36
36
|
|
37
|
-
results.
|
37
|
+
results.total.should == 1
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -47,7 +47,7 @@ describe "Mebla" do
|
|
47
47
|
it "should search within indexed methods" do
|
48
48
|
results = MongoidPi.search "returns smth"
|
49
49
|
|
50
|
-
results.
|
50
|
+
results.total.should == 1
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -62,7 +62,7 @@ describe "Mebla" do
|
|
62
62
|
it "should search within indexed fields from the relations" do
|
63
63
|
results = MongoidEpsilon.search "Testing index"
|
64
64
|
|
65
|
-
results.
|
65
|
+
results.total.should == 1
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -74,14 +74,14 @@ describe "Mebla" do
|
|
74
74
|
it "should search and return all results of all class types" do
|
75
75
|
results=Mebla.search "name: Testing index"
|
76
76
|
|
77
|
-
results.
|
77
|
+
results.total.should == 2
|
78
78
|
(results.each.collect{|e| e.class} & [MongoidAlpha, MongoidBeta]).should =~ [MongoidAlpha, MongoidBeta]
|
79
79
|
end
|
80
80
|
|
81
81
|
it "should search and return only results from the searched class type" do
|
82
82
|
results=MongoidAlpha.search "name: Testing index"
|
83
83
|
|
84
|
-
results.
|
84
|
+
results.total.should == 1
|
85
85
|
results.first.class.should == MongoidAlpha
|
86
86
|
end
|
87
87
|
end
|
@@ -95,7 +95,7 @@ describe "Mebla" do
|
|
95
95
|
it "should search and return the only relevant result" do
|
96
96
|
results=MongoidGamma.search "name: Embedded"
|
97
97
|
|
98
|
-
results.
|
98
|
+
results.total.should == 1
|
99
99
|
end
|
100
100
|
|
101
101
|
it "should search and return the only relevant result, and cast it into the correct class type" do
|
@@ -120,15 +120,15 @@ describe "Mebla" do
|
|
120
120
|
end
|
121
121
|
|
122
122
|
it "should search and only return results matching the term defined" do
|
123
|
-
Mebla.search.term(:name, "index").
|
123
|
+
Mebla.search.term(:name, "index").total.should == 2
|
124
124
|
end
|
125
125
|
|
126
126
|
it "should search and only return results matching the terms defined" do
|
127
|
-
Mebla.search.terms(:name, ["index", "map"]).
|
127
|
+
Mebla.search.terms(:name, ["index", "map"]).total.should == 3
|
128
128
|
end
|
129
129
|
|
130
130
|
it "should search and filter results according to the filters defined" do
|
131
|
-
Mebla.search.terms(:name, ["index", "map"]).only(:value => [1]).
|
131
|
+
Mebla.search.terms(:name, ["index", "map"]).only(:value => [1]).total.should == 1
|
132
132
|
end
|
133
133
|
|
134
134
|
it "should search and return results along with facets" do
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mebla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Omar Mekky
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-05-24 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -311,19 +311,239 @@ dependencies:
|
|
311
311
|
prerelease: false
|
312
312
|
version_requirements: *id027
|
313
313
|
- !ruby/object:Gem::Dependency
|
314
|
-
name:
|
314
|
+
name: bson
|
315
315
|
requirement: &id028 !ruby/object:Gem::Requirement
|
316
316
|
none: false
|
317
317
|
requirements:
|
318
318
|
- - ~>
|
319
319
|
- !ruby/object:Gem::Version
|
320
|
-
version:
|
321
|
-
type: :
|
320
|
+
version: 1.3.0
|
321
|
+
type: :development
|
322
322
|
prerelease: false
|
323
323
|
version_requirements: *id028
|
324
324
|
- !ruby/object:Gem::Dependency
|
325
|
-
name:
|
325
|
+
name: bson_ext
|
326
326
|
requirement: &id029 !ruby/object:Gem::Requirement
|
327
|
+
none: false
|
328
|
+
requirements:
|
329
|
+
- - ~>
|
330
|
+
- !ruby/object:Gem::Version
|
331
|
+
version: 1.3.0
|
332
|
+
type: :development
|
333
|
+
prerelease: false
|
334
|
+
version_requirements: *id029
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: rspec
|
337
|
+
requirement: &id030 !ruby/object:Gem::Requirement
|
338
|
+
none: false
|
339
|
+
requirements:
|
340
|
+
- - ~>
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
version: 2.3.0
|
343
|
+
type: :development
|
344
|
+
prerelease: false
|
345
|
+
version_requirements: *id030
|
346
|
+
- !ruby/object:Gem::Dependency
|
347
|
+
name: yard
|
348
|
+
requirement: &id031 !ruby/object:Gem::Requirement
|
349
|
+
none: false
|
350
|
+
requirements:
|
351
|
+
- - ~>
|
352
|
+
- !ruby/object:Gem::Version
|
353
|
+
version: 0.6.0
|
354
|
+
type: :development
|
355
|
+
prerelease: false
|
356
|
+
version_requirements: *id031
|
357
|
+
- !ruby/object:Gem::Dependency
|
358
|
+
name: bundler
|
359
|
+
requirement: &id032 !ruby/object:Gem::Requirement
|
360
|
+
none: false
|
361
|
+
requirements:
|
362
|
+
- - ~>
|
363
|
+
- !ruby/object:Gem::Version
|
364
|
+
version: 1.0.0
|
365
|
+
type: :development
|
366
|
+
prerelease: false
|
367
|
+
version_requirements: *id032
|
368
|
+
- !ruby/object:Gem::Dependency
|
369
|
+
name: jeweler
|
370
|
+
requirement: &id033 !ruby/object:Gem::Requirement
|
371
|
+
none: false
|
372
|
+
requirements:
|
373
|
+
- - ~>
|
374
|
+
- !ruby/object:Gem::Version
|
375
|
+
version: 1.5.2
|
376
|
+
type: :development
|
377
|
+
prerelease: false
|
378
|
+
version_requirements: *id033
|
379
|
+
- !ruby/object:Gem::Dependency
|
380
|
+
name: rcov
|
381
|
+
requirement: &id034 !ruby/object:Gem::Requirement
|
382
|
+
none: false
|
383
|
+
requirements:
|
384
|
+
- - ">="
|
385
|
+
- !ruby/object:Gem::Version
|
386
|
+
version: "0"
|
387
|
+
type: :development
|
388
|
+
prerelease: false
|
389
|
+
version_requirements: *id034
|
390
|
+
- !ruby/object:Gem::Dependency
|
391
|
+
name: mongoid-rspec
|
392
|
+
requirement: &id035 !ruby/object:Gem::Requirement
|
393
|
+
none: false
|
394
|
+
requirements:
|
395
|
+
- - "="
|
396
|
+
- !ruby/object:Gem::Version
|
397
|
+
version: 1.4.1
|
398
|
+
type: :development
|
399
|
+
prerelease: false
|
400
|
+
version_requirements: *id035
|
401
|
+
- !ruby/object:Gem::Dependency
|
402
|
+
name: database_cleaner
|
403
|
+
requirement: &id036 !ruby/object:Gem::Requirement
|
404
|
+
none: false
|
405
|
+
requirements:
|
406
|
+
- - "="
|
407
|
+
- !ruby/object:Gem::Version
|
408
|
+
version: 0.6.4
|
409
|
+
type: :development
|
410
|
+
prerelease: false
|
411
|
+
version_requirements: *id036
|
412
|
+
- !ruby/object:Gem::Dependency
|
413
|
+
name: bluecloth
|
414
|
+
requirement: &id037 !ruby/object:Gem::Requirement
|
415
|
+
none: false
|
416
|
+
requirements:
|
417
|
+
- - ~>
|
418
|
+
- !ruby/object:Gem::Version
|
419
|
+
version: 2.1.0
|
420
|
+
type: :development
|
421
|
+
prerelease: false
|
422
|
+
version_requirements: *id037
|
423
|
+
- !ruby/object:Gem::Dependency
|
424
|
+
name: bson
|
425
|
+
requirement: &id038 !ruby/object:Gem::Requirement
|
426
|
+
none: false
|
427
|
+
requirements:
|
428
|
+
- - ~>
|
429
|
+
- !ruby/object:Gem::Version
|
430
|
+
version: 1.3.0
|
431
|
+
type: :development
|
432
|
+
prerelease: false
|
433
|
+
version_requirements: *id038
|
434
|
+
- !ruby/object:Gem::Dependency
|
435
|
+
name: bson_ext
|
436
|
+
requirement: &id039 !ruby/object:Gem::Requirement
|
437
|
+
none: false
|
438
|
+
requirements:
|
439
|
+
- - ~>
|
440
|
+
- !ruby/object:Gem::Version
|
441
|
+
version: 1.3.0
|
442
|
+
type: :development
|
443
|
+
prerelease: false
|
444
|
+
version_requirements: *id039
|
445
|
+
- !ruby/object:Gem::Dependency
|
446
|
+
name: rspec
|
447
|
+
requirement: &id040 !ruby/object:Gem::Requirement
|
448
|
+
none: false
|
449
|
+
requirements:
|
450
|
+
- - ~>
|
451
|
+
- !ruby/object:Gem::Version
|
452
|
+
version: 2.3.0
|
453
|
+
type: :development
|
454
|
+
prerelease: false
|
455
|
+
version_requirements: *id040
|
456
|
+
- !ruby/object:Gem::Dependency
|
457
|
+
name: yard
|
458
|
+
requirement: &id041 !ruby/object:Gem::Requirement
|
459
|
+
none: false
|
460
|
+
requirements:
|
461
|
+
- - ~>
|
462
|
+
- !ruby/object:Gem::Version
|
463
|
+
version: 0.6.0
|
464
|
+
type: :development
|
465
|
+
prerelease: false
|
466
|
+
version_requirements: *id041
|
467
|
+
- !ruby/object:Gem::Dependency
|
468
|
+
name: bundler
|
469
|
+
requirement: &id042 !ruby/object:Gem::Requirement
|
470
|
+
none: false
|
471
|
+
requirements:
|
472
|
+
- - ~>
|
473
|
+
- !ruby/object:Gem::Version
|
474
|
+
version: 1.0.0
|
475
|
+
type: :development
|
476
|
+
prerelease: false
|
477
|
+
version_requirements: *id042
|
478
|
+
- !ruby/object:Gem::Dependency
|
479
|
+
name: jeweler
|
480
|
+
requirement: &id043 !ruby/object:Gem::Requirement
|
481
|
+
none: false
|
482
|
+
requirements:
|
483
|
+
- - ~>
|
484
|
+
- !ruby/object:Gem::Version
|
485
|
+
version: 1.5.2
|
486
|
+
type: :development
|
487
|
+
prerelease: false
|
488
|
+
version_requirements: *id043
|
489
|
+
- !ruby/object:Gem::Dependency
|
490
|
+
name: rcov
|
491
|
+
requirement: &id044 !ruby/object:Gem::Requirement
|
492
|
+
none: false
|
493
|
+
requirements:
|
494
|
+
- - ">="
|
495
|
+
- !ruby/object:Gem::Version
|
496
|
+
version: "0"
|
497
|
+
type: :development
|
498
|
+
prerelease: false
|
499
|
+
version_requirements: *id044
|
500
|
+
- !ruby/object:Gem::Dependency
|
501
|
+
name: mongoid-rspec
|
502
|
+
requirement: &id045 !ruby/object:Gem::Requirement
|
503
|
+
none: false
|
504
|
+
requirements:
|
505
|
+
- - "="
|
506
|
+
- !ruby/object:Gem::Version
|
507
|
+
version: 1.4.1
|
508
|
+
type: :development
|
509
|
+
prerelease: false
|
510
|
+
version_requirements: *id045
|
511
|
+
- !ruby/object:Gem::Dependency
|
512
|
+
name: database_cleaner
|
513
|
+
requirement: &id046 !ruby/object:Gem::Requirement
|
514
|
+
none: false
|
515
|
+
requirements:
|
516
|
+
- - "="
|
517
|
+
- !ruby/object:Gem::Version
|
518
|
+
version: 0.6.4
|
519
|
+
type: :development
|
520
|
+
prerelease: false
|
521
|
+
version_requirements: *id046
|
522
|
+
- !ruby/object:Gem::Dependency
|
523
|
+
name: bluecloth
|
524
|
+
requirement: &id047 !ruby/object:Gem::Requirement
|
525
|
+
none: false
|
526
|
+
requirements:
|
527
|
+
- - ~>
|
528
|
+
- !ruby/object:Gem::Version
|
529
|
+
version: 2.1.0
|
530
|
+
type: :development
|
531
|
+
prerelease: false
|
532
|
+
version_requirements: *id047
|
533
|
+
- !ruby/object:Gem::Dependency
|
534
|
+
name: slingshot-rb
|
535
|
+
requirement: &id048 !ruby/object:Gem::Requirement
|
536
|
+
none: false
|
537
|
+
requirements:
|
538
|
+
- - "="
|
539
|
+
- !ruby/object:Gem::Version
|
540
|
+
version: 0.0.8
|
541
|
+
type: :runtime
|
542
|
+
prerelease: false
|
543
|
+
version_requirements: *id048
|
544
|
+
- !ruby/object:Gem::Dependency
|
545
|
+
name: mongoid
|
546
|
+
requirement: &id049 !ruby/object:Gem::Requirement
|
327
547
|
none: false
|
328
548
|
requirements:
|
329
549
|
- - ~>
|
@@ -331,10 +551,10 @@ dependencies:
|
|
331
551
|
version: 2.0.1
|
332
552
|
type: :runtime
|
333
553
|
prerelease: false
|
334
|
-
version_requirements: *
|
554
|
+
version_requirements: *id049
|
335
555
|
- !ruby/object:Gem::Dependency
|
336
556
|
name: bson
|
337
|
-
requirement: &
|
557
|
+
requirement: &id050 !ruby/object:Gem::Requirement
|
338
558
|
none: false
|
339
559
|
requirements:
|
340
560
|
- - ~>
|
@@ -342,10 +562,10 @@ dependencies:
|
|
342
562
|
version: 1.3.0
|
343
563
|
type: :development
|
344
564
|
prerelease: false
|
345
|
-
version_requirements: *
|
565
|
+
version_requirements: *id050
|
346
566
|
- !ruby/object:Gem::Dependency
|
347
567
|
name: bson_ext
|
348
|
-
requirement: &
|
568
|
+
requirement: &id051 !ruby/object:Gem::Requirement
|
349
569
|
none: false
|
350
570
|
requirements:
|
351
571
|
- - ~>
|
@@ -353,10 +573,10 @@ dependencies:
|
|
353
573
|
version: 1.3.0
|
354
574
|
type: :development
|
355
575
|
prerelease: false
|
356
|
-
version_requirements: *
|
576
|
+
version_requirements: *id051
|
357
577
|
- !ruby/object:Gem::Dependency
|
358
578
|
name: rspec
|
359
|
-
requirement: &
|
579
|
+
requirement: &id052 !ruby/object:Gem::Requirement
|
360
580
|
none: false
|
361
581
|
requirements:
|
362
582
|
- - ~>
|
@@ -364,10 +584,10 @@ dependencies:
|
|
364
584
|
version: 2.3.0
|
365
585
|
type: :development
|
366
586
|
prerelease: false
|
367
|
-
version_requirements: *
|
587
|
+
version_requirements: *id052
|
368
588
|
- !ruby/object:Gem::Dependency
|
369
589
|
name: yard
|
370
|
-
requirement: &
|
590
|
+
requirement: &id053 !ruby/object:Gem::Requirement
|
371
591
|
none: false
|
372
592
|
requirements:
|
373
593
|
- - ~>
|
@@ -375,10 +595,10 @@ dependencies:
|
|
375
595
|
version: 0.6.0
|
376
596
|
type: :development
|
377
597
|
prerelease: false
|
378
|
-
version_requirements: *
|
598
|
+
version_requirements: *id053
|
379
599
|
- !ruby/object:Gem::Dependency
|
380
600
|
name: bundler
|
381
|
-
requirement: &
|
601
|
+
requirement: &id054 !ruby/object:Gem::Requirement
|
382
602
|
none: false
|
383
603
|
requirements:
|
384
604
|
- - ~>
|
@@ -386,10 +606,10 @@ dependencies:
|
|
386
606
|
version: 1.0.0
|
387
607
|
type: :development
|
388
608
|
prerelease: false
|
389
|
-
version_requirements: *
|
609
|
+
version_requirements: *id054
|
390
610
|
- !ruby/object:Gem::Dependency
|
391
611
|
name: jeweler
|
392
|
-
requirement: &
|
612
|
+
requirement: &id055 !ruby/object:Gem::Requirement
|
393
613
|
none: false
|
394
614
|
requirements:
|
395
615
|
- - ~>
|
@@ -397,10 +617,10 @@ dependencies:
|
|
397
617
|
version: 1.5.2
|
398
618
|
type: :development
|
399
619
|
prerelease: false
|
400
|
-
version_requirements: *
|
620
|
+
version_requirements: *id055
|
401
621
|
- !ruby/object:Gem::Dependency
|
402
622
|
name: rcov
|
403
|
-
requirement: &
|
623
|
+
requirement: &id056 !ruby/object:Gem::Requirement
|
404
624
|
none: false
|
405
625
|
requirements:
|
406
626
|
- - ">="
|
@@ -408,10 +628,10 @@ dependencies:
|
|
408
628
|
version: "0"
|
409
629
|
type: :development
|
410
630
|
prerelease: false
|
411
|
-
version_requirements: *
|
631
|
+
version_requirements: *id056
|
412
632
|
- !ruby/object:Gem::Dependency
|
413
633
|
name: mongoid-rspec
|
414
|
-
requirement: &
|
634
|
+
requirement: &id057 !ruby/object:Gem::Requirement
|
415
635
|
none: false
|
416
636
|
requirements:
|
417
637
|
- - "="
|
@@ -419,10 +639,10 @@ dependencies:
|
|
419
639
|
version: 1.4.1
|
420
640
|
type: :development
|
421
641
|
prerelease: false
|
422
|
-
version_requirements: *
|
642
|
+
version_requirements: *id057
|
423
643
|
- !ruby/object:Gem::Dependency
|
424
644
|
name: database_cleaner
|
425
|
-
requirement: &
|
645
|
+
requirement: &id058 !ruby/object:Gem::Requirement
|
426
646
|
none: false
|
427
647
|
requirements:
|
428
648
|
- - "="
|
@@ -430,10 +650,10 @@ dependencies:
|
|
430
650
|
version: 0.6.4
|
431
651
|
type: :development
|
432
652
|
prerelease: false
|
433
|
-
version_requirements: *
|
653
|
+
version_requirements: *id058
|
434
654
|
- !ruby/object:Gem::Dependency
|
435
655
|
name: bluecloth
|
436
|
-
requirement: &
|
656
|
+
requirement: &id059 !ruby/object:Gem::Requirement
|
437
657
|
none: false
|
438
658
|
requirements:
|
439
659
|
- - ~>
|
@@ -441,7 +661,7 @@ dependencies:
|
|
441
661
|
version: 2.1.0
|
442
662
|
type: :development
|
443
663
|
prerelease: false
|
444
|
-
version_requirements: *
|
664
|
+
version_requirements: *id059
|
445
665
|
description: "\n An elasticsearch wrapper for mongoid odm based on slingshot. Makes integration between ElasticSearch full-text \n search engine and Mongoid documents seemless and simple.\n "
|
446
666
|
email: omar.mekky@mashsolvents.com
|
447
667
|
executables: []
|
@@ -504,7 +724,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
504
724
|
requirements:
|
505
725
|
- - ">="
|
506
726
|
- !ruby/object:Gem::Version
|
507
|
-
hash: -
|
727
|
+
hash: -3166291718974142872
|
508
728
|
segments:
|
509
729
|
- 0
|
510
730
|
version: "0"
|