mongoid 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -1
  3. data/README.md +6 -2
  4. data/lib/config/locales/en.yml +2 -2
  5. data/lib/mongoid/atomic.rb +2 -2
  6. data/lib/mongoid/attributes.rb +2 -0
  7. data/lib/mongoid/contextual/aggregable/memory.rb +2 -2
  8. data/lib/mongoid/contextual/mongo.rb +3 -3
  9. data/lib/mongoid/criteria/#findable.rb# +141 -0
  10. data/lib/mongoid/document.rb +5 -5
  11. data/lib/mongoid/query_cache.rb +10 -2
  12. data/lib/mongoid/railtie.rb +2 -15
  13. data/lib/mongoid/railties/database.rake +1 -1
  14. data/lib/mongoid/relations/accessors.rb +2 -2
  15. data/lib/mongoid/relations/binding.rb +1 -1
  16. data/lib/mongoid/relations/bindings/referenced/many_to_many.rb +1 -1
  17. data/lib/mongoid/relations/builders/embedded/one.rb +1 -1
  18. data/lib/mongoid/relations/builders/nested_attributes/one.rb +1 -1
  19. data/lib/mongoid/relations/counter_cache.rb +2 -2
  20. data/lib/mongoid/relations/one.rb +1 -1
  21. data/lib/mongoid/relations/referenced/many.rb +4 -4
  22. data/lib/mongoid/relations/referenced/many_to_many.rb +5 -5
  23. data/lib/mongoid/relations/synchronization.rb +4 -4
  24. data/lib/mongoid/relations/targets/enumerable.rb +10 -10
  25. data/lib/mongoid/reloadable.rb +3 -3
  26. data/lib/mongoid/threaded.rb +26 -15
  27. data/lib/mongoid/traversable.rb +6 -2
  28. data/lib/mongoid/validatable/uniqueness.rb +3 -3
  29. data/lib/mongoid/version.rb +1 -1
  30. data/lib/rails/generators/mongoid/config/templates/mongoid.yml +1 -1
  31. data/spec/app/models/id_key.rb +6 -0
  32. data/spec/mongoid/#atomic_spec.rb# +365 -0
  33. data/spec/mongoid/attributes_spec.rb +36 -0
  34. data/spec/mongoid/contextual/atomic_spec.rb +7 -13
  35. data/spec/mongoid/criteria_spec.rb +86 -75
  36. data/spec/mongoid/document_spec.rb +2 -2
  37. data/spec/mongoid/findable_spec.rb +2 -2
  38. data/spec/mongoid/positional_spec.rb +5 -10
  39. data/spec/mongoid/query_cache_spec.rb +32 -0
  40. data/spec/mongoid/relations/referenced/many_spec.rb +23 -0
  41. data/spec/mongoid/reloadable_spec.rb +23 -0
  42. data/spec/spec_helper.rb +2 -0
  43. metadata +7 -2
@@ -93,6 +93,8 @@ ActiveSupport::Inflector.inflections do |inflect|
93
93
  inflect.singular("address_components", "address_component")
94
94
  end
95
95
 
96
+ I18n.config.enforce_available_locales = false
97
+
96
98
  RSpec.configure do |config|
97
99
  config.include Mongoid::SpecHelpers
98
100
  config.raise_errors_for_deprecations!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durran Jordan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -115,6 +115,7 @@ files:
115
115
  - lib/mongoid/contextual/text_search.rb
116
116
  - lib/mongoid/copyable.rb
117
117
  - lib/mongoid/criteria.rb
118
+ - lib/mongoid/criteria/#findable.rb#
118
119
  - lib/mongoid/criteria/findable.rb
119
120
  - lib/mongoid/criteria/inspectable.rb
120
121
  - lib/mongoid/criteria/marshalable.rb
@@ -429,6 +430,7 @@ files:
429
430
  - spec/app/models/home.rb
430
431
  - spec/app/models/house.rb
431
432
  - spec/app/models/html_writer.rb
433
+ - spec/app/models/id_key.rb
432
434
  - spec/app/models/image.rb
433
435
  - spec/app/models/implant.rb
434
436
  - spec/app/models/item.rb
@@ -537,6 +539,7 @@ files:
537
539
  - spec/app/models/writer.rb
538
540
  - spec/config/mongoid.yml
539
541
  - spec/helpers.rb
542
+ - spec/mongoid/#atomic_spec.rb#
540
543
  - spec/mongoid/atomic/modifiers_spec.rb
541
544
  - spec/mongoid/atomic/paths/embedded/many_spec.rb
542
545
  - spec/mongoid/atomic/paths/embedded/one_spec.rb
@@ -871,6 +874,7 @@ test_files:
871
874
  - spec/app/models/home.rb
872
875
  - spec/app/models/house.rb
873
876
  - spec/app/models/html_writer.rb
877
+ - spec/app/models/id_key.rb
874
878
  - spec/app/models/image.rb
875
879
  - spec/app/models/implant.rb
876
880
  - spec/app/models/item.rb
@@ -979,6 +983,7 @@ test_files:
979
983
  - spec/app/models/writer.rb
980
984
  - spec/config/mongoid.yml
981
985
  - spec/helpers.rb
986
+ - spec/mongoid/#atomic_spec.rb#
982
987
  - spec/mongoid/atomic/modifiers_spec.rb
983
988
  - spec/mongoid/atomic/paths/embedded/many_spec.rb
984
989
  - spec/mongoid/atomic/paths/embedded/one_spec.rb