mebla 1.1.13 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/mebla/mongoid/mebla.rb +1 -0
- data/mebla.gemspec +32 -2
- metadata +186 -28
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.14
|
data/lib/mebla/mongoid/mebla.rb
CHANGED
@@ -240,6 +240,7 @@ module Mongoid
|
|
240
240
|
# @return [Boolean] true if the operation is successful
|
241
241
|
def add_to_index
|
242
242
|
return false unless ::Mebla.context.index_exists? # only try to index if the index exists
|
243
|
+
return false unless ::Mebla.context.indexed_models.include?(self.class.name)
|
243
244
|
|
244
245
|
# Prepare attributes to hash
|
245
246
|
to_index_hash = {:id => self.id.to_s}
|
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.14"
|
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-07-
|
12
|
+
s.date = %q{2011-07-08}
|
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.
|
@@ -227,6 +227,16 @@ Gem::Specification.new do |s|
|
|
227
227
|
s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
228
228
|
s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
229
229
|
s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
230
|
+
s.add_development_dependency(%q<bson>, ["~> 1.3.0"])
|
231
|
+
s.add_development_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
232
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
233
|
+
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
234
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
235
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
236
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
237
|
+
s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
238
|
+
s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
239
|
+
s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
230
240
|
s.add_runtime_dependency(%q<slingshot-rb>, ["= 0.0.8"])
|
231
241
|
s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.1"])
|
232
242
|
s.add_development_dependency(%q<bson>, ["~> 1.3.0"])
|
@@ -387,6 +397,16 @@ Gem::Specification.new do |s|
|
|
387
397
|
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
388
398
|
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
389
399
|
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
400
|
+
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
401
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
402
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
403
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
404
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
405
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
406
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
407
|
+
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
408
|
+
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
409
|
+
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
390
410
|
s.add_dependency(%q<slingshot-rb>, ["= 0.0.8"])
|
391
411
|
s.add_dependency(%q<mongoid>, ["~> 2.0.1"])
|
392
412
|
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
@@ -548,6 +568,16 @@ Gem::Specification.new do |s|
|
|
548
568
|
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
549
569
|
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
550
570
|
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
571
|
+
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
572
|
+
s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
|
573
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
574
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
575
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
576
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
577
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
578
|
+
s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
|
579
|
+
s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
|
580
|
+
s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
|
551
581
|
s.add_dependency(%q<slingshot-rb>, ["= 0.0.8"])
|
552
582
|
s.add_dependency(%q<mongoid>, ["~> 2.0.1"])
|
553
583
|
s.add_dependency(%q<bson>, ["~> 1.3.0"])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mebla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 14
|
10
|
+
version: 1.1.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Omar Mekky
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-07-
|
18
|
+
date: 2011-07-08 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -2340,8 +2340,166 @@ dependencies:
|
|
2340
2340
|
version_requirements: *id147
|
2341
2341
|
- !ruby/object:Gem::Dependency
|
2342
2342
|
prerelease: false
|
2343
|
-
type: :
|
2343
|
+
type: :development
|
2344
2344
|
requirement: &id148 !ruby/object:Gem::Requirement
|
2345
|
+
none: false
|
2346
|
+
requirements:
|
2347
|
+
- - ~>
|
2348
|
+
- !ruby/object:Gem::Version
|
2349
|
+
hash: 27
|
2350
|
+
segments:
|
2351
|
+
- 1
|
2352
|
+
- 3
|
2353
|
+
- 0
|
2354
|
+
version: 1.3.0
|
2355
|
+
name: bson
|
2356
|
+
version_requirements: *id148
|
2357
|
+
- !ruby/object:Gem::Dependency
|
2358
|
+
prerelease: false
|
2359
|
+
type: :development
|
2360
|
+
requirement: &id149 !ruby/object:Gem::Requirement
|
2361
|
+
none: false
|
2362
|
+
requirements:
|
2363
|
+
- - ~>
|
2364
|
+
- !ruby/object:Gem::Version
|
2365
|
+
hash: 27
|
2366
|
+
segments:
|
2367
|
+
- 1
|
2368
|
+
- 3
|
2369
|
+
- 0
|
2370
|
+
version: 1.3.0
|
2371
|
+
name: bson_ext
|
2372
|
+
version_requirements: *id149
|
2373
|
+
- !ruby/object:Gem::Dependency
|
2374
|
+
prerelease: false
|
2375
|
+
type: :development
|
2376
|
+
requirement: &id150 !ruby/object:Gem::Requirement
|
2377
|
+
none: false
|
2378
|
+
requirements:
|
2379
|
+
- - ~>
|
2380
|
+
- !ruby/object:Gem::Version
|
2381
|
+
hash: 3
|
2382
|
+
segments:
|
2383
|
+
- 2
|
2384
|
+
- 3
|
2385
|
+
- 0
|
2386
|
+
version: 2.3.0
|
2387
|
+
name: rspec
|
2388
|
+
version_requirements: *id150
|
2389
|
+
- !ruby/object:Gem::Dependency
|
2390
|
+
prerelease: false
|
2391
|
+
type: :development
|
2392
|
+
requirement: &id151 !ruby/object:Gem::Requirement
|
2393
|
+
none: false
|
2394
|
+
requirements:
|
2395
|
+
- - ~>
|
2396
|
+
- !ruby/object:Gem::Version
|
2397
|
+
hash: 7
|
2398
|
+
segments:
|
2399
|
+
- 0
|
2400
|
+
- 6
|
2401
|
+
- 0
|
2402
|
+
version: 0.6.0
|
2403
|
+
name: yard
|
2404
|
+
version_requirements: *id151
|
2405
|
+
- !ruby/object:Gem::Dependency
|
2406
|
+
prerelease: false
|
2407
|
+
type: :development
|
2408
|
+
requirement: &id152 !ruby/object:Gem::Requirement
|
2409
|
+
none: false
|
2410
|
+
requirements:
|
2411
|
+
- - ~>
|
2412
|
+
- !ruby/object:Gem::Version
|
2413
|
+
hash: 23
|
2414
|
+
segments:
|
2415
|
+
- 1
|
2416
|
+
- 0
|
2417
|
+
- 0
|
2418
|
+
version: 1.0.0
|
2419
|
+
name: bundler
|
2420
|
+
version_requirements: *id152
|
2421
|
+
- !ruby/object:Gem::Dependency
|
2422
|
+
prerelease: false
|
2423
|
+
type: :development
|
2424
|
+
requirement: &id153 !ruby/object:Gem::Requirement
|
2425
|
+
none: false
|
2426
|
+
requirements:
|
2427
|
+
- - ~>
|
2428
|
+
- !ruby/object:Gem::Version
|
2429
|
+
hash: 7
|
2430
|
+
segments:
|
2431
|
+
- 1
|
2432
|
+
- 5
|
2433
|
+
- 2
|
2434
|
+
version: 1.5.2
|
2435
|
+
name: jeweler
|
2436
|
+
version_requirements: *id153
|
2437
|
+
- !ruby/object:Gem::Dependency
|
2438
|
+
prerelease: false
|
2439
|
+
type: :development
|
2440
|
+
requirement: &id154 !ruby/object:Gem::Requirement
|
2441
|
+
none: false
|
2442
|
+
requirements:
|
2443
|
+
- - ">="
|
2444
|
+
- !ruby/object:Gem::Version
|
2445
|
+
hash: 3
|
2446
|
+
segments:
|
2447
|
+
- 0
|
2448
|
+
version: "0"
|
2449
|
+
name: rcov
|
2450
|
+
version_requirements: *id154
|
2451
|
+
- !ruby/object:Gem::Dependency
|
2452
|
+
prerelease: false
|
2453
|
+
type: :development
|
2454
|
+
requirement: &id155 !ruby/object:Gem::Requirement
|
2455
|
+
none: false
|
2456
|
+
requirements:
|
2457
|
+
- - "="
|
2458
|
+
- !ruby/object:Gem::Version
|
2459
|
+
hash: 5
|
2460
|
+
segments:
|
2461
|
+
- 1
|
2462
|
+
- 4
|
2463
|
+
- 1
|
2464
|
+
version: 1.4.1
|
2465
|
+
name: mongoid-rspec
|
2466
|
+
version_requirements: *id155
|
2467
|
+
- !ruby/object:Gem::Dependency
|
2468
|
+
prerelease: false
|
2469
|
+
type: :development
|
2470
|
+
requirement: &id156 !ruby/object:Gem::Requirement
|
2471
|
+
none: false
|
2472
|
+
requirements:
|
2473
|
+
- - "="
|
2474
|
+
- !ruby/object:Gem::Version
|
2475
|
+
hash: 15
|
2476
|
+
segments:
|
2477
|
+
- 0
|
2478
|
+
- 6
|
2479
|
+
- 4
|
2480
|
+
version: 0.6.4
|
2481
|
+
name: database_cleaner
|
2482
|
+
version_requirements: *id156
|
2483
|
+
- !ruby/object:Gem::Dependency
|
2484
|
+
prerelease: false
|
2485
|
+
type: :development
|
2486
|
+
requirement: &id157 !ruby/object:Gem::Requirement
|
2487
|
+
none: false
|
2488
|
+
requirements:
|
2489
|
+
- - ~>
|
2490
|
+
- !ruby/object:Gem::Version
|
2491
|
+
hash: 11
|
2492
|
+
segments:
|
2493
|
+
- 2
|
2494
|
+
- 1
|
2495
|
+
- 0
|
2496
|
+
version: 2.1.0
|
2497
|
+
name: bluecloth
|
2498
|
+
version_requirements: *id157
|
2499
|
+
- !ruby/object:Gem::Dependency
|
2500
|
+
prerelease: false
|
2501
|
+
type: :runtime
|
2502
|
+
requirement: &id158 !ruby/object:Gem::Requirement
|
2345
2503
|
none: false
|
2346
2504
|
requirements:
|
2347
2505
|
- - "="
|
@@ -2353,11 +2511,11 @@ dependencies:
|
|
2353
2511
|
- 8
|
2354
2512
|
version: 0.0.8
|
2355
2513
|
name: slingshot-rb
|
2356
|
-
version_requirements: *
|
2514
|
+
version_requirements: *id158
|
2357
2515
|
- !ruby/object:Gem::Dependency
|
2358
2516
|
prerelease: false
|
2359
2517
|
type: :runtime
|
2360
|
-
requirement: &
|
2518
|
+
requirement: &id159 !ruby/object:Gem::Requirement
|
2361
2519
|
none: false
|
2362
2520
|
requirements:
|
2363
2521
|
- - ~>
|
@@ -2369,11 +2527,11 @@ dependencies:
|
|
2369
2527
|
- 1
|
2370
2528
|
version: 2.0.1
|
2371
2529
|
name: mongoid
|
2372
|
-
version_requirements: *
|
2530
|
+
version_requirements: *id159
|
2373
2531
|
- !ruby/object:Gem::Dependency
|
2374
2532
|
prerelease: false
|
2375
2533
|
type: :development
|
2376
|
-
requirement: &
|
2534
|
+
requirement: &id160 !ruby/object:Gem::Requirement
|
2377
2535
|
none: false
|
2378
2536
|
requirements:
|
2379
2537
|
- - ~>
|
@@ -2385,11 +2543,11 @@ dependencies:
|
|
2385
2543
|
- 0
|
2386
2544
|
version: 1.3.0
|
2387
2545
|
name: bson
|
2388
|
-
version_requirements: *
|
2546
|
+
version_requirements: *id160
|
2389
2547
|
- !ruby/object:Gem::Dependency
|
2390
2548
|
prerelease: false
|
2391
2549
|
type: :development
|
2392
|
-
requirement: &
|
2550
|
+
requirement: &id161 !ruby/object:Gem::Requirement
|
2393
2551
|
none: false
|
2394
2552
|
requirements:
|
2395
2553
|
- - ~>
|
@@ -2401,11 +2559,11 @@ dependencies:
|
|
2401
2559
|
- 0
|
2402
2560
|
version: 1.3.0
|
2403
2561
|
name: bson_ext
|
2404
|
-
version_requirements: *
|
2562
|
+
version_requirements: *id161
|
2405
2563
|
- !ruby/object:Gem::Dependency
|
2406
2564
|
prerelease: false
|
2407
2565
|
type: :development
|
2408
|
-
requirement: &
|
2566
|
+
requirement: &id162 !ruby/object:Gem::Requirement
|
2409
2567
|
none: false
|
2410
2568
|
requirements:
|
2411
2569
|
- - ~>
|
@@ -2417,11 +2575,11 @@ dependencies:
|
|
2417
2575
|
- 0
|
2418
2576
|
version: 2.3.0
|
2419
2577
|
name: rspec
|
2420
|
-
version_requirements: *
|
2578
|
+
version_requirements: *id162
|
2421
2579
|
- !ruby/object:Gem::Dependency
|
2422
2580
|
prerelease: false
|
2423
2581
|
type: :development
|
2424
|
-
requirement: &
|
2582
|
+
requirement: &id163 !ruby/object:Gem::Requirement
|
2425
2583
|
none: false
|
2426
2584
|
requirements:
|
2427
2585
|
- - ~>
|
@@ -2433,11 +2591,11 @@ dependencies:
|
|
2433
2591
|
- 0
|
2434
2592
|
version: 0.6.0
|
2435
2593
|
name: yard
|
2436
|
-
version_requirements: *
|
2594
|
+
version_requirements: *id163
|
2437
2595
|
- !ruby/object:Gem::Dependency
|
2438
2596
|
prerelease: false
|
2439
2597
|
type: :development
|
2440
|
-
requirement: &
|
2598
|
+
requirement: &id164 !ruby/object:Gem::Requirement
|
2441
2599
|
none: false
|
2442
2600
|
requirements:
|
2443
2601
|
- - ~>
|
@@ -2449,11 +2607,11 @@ dependencies:
|
|
2449
2607
|
- 0
|
2450
2608
|
version: 1.0.0
|
2451
2609
|
name: bundler
|
2452
|
-
version_requirements: *
|
2610
|
+
version_requirements: *id164
|
2453
2611
|
- !ruby/object:Gem::Dependency
|
2454
2612
|
prerelease: false
|
2455
2613
|
type: :development
|
2456
|
-
requirement: &
|
2614
|
+
requirement: &id165 !ruby/object:Gem::Requirement
|
2457
2615
|
none: false
|
2458
2616
|
requirements:
|
2459
2617
|
- - ~>
|
@@ -2465,11 +2623,11 @@ dependencies:
|
|
2465
2623
|
- 2
|
2466
2624
|
version: 1.5.2
|
2467
2625
|
name: jeweler
|
2468
|
-
version_requirements: *
|
2626
|
+
version_requirements: *id165
|
2469
2627
|
- !ruby/object:Gem::Dependency
|
2470
2628
|
prerelease: false
|
2471
2629
|
type: :development
|
2472
|
-
requirement: &
|
2630
|
+
requirement: &id166 !ruby/object:Gem::Requirement
|
2473
2631
|
none: false
|
2474
2632
|
requirements:
|
2475
2633
|
- - ">="
|
@@ -2479,11 +2637,11 @@ dependencies:
|
|
2479
2637
|
- 0
|
2480
2638
|
version: "0"
|
2481
2639
|
name: rcov
|
2482
|
-
version_requirements: *
|
2640
|
+
version_requirements: *id166
|
2483
2641
|
- !ruby/object:Gem::Dependency
|
2484
2642
|
prerelease: false
|
2485
2643
|
type: :development
|
2486
|
-
requirement: &
|
2644
|
+
requirement: &id167 !ruby/object:Gem::Requirement
|
2487
2645
|
none: false
|
2488
2646
|
requirements:
|
2489
2647
|
- - "="
|
@@ -2495,11 +2653,11 @@ dependencies:
|
|
2495
2653
|
- 1
|
2496
2654
|
version: 1.4.1
|
2497
2655
|
name: mongoid-rspec
|
2498
|
-
version_requirements: *
|
2656
|
+
version_requirements: *id167
|
2499
2657
|
- !ruby/object:Gem::Dependency
|
2500
2658
|
prerelease: false
|
2501
2659
|
type: :development
|
2502
|
-
requirement: &
|
2660
|
+
requirement: &id168 !ruby/object:Gem::Requirement
|
2503
2661
|
none: false
|
2504
2662
|
requirements:
|
2505
2663
|
- - "="
|
@@ -2511,11 +2669,11 @@ dependencies:
|
|
2511
2669
|
- 4
|
2512
2670
|
version: 0.6.4
|
2513
2671
|
name: database_cleaner
|
2514
|
-
version_requirements: *
|
2672
|
+
version_requirements: *id168
|
2515
2673
|
- !ruby/object:Gem::Dependency
|
2516
2674
|
prerelease: false
|
2517
2675
|
type: :development
|
2518
|
-
requirement: &
|
2676
|
+
requirement: &id169 !ruby/object:Gem::Requirement
|
2519
2677
|
none: false
|
2520
2678
|
requirements:
|
2521
2679
|
- - ~>
|
@@ -2527,7 +2685,7 @@ dependencies:
|
|
2527
2685
|
- 0
|
2528
2686
|
version: 2.1.0
|
2529
2687
|
name: bluecloth
|
2530
|
-
version_requirements: *
|
2688
|
+
version_requirements: *id169
|
2531
2689
|
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 "
|
2532
2690
|
email: omar.mekky@mashsolvents.com
|
2533
2691
|
executables: []
|