mongoid 6.4.8 → 7.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Rakefile +0 -26
  5. data/lib/config/locales/en.yml +17 -21
  6. data/lib/mongoid.rb +2 -2
  7. data/lib/mongoid/association.rb +150 -0
  8. data/lib/mongoid/association/accessors.rb +339 -0
  9. data/lib/mongoid/{relations/binding.rb → association/bindable.rb} +32 -52
  10. data/lib/mongoid/association/builders.rb +92 -0
  11. data/lib/mongoid/{relations/constraint.rb → association/constrainable.rb} +11 -22
  12. data/lib/mongoid/association/depending.rb +116 -0
  13. data/lib/mongoid/{relations/eager.rb → association/eager_loadable.rb} +11 -11
  14. data/lib/mongoid/association/embedded.rb +4 -0
  15. data/lib/mongoid/{relations → association}/embedded/batchable.rb +27 -53
  16. data/lib/mongoid/association/embedded/cyclic.rb +109 -0
  17. data/lib/mongoid/association/embedded/embedded_in.rb +154 -0
  18. data/lib/mongoid/association/embedded/embedded_in/binding.rb +56 -0
  19. data/lib/mongoid/{relations/builders/embedded/in.rb → association/embedded/embedded_in/buildable.rb} +12 -6
  20. data/lib/mongoid/association/embedded/embedded_in/proxy.rb +121 -0
  21. data/lib/mongoid/association/embedded/embeds_many.rb +210 -0
  22. data/lib/mongoid/{relations/bindings/embedded/many.rb → association/embedded/embeds_many/binding.rb} +11 -9
  23. data/lib/mongoid/{relations/builders/embedded/many.rb → association/embedded/embeds_many/buildable.rb} +13 -7
  24. data/lib/mongoid/association/embedded/embeds_many/proxy.rb +529 -0
  25. data/lib/mongoid/association/embedded/embeds_one.rb +173 -0
  26. data/lib/mongoid/{relations/bindings/embedded/one.rb → association/embedded/embeds_one/binding.rb} +12 -10
  27. data/lib/mongoid/{relations/builders/embedded/one.rb → association/embedded/embeds_one/buildable.rb} +13 -7
  28. data/lib/mongoid/association/embedded/embeds_one/proxy.rb +130 -0
  29. data/lib/mongoid/association/macros.rb +204 -0
  30. data/lib/mongoid/{relations → association}/many.rb +18 -52
  31. data/lib/mongoid/{relations → association}/marshalable.rb +6 -4
  32. data/lib/mongoid/association/nested.rb +15 -0
  33. data/lib/mongoid/association/nested/many.rb +200 -0
  34. data/lib/mongoid/association/nested/nested_buildable.rb +72 -0
  35. data/lib/mongoid/association/nested/one.rb +127 -0
  36. data/lib/mongoid/{relations → association}/one.rb +6 -6
  37. data/lib/mongoid/association/options.rb +152 -0
  38. data/lib/mongoid/{relations → association}/proxy.rb +31 -58
  39. data/lib/mongoid/association/referenced.rb +7 -0
  40. data/lib/mongoid/association/referenced/auto_save.rb +79 -0
  41. data/lib/mongoid/association/referenced/belongs_to.rb +248 -0
  42. data/lib/mongoid/association/referenced/belongs_to/binding.rb +87 -0
  43. data/lib/mongoid/association/referenced/belongs_to/buildable.rb +46 -0
  44. data/lib/mongoid/association/referenced/belongs_to/eager.rb +36 -0
  45. data/lib/mongoid/association/referenced/belongs_to/proxy.rb +136 -0
  46. data/lib/mongoid/association/referenced/counter_cache.rb +163 -0
  47. data/lib/mongoid/association/referenced/eager.rb +159 -0
  48. data/lib/mongoid/association/referenced/has_and_belongs_to_many.rb +290 -0
  49. data/lib/mongoid/association/referenced/has_and_belongs_to_many/binding.rb +71 -0
  50. data/lib/mongoid/association/referenced/has_and_belongs_to_many/buildable.rb +40 -0
  51. data/lib/mongoid/association/referenced/has_and_belongs_to_many/eager.rb +52 -0
  52. data/lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb +310 -0
  53. data/lib/mongoid/association/referenced/has_many.rb +273 -0
  54. data/lib/mongoid/{relations/bindings/referenced/many.rb → association/referenced/has_many/binding.rb} +6 -5
  55. data/lib/mongoid/association/referenced/has_many/buildable.rb +38 -0
  56. data/lib/mongoid/association/referenced/has_many/eager.rb +43 -0
  57. data/lib/mongoid/association/referenced/has_many/enumerable.rb +479 -0
  58. data/lib/mongoid/association/referenced/has_many/proxy.rb +577 -0
  59. data/lib/mongoid/association/referenced/has_one.rb +204 -0
  60. data/lib/mongoid/{relations/bindings/referenced/one.rb → association/referenced/has_one/binding.rb} +11 -8
  61. data/lib/mongoid/association/referenced/has_one/buildable.rb +60 -0
  62. data/lib/mongoid/association/referenced/has_one/eager.rb +35 -0
  63. data/lib/mongoid/{relations/builders/nested_attributes/one.rb → association/referenced/has_one/nested_builder.rb} +9 -9
  64. data/lib/mongoid/association/referenced/has_one/proxy.rb +113 -0
  65. data/lib/mongoid/association/referenced/syncable.rb +170 -0
  66. data/lib/mongoid/{relations → association}/reflections.rb +21 -17
  67. data/lib/mongoid/association/relatable.rb +415 -0
  68. data/lib/mongoid/association/touchable.rb +97 -0
  69. data/lib/mongoid/atomic.rb +6 -6
  70. data/lib/mongoid/atomic/modifiers.rb +8 -12
  71. data/lib/mongoid/atomic/paths/embedded/many.rb +1 -1
  72. data/lib/mongoid/atomic/paths/embedded/one.rb +1 -1
  73. data/lib/mongoid/attributes.rb +2 -1
  74. data/lib/mongoid/attributes/nested.rb +10 -10
  75. data/lib/mongoid/attributes/processing.rb +2 -2
  76. data/lib/mongoid/attributes/readonly.rb +2 -4
  77. data/lib/mongoid/clients.rb +0 -2
  78. data/lib/mongoid/clients/options.rb +1 -1
  79. data/lib/mongoid/clients/storage_options.rb +0 -1
  80. data/lib/mongoid/composable.rb +3 -4
  81. data/lib/mongoid/config.rb +1 -0
  82. data/lib/mongoid/contextual/aggregable/mongo.rb +1 -1
  83. data/lib/mongoid/contextual/atomic.rb +3 -6
  84. data/lib/mongoid/contextual/map_reduce.rb +3 -7
  85. data/lib/mongoid/contextual/memory.rb +5 -10
  86. data/lib/mongoid/contextual/mongo.rb +10 -27
  87. data/lib/mongoid/copyable.rb +6 -6
  88. data/lib/mongoid/criteria.rb +1 -2
  89. data/lib/mongoid/criteria/includable.rb +14 -14
  90. data/lib/mongoid/criteria/modifiable.rb +8 -14
  91. data/lib/mongoid/criteria/queryable/mergeable.rb +1 -3
  92. data/lib/mongoid/criteria/queryable/pipeline.rb +10 -5
  93. data/lib/mongoid/criteria/queryable/selectable.rb +10 -34
  94. data/lib/mongoid/document.rb +6 -6
  95. data/lib/mongoid/errors.rb +3 -1
  96. data/lib/mongoid/errors/invalid_dependent_strategy.rb +32 -0
  97. data/lib/mongoid/errors/invalid_relation_option.rb +29 -0
  98. data/lib/mongoid/errors/unknown_model.rb +25 -0
  99. data/lib/mongoid/extensions/array.rb +5 -5
  100. data/lib/mongoid/extensions/big_decimal.rb +1 -1
  101. data/lib/mongoid/extensions/object.rb +4 -4
  102. data/lib/mongoid/extensions/range.rb +1 -0
  103. data/lib/mongoid/extensions/regexp.rb +0 -1
  104. data/lib/mongoid/extensions/string.rb +1 -3
  105. data/lib/mongoid/factory.rb +4 -3
  106. data/lib/mongoid/fields.rb +1 -1
  107. data/lib/mongoid/fields/foreign_key.rb +5 -5
  108. data/lib/mongoid/fields/standard.rb +2 -14
  109. data/lib/mongoid/fields/validators/macro.rb +1 -1
  110. data/lib/mongoid/indexable.rb +8 -5
  111. data/lib/mongoid/interceptable.rb +5 -5
  112. data/lib/mongoid/matchable.rb +0 -3
  113. data/lib/mongoid/persistable.rb +4 -5
  114. data/lib/mongoid/persistable/creatable.rb +2 -4
  115. data/lib/mongoid/persistable/deletable.rb +9 -10
  116. data/lib/mongoid/persistable/destroyable.rb +5 -1
  117. data/lib/mongoid/persistable/incrementable.rb +1 -1
  118. data/lib/mongoid/persistable/logical.rb +1 -1
  119. data/lib/mongoid/persistable/settable.rb +5 -5
  120. data/lib/mongoid/persistable/updatable.rb +2 -2
  121. data/lib/mongoid/persistable/upsertable.rb +1 -2
  122. data/lib/mongoid/persistence_context.rb +4 -9
  123. data/lib/mongoid/query_cache.rb +18 -65
  124. data/lib/mongoid/railtie.rb +0 -17
  125. data/lib/mongoid/reloadable.rb +1 -1
  126. data/lib/mongoid/scopable.rb +3 -3
  127. data/lib/mongoid/serializable.rb +3 -3
  128. data/lib/mongoid/tasks/database.rb +2 -3
  129. data/lib/mongoid/threaded.rb +0 -74
  130. data/lib/mongoid/traversable.rb +2 -2
  131. data/lib/mongoid/validatable.rb +8 -8
  132. data/lib/mongoid/validatable/presence.rb +2 -2
  133. data/lib/mongoid/validatable/uniqueness.rb +4 -4
  134. data/lib/mongoid/version.rb +1 -1
  135. data/lib/rails/generators/mongoid/config/templates/mongoid.yml +3 -4
  136. data/spec/app/models/animal.rb +2 -1
  137. data/spec/app/models/band.rb +0 -1
  138. data/spec/app/models/bomb.rb +1 -1
  139. data/spec/app/models/message.rb +1 -1
  140. data/spec/app/models/person.rb +5 -2
  141. data/spec/app/models/vertex.rb +6 -0
  142. data/spec/app/models/wiki_page.rb +1 -1
  143. data/spec/config/mongoid.yml +1 -0
  144. data/spec/mongoid/{relations → association}/accessors_spec.rb +1 -1
  145. data/spec/mongoid/{relations → association}/auto_save_spec.rb +60 -12
  146. data/spec/mongoid/{relations → association}/builders_spec.rb +1 -1
  147. data/spec/mongoid/association/constrainable_spec.rb +115 -0
  148. data/spec/mongoid/{relations → association}/counter_cache_spec.rb +1 -1
  149. data/spec/mongoid/association/depending_spec.rb +613 -0
  150. data/spec/mongoid/{relations → association}/eager_spec.rb +12 -12
  151. data/spec/mongoid/{relations → association/embedded}/cyclic_spec.rb +1 -1
  152. data/spec/mongoid/{relations → association}/embedded/dirty_spec.rb +0 -0
  153. data/spec/mongoid/{relations/bindings/embedded/in_spec.rb → association/embedded/embedded_in/binding_spec.rb} +13 -13
  154. data/spec/mongoid/{relations/builders/embedded/in_spec.rb → association/embedded/embedded_in/buildable_spec.rb} +9 -9
  155. data/spec/mongoid/{relations/embedded/in_spec.rb → association/embedded/embedded_in/proxy_spec.rb} +5 -77
  156. data/spec/mongoid/association/embedded/embedded_in_spec.rb +843 -0
  157. data/spec/mongoid/{relations/bindings/embedded/many_spec.rb → association/embedded/embeds_many/binding_spec.rb} +3 -3
  158. data/spec/mongoid/{relations/builders/embedded/many_spec.rb → association/embedded/embeds_many/buildable_spec.rb} +17 -45
  159. data/spec/mongoid/{relations/embedded/many_spec.rb → association/embedded/embeds_many/proxy_spec.rb} +140 -428
  160. data/spec/mongoid/association/embedded/embeds_many_spec.rb +852 -0
  161. data/spec/mongoid/{relations/bindings/embedded/one_spec.rb → association/embedded/embeds_one/binding_spec.rb} +4 -4
  162. data/spec/mongoid/{relations/builders/embedded/one_spec.rb → association/embedded/embeds_one/buildable_spec.rb} +14 -34
  163. data/spec/mongoid/{relations/embedded/one_spec.rb → association/embedded/embeds_one/proxy_spec.rb} +39 -84
  164. data/spec/mongoid/association/embedded/embeds_one_spec.rb +908 -0
  165. data/spec/mongoid/{relations → association}/macros_spec.rb +148 -93
  166. data/spec/mongoid/{relations/builders/nested_attributes → association/nested}/many_spec.rb +16 -19
  167. data/spec/mongoid/{relations/builders/nested_attributes → association/nested}/one_spec.rb +17 -20
  168. data/spec/mongoid/association/options_spec.rb +1321 -0
  169. data/spec/mongoid/{relations → association}/polymorphic_spec.rb +7 -34
  170. data/spec/mongoid/{relations/bindings/referenced/in_spec.rb → association/referenced/belongs_to/binding_spec.rb} +7 -7
  171. data/spec/mongoid/{relations/builders/referenced/in_spec.rb → association/referenced/belongs_to/buildable_spec.rb} +46 -79
  172. data/spec/mongoid/{relations/eager/belongs_to_spec.rb → association/referenced/belongs_to/eager_spec.rb} +9 -9
  173. data/spec/mongoid/{relations/referenced/in_spec.rb → association/referenced/belongs_to/proxy_spec.rb} +57 -91
  174. data/spec/mongoid/association/referenced/belongs_to_spec.rb +1963 -0
  175. data/spec/mongoid/{relations/bindings/referenced/many_to_many_spec.rb → association/referenced/has_and_belongs_to_many/binding_spec.rb} +5 -5
  176. data/spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb +121 -0
  177. data/spec/mongoid/{relations/eager/has_and_belongs_to_many_spec.rb → association/referenced/has_and_belongs_to_many/eager_spec.rb} +5 -5
  178. data/spec/mongoid/{relations/referenced/many_to_many_spec.rb → association/referenced/has_and_belongs_to_many/proxy_spec.rb} +107 -98
  179. data/spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb +1027 -0
  180. data/spec/mongoid/{relations/bindings/referenced/many_spec.rb → association/referenced/has_many/binding_spec.rb} +5 -5
  181. data/spec/mongoid/association/referenced/has_many/buildable_spec.rb +119 -0
  182. data/spec/mongoid/{relations/eager/has_many_spec.rb → association/referenced/has_many/eager_spec.rb} +11 -11
  183. data/spec/mongoid/{relations/targets → association/referenced/has_many}/enumerable_spec.rb +1 -109
  184. data/spec/mongoid/{relations/referenced/many_spec.rb → association/referenced/has_many/proxy_spec.rb} +28 -93
  185. data/spec/mongoid/association/referenced/has_many_spec.rb +1225 -0
  186. data/spec/mongoid/{relations/bindings/referenced/one_spec.rb → association/referenced/has_one/binding_spec.rb} +4 -4
  187. data/spec/mongoid/association/referenced/has_one/buildable_spec.rb +113 -0
  188. data/spec/mongoid/{relations/eager/has_one_spec.rb → association/referenced/has_one/eager_spec.rb} +10 -10
  189. data/spec/mongoid/{relations/referenced/one_spec.rb → association/referenced/has_one/proxy_spec.rb} +9 -109
  190. data/spec/mongoid/association/referenced/has_one_spec.rb +1244 -0
  191. data/spec/mongoid/{relations → association}/reflections_spec.rb +1 -12
  192. data/spec/mongoid/{relations/synchronization_spec.rb → association/syncable_spec.rb} +4 -2
  193. data/spec/mongoid/{relations → association}/touchable_spec.rb +19 -1
  194. data/spec/mongoid/{relations_spec.rb → association_spec.rb} +1 -1
  195. data/spec/mongoid/atomic/modifiers_spec.rb +17 -17
  196. data/spec/mongoid/atomic_spec.rb +17 -17
  197. data/spec/mongoid/attributes/nested_spec.rb +14 -12
  198. data/spec/mongoid/attributes/readonly_spec.rb +80 -125
  199. data/spec/mongoid/clients/factory_spec.rb +28 -52
  200. data/spec/mongoid/clients/options_spec.rb +65 -69
  201. data/spec/mongoid/config_spec.rb +24 -0
  202. data/spec/mongoid/contextual/geo_near_spec.rb +0 -1
  203. data/spec/mongoid/contextual/mongo_spec.rb +4 -112
  204. data/spec/mongoid/criteria/modifiable_spec.rb +183 -60
  205. data/spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb +3 -3
  206. data/spec/mongoid/criteria/queryable/pipeline_spec.rb +12 -0
  207. data/spec/mongoid/criteria/queryable/selectable_spec.rb +6 -74
  208. data/spec/mongoid/criteria/queryable/selector_spec.rb +2 -2
  209. data/spec/mongoid/criteria/scopable_spec.rb +0 -81
  210. data/spec/mongoid/criteria_spec.rb +16 -19
  211. data/spec/mongoid/document_spec.rb +2 -56
  212. data/spec/mongoid/extensions/array_spec.rb +11 -15
  213. data/spec/mongoid/extensions/big_decimal_spec.rb +9 -9
  214. data/spec/mongoid/extensions/object_spec.rb +7 -11
  215. data/spec/mongoid/extensions/range_spec.rb +7 -0
  216. data/spec/mongoid/extensions/regexp_spec.rb +0 -23
  217. data/spec/mongoid/extensions/string_spec.rb +7 -35
  218. data/spec/mongoid/factory_spec.rb +18 -11
  219. data/spec/mongoid/fields/foreign_key_spec.rb +24 -32
  220. data/spec/mongoid/fields_spec.rb +2 -2
  221. data/spec/mongoid/findable_spec.rb +1 -1
  222. data/spec/mongoid/indexable_spec.rb +18 -8
  223. data/spec/mongoid/interceptable_spec.rb +21 -2
  224. data/spec/mongoid/matchable_spec.rb +1 -26
  225. data/spec/mongoid/persistable/deletable_spec.rb +0 -19
  226. data/spec/mongoid/persistable/destroyable_spec.rb +0 -19
  227. data/spec/mongoid/persistable/incrementable_spec.rb +6 -6
  228. data/spec/mongoid/persistable/savable_spec.rb +3 -3
  229. data/spec/mongoid/persistable/settable_spec.rb +1 -35
  230. data/spec/mongoid/persistable/updatable_spec.rb +2 -2
  231. data/spec/mongoid/persistable_spec.rb +16 -16
  232. data/spec/mongoid/persistence_context_spec.rb +0 -14
  233. data/spec/mongoid/positional_spec.rb +10 -10
  234. data/spec/mongoid/query_cache_spec.rb +18 -87
  235. data/spec/mongoid/relations/proxy_spec.rb +124 -124
  236. data/spec/mongoid/scopable_spec.rb +0 -13
  237. data/spec/mongoid/threaded_spec.rb +0 -68
  238. data/spec/mongoid/validatable/associated_spec.rb +1 -1
  239. data/spec/mongoid/validatable/presence_spec.rb +7 -6
  240. data/spec/mongoid/validatable_spec.rb +1 -1
  241. data/spec/spec_helper.rb +7 -83
  242. metadata +586 -611
  243. metadata.gz.sig +2 -5
  244. data/lib/mongoid/clients/sessions.rb +0 -113
  245. data/lib/mongoid/errors/invalid_session_use.rb +0 -24
  246. data/lib/mongoid/matchable/nor.rb +0 -37
  247. data/lib/mongoid/railties/controller_runtime.rb +0 -86
  248. data/lib/mongoid/relations.rb +0 -148
  249. data/lib/mongoid/relations/accessors.rb +0 -267
  250. data/lib/mongoid/relations/auto_save.rb +0 -94
  251. data/lib/mongoid/relations/bindings.rb +0 -9
  252. data/lib/mongoid/relations/bindings/embedded/in.rb +0 -59
  253. data/lib/mongoid/relations/bindings/referenced/in.rb +0 -65
  254. data/lib/mongoid/relations/bindings/referenced/many_to_many.rb +0 -70
  255. data/lib/mongoid/relations/builder.rb +0 -57
  256. data/lib/mongoid/relations/builders.rb +0 -106
  257. data/lib/mongoid/relations/builders/nested_attributes/many.rb +0 -199
  258. data/lib/mongoid/relations/builders/referenced/in.rb +0 -26
  259. data/lib/mongoid/relations/builders/referenced/many.rb +0 -26
  260. data/lib/mongoid/relations/builders/referenced/many_to_many.rb +0 -39
  261. data/lib/mongoid/relations/builders/referenced/one.rb +0 -26
  262. data/lib/mongoid/relations/cascading.rb +0 -56
  263. data/lib/mongoid/relations/cascading/delete.rb +0 -44
  264. data/lib/mongoid/relations/cascading/destroy.rb +0 -43
  265. data/lib/mongoid/relations/cascading/nullify.rb +0 -35
  266. data/lib/mongoid/relations/cascading/restrict.rb +0 -39
  267. data/lib/mongoid/relations/conversions.rb +0 -34
  268. data/lib/mongoid/relations/counter_cache.rb +0 -160
  269. data/lib/mongoid/relations/cyclic.rb +0 -107
  270. data/lib/mongoid/relations/eager/base.rb +0 -153
  271. data/lib/mongoid/relations/eager/belongs_to.rb +0 -31
  272. data/lib/mongoid/relations/eager/has_and_belongs_to_many.rb +0 -47
  273. data/lib/mongoid/relations/eager/has_many.rb +0 -38
  274. data/lib/mongoid/relations/eager/has_one.rb +0 -30
  275. data/lib/mongoid/relations/embedded/in.rb +0 -241
  276. data/lib/mongoid/relations/embedded/many.rb +0 -683
  277. data/lib/mongoid/relations/embedded/one.rb +0 -235
  278. data/lib/mongoid/relations/macros.rb +0 -367
  279. data/lib/mongoid/relations/metadata.rb +0 -1179
  280. data/lib/mongoid/relations/nested_builder.rb +0 -74
  281. data/lib/mongoid/relations/options.rb +0 -49
  282. data/lib/mongoid/relations/polymorphic.rb +0 -39
  283. data/lib/mongoid/relations/referenced/in.rb +0 -304
  284. data/lib/mongoid/relations/referenced/many.rb +0 -812
  285. data/lib/mongoid/relations/referenced/many_to_many.rb +0 -479
  286. data/lib/mongoid/relations/referenced/one.rb +0 -290
  287. data/lib/mongoid/relations/synchronization.rb +0 -169
  288. data/lib/mongoid/relations/targets.rb +0 -2
  289. data/lib/mongoid/relations/targets/enumerable.rb +0 -493
  290. data/lib/mongoid/relations/touchable.rb +0 -97
  291. data/spec/app/models/array_field.rb +0 -7
  292. data/spec/app/models/delegating_patient.rb +0 -16
  293. data/spec/integration/document_spec.rb +0 -22
  294. data/spec/mongoid/clients/sessions_spec.rb +0 -334
  295. data/spec/mongoid/fields/internal/foreign_keys/array_spec.rb +0 -184
  296. data/spec/mongoid/fields/internal/foreign_keys/object_spec.rb +0 -201
  297. data/spec/mongoid/matchable/nor_spec.rb +0 -209
  298. data/spec/mongoid/relations/builders/referenced/many_spec.rb +0 -137
  299. data/spec/mongoid/relations/builders/referenced/many_to_many_spec.rb +0 -178
  300. data/spec/mongoid/relations/builders/referenced/one_spec.rb +0 -111
  301. data/spec/mongoid/relations/cascading/delete_spec.rb +0 -101
  302. data/spec/mongoid/relations/cascading/destroy_spec.rb +0 -47
  303. data/spec/mongoid/relations/cascading/nullify_spec.rb +0 -32
  304. data/spec/mongoid/relations/cascading/restrict_spec.rb +0 -68
  305. data/spec/mongoid/relations/cascading_spec.rb +0 -355
  306. data/spec/mongoid/relations/constraint_spec.rb +0 -75
  307. data/spec/mongoid/relations/conversions_spec.rb +0 -128
  308. data/spec/mongoid/relations/metadata_spec.rb +0 -1985
  309. data/spec/mongoid/relations/options_spec.rb +0 -35
  310. data/spec/rails/controller_extension/controller_runtime_spec.rb +0 -110
  311. data/spec/support/cluster_config.rb +0 -158
  312. data/spec/support/constraints.rb +0 -101
  313. data/spec/support/macros.rb +0 -20
  314. data/spec/support/session_registry.rb +0 -50
  315. data/spec/support/spec_config.rb +0 -42
@@ -1130,19 +1130,6 @@ describe Mongoid::Scopable do
1130
1130
  it "sets the threading options" do
1131
1131
  Band.without_default_scope do
1132
1132
  expect(Mongoid::Threaded).to be_executing(:without_default_scope)
1133
- expect(Mongoid::Threaded.without_default_scope?(Band)).to be(true)
1134
- end
1135
- end
1136
-
1137
- it "suppresses default scope on the given model within the given block" do
1138
- Appointment.without_default_scope do
1139
- expect(Appointment.all.selector).to be_empty
1140
- end
1141
- end
1142
-
1143
- it "does not affect other models' default scopes within the given block" do
1144
- Appointment.without_default_scope do
1145
- expect(Audio.all.selector).not_to be_empty
1146
1133
  end
1147
1134
  end
1148
1135
  end
@@ -233,72 +233,4 @@ describe Mongoid::Threaded do
233
233
  end
234
234
  end
235
235
  end
236
-
237
- describe "#begin_without_default_scope" do
238
-
239
- let(:klass) do
240
- Appointment
241
- end
242
-
243
- after do
244
- described_class.exit_without_default_scope(klass)
245
- end
246
-
247
- it "adds the given class to the without_default_scope stack" do
248
- described_class.begin_without_default_scope(klass)
249
-
250
- expect(described_class.stack(:without_default_scope)).to include(klass)
251
- end
252
- end
253
-
254
- describe "#exit_without_default_scope" do
255
-
256
- let(:klass) do
257
- Appointment
258
- end
259
-
260
- before do
261
- described_class.begin_without_default_scope(klass)
262
- end
263
-
264
- it "removes the given class from the without_default_scope stack" do
265
- described_class.exit_without_default_scope(klass)
266
-
267
- expect(described_class.stack(:without_default_scope)).not_to include(klass)
268
- end
269
- end
270
-
271
- describe "#without_default_scope?" do
272
-
273
- let(:klass) do
274
- Appointment
275
- end
276
-
277
- context "when klass has begun without_default_scope" do
278
-
279
- before do
280
- described_class.begin_without_default_scope(klass)
281
- end
282
-
283
- after do
284
- described_class.exit_without_default_scope(klass)
285
- end
286
-
287
- it "returns true" do
288
- expect(described_class.without_default_scope?(klass)).to be(true)
289
- end
290
- end
291
-
292
- context "when klass has exited without_default_scope" do
293
-
294
- before do
295
- described_class.begin_without_default_scope(klass)
296
- described_class.exit_without_default_scope(klass)
297
- end
298
-
299
- it "returns false" do
300
- expect(described_class.without_default_scope?(klass)).to be(false)
301
- end
302
- end
303
- end
304
236
  end
@@ -171,7 +171,7 @@ describe Mongoid::Validatable::AssociatedValidator do
171
171
  end
172
172
  end
173
173
 
174
- context "when the assocation has all valid documents" do
174
+ context "when the association has all valid documents" do
175
175
 
176
176
  let(:associated) do
177
177
  double(valid?: true, flagged_for_destroy?: false)
@@ -211,13 +211,14 @@ describe Mongoid::Validatable::PresenceValidator do
211
211
 
212
212
  context "when the relation is a has one" do
213
213
 
214
- before do
214
+ around do |example|
215
+ original_relations = Person.relations
216
+ Person.has_one :game, autosave: true
215
217
  Person.validates :game, presence: true
216
- end
217
-
218
- after do
218
+ example.run
219
219
  Person.reset_callbacks(:save)
220
220
  Person.reset_callbacks(:validate)
221
+ Person.relations = original_relations
221
222
  end
222
223
 
223
224
  context "when the relation is new" do
@@ -249,7 +250,7 @@ describe Mongoid::Validatable::PresenceValidator do
249
250
  context "when the relation is a has one and autosave is false" do
250
251
 
251
252
  before do
252
- Person.relations["game"][:autosave] = false
253
+ Person.relations["game"].options[:autosave] = false
253
254
  Person.validates :game, presence: true
254
255
  end
255
256
 
@@ -258,7 +259,7 @@ describe Mongoid::Validatable::PresenceValidator do
258
259
  end
259
260
 
260
261
  it "does not change autosave on the relation" do
261
- expect(Person.relations["game"][:autosave]).to be false
262
+ expect(Person.relations["game"].autosave?).to be false
262
263
  end
263
264
 
264
265
  context "when the relation is new" do
@@ -34,7 +34,7 @@ describe Mongoid::Validatable do
34
34
  end
35
35
 
36
36
  let(:documents) do
37
- Mongoid::Relations::Targets::Enumerable.new([ address ])
37
+ Mongoid::Association::Referenced::HasMany::Targets::Enumerable.new([ address ])
38
38
  end
39
39
 
40
40
  before do
@@ -34,11 +34,6 @@ end
34
34
 
35
35
  require 'support/authorization'
36
36
  require 'support/expectations'
37
- require 'support/macros'
38
- require 'support/spec_config'
39
- require 'support/cluster_config'
40
- require 'support/constraints'
41
- require 'support/session_registry'
42
37
 
43
38
  # Give MongoDB time to start up on the travis ci environment.
44
39
  if (ENV['CI'] == 'travis' || ENV['CI'] == 'evergreen')
@@ -62,6 +57,7 @@ CONFIG = {
62
57
  hosts: [ "#{HOST}:#{PORT}" ],
63
58
  options: {
64
59
  server_selection_timeout: 0.5,
60
+ wait_queue_timeout: 5,
65
61
  max_pool_size: 5,
66
62
  heartbeat_frequency: 180,
67
63
  user: MONGOID_ROOT_USER.name,
@@ -92,11 +88,6 @@ def testing_locally?
92
88
  !(ENV['CI'] == 'travis')
93
89
  end
94
90
 
95
- def array_filters_supported?
96
- Mongoid::Clients.default.cluster.next_primary.features.array_filters_enabled?
97
- end
98
- alias :sessions_supported? :array_filters_supported?
99
-
100
91
  # Set the database that the spec suite connects to.
101
92
  Mongoid.configure do |config|
102
93
  config.load_configuration(CONFIG)
@@ -132,13 +123,8 @@ end
132
123
  I18n.config.enforce_available_locales = false
133
124
 
134
125
  RSpec.configure do |config|
135
- config.expect_with(:rspec) do |c|
136
- c.syntax = [:should, :expect]
137
- end
138
-
139
126
  config.raise_errors_for_deprecations!
140
127
  config.include(Mongoid::Expectations)
141
- config.extend(Constraints)
142
128
 
143
129
  config.before(:suite) do
144
130
  client = Mongo::Client.new(["#{HOST}:#{PORT}"])
@@ -149,79 +135,17 @@ RSpec.configure do |config|
149
135
  client.database.users.create(MONGOID_ROOT_USER)
150
136
  rescue Exception => e
151
137
  end
138
+ Mongoid.purge!
152
139
  end
153
140
 
154
141
  # Drop all collections and clear the identity map before each spec.
155
142
  config.before(:each) do
156
- Mongoid.purge!
157
- end
158
- end
159
-
160
- # A subscriber to be used with the Ruby driver for testing.
161
- #
162
- # @since 6.4.0
163
- class EventSubscriber
164
-
165
- # The started events.
166
- #
167
- # @since 6.4.0
168
- attr_reader :started_events
169
-
170
- # The succeeded events.
171
- #
172
- # @since 6.4.0
173
- attr_reader :succeeded_events
174
-
175
- # The failed events.
176
- #
177
- # @since 6.4.0
178
- attr_reader :failed_events
179
-
180
- # Create the test event subscriber.
181
- #
182
- # @example Create the subscriber
183
- # EventSubscriber.new
184
- #
185
- # @since 6.4.0
186
- def initialize
187
- @started_events = []
188
- @succeeded_events = []
189
- @failed_events = []
190
- end
191
-
192
- # Cache the succeeded event.
193
- #
194
- # @param [ Event ] event The event.
195
- #
196
- # @since 6.4.0
197
- def succeeded(event)
198
- @succeeded_events.push(event)
199
- end
200
-
201
- # Cache the started event.
202
- #
203
- # @param [ Event ] event The event.
204
- #
205
- # @since 6.4.0
206
- def started(event)
207
- @started_events.push(event)
208
- end
209
-
210
- # Cache the failed event.
211
- #
212
- # @param [ Event ] event The event.
213
- #
214
- # @since 6.4.0
215
- def failed(event)
216
- @failed_events.push(event)
143
+ Mongoid.default_client.collections.each do |coll|
144
+ coll.delete_many
145
+ end
217
146
  end
218
147
 
219
- # Clear all cached events.
220
- #
221
- # @since 6.4.0
222
- def clear_events!
223
- @started_events = []
224
- @succeeded_events = []
225
- @failed_events = []
148
+ config.after(:suite) do
149
+ Mongoid.purge!
226
150
  end
227
151
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.8
4
+ version: 7.0.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durran Jordan
@@ -10,54 +10,49 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDDBtkcml2
14
- ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMjAwMTIzMTkzNjAxWhcNMjEwMTIy
15
- MTkzNjAxWjAmMSQwIgYDVQQDDBtkcml2ZXItcnVieS9EQz0xMGdlbi9EQz1jb20w
16
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDRXUgGvH0ZtWwDPc2umdHw
17
- B+INNm6jNTRp8PMyUKxPzxaxX2OiBQk9gLC3zsK9ZmlZu4lNfpHVSCEPoiP/fhPg
18
- Kyfq2xld3Qz0Pki5d5i0/r14343MTKiNiFulLlbbdlN0cXeEFNJHUycZnD2LOXwz
19
- egYGHOl14FI8t5visIWtqRnLXXIlDsBHzmeEZjUZRGSgjC0R3RT/I+Fk5yUhn1w4
20
- rqFyAiW+cjjzmT7mmqT0jV6fd0JFHbKnSgt9iPijKSimBgUOsorHwOTMlTzwsy0d
21
- ZT+al1RiT5zqlAJLxFHwmoYOxD/bSNtKsYl60ek0hK2mISBVy9BBmLvCgHDx5uSp
22
- AgMBAAGjfTB7MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRbd1mx
23
- fvSaVIwKI+tnEAYDW/B81zAgBgNVHREEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5j
24
- b20wIAYDVR0SBBkwF4EVZHJpdmVyLXJ1YnlAMTBnZW4uY29tMA0GCSqGSIb3DQEB
25
- CwUAA4IBAQBfX4dwxG5PhtxES/LDEOaZIZXyaX6CKe367zhW+HxWbSOXMQJFkIQj
26
- m7tzT+sDFJXyiOv5cPtfpUam5pTiryzRw5HD6oxlPIt5vO15EJ69v++3m7shMLbw
27
- amZOajKXmu2ZGZfhOtj7bOTwmOj1AnWLKeOQIR3STvvfZCD+6dt1XenW7CdjCsxE
28
- ifervPjLFqFPsMOgaxikhgPK6bRtszrQhJSYlifKKzxbX1hYAsmGL7IxjubFSV5r
29
- gpvfPNWMwyBDlHaNS3GfO6cRRxBOvEG05GUCsvtTY4Bpe8yjE64wg1ymb47LMOnv
30
- Qb1lGORmf/opg45mluKUYl7pQNZHD0d3
13
+ MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
14
+ ZXItcnVieTEVMBMGCgmSJomT8ixkARkWBTEwZ2VuMRMwEQYKCZImiZPyLGQBGRYD
15
+ Y29tMB4XDTE2MTIwMTE0MDcxMloXDTE3MTIwMTE0MDcxMlowQjEUMBIGA1UEAwwL
16
+ ZHJpdmVyLXJ1YnkxFTATBgoJkiaJk/IsZAEZFgUxMGdlbjETMBEGCgmSJomT8ixk
17
+ ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANFdSAa8fRm1
18
+ bAM9za6Z0fAH4g02bqM1NGnw8zJQrE/PFrFfY6IFCT2AsLfOwr1maVm7iU1+kdVI
19
+ IQ+iI/9+E+ArJ+rbGV3dDPQ+SLl3mLT+vXjfjcxMqI2IW6UuVtt2U3Rxd4QU0kdT
20
+ JxmcPYs5fDN6BgYc6XXgUjy3m+Kwha2pGctdciUOwEfOZ4RmNRlEZKCMLRHdFP8j
21
+ 4WTnJSGfXDiuoXICJb5yOPOZPuaapPSNXp93QkUdsqdKC32I+KMpKKYGBQ6yisfA
22
+ 5MyVPPCzLR1lP5qXVGJPnOqUAkvEUfCahg7EP9tI20qxiXrR6TSEraYhIFXL0EGY
23
+ u8KAcPHm5KkCAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
24
+ BBYEFFt3WbF+9JpUjAoj62cQBgNb8HzXMCAGA1UdEQQZMBeBFWRyaXZlci1ydWJ5
25
+ QDEwZ2VuLmNvbTAgBgNVHRIEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5jb20wDQYJ
26
+ KoZIhvcNAQEFBQADggEBAKBDaVkycCUC1zMfpAkXIgWtji2Nr2ZygYQR53AgxOaE
27
+ 7nqxdh5Lh8pnfwa71/ucrZFJt+g/mEhen9lFNmcizvpP43Hh4rYf8j6T8Y+mQ6tr
28
+ sp5xWiv93DlLXGmas0hv9VRYDvV1vLFaG05FHOAZKdo6pD2t6jNyMSAn4fMHKctw
29
+ UoYN5FLt84jacRQF5nhy9gBhfgvA19LcjeMLQC11x3fykDLzCXF2wEe5Q5iYaWvb
30
+ cGiNQIiHBj/9/xHfOyOthBPUevTiVnuffarDr434z/LGLwYzgaG5EcJFvZqpvUpP
31
+ fGcAPtAZUMGLXwcOB1BJEFkDxUQIJiEpSmf4YzzZhEM=
31
32
  -----END CERTIFICATE-----
32
- date: 2020-11-06 00:00:00.000000000 Z
33
+ date: 2017-08-11 00:00:00.000000000 Z
33
34
  dependencies:
34
35
  - !ruby/object:Gem::Dependency
35
36
  name: activemodel
36
37
  requirement: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - ">="
39
+ - - "~>"
39
40
  - !ruby/object:Gem::Version
40
41
  version: '5.1'
41
- - - "<"
42
- - !ruby/object:Gem::Version
43
- version: 6.0.0
44
42
  type: :runtime
45
43
  prerelease: false
46
44
  version_requirements: !ruby/object:Gem::Requirement
47
45
  requirements:
48
- - - ">="
46
+ - - "~>"
49
47
  - !ruby/object:Gem::Version
50
48
  version: '5.1'
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: 6.0.0
54
49
  - !ruby/object:Gem::Dependency
55
50
  name: mongo
56
51
  requirement: !ruby/object:Gem::Requirement
57
52
  requirements:
58
53
  - - ">="
59
54
  - !ruby/object:Gem::Version
60
- version: 2.5.1
55
+ version: 2.4.1
61
56
  - - "<"
62
57
  - !ruby/object:Gem::Version
63
58
  version: 3.0.0
@@ -67,7 +62,7 @@ dependencies:
67
62
  requirements:
68
63
  - - ">="
69
64
  - !ruby/object:Gem::Version
70
- version: 2.5.1
65
+ version: 2.4.1
71
66
  - - "<"
72
67
  - !ruby/object:Gem::Version
73
68
  version: 3.0.0
@@ -85,6 +80,68 @@ files:
85
80
  - Rakefile
86
81
  - lib/config/locales/en.yml
87
82
  - lib/mongoid.rb
83
+ - lib/mongoid/association.rb
84
+ - lib/mongoid/association/accessors.rb
85
+ - lib/mongoid/association/bindable.rb
86
+ - lib/mongoid/association/builders.rb
87
+ - lib/mongoid/association/constrainable.rb
88
+ - lib/mongoid/association/depending.rb
89
+ - lib/mongoid/association/eager_loadable.rb
90
+ - lib/mongoid/association/embedded.rb
91
+ - lib/mongoid/association/embedded/batchable.rb
92
+ - lib/mongoid/association/embedded/cyclic.rb
93
+ - lib/mongoid/association/embedded/embedded_in.rb
94
+ - lib/mongoid/association/embedded/embedded_in/binding.rb
95
+ - lib/mongoid/association/embedded/embedded_in/buildable.rb
96
+ - lib/mongoid/association/embedded/embedded_in/proxy.rb
97
+ - lib/mongoid/association/embedded/embeds_many.rb
98
+ - lib/mongoid/association/embedded/embeds_many/binding.rb
99
+ - lib/mongoid/association/embedded/embeds_many/buildable.rb
100
+ - lib/mongoid/association/embedded/embeds_many/proxy.rb
101
+ - lib/mongoid/association/embedded/embeds_one.rb
102
+ - lib/mongoid/association/embedded/embeds_one/binding.rb
103
+ - lib/mongoid/association/embedded/embeds_one/buildable.rb
104
+ - lib/mongoid/association/embedded/embeds_one/proxy.rb
105
+ - lib/mongoid/association/macros.rb
106
+ - lib/mongoid/association/many.rb
107
+ - lib/mongoid/association/marshalable.rb
108
+ - lib/mongoid/association/nested.rb
109
+ - lib/mongoid/association/nested/many.rb
110
+ - lib/mongoid/association/nested/nested_buildable.rb
111
+ - lib/mongoid/association/nested/one.rb
112
+ - lib/mongoid/association/one.rb
113
+ - lib/mongoid/association/options.rb
114
+ - lib/mongoid/association/proxy.rb
115
+ - lib/mongoid/association/referenced.rb
116
+ - lib/mongoid/association/referenced/auto_save.rb
117
+ - lib/mongoid/association/referenced/belongs_to.rb
118
+ - lib/mongoid/association/referenced/belongs_to/binding.rb
119
+ - lib/mongoid/association/referenced/belongs_to/buildable.rb
120
+ - lib/mongoid/association/referenced/belongs_to/eager.rb
121
+ - lib/mongoid/association/referenced/belongs_to/proxy.rb
122
+ - lib/mongoid/association/referenced/counter_cache.rb
123
+ - lib/mongoid/association/referenced/eager.rb
124
+ - lib/mongoid/association/referenced/has_and_belongs_to_many.rb
125
+ - lib/mongoid/association/referenced/has_and_belongs_to_many/binding.rb
126
+ - lib/mongoid/association/referenced/has_and_belongs_to_many/buildable.rb
127
+ - lib/mongoid/association/referenced/has_and_belongs_to_many/eager.rb
128
+ - lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb
129
+ - lib/mongoid/association/referenced/has_many.rb
130
+ - lib/mongoid/association/referenced/has_many/binding.rb
131
+ - lib/mongoid/association/referenced/has_many/buildable.rb
132
+ - lib/mongoid/association/referenced/has_many/eager.rb
133
+ - lib/mongoid/association/referenced/has_many/enumerable.rb
134
+ - lib/mongoid/association/referenced/has_many/proxy.rb
135
+ - lib/mongoid/association/referenced/has_one.rb
136
+ - lib/mongoid/association/referenced/has_one/binding.rb
137
+ - lib/mongoid/association/referenced/has_one/buildable.rb
138
+ - lib/mongoid/association/referenced/has_one/eager.rb
139
+ - lib/mongoid/association/referenced/has_one/nested_builder.rb
140
+ - lib/mongoid/association/referenced/has_one/proxy.rb
141
+ - lib/mongoid/association/referenced/syncable.rb
142
+ - lib/mongoid/association/reflections.rb
143
+ - lib/mongoid/association/relatable.rb
144
+ - lib/mongoid/association/touchable.rb
88
145
  - lib/mongoid/atomic.rb
89
146
  - lib/mongoid/atomic/modifiers.rb
90
147
  - lib/mongoid/atomic/paths.rb
@@ -102,7 +159,6 @@ files:
102
159
  - lib/mongoid/clients.rb
103
160
  - lib/mongoid/clients/factory.rb
104
161
  - lib/mongoid/clients/options.rb
105
- - lib/mongoid/clients/sessions.rb
106
162
  - lib/mongoid/clients/storage_options.rb
107
163
  - lib/mongoid/clients/validators.rb
108
164
  - lib/mongoid/clients/validators/storage.rb
@@ -175,6 +231,7 @@ files:
175
231
  - lib/mongoid/errors/in_memory_collation_not_supported.rb
176
232
  - lib/mongoid/errors/invalid_collection.rb
177
233
  - lib/mongoid/errors/invalid_config_option.rb
234
+ - lib/mongoid/errors/invalid_dependent_strategy.rb
178
235
  - lib/mongoid/errors/invalid_field.rb
179
236
  - lib/mongoid/errors/invalid_field_option.rb
180
237
  - lib/mongoid/errors/invalid_find.rb
@@ -184,8 +241,8 @@ files:
184
241
  - lib/mongoid/errors/invalid_path.rb
185
242
  - lib/mongoid/errors/invalid_persistence_option.rb
186
243
  - lib/mongoid/errors/invalid_relation.rb
244
+ - lib/mongoid/errors/invalid_relation_option.rb
187
245
  - lib/mongoid/errors/invalid_scope.rb
188
- - lib/mongoid/errors/invalid_session_use.rb
189
246
  - lib/mongoid/errors/invalid_set_polymorphic_relation.rb
190
247
  - lib/mongoid/errors/invalid_storage_options.rb
191
248
  - lib/mongoid/errors/invalid_storage_parent.rb
@@ -210,6 +267,7 @@ files:
210
267
  - lib/mongoid/errors/scope_overwrite.rb
211
268
  - lib/mongoid/errors/too_many_nested_attribute_records.rb
212
269
  - lib/mongoid/errors/unknown_attribute.rb
270
+ - lib/mongoid/errors/unknown_model.rb
213
271
  - lib/mongoid/errors/unsaved_document.rb
214
272
  - lib/mongoid/errors/unsupported_javascript.rb
215
273
  - lib/mongoid/errors/validations.rb
@@ -264,7 +322,6 @@ files:
264
322
  - lib/mongoid/matchable/lte.rb
265
323
  - lib/mongoid/matchable/ne.rb
266
324
  - lib/mongoid/matchable/nin.rb
267
- - lib/mongoid/matchable/nor.rb
268
325
  - lib/mongoid/matchable/or.rb
269
326
  - lib/mongoid/matchable/regexp.rb
270
327
  - lib/mongoid/matchable/size.rb
@@ -287,68 +344,7 @@ files:
287
344
  - lib/mongoid/positional.rb
288
345
  - lib/mongoid/query_cache.rb
289
346
  - lib/mongoid/railtie.rb
290
- - lib/mongoid/railties/controller_runtime.rb
291
347
  - lib/mongoid/railties/database.rake
292
- - lib/mongoid/relations.rb
293
- - lib/mongoid/relations/accessors.rb
294
- - lib/mongoid/relations/auto_save.rb
295
- - lib/mongoid/relations/binding.rb
296
- - lib/mongoid/relations/bindings.rb
297
- - lib/mongoid/relations/bindings/embedded/in.rb
298
- - lib/mongoid/relations/bindings/embedded/many.rb
299
- - lib/mongoid/relations/bindings/embedded/one.rb
300
- - lib/mongoid/relations/bindings/referenced/in.rb
301
- - lib/mongoid/relations/bindings/referenced/many.rb
302
- - lib/mongoid/relations/bindings/referenced/many_to_many.rb
303
- - lib/mongoid/relations/bindings/referenced/one.rb
304
- - lib/mongoid/relations/builder.rb
305
- - lib/mongoid/relations/builders.rb
306
- - lib/mongoid/relations/builders/embedded/in.rb
307
- - lib/mongoid/relations/builders/embedded/many.rb
308
- - lib/mongoid/relations/builders/embedded/one.rb
309
- - lib/mongoid/relations/builders/nested_attributes/many.rb
310
- - lib/mongoid/relations/builders/nested_attributes/one.rb
311
- - lib/mongoid/relations/builders/referenced/in.rb
312
- - lib/mongoid/relations/builders/referenced/many.rb
313
- - lib/mongoid/relations/builders/referenced/many_to_many.rb
314
- - lib/mongoid/relations/builders/referenced/one.rb
315
- - lib/mongoid/relations/cascading.rb
316
- - lib/mongoid/relations/cascading/delete.rb
317
- - lib/mongoid/relations/cascading/destroy.rb
318
- - lib/mongoid/relations/cascading/nullify.rb
319
- - lib/mongoid/relations/cascading/restrict.rb
320
- - lib/mongoid/relations/constraint.rb
321
- - lib/mongoid/relations/conversions.rb
322
- - lib/mongoid/relations/counter_cache.rb
323
- - lib/mongoid/relations/cyclic.rb
324
- - lib/mongoid/relations/eager.rb
325
- - lib/mongoid/relations/eager/base.rb
326
- - lib/mongoid/relations/eager/belongs_to.rb
327
- - lib/mongoid/relations/eager/has_and_belongs_to_many.rb
328
- - lib/mongoid/relations/eager/has_many.rb
329
- - lib/mongoid/relations/eager/has_one.rb
330
- - lib/mongoid/relations/embedded/batchable.rb
331
- - lib/mongoid/relations/embedded/in.rb
332
- - lib/mongoid/relations/embedded/many.rb
333
- - lib/mongoid/relations/embedded/one.rb
334
- - lib/mongoid/relations/macros.rb
335
- - lib/mongoid/relations/many.rb
336
- - lib/mongoid/relations/marshalable.rb
337
- - lib/mongoid/relations/metadata.rb
338
- - lib/mongoid/relations/nested_builder.rb
339
- - lib/mongoid/relations/one.rb
340
- - lib/mongoid/relations/options.rb
341
- - lib/mongoid/relations/polymorphic.rb
342
- - lib/mongoid/relations/proxy.rb
343
- - lib/mongoid/relations/referenced/in.rb
344
- - lib/mongoid/relations/referenced/many.rb
345
- - lib/mongoid/relations/referenced/many_to_many.rb
346
- - lib/mongoid/relations/referenced/one.rb
347
- - lib/mongoid/relations/reflections.rb
348
- - lib/mongoid/relations/synchronization.rb
349
- - lib/mongoid/relations/targets.rb
350
- - lib/mongoid/relations/targets/enumerable.rb
351
- - lib/mongoid/relations/touchable.rb
352
348
  - lib/mongoid/reloadable.rb
353
349
  - lib/mongoid/scopable.rb
354
350
  - lib/mongoid/selectable.rb
@@ -398,7 +394,6 @@ files:
398
394
  - spec/app/models/animal.rb
399
395
  - spec/app/models/answer.rb
400
396
  - spec/app/models/appointment.rb
401
- - spec/app/models/array_field.rb
402
397
  - spec/app/models/article.rb
403
398
  - spec/app/models/artist.rb
404
399
  - spec/app/models/artwork.rb
@@ -441,7 +436,6 @@ files:
441
436
  - spec/app/models/country_code.rb
442
437
  - spec/app/models/courier_job.rb
443
438
  - spec/app/models/definition.rb
444
- - spec/app/models/delegating_patient.rb
445
439
  - spec/app/models/description.rb
446
440
  - spec/app/models/dictionary.rb
447
441
  - spec/app/models/division.rb
@@ -587,6 +581,7 @@ files:
587
581
  - spec/app/models/validation_callback.rb
588
582
  - spec/app/models/vehicle.rb
589
583
  - spec/app/models/version.rb
584
+ - spec/app/models/vertex.rb
590
585
  - spec/app/models/vet_visit.rb
591
586
  - spec/app/models/video.rb
592
587
  - spec/app/models/video_game.rb
@@ -596,7 +591,57 @@ files:
596
591
  - spec/app/models/word_origin.rb
597
592
  - spec/app/models/writer.rb
598
593
  - spec/config/mongoid.yml
599
- - spec/integration/document_spec.rb
594
+ - spec/mongoid/association/accessors_spec.rb
595
+ - spec/mongoid/association/auto_save_spec.rb
596
+ - spec/mongoid/association/builders_spec.rb
597
+ - spec/mongoid/association/constrainable_spec.rb
598
+ - spec/mongoid/association/counter_cache_spec.rb
599
+ - spec/mongoid/association/depending_spec.rb
600
+ - spec/mongoid/association/eager_spec.rb
601
+ - spec/mongoid/association/embedded/cyclic_spec.rb
602
+ - spec/mongoid/association/embedded/dirty_spec.rb
603
+ - spec/mongoid/association/embedded/embedded_in/binding_spec.rb
604
+ - spec/mongoid/association/embedded/embedded_in/buildable_spec.rb
605
+ - spec/mongoid/association/embedded/embedded_in/proxy_spec.rb
606
+ - spec/mongoid/association/embedded/embedded_in_spec.rb
607
+ - spec/mongoid/association/embedded/embeds_many/binding_spec.rb
608
+ - spec/mongoid/association/embedded/embeds_many/buildable_spec.rb
609
+ - spec/mongoid/association/embedded/embeds_many/proxy_spec.rb
610
+ - spec/mongoid/association/embedded/embeds_many_spec.rb
611
+ - spec/mongoid/association/embedded/embeds_one/binding_spec.rb
612
+ - spec/mongoid/association/embedded/embeds_one/buildable_spec.rb
613
+ - spec/mongoid/association/embedded/embeds_one/proxy_spec.rb
614
+ - spec/mongoid/association/embedded/embeds_one_spec.rb
615
+ - spec/mongoid/association/macros_spec.rb
616
+ - spec/mongoid/association/nested/many_spec.rb
617
+ - spec/mongoid/association/nested/one_spec.rb
618
+ - spec/mongoid/association/options_spec.rb
619
+ - spec/mongoid/association/polymorphic_spec.rb
620
+ - spec/mongoid/association/referenced/belongs_to/binding_spec.rb
621
+ - spec/mongoid/association/referenced/belongs_to/buildable_spec.rb
622
+ - spec/mongoid/association/referenced/belongs_to/eager_spec.rb
623
+ - spec/mongoid/association/referenced/belongs_to/proxy_spec.rb
624
+ - spec/mongoid/association/referenced/belongs_to_spec.rb
625
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb
626
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb
627
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb
628
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb
629
+ - spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb
630
+ - spec/mongoid/association/referenced/has_many/binding_spec.rb
631
+ - spec/mongoid/association/referenced/has_many/buildable_spec.rb
632
+ - spec/mongoid/association/referenced/has_many/eager_spec.rb
633
+ - spec/mongoid/association/referenced/has_many/enumerable_spec.rb
634
+ - spec/mongoid/association/referenced/has_many/proxy_spec.rb
635
+ - spec/mongoid/association/referenced/has_many_spec.rb
636
+ - spec/mongoid/association/referenced/has_one/binding_spec.rb
637
+ - spec/mongoid/association/referenced/has_one/buildable_spec.rb
638
+ - spec/mongoid/association/referenced/has_one/eager_spec.rb
639
+ - spec/mongoid/association/referenced/has_one/proxy_spec.rb
640
+ - spec/mongoid/association/referenced/has_one_spec.rb
641
+ - spec/mongoid/association/reflections_spec.rb
642
+ - spec/mongoid/association/syncable_spec.rb
643
+ - spec/mongoid/association/touchable_spec.rb
644
+ - spec/mongoid/association_spec.rb
600
645
  - spec/mongoid/atomic/modifiers_spec.rb
601
646
  - spec/mongoid/atomic/paths/embedded/many_spec.rb
602
647
  - spec/mongoid/atomic/paths/embedded/one_spec.rb
@@ -610,7 +655,6 @@ files:
610
655
  - spec/mongoid/changeable_spec.rb
611
656
  - spec/mongoid/clients/factory_spec.rb
612
657
  - spec/mongoid/clients/options_spec.rb
613
- - spec/mongoid/clients/sessions_spec.rb
614
658
  - spec/mongoid/clients_spec.rb
615
659
  - spec/mongoid/composable_spec.rb
616
660
  - spec/mongoid/config/environment_spec.rb
@@ -732,8 +776,6 @@ files:
732
776
  - spec/mongoid/extensions_spec.rb
733
777
  - spec/mongoid/factory_spec.rb
734
778
  - spec/mongoid/fields/foreign_key_spec.rb
735
- - spec/mongoid/fields/internal/foreign_keys/array_spec.rb
736
- - spec/mongoid/fields/internal/foreign_keys/object_spec.rb
737
779
  - spec/mongoid/fields/localized_spec.rb
738
780
  - spec/mongoid/fields/standard_spec.rb
739
781
  - spec/mongoid/fields_spec.rb
@@ -755,7 +797,6 @@ files:
755
797
  - spec/mongoid/matchable/lte_spec.rb
756
798
  - spec/mongoid/matchable/ne_spec.rb
757
799
  - spec/mongoid/matchable/nin_spec.rb
758
- - spec/mongoid/matchable/nor_spec.rb
759
800
  - spec/mongoid/matchable/or_spec.rb
760
801
  - spec/mongoid/matchable/regexp_spec.rb
761
802
  - spec/mongoid/matchable/size_spec.rb
@@ -778,57 +819,7 @@ files:
778
819
  - spec/mongoid/persistence_context_spec.rb
779
820
  - spec/mongoid/positional_spec.rb
780
821
  - spec/mongoid/query_cache_spec.rb
781
- - spec/mongoid/relations/accessors_spec.rb
782
- - spec/mongoid/relations/auto_save_spec.rb
783
- - spec/mongoid/relations/bindings/embedded/in_spec.rb
784
- - spec/mongoid/relations/bindings/embedded/many_spec.rb
785
- - spec/mongoid/relations/bindings/embedded/one_spec.rb
786
- - spec/mongoid/relations/bindings/referenced/in_spec.rb
787
- - spec/mongoid/relations/bindings/referenced/many_spec.rb
788
- - spec/mongoid/relations/bindings/referenced/many_to_many_spec.rb
789
- - spec/mongoid/relations/bindings/referenced/one_spec.rb
790
- - spec/mongoid/relations/builders/embedded/in_spec.rb
791
- - spec/mongoid/relations/builders/embedded/many_spec.rb
792
- - spec/mongoid/relations/builders/embedded/one_spec.rb
793
- - spec/mongoid/relations/builders/nested_attributes/many_spec.rb
794
- - spec/mongoid/relations/builders/nested_attributes/one_spec.rb
795
- - spec/mongoid/relations/builders/referenced/in_spec.rb
796
- - spec/mongoid/relations/builders/referenced/many_spec.rb
797
- - spec/mongoid/relations/builders/referenced/many_to_many_spec.rb
798
- - spec/mongoid/relations/builders/referenced/one_spec.rb
799
- - spec/mongoid/relations/builders_spec.rb
800
- - spec/mongoid/relations/cascading/delete_spec.rb
801
- - spec/mongoid/relations/cascading/destroy_spec.rb
802
- - spec/mongoid/relations/cascading/nullify_spec.rb
803
- - spec/mongoid/relations/cascading/restrict_spec.rb
804
- - spec/mongoid/relations/cascading_spec.rb
805
- - spec/mongoid/relations/constraint_spec.rb
806
- - spec/mongoid/relations/conversions_spec.rb
807
- - spec/mongoid/relations/counter_cache_spec.rb
808
- - spec/mongoid/relations/cyclic_spec.rb
809
- - spec/mongoid/relations/eager/belongs_to_spec.rb
810
- - spec/mongoid/relations/eager/has_and_belongs_to_many_spec.rb
811
- - spec/mongoid/relations/eager/has_many_spec.rb
812
- - spec/mongoid/relations/eager/has_one_spec.rb
813
- - spec/mongoid/relations/eager_spec.rb
814
- - spec/mongoid/relations/embedded/dirty_spec.rb
815
- - spec/mongoid/relations/embedded/in_spec.rb
816
- - spec/mongoid/relations/embedded/many_spec.rb
817
- - spec/mongoid/relations/embedded/one_spec.rb
818
- - spec/mongoid/relations/macros_spec.rb
819
- - spec/mongoid/relations/metadata_spec.rb
820
- - spec/mongoid/relations/options_spec.rb
821
- - spec/mongoid/relations/polymorphic_spec.rb
822
822
  - spec/mongoid/relations/proxy_spec.rb
823
- - spec/mongoid/relations/referenced/in_spec.rb
824
- - spec/mongoid/relations/referenced/many_spec.rb
825
- - spec/mongoid/relations/referenced/many_to_many_spec.rb
826
- - spec/mongoid/relations/referenced/one_spec.rb
827
- - spec/mongoid/relations/reflections_spec.rb
828
- - spec/mongoid/relations/synchronization_spec.rb
829
- - spec/mongoid/relations/targets/enumerable_spec.rb
830
- - spec/mongoid/relations/touchable_spec.rb
831
- - spec/mongoid/relations_spec.rb
832
823
  - spec/mongoid/reloadable_spec.rb
833
824
  - spec/mongoid/scopable_spec.rb
834
825
  - spec/mongoid/selectable_spec.rb
@@ -853,16 +844,10 @@ files:
853
844
  - spec/mongoid/validatable/uniqueness_spec.rb
854
845
  - spec/mongoid/validatable_spec.rb
855
846
  - spec/mongoid_spec.rb
856
- - spec/rails/controller_extension/controller_runtime_spec.rb
857
847
  - spec/rails/mongoid_spec.rb
858
848
  - spec/spec_helper.rb
859
849
  - spec/support/authorization.rb
860
- - spec/support/cluster_config.rb
861
- - spec/support/constraints.rb
862
850
  - spec/support/expectations.rb
863
- - spec/support/macros.rb
864
- - spec/support/session_registry.rb
865
- - spec/support/spec_config.rb
866
851
  homepage: http://mongoid.org
867
852
  licenses:
868
853
  - MIT
@@ -882,487 +867,477 @@ required_rubygems_version: !ruby/object:Gem::Requirement
882
867
  - !ruby/object:Gem::Version
883
868
  version: 1.3.6
884
869
  requirements: []
885
- rubygems_version: 3.0.3
870
+ rubyforge_project: mongoid
871
+ rubygems_version: 2.6.11
886
872
  signing_key:
887
873
  specification_version: 4
888
874
  summary: Elegant Persistence in Ruby for MongoDB.
889
875
  test_files:
890
- - spec/mongoid/indexable_spec.rb
891
- - spec/mongoid/scopable_spec.rb
876
+ - spec/app/models/account.rb
877
+ - spec/app/models/acolyte.rb
878
+ - spec/app/models/actor.rb
879
+ - spec/app/models/actress.rb
880
+ - spec/app/models/address.rb
881
+ - spec/app/models/address_component.rb
882
+ - spec/app/models/address_number.rb
883
+ - spec/app/models/agency.rb
884
+ - spec/app/models/agent.rb
885
+ - spec/app/models/album.rb
886
+ - spec/app/models/alert.rb
887
+ - spec/app/models/animal.rb
888
+ - spec/app/models/answer.rb
889
+ - spec/app/models/appointment.rb
890
+ - spec/app/models/article.rb
891
+ - spec/app/models/artist.rb
892
+ - spec/app/models/artwork.rb
893
+ - spec/app/models/audio.rb
894
+ - spec/app/models/augmentation.rb
895
+ - spec/app/models/author.rb
896
+ - spec/app/models/baby.rb
897
+ - spec/app/models/band.rb
898
+ - spec/app/models/bar.rb
899
+ - spec/app/models/basic.rb
900
+ - spec/app/models/bed.rb
901
+ - spec/app/models/big_palette.rb
902
+ - spec/app/models/birthday.rb
903
+ - spec/app/models/bomb.rb
904
+ - spec/app/models/book.rb
905
+ - spec/app/models/breed.rb
906
+ - spec/app/models/browser.rb
907
+ - spec/app/models/building.rb
908
+ - spec/app/models/building_address.rb
909
+ - spec/app/models/bus.rb
910
+ - spec/app/models/business.rb
911
+ - spec/app/models/callback_test.rb
912
+ - spec/app/models/canvas.rb
913
+ - spec/app/models/car.rb
914
+ - spec/app/models/cat.rb
915
+ - spec/app/models/category.rb
916
+ - spec/app/models/child.rb
917
+ - spec/app/models/child_doc.rb
918
+ - spec/app/models/church.rb
919
+ - spec/app/models/circle.rb
920
+ - spec/app/models/circuit.rb
921
+ - spec/app/models/circus.rb
922
+ - spec/app/models/code.rb
923
+ - spec/app/models/comment.rb
924
+ - spec/app/models/company.rb
925
+ - spec/app/models/consumption_period.rb
926
+ - spec/app/models/contextable_item.rb
927
+ - spec/app/models/contractor.rb
928
+ - spec/app/models/cookie.rb
929
+ - spec/app/models/country_code.rb
930
+ - spec/app/models/courier_job.rb
931
+ - spec/app/models/definition.rb
932
+ - spec/app/models/description.rb
933
+ - spec/app/models/dictionary.rb
934
+ - spec/app/models/division.rb
935
+ - spec/app/models/doctor.rb
936
+ - spec/app/models/dog.rb
937
+ - spec/app/models/dokument.rb
938
+ - spec/app/models/draft.rb
939
+ - spec/app/models/dragon.rb
940
+ - spec/app/models/driver.rb
941
+ - spec/app/models/drug.rb
942
+ - spec/app/models/dungeon.rb
943
+ - spec/app/models/edit.rb
944
+ - spec/app/models/email.rb
945
+ - spec/app/models/employer.rb
946
+ - spec/app/models/entry.rb
947
+ - spec/app/models/eraser.rb
948
+ - spec/app/models/even.rb
949
+ - spec/app/models/event.rb
950
+ - spec/app/models/exhibition.rb
951
+ - spec/app/models/exhibitor.rb
952
+ - spec/app/models/explosion.rb
953
+ - spec/app/models/eye.rb
954
+ - spec/app/models/eye_bowl.rb
955
+ - spec/app/models/face.rb
956
+ - spec/app/models/favorite.rb
957
+ - spec/app/models/filesystem.rb
958
+ - spec/app/models/fire_hydrant.rb
959
+ - spec/app/models/firefox.rb
960
+ - spec/app/models/fish.rb
961
+ - spec/app/models/folder.rb
962
+ - spec/app/models/folder_item.rb
963
+ - spec/app/models/fruits.rb
964
+ - spec/app/models/game.rb
965
+ - spec/app/models/ghost.rb
966
+ - spec/app/models/home.rb
967
+ - spec/app/models/house.rb
968
+ - spec/app/models/html_writer.rb
969
+ - spec/app/models/id_key.rb
970
+ - spec/app/models/image.rb
971
+ - spec/app/models/implant.rb
972
+ - spec/app/models/item.rb
973
+ - spec/app/models/jar.rb
974
+ - spec/app/models/kaleidoscope.rb
975
+ - spec/app/models/kangaroo.rb
976
+ - spec/app/models/label.rb
977
+ - spec/app/models/language.rb
978
+ - spec/app/models/lat_lng.rb
979
+ - spec/app/models/league.rb
980
+ - spec/app/models/learner.rb
981
+ - spec/app/models/line_item.rb
982
+ - spec/app/models/location.rb
983
+ - spec/app/models/login.rb
984
+ - spec/app/models/manufacturer.rb
985
+ - spec/app/models/meat.rb
986
+ - spec/app/models/membership.rb
987
+ - spec/app/models/message.rb
988
+ - spec/app/models/mixed_drink.rb
989
+ - spec/app/models/movie.rb
990
+ - spec/app/models/my_hash.rb
991
+ - spec/app/models/name.rb
992
+ - spec/app/models/node.rb
993
+ - spec/app/models/note.rb
994
+ - spec/app/models/odd.rb
995
+ - spec/app/models/ordered_post.rb
996
+ - spec/app/models/ordered_preference.rb
997
+ - spec/app/models/oscar.rb
998
+ - spec/app/models/override.rb
999
+ - spec/app/models/ownable.rb
1000
+ - spec/app/models/owner.rb
1001
+ - spec/app/models/pack.rb
1002
+ - spec/app/models/page.rb
1003
+ - spec/app/models/page_question.rb
1004
+ - spec/app/models/palette.rb
1005
+ - spec/app/models/parent.rb
1006
+ - spec/app/models/parent_doc.rb
1007
+ - spec/app/models/passport.rb
1008
+ - spec/app/models/patient.rb
1009
+ - spec/app/models/pdf_writer.rb
1010
+ - spec/app/models/pencil.rb
1011
+ - spec/app/models/person.rb
1012
+ - spec/app/models/pet.rb
1013
+ - spec/app/models/pet_owner.rb
1014
+ - spec/app/models/phone.rb
1015
+ - spec/app/models/pizza.rb
1016
+ - spec/app/models/player.rb
1017
+ - spec/app/models/post.rb
1018
+ - spec/app/models/post_genre.rb
1019
+ - spec/app/models/powerup.rb
1020
+ - spec/app/models/preference.rb
1021
+ - spec/app/models/princess.rb
1022
+ - spec/app/models/product.rb
1023
+ - spec/app/models/profile.rb
1024
+ - spec/app/models/pronunciation.rb
1025
+ - spec/app/models/pub.rb
1026
+ - spec/app/models/purchase.rb
1027
+ - spec/app/models/question.rb
1028
+ - spec/app/models/quiz.rb
1029
+ - spec/app/models/rating.rb
1030
+ - spec/app/models/record.rb
1031
+ - spec/app/models/registry.rb
1032
+ - spec/app/models/role.rb
1033
+ - spec/app/models/root_category.rb
1034
+ - spec/app/models/sandwich.rb
1035
+ - spec/app/models/scheduler.rb
1036
+ - spec/app/models/seo.rb
1037
+ - spec/app/models/series.rb
1038
+ - spec/app/models/server.rb
1039
+ - spec/app/models/service.rb
1040
+ - spec/app/models/shape.rb
1041
+ - spec/app/models/shelf.rb
1042
+ - spec/app/models/shipment_address.rb
1043
+ - spec/app/models/shipping_container.rb
1044
+ - spec/app/models/shipping_pack.rb
1045
+ - spec/app/models/shop.rb
1046
+ - spec/app/models/short_agent.rb
1047
+ - spec/app/models/short_quiz.rb
1048
+ - spec/app/models/simple.rb
1049
+ - spec/app/models/slave.rb
1050
+ - spec/app/models/song.rb
1051
+ - spec/app/models/sound.rb
1052
+ - spec/app/models/square.rb
1053
+ - spec/app/models/staff.rb
1054
+ - spec/app/models/store_as_dup_test1.rb
1055
+ - spec/app/models/store_as_dup_test2.rb
1056
+ - spec/app/models/strategy.rb
1057
+ - spec/app/models/sub_item.rb
1058
+ - spec/app/models/subscription.rb
1059
+ - spec/app/models/survey.rb
1060
+ - spec/app/models/symptom.rb
1061
+ - spec/app/models/tag.rb
1062
+ - spec/app/models/target.rb
1063
+ - spec/app/models/template.rb
1064
+ - spec/app/models/thing.rb
1065
+ - spec/app/models/title.rb
1066
+ - spec/app/models/tool.rb
1067
+ - spec/app/models/topping.rb
1068
+ - spec/app/models/track.rb
1069
+ - spec/app/models/translation.rb
1070
+ - spec/app/models/tree.rb
1071
+ - spec/app/models/truck.rb
1072
+ - spec/app/models/user.rb
1073
+ - spec/app/models/user_account.rb
1074
+ - spec/app/models/validation_callback.rb
1075
+ - spec/app/models/vehicle.rb
1076
+ - spec/app/models/version.rb
1077
+ - spec/app/models/vertex.rb
1078
+ - spec/app/models/vet_visit.rb
1079
+ - spec/app/models/video.rb
1080
+ - spec/app/models/video_game.rb
1081
+ - spec/app/models/weapon.rb
1082
+ - spec/app/models/wiki_page.rb
1083
+ - spec/app/models/word.rb
1084
+ - spec/app/models/word_origin.rb
1085
+ - spec/app/models/writer.rb
1086
+ - spec/config/mongoid.yml
1087
+ - spec/mongoid/association/accessors_spec.rb
1088
+ - spec/mongoid/association/auto_save_spec.rb
1089
+ - spec/mongoid/association/builders_spec.rb
1090
+ - spec/mongoid/association/constrainable_spec.rb
1091
+ - spec/mongoid/association/counter_cache_spec.rb
1092
+ - spec/mongoid/association/depending_spec.rb
1093
+ - spec/mongoid/association/eager_spec.rb
1094
+ - spec/mongoid/association/embedded/cyclic_spec.rb
1095
+ - spec/mongoid/association/embedded/dirty_spec.rb
1096
+ - spec/mongoid/association/embedded/embedded_in/binding_spec.rb
1097
+ - spec/mongoid/association/embedded/embedded_in/buildable_spec.rb
1098
+ - spec/mongoid/association/embedded/embedded_in/proxy_spec.rb
1099
+ - spec/mongoid/association/embedded/embedded_in_spec.rb
1100
+ - spec/mongoid/association/embedded/embeds_many/binding_spec.rb
1101
+ - spec/mongoid/association/embedded/embeds_many/buildable_spec.rb
1102
+ - spec/mongoid/association/embedded/embeds_many/proxy_spec.rb
1103
+ - spec/mongoid/association/embedded/embeds_many_spec.rb
1104
+ - spec/mongoid/association/embedded/embeds_one/binding_spec.rb
1105
+ - spec/mongoid/association/embedded/embeds_one/buildable_spec.rb
1106
+ - spec/mongoid/association/embedded/embeds_one/proxy_spec.rb
1107
+ - spec/mongoid/association/embedded/embeds_one_spec.rb
1108
+ - spec/mongoid/association/macros_spec.rb
1109
+ - spec/mongoid/association/nested/many_spec.rb
1110
+ - spec/mongoid/association/nested/one_spec.rb
1111
+ - spec/mongoid/association/options_spec.rb
1112
+ - spec/mongoid/association/polymorphic_spec.rb
1113
+ - spec/mongoid/association/referenced/belongs_to/binding_spec.rb
1114
+ - spec/mongoid/association/referenced/belongs_to/buildable_spec.rb
1115
+ - spec/mongoid/association/referenced/belongs_to/eager_spec.rb
1116
+ - spec/mongoid/association/referenced/belongs_to/proxy_spec.rb
1117
+ - spec/mongoid/association/referenced/belongs_to_spec.rb
1118
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb
1119
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb
1120
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb
1121
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb
1122
+ - spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb
1123
+ - spec/mongoid/association/referenced/has_many/binding_spec.rb
1124
+ - spec/mongoid/association/referenced/has_many/buildable_spec.rb
1125
+ - spec/mongoid/association/referenced/has_many/eager_spec.rb
1126
+ - spec/mongoid/association/referenced/has_many/enumerable_spec.rb
1127
+ - spec/mongoid/association/referenced/has_many/proxy_spec.rb
1128
+ - spec/mongoid/association/referenced/has_many_spec.rb
1129
+ - spec/mongoid/association/referenced/has_one/binding_spec.rb
1130
+ - spec/mongoid/association/referenced/has_one/buildable_spec.rb
1131
+ - spec/mongoid/association/referenced/has_one/eager_spec.rb
1132
+ - spec/mongoid/association/referenced/has_one/proxy_spec.rb
1133
+ - spec/mongoid/association/referenced/has_one_spec.rb
1134
+ - spec/mongoid/association/reflections_spec.rb
1135
+ - spec/mongoid/association/syncable_spec.rb
1136
+ - spec/mongoid/association/touchable_spec.rb
1137
+ - spec/mongoid/association_spec.rb
1138
+ - spec/mongoid/atomic/modifiers_spec.rb
1139
+ - spec/mongoid/atomic/paths/embedded/many_spec.rb
1140
+ - spec/mongoid/atomic/paths/embedded/one_spec.rb
1141
+ - spec/mongoid/atomic/paths/root_spec.rb
1142
+ - spec/mongoid/atomic/paths_spec.rb
1143
+ - spec/mongoid/atomic_spec.rb
1144
+ - spec/mongoid/attributes/nested_spec.rb
1145
+ - spec/mongoid/attributes/readonly_spec.rb
1146
+ - spec/mongoid/attributes_spec.rb
1147
+ - spec/mongoid/cacheable_spec.rb
1148
+ - spec/mongoid/changeable_spec.rb
892
1149
  - spec/mongoid/clients/factory_spec.rb
893
1150
  - spec/mongoid/clients/options_spec.rb
894
- - spec/mongoid/clients/sessions_spec.rb
895
- - spec/mongoid/matchable_spec.rb
896
- - spec/mongoid/copyable_spec.rb
897
- - spec/mongoid/changeable_spec.rb
898
- - spec/mongoid/config_spec.rb
899
- - spec/mongoid/tasks/database_spec.rb
900
- - spec/mongoid/tasks/database_rake_spec.rb
901
- - spec/mongoid/shardable_spec.rb
902
- - spec/mongoid/selectable_spec.rb
903
- - spec/mongoid/loggable_spec.rb
904
- - spec/mongoid/atomic_spec.rb
905
- - spec/mongoid/traversable_spec.rb
906
- - spec/mongoid/timestamps/updated_spec.rb
907
- - spec/mongoid/timestamps/created_spec.rb
908
- - spec/mongoid/timestamps/created/short_spec.rb
909
- - spec/mongoid/timestamps/updated/short_spec.rb
910
- - spec/mongoid/timestamps/timeless_spec.rb
911
- - spec/mongoid/factory_spec.rb
912
- - spec/mongoid/relations/eager_spec.rb
913
- - spec/mongoid/relations/metadata_spec.rb
914
- - spec/mongoid/relations/constraint_spec.rb
915
- - spec/mongoid/relations/builders/referenced/in_spec.rb
916
- - spec/mongoid/relations/builders/referenced/one_spec.rb
917
- - spec/mongoid/relations/builders/referenced/many_spec.rb
918
- - spec/mongoid/relations/builders/referenced/many_to_many_spec.rb
919
- - spec/mongoid/relations/builders/embedded/in_spec.rb
920
- - spec/mongoid/relations/builders/embedded/one_spec.rb
921
- - spec/mongoid/relations/builders/embedded/many_spec.rb
922
- - spec/mongoid/relations/builders/nested_attributes/one_spec.rb
923
- - spec/mongoid/relations/builders/nested_attributes/many_spec.rb
924
- - spec/mongoid/relations/targets/enumerable_spec.rb
925
- - spec/mongoid/relations/macros_spec.rb
926
- - spec/mongoid/relations/counter_cache_spec.rb
927
- - spec/mongoid/relations/cascading/destroy_spec.rb
928
- - spec/mongoid/relations/cascading/delete_spec.rb
929
- - spec/mongoid/relations/cascading/nullify_spec.rb
930
- - spec/mongoid/relations/cascading/restrict_spec.rb
931
- - spec/mongoid/relations/options_spec.rb
932
- - spec/mongoid/relations/accessors_spec.rb
933
- - spec/mongoid/relations/proxy_spec.rb
934
- - spec/mongoid/relations/touchable_spec.rb
935
- - spec/mongoid/relations/synchronization_spec.rb
936
- - spec/mongoid/relations/cascading_spec.rb
937
- - spec/mongoid/relations/auto_save_spec.rb
938
- - spec/mongoid/relations/conversions_spec.rb
939
- - spec/mongoid/relations/cyclic_spec.rb
940
- - spec/mongoid/relations/bindings/referenced/in_spec.rb
941
- - spec/mongoid/relations/bindings/referenced/one_spec.rb
942
- - spec/mongoid/relations/bindings/referenced/many_spec.rb
943
- - spec/mongoid/relations/bindings/referenced/many_to_many_spec.rb
944
- - spec/mongoid/relations/bindings/embedded/in_spec.rb
945
- - spec/mongoid/relations/bindings/embedded/one_spec.rb
946
- - spec/mongoid/relations/bindings/embedded/many_spec.rb
947
- - spec/mongoid/relations/referenced/in_spec.rb
948
- - spec/mongoid/relations/referenced/one_spec.rb
949
- - spec/mongoid/relations/referenced/many_spec.rb
950
- - spec/mongoid/relations/referenced/many_to_many_spec.rb
951
- - spec/mongoid/relations/builders_spec.rb
952
- - spec/mongoid/relations/polymorphic_spec.rb
953
- - spec/mongoid/relations/reflections_spec.rb
954
- - spec/mongoid/relations/eager/has_one_spec.rb
955
- - spec/mongoid/relations/eager/has_many_spec.rb
956
- - spec/mongoid/relations/eager/has_and_belongs_to_many_spec.rb
957
- - spec/mongoid/relations/eager/belongs_to_spec.rb
958
- - spec/mongoid/relations/embedded/in_spec.rb
959
- - spec/mongoid/relations/embedded/dirty_spec.rb
960
- - spec/mongoid/relations/embedded/one_spec.rb
961
- - spec/mongoid/relations/embedded/many_spec.rb
1151
+ - spec/mongoid/clients_spec.rb
1152
+ - spec/mongoid/composable_spec.rb
962
1153
  - spec/mongoid/config/environment_spec.rb
963
1154
  - spec/mongoid/config/options_spec.rb
964
- - spec/mongoid/contextual/memory_spec.rb
965
- - spec/mongoid/contextual/none_spec.rb
966
- - spec/mongoid/contextual/atomic_spec.rb
967
- - spec/mongoid/contextual/map_reduce_spec.rb
968
- - spec/mongoid/contextual/mongo_spec.rb
1155
+ - spec/mongoid/config_spec.rb
969
1156
  - spec/mongoid/contextual/aggregable/memory_spec.rb
970
1157
  - spec/mongoid/contextual/aggregable/mongo_spec.rb
1158
+ - spec/mongoid/contextual/atomic_spec.rb
971
1159
  - spec/mongoid/contextual/geo_near_spec.rb
972
- - spec/mongoid/fields_spec.rb
973
- - spec/mongoid/attributes_spec.rb
974
- - spec/mongoid/findable_spec.rb
975
- - spec/mongoid/query_cache_spec.rb
976
- - spec/mongoid/persistence_context_spec.rb
977
- - spec/mongoid/interceptable_spec.rb
978
- - spec/mongoid/extensions_spec.rb
1160
+ - spec/mongoid/contextual/map_reduce_spec.rb
1161
+ - spec/mongoid/contextual/memory_spec.rb
1162
+ - spec/mongoid/contextual/mongo_spec.rb
1163
+ - spec/mongoid/contextual/none_spec.rb
1164
+ - spec/mongoid/copyable_spec.rb
1165
+ - spec/mongoid/criteria/findable_spec.rb
1166
+ - spec/mongoid/criteria/inspectable_spec.rb
1167
+ - spec/mongoid/criteria/marshalable_spec.rb
1168
+ - spec/mongoid/criteria/modifiable_spec.rb
1169
+ - spec/mongoid/criteria/options_spec.rb
1170
+ - spec/mongoid/criteria/queryable/aggregable_spec.rb
1171
+ - spec/mongoid/criteria/queryable/extensions/array_spec.rb
1172
+ - spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb
1173
+ - spec/mongoid/criteria/queryable/extensions/bignum_spec.rb
1174
+ - spec/mongoid/criteria/queryable/extensions/boolean_spec.rb
1175
+ - spec/mongoid/criteria/queryable/extensions/date_spec.rb
1176
+ - spec/mongoid/criteria/queryable/extensions/date_time_spec.rb
1177
+ - spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb
1178
+ - spec/mongoid/criteria/queryable/extensions/float_spec.rb
1179
+ - spec/mongoid/criteria/queryable/extensions/hash_spec.rb
1180
+ - spec/mongoid/criteria/queryable/extensions/integer_spec.rb
1181
+ - spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
1182
+ - spec/mongoid/criteria/queryable/extensions/object_spec.rb
1183
+ - spec/mongoid/criteria/queryable/extensions/range_spec.rb
1184
+ - spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
1185
+ - spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
1186
+ - spec/mongoid/criteria/queryable/extensions/set_spec.rb
1187
+ - spec/mongoid/criteria/queryable/extensions/string_spec.rb
1188
+ - spec/mongoid/criteria/queryable/extensions/symbol_spec.rb
1189
+ - spec/mongoid/criteria/queryable/extensions/time_spec.rb
1190
+ - spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb
1191
+ - spec/mongoid/criteria/queryable/forwardable_spec.rb
1192
+ - spec/mongoid/criteria/queryable/key_spec.rb
1193
+ - spec/mongoid/criteria/queryable/mergeable_spec.rb
1194
+ - spec/mongoid/criteria/queryable/optional_spec.rb
1195
+ - spec/mongoid/criteria/queryable/options_spec.rb
1196
+ - spec/mongoid/criteria/queryable/pipeline_spec.rb
1197
+ - spec/mongoid/criteria/queryable/queryable_spec.rb
1198
+ - spec/mongoid/criteria/queryable/selectable_spec.rb
1199
+ - spec/mongoid/criteria/queryable/selector_spec.rb
1200
+ - spec/mongoid/criteria/queryable/smash_spec.rb
1201
+ - spec/mongoid/criteria/scopable_spec.rb
979
1202
  - spec/mongoid/criteria_spec.rb
980
- - spec/mongoid/composable_spec.rb
981
- - spec/mongoid/atomic/paths_spec.rb
982
- - spec/mongoid/atomic/paths/root_spec.rb
983
- - spec/mongoid/atomic/paths/embedded/one_spec.rb
984
- - spec/mongoid/atomic/paths/embedded/many_spec.rb
985
- - spec/mongoid/atomic/modifiers_spec.rb
986
- - spec/mongoid/indexable/specification_spec.rb
987
- - spec/mongoid/cacheable_spec.rb
988
- - spec/mongoid/extensions/regexp_spec.rb
1203
+ - spec/mongoid/document_spec.rb
1204
+ - spec/mongoid/equality_spec.rb
1205
+ - spec/mongoid/errors/ambiguous_relationship_spec.rb
1206
+ - spec/mongoid/errors/callback_spec.rb
1207
+ - spec/mongoid/errors/delete_restriction_spec.rb
1208
+ - spec/mongoid/errors/document_not_destroyed_spec.rb
1209
+ - spec/mongoid/errors/document_not_found_spec.rb
1210
+ - spec/mongoid/errors/eager_load_spec.rb
1211
+ - spec/mongoid/errors/invalid_collection_spec.rb
1212
+ - spec/mongoid/errors/invalid_config_option_spec.rb
1213
+ - spec/mongoid/errors/invalid_field_option_spec.rb
1214
+ - spec/mongoid/errors/invalid_field_spec.rb
1215
+ - spec/mongoid/errors/invalid_find_spec.rb
1216
+ - spec/mongoid/errors/invalid_includes_spec.rb
1217
+ - spec/mongoid/errors/invalid_index_spec.rb
1218
+ - spec/mongoid/errors/invalid_options_spec.rb
1219
+ - spec/mongoid/errors/invalid_path_spec.rb
1220
+ - spec/mongoid/errors/invalid_relation_spec.rb
1221
+ - spec/mongoid/errors/invalid_scope_spec.rb
1222
+ - spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb
1223
+ - spec/mongoid/errors/invalid_storage_options_spec.rb
1224
+ - spec/mongoid/errors/invalid_time_spec.rb
1225
+ - spec/mongoid/errors/inverse_not_found_spec.rb
1226
+ - spec/mongoid/errors/mixed_client_configuration_spec.rb
1227
+ - spec/mongoid/errors/mixed_relations_spec.rb
1228
+ - spec/mongoid/errors/mongoid_error_spec.rb
1229
+ - spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb
1230
+ - spec/mongoid/errors/no_client_config_spec.rb
1231
+ - spec/mongoid/errors/no_client_database_spec.rb
1232
+ - spec/mongoid/errors/no_client_hosts_spec.rb
1233
+ - spec/mongoid/errors/no_clients_config_spec.rb
1234
+ - spec/mongoid/errors/no_environment_spec.rb
1235
+ - spec/mongoid/errors/no_map_reduce_output_spec.rb
1236
+ - spec/mongoid/errors/no_metadata_spec.rb
1237
+ - spec/mongoid/errors/no_parent_spec.rb
1238
+ - spec/mongoid/errors/readonly_attribute_spec.rb
1239
+ - spec/mongoid/errors/readonly_document_spec.rb
1240
+ - spec/mongoid/errors/scope_overwrite_spec.rb
1241
+ - spec/mongoid/errors/too_many_nested_attribute_records_spec.rb
1242
+ - spec/mongoid/errors/unknown_attribute_spec.rb
1243
+ - spec/mongoid/errors/unsaved_document_spec.rb
1244
+ - spec/mongoid/errors/unsupported_javascript_spec.rb
1245
+ - spec/mongoid/errors/validations_spec.rb
1246
+ - spec/mongoid/extensions/array_spec.rb
989
1247
  - spec/mongoid/extensions/big_decimal_spec.rb
990
- - spec/mongoid/extensions/time_spec.rb
1248
+ - spec/mongoid/extensions/binary_spec.rb
991
1249
  - spec/mongoid/extensions/boolean_spec.rb
992
- - spec/mongoid/extensions/object_spec.rb
993
- - spec/mongoid/extensions/array_spec.rb
994
- - spec/mongoid/extensions/set_spec.rb
995
- - spec/mongoid/extensions/hash_spec.rb
996
1250
  - spec/mongoid/extensions/date_spec.rb
997
- - spec/mongoid/extensions/module_spec.rb
998
- - spec/mongoid/extensions/time_with_zone_spec.rb
999
- - spec/mongoid/extensions/binary_spec.rb
1000
1251
  - spec/mongoid/extensions/date_time_spec.rb
1001
- - spec/mongoid/extensions/false_class_spec.rb
1002
- - spec/mongoid/extensions/string_spec.rb
1003
- - spec/mongoid/extensions/range_spec.rb
1004
- - spec/mongoid/extensions/symbol_spec.rb
1005
1252
  - spec/mongoid/extensions/decimal128_spec.rb
1006
- - spec/mongoid/extensions/integer_spec.rb
1253
+ - spec/mongoid/extensions/false_class_spec.rb
1007
1254
  - spec/mongoid/extensions/float_spec.rb
1255
+ - spec/mongoid/extensions/hash_spec.rb
1256
+ - spec/mongoid/extensions/integer_spec.rb
1257
+ - spec/mongoid/extensions/module_spec.rb
1008
1258
  - spec/mongoid/extensions/nil_class_spec.rb
1009
- - spec/mongoid/extensions/true_class_spec.rb
1010
1259
  - spec/mongoid/extensions/object_id_spec.rb
1011
- - spec/mongoid/timestamps_spec.rb
1012
- - spec/mongoid/stateful_spec.rb
1013
- - spec/mongoid/attributes/readonly_spec.rb
1014
- - spec/mongoid/attributes/nested_spec.rb
1015
- - spec/mongoid/positional_spec.rb
1016
- - spec/mongoid/persistable_spec.rb
1017
- - spec/mongoid/serializable_spec.rb
1018
- - spec/mongoid/persistable/deletable_spec.rb
1260
+ - spec/mongoid/extensions/object_spec.rb
1261
+ - spec/mongoid/extensions/range_spec.rb
1262
+ - spec/mongoid/extensions/regexp_spec.rb
1263
+ - spec/mongoid/extensions/set_spec.rb
1264
+ - spec/mongoid/extensions/string_spec.rb
1265
+ - spec/mongoid/extensions/symbol_spec.rb
1266
+ - spec/mongoid/extensions/time_spec.rb
1267
+ - spec/mongoid/extensions/time_with_zone_spec.rb
1268
+ - spec/mongoid/extensions/true_class_spec.rb
1269
+ - spec/mongoid/extensions_spec.rb
1270
+ - spec/mongoid/factory_spec.rb
1271
+ - spec/mongoid/fields/foreign_key_spec.rb
1272
+ - spec/mongoid/fields/localized_spec.rb
1273
+ - spec/mongoid/fields/standard_spec.rb
1274
+ - spec/mongoid/fields_spec.rb
1275
+ - spec/mongoid/findable_spec.rb
1276
+ - spec/mongoid/indexable/specification_spec.rb
1277
+ - spec/mongoid/indexable_spec.rb
1278
+ - spec/mongoid/inspectable_spec.rb
1279
+ - spec/mongoid/interceptable_spec.rb
1280
+ - spec/mongoid/loggable_spec.rb
1281
+ - spec/mongoid/matchable/all_spec.rb
1282
+ - spec/mongoid/matchable/and_spec.rb
1283
+ - spec/mongoid/matchable/default_spec.rb
1284
+ - spec/mongoid/matchable/elem_match_spec.rb
1285
+ - spec/mongoid/matchable/exists_spec.rb
1286
+ - spec/mongoid/matchable/gt_spec.rb
1287
+ - spec/mongoid/matchable/gte_spec.rb
1288
+ - spec/mongoid/matchable/in_spec.rb
1289
+ - spec/mongoid/matchable/lt_spec.rb
1290
+ - spec/mongoid/matchable/lte_spec.rb
1291
+ - spec/mongoid/matchable/ne_spec.rb
1292
+ - spec/mongoid/matchable/nin_spec.rb
1293
+ - spec/mongoid/matchable/or_spec.rb
1294
+ - spec/mongoid/matchable/regexp_spec.rb
1295
+ - spec/mongoid/matchable/size_spec.rb
1296
+ - spec/mongoid/matchable_spec.rb
1019
1297
  - spec/mongoid/persistable/creatable_spec.rb
1020
- - spec/mongoid/persistable/updatable_spec.rb
1021
- - spec/mongoid/persistable/unsettable_spec.rb
1298
+ - spec/mongoid/persistable/deletable_spec.rb
1022
1299
  - spec/mongoid/persistable/destroyable_spec.rb
1023
- - spec/mongoid/persistable/pushable_spec.rb
1024
- - spec/mongoid/persistable/logical_spec.rb
1025
- - spec/mongoid/persistable/settable_spec.rb
1026
1300
  - spec/mongoid/persistable/incrementable_spec.rb
1027
- - spec/mongoid/persistable/upsertable_spec.rb
1028
- - spec/mongoid/persistable/savable_spec.rb
1301
+ - spec/mongoid/persistable/logical_spec.rb
1302
+ - spec/mongoid/persistable/poppable_spec.rb
1029
1303
  - spec/mongoid/persistable/pullable_spec.rb
1304
+ - spec/mongoid/persistable/pushable_spec.rb
1030
1305
  - spec/mongoid/persistable/renamable_spec.rb
1031
- - spec/mongoid/persistable/poppable_spec.rb
1306
+ - spec/mongoid/persistable/savable_spec.rb
1307
+ - spec/mongoid/persistable/settable_spec.rb
1308
+ - spec/mongoid/persistable/unsettable_spec.rb
1309
+ - spec/mongoid/persistable/updatable_spec.rb
1310
+ - spec/mongoid/persistable/upsertable_spec.rb
1311
+ - spec/mongoid/persistable_spec.rb
1312
+ - spec/mongoid/persistence_context_spec.rb
1313
+ - spec/mongoid/positional_spec.rb
1314
+ - spec/mongoid/query_cache_spec.rb
1315
+ - spec/mongoid/relations/proxy_spec.rb
1032
1316
  - spec/mongoid/reloadable_spec.rb
1317
+ - spec/mongoid/scopable_spec.rb
1318
+ - spec/mongoid/selectable_spec.rb
1319
+ - spec/mongoid/serializable_spec.rb
1320
+ - spec/mongoid/shardable_spec.rb
1321
+ - spec/mongoid/stateful_spec.rb
1322
+ - spec/mongoid/tasks/database_rake_spec.rb
1323
+ - spec/mongoid/tasks/database_spec.rb
1033
1324
  - spec/mongoid/threaded_spec.rb
1034
- - spec/mongoid/relations_spec.rb
1325
+ - spec/mongoid/timestamps/created/short_spec.rb
1326
+ - spec/mongoid/timestamps/created_spec.rb
1327
+ - spec/mongoid/timestamps/timeless_spec.rb
1328
+ - spec/mongoid/timestamps/updated/short_spec.rb
1329
+ - spec/mongoid/timestamps/updated_spec.rb
1330
+ - spec/mongoid/timestamps_spec.rb
1331
+ - spec/mongoid/traversable_spec.rb
1332
+ - spec/mongoid/validatable/associated_spec.rb
1333
+ - spec/mongoid/validatable/format_spec.rb
1334
+ - spec/mongoid/validatable/length_spec.rb
1335
+ - spec/mongoid/validatable/numericality_spec.rb
1336
+ - spec/mongoid/validatable/presence_spec.rb
1337
+ - spec/mongoid/validatable/uniqueness_spec.rb
1035
1338
  - spec/mongoid/validatable_spec.rb
1036
- - spec/mongoid/fields/standard_spec.rb
1037
- - spec/mongoid/fields/localized_spec.rb
1038
- - spec/mongoid/fields/internal/foreign_keys/object_spec.rb
1039
- - spec/mongoid/fields/internal/foreign_keys/array_spec.rb
1040
- - spec/mongoid/fields/foreign_key_spec.rb
1041
- - spec/mongoid/inspectable_spec.rb
1042
- - spec/mongoid/errors/invalid_options_spec.rb
1043
- - spec/mongoid/errors/mixed_relations_spec.rb
1044
- - spec/mongoid/errors/unsaved_document_spec.rb
1045
- - spec/mongoid/errors/invalid_index_spec.rb
1046
- - spec/mongoid/errors/invalid_scope_spec.rb
1047
- - spec/mongoid/errors/document_not_destroyed_spec.rb
1048
- - spec/mongoid/errors/invalid_storage_options_spec.rb
1049
- - spec/mongoid/errors/too_many_nested_attribute_records_spec.rb
1050
- - spec/mongoid/errors/invalid_relation_spec.rb
1051
- - spec/mongoid/errors/scope_overwrite_spec.rb
1052
- - spec/mongoid/errors/invalid_collection_spec.rb
1053
- - spec/mongoid/errors/mongoid_error_spec.rb
1054
- - spec/mongoid/errors/invalid_path_spec.rb
1055
- - spec/mongoid/errors/invalid_config_option_spec.rb
1056
- - spec/mongoid/errors/unsupported_javascript_spec.rb
1057
- - spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb
1058
- - spec/mongoid/errors/no_client_config_spec.rb
1059
- - spec/mongoid/errors/no_metadata_spec.rb
1060
- - spec/mongoid/errors/validations_spec.rb
1061
- - spec/mongoid/errors/no_clients_config_spec.rb
1062
- - spec/mongoid/errors/ambiguous_relationship_spec.rb
1063
- - spec/mongoid/errors/no_client_hosts_spec.rb
1064
- - spec/mongoid/errors/mixed_client_configuration_spec.rb
1065
- - spec/mongoid/errors/no_client_database_spec.rb
1066
- - spec/mongoid/errors/invalid_find_spec.rb
1067
- - spec/mongoid/errors/inverse_not_found_spec.rb
1068
- - spec/mongoid/errors/unknown_attribute_spec.rb
1069
- - spec/mongoid/errors/invalid_time_spec.rb
1070
- - spec/mongoid/errors/callback_spec.rb
1071
- - spec/mongoid/errors/no_parent_spec.rb
1072
- - spec/mongoid/errors/no_map_reduce_output_spec.rb
1073
- - spec/mongoid/errors/document_not_found_spec.rb
1074
- - spec/mongoid/errors/no_environment_spec.rb
1075
- - spec/mongoid/errors/delete_restriction_spec.rb
1076
- - spec/mongoid/errors/readonly_document_spec.rb
1077
- - spec/mongoid/errors/invalid_includes_spec.rb
1078
- - spec/mongoid/errors/readonly_attribute_spec.rb
1079
- - spec/mongoid/errors/invalid_field_spec.rb
1080
- - spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb
1081
- - spec/mongoid/errors/eager_load_spec.rb
1082
- - spec/mongoid/errors/invalid_field_option_spec.rb
1083
- - spec/mongoid/equality_spec.rb
1084
- - spec/mongoid/criteria/scopable_spec.rb
1085
- - spec/mongoid/criteria/modifiable_spec.rb
1086
- - spec/mongoid/criteria/findable_spec.rb
1087
- - spec/mongoid/criteria/options_spec.rb
1088
- - spec/mongoid/criteria/queryable/selectable_spec.rb
1089
- - spec/mongoid/criteria/queryable/selector_spec.rb
1090
- - spec/mongoid/criteria/queryable/options_spec.rb
1091
- - spec/mongoid/criteria/queryable/optional_spec.rb
1092
- - spec/mongoid/criteria/queryable/key_spec.rb
1093
- - spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
1094
- - spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb
1095
- - spec/mongoid/criteria/queryable/extensions/time_spec.rb
1096
- - spec/mongoid/criteria/queryable/extensions/boolean_spec.rb
1097
- - spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
1098
- - spec/mongoid/criteria/queryable/extensions/object_spec.rb
1099
- - spec/mongoid/criteria/queryable/extensions/array_spec.rb
1100
- - spec/mongoid/criteria/queryable/extensions/set_spec.rb
1101
- - spec/mongoid/criteria/queryable/extensions/hash_spec.rb
1102
- - spec/mongoid/criteria/queryable/extensions/date_spec.rb
1103
- - spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb
1104
- - spec/mongoid/criteria/queryable/extensions/date_time_spec.rb
1105
- - spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb
1106
- - spec/mongoid/criteria/queryable/extensions/string_spec.rb
1107
- - spec/mongoid/criteria/queryable/extensions/bignum_spec.rb
1108
- - spec/mongoid/criteria/queryable/extensions/range_spec.rb
1109
- - spec/mongoid/criteria/queryable/extensions/symbol_spec.rb
1110
- - spec/mongoid/criteria/queryable/extensions/integer_spec.rb
1111
- - spec/mongoid/criteria/queryable/extensions/float_spec.rb
1112
- - spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
1113
- - spec/mongoid/criteria/queryable/forwardable_spec.rb
1114
- - spec/mongoid/criteria/queryable/smash_spec.rb
1115
- - spec/mongoid/criteria/queryable/aggregable_spec.rb
1116
- - spec/mongoid/criteria/queryable/mergeable_spec.rb
1117
- - spec/mongoid/criteria/queryable/pipeline_spec.rb
1118
- - spec/mongoid/criteria/queryable/queryable_spec.rb
1119
- - spec/mongoid/criteria/marshalable_spec.rb
1120
- - spec/mongoid/criteria/inspectable_spec.rb
1121
- - spec/mongoid/validatable/presence_spec.rb
1122
- - spec/mongoid/validatable/associated_spec.rb
1123
- - spec/mongoid/validatable/uniqueness_spec.rb
1124
- - spec/mongoid/validatable/format_spec.rb
1125
- - spec/mongoid/validatable/numericality_spec.rb
1126
- - spec/mongoid/validatable/length_spec.rb
1127
- - spec/mongoid/document_spec.rb
1128
- - spec/mongoid/matchable/regexp_spec.rb
1129
- - spec/mongoid/matchable/nor_spec.rb
1130
- - spec/mongoid/matchable/lte_spec.rb
1131
- - spec/mongoid/matchable/ne_spec.rb
1132
- - spec/mongoid/matchable/in_spec.rb
1133
- - spec/mongoid/matchable/gte_spec.rb
1134
- - spec/mongoid/matchable/exists_spec.rb
1135
- - spec/mongoid/matchable/all_spec.rb
1136
- - spec/mongoid/matchable/or_spec.rb
1137
- - spec/mongoid/matchable/gt_spec.rb
1138
- - spec/mongoid/matchable/nin_spec.rb
1139
- - spec/mongoid/matchable/lt_spec.rb
1140
- - spec/mongoid/matchable/elem_match_spec.rb
1141
- - spec/mongoid/matchable/default_spec.rb
1142
- - spec/mongoid/matchable/and_spec.rb
1143
- - spec/mongoid/matchable/size_spec.rb
1144
- - spec/mongoid/clients_spec.rb
1145
- - spec/spec_helper.rb
1146
- - spec/app/models/draft.rb
1147
- - spec/app/models/fish.rb
1148
- - spec/app/models/word.rb
1149
- - spec/app/models/image.rb
1150
- - spec/app/models/short_agent.rb
1151
- - spec/app/models/courier_job.rb
1152
- - spec/app/models/eye_bowl.rb
1153
- - spec/app/models/song.rb
1154
- - spec/app/models/thing.rb
1155
- - spec/app/models/membership.rb
1156
- - spec/app/models/note.rb
1157
- - spec/app/models/shop.rb
1158
- - spec/app/models/tool.rb
1159
- - spec/app/models/doctor.rb
1160
- - spec/app/models/video.rb
1161
- - spec/app/models/title.rb
1162
- - spec/app/models/account.rb
1163
- - spec/app/models/learner.rb
1164
- - spec/app/models/face.rb
1165
- - spec/app/models/alert.rb
1166
- - spec/app/models/explosion.rb
1167
- - spec/app/models/article.rb
1168
- - spec/app/models/category.rb
1169
- - spec/app/models/acolyte.rb
1170
- - spec/app/models/tag.rb
1171
- - spec/app/models/override.rb
1172
- - spec/app/models/item.rb
1173
- - spec/app/models/odd.rb
1174
- - spec/app/models/canvas.rb
1175
- - spec/app/models/actress.rb
1176
- - spec/app/models/circus.rb
1177
- - spec/app/models/actor.rb
1178
- - spec/app/models/manufacturer.rb
1179
- - spec/app/models/contextable_item.rb
1180
- - spec/app/models/login.rb
1181
- - spec/app/models/node.rb
1182
- - spec/app/models/shipping_container.rb
1183
- - spec/app/models/square.rb
1184
- - spec/app/models/audio.rb
1185
- - spec/app/models/short_quiz.rb
1186
- - spec/app/models/scheduler.rb
1187
- - spec/app/models/exhibition.rb
1188
- - spec/app/models/pet_owner.rb
1189
- - spec/app/models/employer.rb
1190
- - spec/app/models/appointment.rb
1191
- - spec/app/models/driver.rb
1192
- - spec/app/models/simple.rb
1193
- - spec/app/models/ghost.rb
1194
- - spec/app/models/page_question.rb
1195
- - spec/app/models/bed.rb
1196
- - spec/app/models/country_code.rb
1197
- - spec/app/models/name.rb
1198
- - spec/app/models/dictionary.rb
1199
- - spec/app/models/baby.rb
1200
- - spec/app/models/label.rb
1201
- - spec/app/models/entry.rb
1202
- - spec/app/models/language.rb
1203
- - spec/app/models/definition.rb
1204
- - spec/app/models/store_as_dup_test2.rb
1205
- - spec/app/models/agent.rb
1206
- - spec/app/models/shipment_address.rb
1207
- - spec/app/models/array_field.rb
1208
- - spec/app/models/kangaroo.rb
1209
- - spec/app/models/my_hash.rb
1210
- - spec/app/models/favorite.rb
1211
- - spec/app/models/ordered_preference.rb
1212
- - spec/app/models/translation.rb
1213
- - spec/app/models/breed.rb
1214
- - spec/app/models/email.rb
1215
- - spec/app/models/slave.rb
1216
- - spec/app/models/lat_lng.rb
1217
- - spec/app/models/child.rb
1218
- - spec/app/models/word_origin.rb
1219
- - spec/app/models/shape.rb
1220
- - spec/app/models/product.rb
1221
- - spec/app/models/writer.rb
1222
- - spec/app/models/book.rb
1223
- - spec/app/models/target.rb
1224
- - spec/app/models/dog.rb
1225
- - spec/app/models/record.rb
1226
- - spec/app/models/template.rb
1227
- - spec/app/models/bar.rb
1228
- - spec/app/models/birthday.rb
1229
- - spec/app/models/powerup.rb
1230
- - spec/app/models/movie.rb
1231
- - spec/app/models/dokument.rb
1232
- - spec/app/models/fire_hydrant.rb
1233
- - spec/app/models/car.rb
1234
- - spec/app/models/shipping_pack.rb
1235
- - spec/app/models/post_genre.rb
1236
- - spec/app/models/location.rb
1237
- - spec/app/models/eraser.rb
1238
- - spec/app/models/weapon.rb
1239
- - spec/app/models/album.rb
1240
- - spec/app/models/cookie.rb
1241
- - spec/app/models/browser.rb
1242
- - spec/app/models/artist.rb
1243
- - spec/app/models/business.rb
1244
- - spec/app/models/player.rb
1245
- - spec/app/models/basic.rb
1246
- - spec/app/models/sub_item.rb
1247
- - spec/app/models/wiki_page.rb
1248
- - spec/app/models/fruits.rb
1249
- - spec/app/models/validation_callback.rb
1250
- - spec/app/models/bus.rb
1251
- - spec/app/models/strategy.rb
1252
- - spec/app/models/page.rb
1253
- - spec/app/models/church.rb
1254
- - spec/app/models/message.rb
1255
- - spec/app/models/sandwich.rb
1256
- - spec/app/models/edit.rb
1257
- - spec/app/models/animal.rb
1258
- - spec/app/models/vehicle.rb
1259
- - spec/app/models/code.rb
1260
- - spec/app/models/drug.rb
1261
- - spec/app/models/series.rb
1262
- - spec/app/models/mixed_drink.rb
1263
- - spec/app/models/parent.rb
1264
- - spec/app/models/author.rb
1265
- - spec/app/models/question.rb
1266
- - spec/app/models/implant.rb
1267
- - spec/app/models/id_key.rb
1268
- - spec/app/models/delegating_patient.rb
1269
- - spec/app/models/palette.rb
1270
- - spec/app/models/owner.rb
1271
- - spec/app/models/address_component.rb
1272
- - spec/app/models/purchase.rb
1273
- - spec/app/models/truck.rb
1274
- - spec/app/models/role.rb
1275
- - spec/app/models/princess.rb
1276
- - spec/app/models/vet_visit.rb
1277
- - spec/app/models/cat.rb
1278
- - spec/app/models/folder.rb
1279
- - spec/app/models/league.rb
1280
- - spec/app/models/store_as_dup_test1.rb
1281
- - spec/app/models/house.rb
1282
- - spec/app/models/patient.rb
1283
- - spec/app/models/rating.rb
1284
- - spec/app/models/track.rb
1285
- - spec/app/models/registry.rb
1286
- - spec/app/models/dragon.rb
1287
- - spec/app/models/building.rb
1288
- - spec/app/models/circle.rb
1289
- - spec/app/models/game.rb
1290
- - spec/app/models/meat.rb
1291
- - spec/app/models/oscar.rb
1292
- - spec/app/models/pub.rb
1293
- - spec/app/models/dungeon.rb
1294
- - spec/app/models/callback_test.rb
1295
- - spec/app/models/user_account.rb
1296
- - spec/app/models/ordered_post.rb
1297
- - spec/app/models/contractor.rb
1298
- - spec/app/models/eye.rb
1299
- - spec/app/models/filesystem.rb
1300
- - spec/app/models/profile.rb
1301
- - spec/app/models/pizza.rb
1302
- - spec/app/models/building_address.rb
1303
- - spec/app/models/augmentation.rb
1304
- - spec/app/models/answer.rb
1305
- - spec/app/models/firefox.rb
1306
- - spec/app/models/pet.rb
1307
- - spec/app/models/parent_doc.rb
1308
- - spec/app/models/company.rb
1309
- - spec/app/models/version.rb
1310
- - spec/app/models/child_doc.rb
1311
- - spec/app/models/home.rb
1312
- - spec/app/models/staff.rb
1313
- - spec/app/models/even.rb
1314
- - spec/app/models/pdf_writer.rb
1315
- - spec/app/models/description.rb
1316
- - spec/app/models/comment.rb
1317
- - spec/app/models/video_game.rb
1318
- - spec/app/models/circuit.rb
1319
- - spec/app/models/person.rb
1320
- - spec/app/models/passport.rb
1321
- - spec/app/models/jar.rb
1322
- - spec/app/models/agency.rb
1323
- - spec/app/models/folder_item.rb
1324
- - spec/app/models/subscription.rb
1325
- - spec/app/models/seo.rb
1326
- - spec/app/models/pronunciation.rb
1327
- - spec/app/models/root_category.rb
1328
- - spec/app/models/exhibitor.rb
1329
- - spec/app/models/band.rb
1330
- - spec/app/models/pencil.rb
1331
- - spec/app/models/symptom.rb
1332
- - spec/app/models/survey.rb
1333
- - spec/app/models/consumption_period.rb
1334
- - spec/app/models/post.rb
1335
- - spec/app/models/address.rb
1336
- - spec/app/models/sound.rb
1337
- - spec/app/models/phone.rb
1338
- - spec/app/models/topping.rb
1339
- - spec/app/models/ownable.rb
1340
- - spec/app/models/line_item.rb
1341
- - spec/app/models/pack.rb
1342
- - spec/app/models/division.rb
1343
- - spec/app/models/bomb.rb
1344
- - spec/app/models/big_palette.rb
1345
- - spec/app/models/event.rb
1346
- - spec/app/models/shelf.rb
1347
- - spec/app/models/server.rb
1348
- - spec/app/models/html_writer.rb
1349
- - spec/app/models/quiz.rb
1350
- - spec/app/models/preference.rb
1351
- - spec/app/models/service.rb
1352
- - spec/app/models/user.rb
1353
- - spec/app/models/tree.rb
1354
- - spec/app/models/address_number.rb
1355
- - spec/app/models/kaleidoscope.rb
1356
- - spec/app/models/artwork.rb
1357
- - spec/config/mongoid.yml
1358
- - spec/integration/document_spec.rb
1359
1339
  - spec/mongoid_spec.rb
1360
- - spec/support/session_registry.rb
1361
- - spec/support/constraints.rb
1362
- - spec/support/macros.rb
1363
- - spec/support/expectations.rb
1364
- - spec/support/authorization.rb
1365
- - spec/support/spec_config.rb
1366
- - spec/support/cluster_config.rb
1367
- - spec/rails/controller_extension/controller_runtime_spec.rb
1368
1340
  - spec/rails/mongoid_spec.rb
1341
+ - spec/spec_helper.rb
1342
+ - spec/support/authorization.rb
1343
+ - spec/support/expectations.rb