mebla 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile.lock +1 -1
  2. data/VERSION +1 -1
  3. data/lib/mebla/search.rb +16 -0
  4. data/mebla.gemspec +25 -1
  5. metadata +114 -26
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mebla (1.1.0)
4
+ mebla (1.1.1)
5
5
  bson (= 1.2.0)
6
6
  bson_ext (= 1.2.0)
7
7
  mebla
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
data/lib/mebla/search.rb CHANGED
@@ -168,6 +168,22 @@ module Mebla
168
168
  self
169
169
  end
170
170
 
171
+ # Sets the maximum number of hits per query, defaults to 10
172
+ # @param [Integer] value
173
+ # @return [Mebla::Search]
174
+ def size(value)
175
+ @slingshot_search = @slingshot_search.size(value)
176
+ self
177
+ end
178
+
179
+ # Sets the starting offset for the query
180
+ # @param [Integer] value
181
+ # @return [Mebla::Search]
182
+ def from(value)
183
+ @slingshot_search = @slingshot_search.from(value)
184
+ self
185
+ end
186
+
171
187
  # Performs the search and returns the results
172
188
  # @return [Mebla::ResultSet]
173
189
  def hits
data/mebla.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mebla}
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
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"]
@@ -186,6 +186,14 @@ Gem::Specification.new do |s|
186
186
  s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
187
187
  s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
188
188
  s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
189
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
190
+ s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
191
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
192
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
193
+ s.add_development_dependency(%q<rcov>, [">= 0"])
194
+ s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
195
+ s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
196
+ s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
189
197
  s.add_runtime_dependency(%q<slingshot-rb>, ["~> 0.0.6"])
190
198
  s.add_runtime_dependency(%q<mongoid>, ["= 2.0.0.rc.7"])
191
199
  s.add_runtime_dependency(%q<bson>, ["= 1.2.0"])
@@ -305,6 +313,14 @@ Gem::Specification.new do |s|
305
313
  s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
306
314
  s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
307
315
  s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
316
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
317
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
318
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
319
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
320
+ s.add_dependency(%q<rcov>, [">= 0"])
321
+ s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
322
+ s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
323
+ s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
308
324
  s.add_dependency(%q<slingshot-rb>, ["~> 0.0.6"])
309
325
  s.add_dependency(%q<mongoid>, ["= 2.0.0.rc.7"])
310
326
  s.add_dependency(%q<bson>, ["= 1.2.0"])
@@ -425,6 +441,14 @@ Gem::Specification.new do |s|
425
441
  s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
426
442
  s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
427
443
  s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
444
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
445
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
446
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
447
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
448
+ s.add_dependency(%q<rcov>, [">= 0"])
449
+ s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
450
+ s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
451
+ s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
428
452
  s.add_dependency(%q<slingshot-rb>, ["~> 0.0.6"])
429
453
  s.add_dependency(%q<mongoid>, ["= 2.0.0.rc.7"])
430
454
  s.add_dependency(%q<bson>, ["= 1.2.0"])
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mebla
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.1
5
+ version: 1.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Omar Mekky
@@ -1180,8 +1180,96 @@ dependencies:
1180
1180
  prerelease: false
1181
1181
  version_requirements: *id106
1182
1182
  - !ruby/object:Gem::Dependency
1183
- name: slingshot-rb
1183
+ name: rspec
1184
1184
  requirement: &id107 !ruby/object:Gem::Requirement
1185
+ none: false
1186
+ requirements:
1187
+ - - ~>
1188
+ - !ruby/object:Gem::Version
1189
+ version: 2.3.0
1190
+ type: :development
1191
+ prerelease: false
1192
+ version_requirements: *id107
1193
+ - !ruby/object:Gem::Dependency
1194
+ name: yard
1195
+ requirement: &id108 !ruby/object:Gem::Requirement
1196
+ none: false
1197
+ requirements:
1198
+ - - ~>
1199
+ - !ruby/object:Gem::Version
1200
+ version: 0.6.0
1201
+ type: :development
1202
+ prerelease: false
1203
+ version_requirements: *id108
1204
+ - !ruby/object:Gem::Dependency
1205
+ name: bundler
1206
+ requirement: &id109 !ruby/object:Gem::Requirement
1207
+ none: false
1208
+ requirements:
1209
+ - - ~>
1210
+ - !ruby/object:Gem::Version
1211
+ version: 1.0.0
1212
+ type: :development
1213
+ prerelease: false
1214
+ version_requirements: *id109
1215
+ - !ruby/object:Gem::Dependency
1216
+ name: jeweler
1217
+ requirement: &id110 !ruby/object:Gem::Requirement
1218
+ none: false
1219
+ requirements:
1220
+ - - ~>
1221
+ - !ruby/object:Gem::Version
1222
+ version: 1.5.2
1223
+ type: :development
1224
+ prerelease: false
1225
+ version_requirements: *id110
1226
+ - !ruby/object:Gem::Dependency
1227
+ name: rcov
1228
+ requirement: &id111 !ruby/object:Gem::Requirement
1229
+ none: false
1230
+ requirements:
1231
+ - - ">="
1232
+ - !ruby/object:Gem::Version
1233
+ version: "0"
1234
+ type: :development
1235
+ prerelease: false
1236
+ version_requirements: *id111
1237
+ - !ruby/object:Gem::Dependency
1238
+ name: mongoid-rspec
1239
+ requirement: &id112 !ruby/object:Gem::Requirement
1240
+ none: false
1241
+ requirements:
1242
+ - - "="
1243
+ - !ruby/object:Gem::Version
1244
+ version: 1.4.1
1245
+ type: :development
1246
+ prerelease: false
1247
+ version_requirements: *id112
1248
+ - !ruby/object:Gem::Dependency
1249
+ name: database_cleaner
1250
+ requirement: &id113 !ruby/object:Gem::Requirement
1251
+ none: false
1252
+ requirements:
1253
+ - - "="
1254
+ - !ruby/object:Gem::Version
1255
+ version: 0.6.4
1256
+ type: :development
1257
+ prerelease: false
1258
+ version_requirements: *id113
1259
+ - !ruby/object:Gem::Dependency
1260
+ name: bluecloth
1261
+ requirement: &id114 !ruby/object:Gem::Requirement
1262
+ none: false
1263
+ requirements:
1264
+ - - ~>
1265
+ - !ruby/object:Gem::Version
1266
+ version: 2.1.0
1267
+ type: :development
1268
+ prerelease: false
1269
+ version_requirements: *id114
1270
+ - !ruby/object:Gem::Dependency
1271
+ name: slingshot-rb
1272
+ requirement: &id115 !ruby/object:Gem::Requirement
1185
1273
  none: false
1186
1274
  requirements:
1187
1275
  - - ~>
@@ -1189,10 +1277,10 @@ dependencies:
1189
1277
  version: 0.0.6
1190
1278
  type: :runtime
1191
1279
  prerelease: false
1192
- version_requirements: *id107
1280
+ version_requirements: *id115
1193
1281
  - !ruby/object:Gem::Dependency
1194
1282
  name: mongoid
1195
- requirement: &id108 !ruby/object:Gem::Requirement
1283
+ requirement: &id116 !ruby/object:Gem::Requirement
1196
1284
  none: false
1197
1285
  requirements:
1198
1286
  - - "="
@@ -1200,10 +1288,10 @@ dependencies:
1200
1288
  version: 2.0.0.rc.7
1201
1289
  type: :runtime
1202
1290
  prerelease: false
1203
- version_requirements: *id108
1291
+ version_requirements: *id116
1204
1292
  - !ruby/object:Gem::Dependency
1205
1293
  name: bson
1206
- requirement: &id109 !ruby/object:Gem::Requirement
1294
+ requirement: &id117 !ruby/object:Gem::Requirement
1207
1295
  none: false
1208
1296
  requirements:
1209
1297
  - - "="
@@ -1211,10 +1299,10 @@ dependencies:
1211
1299
  version: 1.2.0
1212
1300
  type: :runtime
1213
1301
  prerelease: false
1214
- version_requirements: *id109
1302
+ version_requirements: *id117
1215
1303
  - !ruby/object:Gem::Dependency
1216
1304
  name: bson_ext
1217
- requirement: &id110 !ruby/object:Gem::Requirement
1305
+ requirement: &id118 !ruby/object:Gem::Requirement
1218
1306
  none: false
1219
1307
  requirements:
1220
1308
  - - "="
@@ -1222,10 +1310,10 @@ dependencies:
1222
1310
  version: 1.2.0
1223
1311
  type: :runtime
1224
1312
  prerelease: false
1225
- version_requirements: *id110
1313
+ version_requirements: *id118
1226
1314
  - !ruby/object:Gem::Dependency
1227
1315
  name: rspec
1228
- requirement: &id111 !ruby/object:Gem::Requirement
1316
+ requirement: &id119 !ruby/object:Gem::Requirement
1229
1317
  none: false
1230
1318
  requirements:
1231
1319
  - - ~>
@@ -1233,10 +1321,10 @@ dependencies:
1233
1321
  version: 2.3.0
1234
1322
  type: :development
1235
1323
  prerelease: false
1236
- version_requirements: *id111
1324
+ version_requirements: *id119
1237
1325
  - !ruby/object:Gem::Dependency
1238
1326
  name: yard
1239
- requirement: &id112 !ruby/object:Gem::Requirement
1327
+ requirement: &id120 !ruby/object:Gem::Requirement
1240
1328
  none: false
1241
1329
  requirements:
1242
1330
  - - ~>
@@ -1244,10 +1332,10 @@ dependencies:
1244
1332
  version: 0.6.0
1245
1333
  type: :development
1246
1334
  prerelease: false
1247
- version_requirements: *id112
1335
+ version_requirements: *id120
1248
1336
  - !ruby/object:Gem::Dependency
1249
1337
  name: bundler
1250
- requirement: &id113 !ruby/object:Gem::Requirement
1338
+ requirement: &id121 !ruby/object:Gem::Requirement
1251
1339
  none: false
1252
1340
  requirements:
1253
1341
  - - ~>
@@ -1255,10 +1343,10 @@ dependencies:
1255
1343
  version: 1.0.0
1256
1344
  type: :development
1257
1345
  prerelease: false
1258
- version_requirements: *id113
1346
+ version_requirements: *id121
1259
1347
  - !ruby/object:Gem::Dependency
1260
1348
  name: jeweler
1261
- requirement: &id114 !ruby/object:Gem::Requirement
1349
+ requirement: &id122 !ruby/object:Gem::Requirement
1262
1350
  none: false
1263
1351
  requirements:
1264
1352
  - - ~>
@@ -1266,10 +1354,10 @@ dependencies:
1266
1354
  version: 1.5.2
1267
1355
  type: :development
1268
1356
  prerelease: false
1269
- version_requirements: *id114
1357
+ version_requirements: *id122
1270
1358
  - !ruby/object:Gem::Dependency
1271
1359
  name: rcov
1272
- requirement: &id115 !ruby/object:Gem::Requirement
1360
+ requirement: &id123 !ruby/object:Gem::Requirement
1273
1361
  none: false
1274
1362
  requirements:
1275
1363
  - - ">="
@@ -1277,10 +1365,10 @@ dependencies:
1277
1365
  version: "0"
1278
1366
  type: :development
1279
1367
  prerelease: false
1280
- version_requirements: *id115
1368
+ version_requirements: *id123
1281
1369
  - !ruby/object:Gem::Dependency
1282
1370
  name: mongoid-rspec
1283
- requirement: &id116 !ruby/object:Gem::Requirement
1371
+ requirement: &id124 !ruby/object:Gem::Requirement
1284
1372
  none: false
1285
1373
  requirements:
1286
1374
  - - "="
@@ -1288,10 +1376,10 @@ dependencies:
1288
1376
  version: 1.4.1
1289
1377
  type: :development
1290
1378
  prerelease: false
1291
- version_requirements: *id116
1379
+ version_requirements: *id124
1292
1380
  - !ruby/object:Gem::Dependency
1293
1381
  name: database_cleaner
1294
- requirement: &id117 !ruby/object:Gem::Requirement
1382
+ requirement: &id125 !ruby/object:Gem::Requirement
1295
1383
  none: false
1296
1384
  requirements:
1297
1385
  - - "="
@@ -1299,10 +1387,10 @@ dependencies:
1299
1387
  version: 0.6.4
1300
1388
  type: :development
1301
1389
  prerelease: false
1302
- version_requirements: *id117
1390
+ version_requirements: *id125
1303
1391
  - !ruby/object:Gem::Dependency
1304
1392
  name: bluecloth
1305
- requirement: &id118 !ruby/object:Gem::Requirement
1393
+ requirement: &id126 !ruby/object:Gem::Requirement
1306
1394
  none: false
1307
1395
  requirements:
1308
1396
  - - ~>
@@ -1310,7 +1398,7 @@ dependencies:
1310
1398
  version: 2.1.0
1311
1399
  type: :development
1312
1400
  prerelease: false
1313
- version_requirements: *id118
1401
+ version_requirements: *id126
1314
1402
  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 "
1315
1403
  email: omar.mekky@mashsolvents.com
1316
1404
  executables: []
@@ -1373,7 +1461,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1373
1461
  requirements:
1374
1462
  - - ">="
1375
1463
  - !ruby/object:Gem::Version
1376
- hash: -1677324411168249024
1464
+ hash: 418684693855382096
1377
1465
  segments:
1378
1466
  - 0
1379
1467
  version: "0"