mebla 1.1.12 → 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mebla (1.1.11)
4
+ mebla (1.1.12)
5
5
  mebla
6
6
  mongoid (~> 2.0.1)
7
7
  slingshot-rb (= 0.0.8)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.12
1
+ 1.1.13
@@ -27,7 +27,7 @@ module Mongoid
27
27
 
28
28
  # make sure critical data remain read only
29
29
  private_class_method :"search_fields=", :"slingshot_mappings=",
30
- :"embedded_parent_foreign_key=", :"embedded_parent=", :"embedded_as="
30
+ :"embedded_parent_foreign_key=", :"embedded_parent=", :"embedded_as="
31
31
 
32
32
  # add callbacks to synchronize modifications with elasticsearch
33
33
  after_save :add_to_index
@@ -149,11 +149,7 @@ module Mongoid
149
149
  attrs_mappings[attribute] = {:type => SLINGSHOT_TYPE_MAPPING[field_type] || "string"}
150
150
  end
151
151
  else
152
- if self.instance_methods.include?(attribute.to_s)
153
- attrs_mappings[attribute] = {:type => "string"}
154
- else
155
- ::Mebla::Errors::MeblaConfigurationException.new("Invalid field #{attribute.to_s} defined for indexing #{self.name}.")
156
- end
152
+ attrs_mappings[attribute] = {:type => "string"}
157
153
  end
158
154
  end
159
155
 
@@ -166,11 +162,7 @@ module Mongoid
166
162
  opts_mappings[opt] = {:type => SLINGSHOT_TYPE_MAPPING[field_type] || "string" }.merge!(properties)
167
163
  end
168
164
  else
169
- if self.instance_methods.include?(attribute.to_s)
170
- opts_mappings[opt] = {:type => "string"}.merge!(properties)
171
- else
172
- ::Mebla::Errors::MeblaConfigurationException.new("Invalid field #{opt.to_s} defined for indexing #{self.name}.")
173
- end
165
+ opts_mappings[opt] = {:type => "string"}.merge!(properties)
174
166
  end
175
167
  end
176
168
 
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.12"
8
+ s.version = "1.1.13"
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"]
@@ -217,6 +217,16 @@ Gem::Specification.new do |s|
217
217
  s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
218
218
  s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
219
219
  s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
220
+ s.add_development_dependency(%q<bson>, ["~> 1.3.0"])
221
+ s.add_development_dependency(%q<bson_ext>, ["~> 1.3.0"])
222
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
223
+ s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
224
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
225
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
226
+ s.add_development_dependency(%q<rcov>, [">= 0"])
227
+ s.add_development_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
228
+ s.add_development_dependency(%q<database_cleaner>, ["= 0.6.4"])
229
+ s.add_development_dependency(%q<bluecloth>, ["~> 2.1.0"])
220
230
  s.add_runtime_dependency(%q<slingshot-rb>, ["= 0.0.8"])
221
231
  s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.1"])
222
232
  s.add_development_dependency(%q<bson>, ["~> 1.3.0"])
@@ -367,6 +377,16 @@ Gem::Specification.new do |s|
367
377
  s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
368
378
  s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
369
379
  s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
380
+ s.add_dependency(%q<bson>, ["~> 1.3.0"])
381
+ s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
382
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
383
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
384
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
385
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
386
+ s.add_dependency(%q<rcov>, [">= 0"])
387
+ s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
388
+ s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
389
+ s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
370
390
  s.add_dependency(%q<slingshot-rb>, ["= 0.0.8"])
371
391
  s.add_dependency(%q<mongoid>, ["~> 2.0.1"])
372
392
  s.add_dependency(%q<bson>, ["~> 1.3.0"])
@@ -518,6 +538,16 @@ Gem::Specification.new do |s|
518
538
  s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
519
539
  s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
520
540
  s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
541
+ s.add_dependency(%q<bson>, ["~> 1.3.0"])
542
+ s.add_dependency(%q<bson_ext>, ["~> 1.3.0"])
543
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
544
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
545
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
546
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
547
+ s.add_dependency(%q<rcov>, [">= 0"])
548
+ s.add_dependency(%q<mongoid-rspec>, ["= 1.4.1"])
549
+ s.add_dependency(%q<database_cleaner>, ["= 0.6.4"])
550
+ s.add_dependency(%q<bluecloth>, ["~> 2.1.0"])
521
551
  s.add_dependency(%q<slingshot-rb>, ["= 0.0.8"])
522
552
  s.add_dependency(%q<mongoid>, ["~> 2.0.1"])
523
553
  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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 12
10
- version: 1.1.12
9
+ - 13
10
+ version: 1.1.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Omar Mekky
@@ -2182,8 +2182,166 @@ dependencies:
2182
2182
  version_requirements: *id137
2183
2183
  - !ruby/object:Gem::Dependency
2184
2184
  prerelease: false
2185
- type: :runtime
2185
+ type: :development
2186
2186
  requirement: &id138 !ruby/object:Gem::Requirement
2187
+ none: false
2188
+ requirements:
2189
+ - - ~>
2190
+ - !ruby/object:Gem::Version
2191
+ hash: 27
2192
+ segments:
2193
+ - 1
2194
+ - 3
2195
+ - 0
2196
+ version: 1.3.0
2197
+ name: bson
2198
+ version_requirements: *id138
2199
+ - !ruby/object:Gem::Dependency
2200
+ prerelease: false
2201
+ type: :development
2202
+ requirement: &id139 !ruby/object:Gem::Requirement
2203
+ none: false
2204
+ requirements:
2205
+ - - ~>
2206
+ - !ruby/object:Gem::Version
2207
+ hash: 27
2208
+ segments:
2209
+ - 1
2210
+ - 3
2211
+ - 0
2212
+ version: 1.3.0
2213
+ name: bson_ext
2214
+ version_requirements: *id139
2215
+ - !ruby/object:Gem::Dependency
2216
+ prerelease: false
2217
+ type: :development
2218
+ requirement: &id140 !ruby/object:Gem::Requirement
2219
+ none: false
2220
+ requirements:
2221
+ - - ~>
2222
+ - !ruby/object:Gem::Version
2223
+ hash: 3
2224
+ segments:
2225
+ - 2
2226
+ - 3
2227
+ - 0
2228
+ version: 2.3.0
2229
+ name: rspec
2230
+ version_requirements: *id140
2231
+ - !ruby/object:Gem::Dependency
2232
+ prerelease: false
2233
+ type: :development
2234
+ requirement: &id141 !ruby/object:Gem::Requirement
2235
+ none: false
2236
+ requirements:
2237
+ - - ~>
2238
+ - !ruby/object:Gem::Version
2239
+ hash: 7
2240
+ segments:
2241
+ - 0
2242
+ - 6
2243
+ - 0
2244
+ version: 0.6.0
2245
+ name: yard
2246
+ version_requirements: *id141
2247
+ - !ruby/object:Gem::Dependency
2248
+ prerelease: false
2249
+ type: :development
2250
+ requirement: &id142 !ruby/object:Gem::Requirement
2251
+ none: false
2252
+ requirements:
2253
+ - - ~>
2254
+ - !ruby/object:Gem::Version
2255
+ hash: 23
2256
+ segments:
2257
+ - 1
2258
+ - 0
2259
+ - 0
2260
+ version: 1.0.0
2261
+ name: bundler
2262
+ version_requirements: *id142
2263
+ - !ruby/object:Gem::Dependency
2264
+ prerelease: false
2265
+ type: :development
2266
+ requirement: &id143 !ruby/object:Gem::Requirement
2267
+ none: false
2268
+ requirements:
2269
+ - - ~>
2270
+ - !ruby/object:Gem::Version
2271
+ hash: 7
2272
+ segments:
2273
+ - 1
2274
+ - 5
2275
+ - 2
2276
+ version: 1.5.2
2277
+ name: jeweler
2278
+ version_requirements: *id143
2279
+ - !ruby/object:Gem::Dependency
2280
+ prerelease: false
2281
+ type: :development
2282
+ requirement: &id144 !ruby/object:Gem::Requirement
2283
+ none: false
2284
+ requirements:
2285
+ - - ">="
2286
+ - !ruby/object:Gem::Version
2287
+ hash: 3
2288
+ segments:
2289
+ - 0
2290
+ version: "0"
2291
+ name: rcov
2292
+ version_requirements: *id144
2293
+ - !ruby/object:Gem::Dependency
2294
+ prerelease: false
2295
+ type: :development
2296
+ requirement: &id145 !ruby/object:Gem::Requirement
2297
+ none: false
2298
+ requirements:
2299
+ - - "="
2300
+ - !ruby/object:Gem::Version
2301
+ hash: 5
2302
+ segments:
2303
+ - 1
2304
+ - 4
2305
+ - 1
2306
+ version: 1.4.1
2307
+ name: mongoid-rspec
2308
+ version_requirements: *id145
2309
+ - !ruby/object:Gem::Dependency
2310
+ prerelease: false
2311
+ type: :development
2312
+ requirement: &id146 !ruby/object:Gem::Requirement
2313
+ none: false
2314
+ requirements:
2315
+ - - "="
2316
+ - !ruby/object:Gem::Version
2317
+ hash: 15
2318
+ segments:
2319
+ - 0
2320
+ - 6
2321
+ - 4
2322
+ version: 0.6.4
2323
+ name: database_cleaner
2324
+ version_requirements: *id146
2325
+ - !ruby/object:Gem::Dependency
2326
+ prerelease: false
2327
+ type: :development
2328
+ requirement: &id147 !ruby/object:Gem::Requirement
2329
+ none: false
2330
+ requirements:
2331
+ - - ~>
2332
+ - !ruby/object:Gem::Version
2333
+ hash: 11
2334
+ segments:
2335
+ - 2
2336
+ - 1
2337
+ - 0
2338
+ version: 2.1.0
2339
+ name: bluecloth
2340
+ version_requirements: *id147
2341
+ - !ruby/object:Gem::Dependency
2342
+ prerelease: false
2343
+ type: :runtime
2344
+ requirement: &id148 !ruby/object:Gem::Requirement
2187
2345
  none: false
2188
2346
  requirements:
2189
2347
  - - "="
@@ -2195,11 +2353,11 @@ dependencies:
2195
2353
  - 8
2196
2354
  version: 0.0.8
2197
2355
  name: slingshot-rb
2198
- version_requirements: *id138
2356
+ version_requirements: *id148
2199
2357
  - !ruby/object:Gem::Dependency
2200
2358
  prerelease: false
2201
2359
  type: :runtime
2202
- requirement: &id139 !ruby/object:Gem::Requirement
2360
+ requirement: &id149 !ruby/object:Gem::Requirement
2203
2361
  none: false
2204
2362
  requirements:
2205
2363
  - - ~>
@@ -2211,11 +2369,11 @@ dependencies:
2211
2369
  - 1
2212
2370
  version: 2.0.1
2213
2371
  name: mongoid
2214
- version_requirements: *id139
2372
+ version_requirements: *id149
2215
2373
  - !ruby/object:Gem::Dependency
2216
2374
  prerelease: false
2217
2375
  type: :development
2218
- requirement: &id140 !ruby/object:Gem::Requirement
2376
+ requirement: &id150 !ruby/object:Gem::Requirement
2219
2377
  none: false
2220
2378
  requirements:
2221
2379
  - - ~>
@@ -2227,11 +2385,11 @@ dependencies:
2227
2385
  - 0
2228
2386
  version: 1.3.0
2229
2387
  name: bson
2230
- version_requirements: *id140
2388
+ version_requirements: *id150
2231
2389
  - !ruby/object:Gem::Dependency
2232
2390
  prerelease: false
2233
2391
  type: :development
2234
- requirement: &id141 !ruby/object:Gem::Requirement
2392
+ requirement: &id151 !ruby/object:Gem::Requirement
2235
2393
  none: false
2236
2394
  requirements:
2237
2395
  - - ~>
@@ -2243,11 +2401,11 @@ dependencies:
2243
2401
  - 0
2244
2402
  version: 1.3.0
2245
2403
  name: bson_ext
2246
- version_requirements: *id141
2404
+ version_requirements: *id151
2247
2405
  - !ruby/object:Gem::Dependency
2248
2406
  prerelease: false
2249
2407
  type: :development
2250
- requirement: &id142 !ruby/object:Gem::Requirement
2408
+ requirement: &id152 !ruby/object:Gem::Requirement
2251
2409
  none: false
2252
2410
  requirements:
2253
2411
  - - ~>
@@ -2259,11 +2417,11 @@ dependencies:
2259
2417
  - 0
2260
2418
  version: 2.3.0
2261
2419
  name: rspec
2262
- version_requirements: *id142
2420
+ version_requirements: *id152
2263
2421
  - !ruby/object:Gem::Dependency
2264
2422
  prerelease: false
2265
2423
  type: :development
2266
- requirement: &id143 !ruby/object:Gem::Requirement
2424
+ requirement: &id153 !ruby/object:Gem::Requirement
2267
2425
  none: false
2268
2426
  requirements:
2269
2427
  - - ~>
@@ -2275,11 +2433,11 @@ dependencies:
2275
2433
  - 0
2276
2434
  version: 0.6.0
2277
2435
  name: yard
2278
- version_requirements: *id143
2436
+ version_requirements: *id153
2279
2437
  - !ruby/object:Gem::Dependency
2280
2438
  prerelease: false
2281
2439
  type: :development
2282
- requirement: &id144 !ruby/object:Gem::Requirement
2440
+ requirement: &id154 !ruby/object:Gem::Requirement
2283
2441
  none: false
2284
2442
  requirements:
2285
2443
  - - ~>
@@ -2291,11 +2449,11 @@ dependencies:
2291
2449
  - 0
2292
2450
  version: 1.0.0
2293
2451
  name: bundler
2294
- version_requirements: *id144
2452
+ version_requirements: *id154
2295
2453
  - !ruby/object:Gem::Dependency
2296
2454
  prerelease: false
2297
2455
  type: :development
2298
- requirement: &id145 !ruby/object:Gem::Requirement
2456
+ requirement: &id155 !ruby/object:Gem::Requirement
2299
2457
  none: false
2300
2458
  requirements:
2301
2459
  - - ~>
@@ -2307,11 +2465,11 @@ dependencies:
2307
2465
  - 2
2308
2466
  version: 1.5.2
2309
2467
  name: jeweler
2310
- version_requirements: *id145
2468
+ version_requirements: *id155
2311
2469
  - !ruby/object:Gem::Dependency
2312
2470
  prerelease: false
2313
2471
  type: :development
2314
- requirement: &id146 !ruby/object:Gem::Requirement
2472
+ requirement: &id156 !ruby/object:Gem::Requirement
2315
2473
  none: false
2316
2474
  requirements:
2317
2475
  - - ">="
@@ -2321,11 +2479,11 @@ dependencies:
2321
2479
  - 0
2322
2480
  version: "0"
2323
2481
  name: rcov
2324
- version_requirements: *id146
2482
+ version_requirements: *id156
2325
2483
  - !ruby/object:Gem::Dependency
2326
2484
  prerelease: false
2327
2485
  type: :development
2328
- requirement: &id147 !ruby/object:Gem::Requirement
2486
+ requirement: &id157 !ruby/object:Gem::Requirement
2329
2487
  none: false
2330
2488
  requirements:
2331
2489
  - - "="
@@ -2337,11 +2495,11 @@ dependencies:
2337
2495
  - 1
2338
2496
  version: 1.4.1
2339
2497
  name: mongoid-rspec
2340
- version_requirements: *id147
2498
+ version_requirements: *id157
2341
2499
  - !ruby/object:Gem::Dependency
2342
2500
  prerelease: false
2343
2501
  type: :development
2344
- requirement: &id148 !ruby/object:Gem::Requirement
2502
+ requirement: &id158 !ruby/object:Gem::Requirement
2345
2503
  none: false
2346
2504
  requirements:
2347
2505
  - - "="
@@ -2353,11 +2511,11 @@ dependencies:
2353
2511
  - 4
2354
2512
  version: 0.6.4
2355
2513
  name: database_cleaner
2356
- version_requirements: *id148
2514
+ version_requirements: *id158
2357
2515
  - !ruby/object:Gem::Dependency
2358
2516
  prerelease: false
2359
2517
  type: :development
2360
- requirement: &id149 !ruby/object:Gem::Requirement
2518
+ requirement: &id159 !ruby/object:Gem::Requirement
2361
2519
  none: false
2362
2520
  requirements:
2363
2521
  - - ~>
@@ -2369,7 +2527,7 @@ dependencies:
2369
2527
  - 0
2370
2528
  version: 2.1.0
2371
2529
  name: bluecloth
2372
- version_requirements: *id149
2530
+ version_requirements: *id159
2373
2531
  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 "
2374
2532
  email: omar.mekky@mashsolvents.com
2375
2533
  executables: []