mongoid 5.4.0 → 6.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.md +3 -3
- data/Rakefile +26 -0
- data/lib/config/locales/en.yml +40 -0
- data/lib/mongoid/atomic/modifiers.rb +2 -2
- data/lib/mongoid/atomic.rb +5 -5
- data/lib/mongoid/attributes/readonly.rb +22 -0
- data/lib/mongoid/attributes.rb +22 -21
- data/lib/mongoid/cacheable.rb +36 -0
- data/lib/mongoid/changeable.rb +36 -0
- data/lib/mongoid/clients/options.rb +55 -250
- data/lib/mongoid/clients/sessions.rb +113 -0
- data/lib/mongoid/clients/storage_options.rb +2 -69
- data/lib/mongoid/clients.rb +10 -63
- data/lib/mongoid/composable.rb +29 -2
- data/lib/mongoid/config.rb +1 -0
- data/lib/mongoid/contextual/aggregable/mongo.rb +1 -1
- data/lib/mongoid/contextual/atomic.rb +4 -4
- data/lib/mongoid/contextual/map_reduce.rb +7 -3
- data/lib/mongoid/contextual/memory.rb +9 -4
- data/lib/mongoid/contextual/mongo.rb +65 -30
- data/lib/mongoid/contextual/none.rb +12 -0
- data/lib/mongoid/copyable.rb +13 -6
- data/lib/mongoid/criteria/marshalable.rb +2 -2
- data/lib/mongoid/criteria/modifiable.rb +29 -3
- data/lib/mongoid/criteria/options.rb +25 -0
- data/lib/mongoid/criteria/queryable/aggregable.rb +120 -0
- data/lib/mongoid/criteria/queryable/extensions/array.rb +185 -0
- data/lib/mongoid/criteria/queryable/extensions/big_decimal.rb +37 -0
- data/lib/mongoid/criteria/queryable/extensions/boolean.rb +34 -0
- data/lib/mongoid/criteria/queryable/extensions/date.rb +63 -0
- data/lib/mongoid/criteria/queryable/extensions/date_time.rb +53 -0
- data/lib/mongoid/criteria/queryable/extensions/hash.rb +200 -0
- data/lib/mongoid/criteria/queryable/extensions/nil_class.rb +86 -0
- data/lib/mongoid/criteria/queryable/extensions/numeric.rb +90 -0
- data/lib/mongoid/criteria/queryable/extensions/object.rb +206 -0
- data/lib/mongoid/criteria/queryable/extensions/range.rb +70 -0
- data/lib/mongoid/criteria/queryable/extensions/regexp.rb +79 -0
- data/lib/mongoid/criteria/queryable/extensions/set.rb +34 -0
- data/lib/mongoid/criteria/queryable/extensions/string.rb +137 -0
- data/lib/mongoid/criteria/queryable/extensions/symbol.rb +79 -0
- data/lib/mongoid/criteria/queryable/extensions/time.rb +60 -0
- data/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb +54 -0
- data/lib/mongoid/criteria/queryable/extensions.rb +28 -0
- data/lib/mongoid/criteria/queryable/forwardable.rb +65 -0
- data/lib/mongoid/criteria/queryable/key.rb +103 -0
- data/lib/mongoid/criteria/queryable/macroable.rb +27 -0
- data/lib/mongoid/criteria/queryable/mergeable.rb +273 -0
- data/lib/mongoid/criteria/queryable/optional.rb +429 -0
- data/lib/mongoid/criteria/queryable/options.rb +153 -0
- data/lib/mongoid/criteria/queryable/pipeline.rb +111 -0
- data/lib/mongoid/criteria/queryable/selectable.rb +689 -0
- data/lib/mongoid/criteria/queryable/selector.rb +212 -0
- data/lib/mongoid/criteria/queryable/smash.rb +104 -0
- data/lib/mongoid/criteria/queryable.rb +87 -0
- data/lib/mongoid/criteria.rb +6 -2
- data/lib/mongoid/document.rb +34 -41
- data/lib/mongoid/errors/ambiguous_relationship.rb +1 -1
- data/lib/mongoid/errors/in_memory_collation_not_supported.rb +1 -1
- data/lib/mongoid/errors/invalid_field.rb +2 -2
- data/lib/mongoid/errors/invalid_persistence_option.rb +29 -0
- data/lib/mongoid/errors/invalid_relation.rb +66 -0
- data/lib/mongoid/errors/invalid_session_use.rb +24 -0
- data/lib/mongoid/errors.rb +3 -0
- data/lib/mongoid/evolvable.rb +1 -1
- data/lib/mongoid/extensions/big_decimal.rb +17 -8
- data/lib/mongoid/extensions/date.rb +4 -1
- data/lib/mongoid/extensions/decimal128.rb +3 -3
- data/lib/mongoid/extensions/hash.rb +1 -0
- data/lib/mongoid/extensions/regexp.rb +1 -0
- data/lib/mongoid/extensions/string.rb +6 -3
- data/lib/mongoid/extensions/time.rb +4 -1
- data/lib/mongoid/extensions.rb +0 -4
- data/lib/mongoid/factory.rb +2 -1
- data/lib/mongoid/fields/validators/macro.rb +18 -0
- data/lib/mongoid/findable.rb +2 -2
- data/lib/mongoid/indexable.rb +16 -14
- data/lib/mongoid/interceptable.rb +9 -22
- data/lib/mongoid/matchable/all.rb +2 -2
- data/lib/mongoid/matchable/and.rb +3 -3
- data/lib/mongoid/matchable/default.rb +2 -2
- data/lib/mongoid/matchable/elem_match.rb +28 -0
- data/lib/mongoid/matchable/exists.rb +2 -2
- data/lib/mongoid/matchable/gt.rb +4 -2
- data/lib/mongoid/matchable/gte.rb +4 -2
- data/lib/mongoid/matchable/in.rb +2 -2
- data/lib/mongoid/matchable/lt.rb +4 -2
- data/lib/mongoid/matchable/lte.rb +4 -2
- data/lib/mongoid/matchable/ne.rb +2 -2
- data/lib/mongoid/matchable/nin.rb +2 -2
- data/lib/mongoid/matchable/nor.rb +37 -0
- data/lib/mongoid/matchable/or.rb +3 -3
- data/lib/mongoid/matchable/regexp.rb +3 -3
- data/lib/mongoid/matchable/size.rb +2 -2
- data/lib/mongoid/matchable.rb +16 -7
- data/lib/mongoid/persistable/creatable.rb +5 -3
- data/lib/mongoid/persistable/deletable.rb +5 -3
- data/lib/mongoid/persistable/destroyable.rb +1 -5
- data/lib/mongoid/persistable/settable.rb +5 -5
- data/lib/mongoid/persistable/updatable.rb +7 -14
- data/lib/mongoid/persistable/upsertable.rb +2 -1
- data/lib/mongoid/persistable.rb +4 -6
- data/lib/mongoid/persistence_context.rb +220 -0
- data/lib/mongoid/query_cache.rb +67 -23
- data/lib/mongoid/railtie.rb +17 -1
- data/lib/mongoid/railties/controller_runtime.rb +86 -0
- data/lib/mongoid/relations/accessors.rb +3 -0
- data/lib/mongoid/relations/auto_save.rb +12 -4
- data/lib/mongoid/relations/bindings/referenced/many_to_many.rb +4 -4
- data/lib/mongoid/relations/counter_cache.rb +15 -5
- data/lib/mongoid/relations/eager/base.rb +3 -3
- data/lib/mongoid/relations/eager/has_and_belongs_to_many.rb +2 -2
- data/lib/mongoid/relations/eager/has_many.rb +1 -1
- data/lib/mongoid/relations/eager.rb +6 -11
- data/lib/mongoid/relations/embedded/batchable.rb +20 -18
- data/lib/mongoid/relations/embedded/in.rb +13 -1
- data/lib/mongoid/relations/embedded/many.rb +51 -10
- data/lib/mongoid/relations/embedded/one.rb +14 -1
- data/lib/mongoid/relations/macros.rb +9 -1
- data/lib/mongoid/relations/many.rb +4 -0
- data/lib/mongoid/relations/metadata.rb +3 -3
- data/lib/mongoid/relations/options.rb +2 -2
- data/lib/mongoid/relations/proxy.rb +1 -31
- data/lib/mongoid/relations/referenced/in.rb +19 -10
- data/lib/mongoid/relations/referenced/many.rb +30 -26
- data/lib/mongoid/relations/referenced/many_to_many.rb +20 -13
- data/lib/mongoid/relations/referenced/one.rb +15 -1
- data/lib/mongoid/relations/synchronization.rb +12 -12
- data/lib/mongoid/relations/targets/enumerable.rb +24 -4
- data/lib/mongoid/relations/touchable.rb +7 -4
- data/lib/mongoid/reloadable.rb +2 -2
- data/lib/mongoid/scopable.rb +3 -3
- data/lib/mongoid/serializable.rb +1 -1
- data/lib/mongoid/stateful.rb +1 -0
- data/lib/mongoid/tasks/database.rb +3 -2
- data/lib/mongoid/threaded.rb +74 -0
- data/lib/mongoid/traversable.rb +1 -1
- data/lib/mongoid/validatable/uniqueness.rb +1 -2
- data/lib/mongoid/version.rb +1 -1
- data/lib/mongoid.rb +6 -6
- data/lib/rails/generators/mongoid/config/templates/mongoid.yml +18 -3
- data/spec/app/models/agent.rb +2 -0
- data/spec/app/models/album.rb +5 -1
- data/spec/app/models/array_field.rb +7 -0
- data/spec/app/models/artist.rb +21 -0
- data/spec/app/models/band.rb +3 -0
- data/spec/app/models/book.rb +2 -1
- data/spec/app/models/delegating_patient.rb +16 -0
- data/spec/app/models/dokument.rb +1 -0
- data/spec/app/models/ordered_post.rb +5 -0
- data/spec/app/models/oscar.rb +1 -2
- data/spec/app/models/page.rb +1 -1
- data/spec/app/models/person.rb +3 -3
- data/spec/app/models/princess.rb +2 -0
- data/spec/app/models/record.rb +1 -0
- data/spec/app/models/subscription.rb +1 -0
- data/spec/app/models/thing.rb +1 -1
- data/spec/config/mongoid.yml +15 -0
- data/spec/integration/document_spec.rb +22 -0
- data/spec/mongoid/atomic/modifiers_spec.rb +3 -3
- data/spec/mongoid/atomic_spec.rb +5 -5
- data/spec/mongoid/attributes/nested_spec.rb +18 -14
- data/spec/mongoid/attributes/readonly_spec.rb +87 -44
- data/spec/mongoid/attributes_spec.rb +90 -5
- data/spec/mongoid/cacheable_spec.rb +112 -0
- data/spec/mongoid/changeable_spec.rb +58 -0
- data/spec/mongoid/clients/factory_spec.rb +80 -28
- data/spec/mongoid/clients/options_spec.rb +396 -95
- data/spec/mongoid/clients/sessions_spec.rb +334 -0
- data/spec/mongoid/clients_spec.rb +243 -101
- data/spec/mongoid/composable_spec.rb +7 -0
- data/spec/mongoid/config_spec.rb +67 -11
- data/spec/mongoid/contextual/atomic_spec.rb +3 -3
- data/spec/mongoid/contextual/geo_near_spec.rb +1 -0
- data/spec/mongoid/contextual/mongo_spec.rb +275 -22
- data/spec/mongoid/contextual/none_spec.rb +15 -0
- data/spec/mongoid/copyable_spec.rb +13 -4
- data/spec/mongoid/criteria/modifiable_spec.rb +297 -16
- data/spec/mongoid/criteria/options_spec.rb +29 -0
- data/spec/mongoid/criteria/queryable/aggregable_spec.rb +370 -0
- data/spec/mongoid/criteria/queryable/extensions/array_spec.rb +523 -0
- data/spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb +59 -0
- data/spec/mongoid/criteria/queryable/extensions/bignum_spec.rb +58 -0
- data/spec/mongoid/criteria/queryable/extensions/boolean_spec.rb +213 -0
- data/spec/mongoid/criteria/queryable/extensions/date_spec.rb +330 -0
- data/spec/mongoid/criteria/queryable/extensions/date_time_spec.rb +405 -0
- data/spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb +58 -0
- data/spec/mongoid/criteria/queryable/extensions/float_spec.rb +65 -0
- data/spec/mongoid/criteria/queryable/extensions/hash_spec.rb +327 -0
- data/spec/mongoid/criteria/queryable/extensions/integer_spec.rb +65 -0
- data/spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb +77 -0
- data/spec/mongoid/criteria/queryable/extensions/object_spec.rb +108 -0
- data/spec/mongoid/criteria/queryable/extensions/range_spec.rb +309 -0
- data/spec/mongoid/{extensions/origin → criteria/queryable/extensions}/regexp_raw_spec.rb +2 -2
- data/spec/mongoid/criteria/queryable/extensions/regexp_spec.rb +90 -0
- data/spec/mongoid/criteria/queryable/extensions/set_spec.rb +39 -0
- data/spec/mongoid/criteria/queryable/extensions/string_spec.rb +302 -0
- data/spec/mongoid/criteria/queryable/extensions/symbol_spec.rb +167 -0
- data/spec/mongoid/criteria/queryable/extensions/time_spec.rb +376 -0
- data/spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb +347 -0
- data/spec/mongoid/criteria/queryable/forwardable_spec.rb +87 -0
- data/spec/mongoid/criteria/queryable/key_spec.rb +52 -0
- data/spec/mongoid/criteria/queryable/mergeable_spec.rb +49 -0
- data/spec/mongoid/criteria/queryable/optional_spec.rb +1799 -0
- data/spec/mongoid/criteria/queryable/options_spec.rb +360 -0
- data/spec/mongoid/criteria/queryable/pipeline_spec.rb +200 -0
- data/spec/mongoid/criteria/queryable/queryable_spec.rb +137 -0
- data/spec/mongoid/criteria/queryable/selectable_spec.rb +4242 -0
- data/spec/mongoid/criteria/queryable/selector_spec.rb +844 -0
- data/spec/mongoid/criteria/queryable/smash_spec.rb +30 -0
- data/spec/mongoid/criteria/scopable_spec.rb +81 -0
- data/spec/mongoid/criteria_spec.rb +156 -22
- data/spec/mongoid/document_spec.rb +100 -90
- data/spec/mongoid/errors/invalid_relation_spec.rb +37 -0
- data/spec/mongoid/errors/mongoid_error_spec.rb +6 -3
- data/spec/mongoid/extensions/big_decimal_spec.rb +321 -19
- data/spec/mongoid/extensions/boolean_spec.rb +14 -0
- data/spec/mongoid/extensions/date_spec.rb +2 -6
- data/spec/mongoid/extensions/date_time_spec.rb +2 -6
- data/spec/mongoid/extensions/decimal128_spec.rb +1 -1
- data/spec/mongoid/extensions/float_spec.rb +8 -1
- data/spec/mongoid/extensions/hash_spec.rb +15 -0
- data/spec/mongoid/extensions/integer_spec.rb +8 -1
- data/spec/mongoid/extensions/object_spec.rb +11 -0
- data/spec/mongoid/extensions/regexp_spec.rb +23 -0
- data/spec/mongoid/extensions/string_spec.rb +53 -4
- data/spec/mongoid/extensions/time_spec.rb +2 -6
- data/spec/mongoid/extensions/time_with_zone_spec.rb +2 -6
- data/spec/mongoid/factory_spec.rb +11 -0
- data/spec/mongoid/fields_spec.rb +1 -1
- data/spec/mongoid/findable_spec.rb +47 -2
- data/spec/mongoid/indexable_spec.rb +15 -3
- data/spec/mongoid/interceptable_spec.rb +85 -19
- data/spec/mongoid/matchable/all_spec.rb +4 -4
- data/spec/mongoid/matchable/and_spec.rb +10 -10
- data/spec/mongoid/matchable/default_spec.rb +12 -12
- data/spec/mongoid/matchable/elem_match_spec.rb +86 -0
- data/spec/mongoid/matchable/exists_spec.rb +5 -5
- data/spec/mongoid/matchable/gt_spec.rb +18 -7
- data/spec/mongoid/matchable/gte_spec.rb +17 -7
- data/spec/mongoid/matchable/in_spec.rb +5 -5
- data/spec/mongoid/matchable/lt_spec.rb +18 -7
- data/spec/mongoid/matchable/lte_spec.rb +18 -7
- data/spec/mongoid/matchable/ne_spec.rb +5 -5
- data/spec/mongoid/matchable/nin_spec.rb +5 -5
- data/spec/mongoid/matchable/nor_spec.rb +209 -0
- data/spec/mongoid/matchable/or_spec.rb +7 -7
- data/spec/mongoid/matchable/regexp_spec.rb +5 -5
- data/spec/mongoid/matchable/size_spec.rb +3 -3
- data/spec/mongoid/matchable_spec.rb +199 -54
- data/spec/mongoid/persistable/creatable_spec.rb +7 -2
- data/spec/mongoid/persistable/deletable_spec.rb +35 -1
- data/spec/mongoid/persistable/destroyable_spec.rb +25 -2
- data/spec/mongoid/persistable/incrementable_spec.rb +6 -6
- data/spec/mongoid/persistable/savable_spec.rb +34 -29
- data/spec/mongoid/persistable/settable_spec.rb +77 -27
- data/spec/mongoid/persistable/updatable_spec.rb +182 -3
- data/spec/mongoid/persistable_spec.rb +16 -16
- data/spec/mongoid/persistence_context_spec.rb +694 -0
- data/spec/mongoid/positional_spec.rb +1 -1
- data/spec/mongoid/query_cache_spec.rb +170 -12
- data/spec/mongoid/relations/accessors_spec.rb +1 -1
- data/spec/mongoid/relations/auto_save_spec.rb +39 -6
- data/spec/mongoid/relations/bindings/referenced/many_to_many_spec.rb +4 -4
- data/spec/mongoid/relations/builders_spec.rb +37 -10
- data/spec/mongoid/relations/counter_cache_spec.rb +64 -3
- data/spec/mongoid/relations/eager/has_and_belongs_to_many_spec.rb +16 -0
- data/spec/mongoid/relations/eager_spec.rb +40 -0
- data/spec/mongoid/relations/embedded/many_spec.rb +305 -59
- data/spec/mongoid/relations/embedded/one_spec.rb +2 -1
- data/spec/mongoid/relations/macros_spec.rb +415 -7
- data/spec/mongoid/relations/metadata_spec.rb +15 -1
- data/spec/mongoid/relations/proxy_spec.rb +27 -1
- data/spec/mongoid/relations/referenced/in_spec.rb +41 -1
- data/spec/mongoid/relations/referenced/many_spec.rb +35 -25
- data/spec/mongoid/relations/referenced/many_to_many_spec.rb +14 -26
- data/spec/mongoid/relations/synchronization_spec.rb +48 -2
- data/spec/mongoid/relations/targets/enumerable_spec.rb +108 -0
- data/spec/mongoid/relations/touchable_spec.rb +40 -0
- data/spec/mongoid/reloadable_spec.rb +51 -0
- data/spec/mongoid/scopable_spec.rb +13 -0
- data/spec/mongoid/serializable_spec.rb +0 -50
- data/spec/mongoid/threaded_spec.rb +68 -0
- data/spec/mongoid/validatable/presence_spec.rb +1 -1
- data/spec/mongoid/validatable/uniqueness_spec.rb +18 -9
- data/spec/mongoid/validatable_spec.rb +16 -0
- data/spec/rails/controller_extension/controller_runtime_spec.rb +110 -0
- data/spec/spec_helper.rb +101 -8
- data/spec/support/cluster_config.rb +158 -0
- data/spec/support/constraints.rb +101 -0
- data/spec/support/macros.rb +20 -0
- data/spec/support/session_registry.rb +50 -0
- data/spec/support/spec_config.rb +42 -0
- data.tar.gz.sig +0 -0
- metadata +163 -61
- metadata.gz.sig +0 -0
- data/lib/mongoid/clients/thread_options.rb +0 -19
- data/lib/mongoid/extensions/origin/regexp_raw.rb +0 -43
- data/lib/mongoid/railties/document.rb +0 -12
- data/spec/mongoid/railties/document_spec.rb +0 -24
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# encoding: utf-8
|
3
|
+
|
4
|
+
require 'singleton'
|
5
|
+
|
6
|
+
class SpecConfig
|
7
|
+
include Singleton
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
if ENV['MONGODB_URI']
|
11
|
+
@mongodb_uri = Mongo::URI.new(ENV['MONGODB_URI'])
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def addresses
|
16
|
+
if @mongodb_uri
|
17
|
+
@mongodb_uri.servers
|
18
|
+
else
|
19
|
+
['127.0.0.1']
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def mri?
|
24
|
+
!jruby?
|
25
|
+
end
|
26
|
+
|
27
|
+
def jruby?
|
28
|
+
RUBY_PLATFORM =~ /\bjava\b/
|
29
|
+
end
|
30
|
+
|
31
|
+
def platform
|
32
|
+
RUBY_PLATFORM
|
33
|
+
end
|
34
|
+
|
35
|
+
def client_debug?
|
36
|
+
%w(1 true yes).include?((ENV['CLIENT_DEBUG'] || '').downcase)
|
37
|
+
end
|
38
|
+
|
39
|
+
def ci?
|
40
|
+
!!ENV['CI']
|
41
|
+
end
|
42
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
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:
|
4
|
+
version: 6.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Durran Jordan
|
@@ -10,56 +10,47 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
fqd6ctFDOqcJmOYdlSRgb9g8zm4BiNgFWPBSk8NsP7c=
|
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
|
32
31
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
32
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
34
33
|
dependencies:
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
35
|
name: activemodel
|
37
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '4.0'
|
42
|
-
type: :runtime
|
43
|
-
prerelease: false
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '4.0'
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: tzinfo
|
51
36
|
requirement: !ruby/object:Gem::Requirement
|
52
37
|
requirements:
|
53
38
|
- - ">="
|
54
39
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
40
|
+
version: '5.1'
|
41
|
+
- - "<"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 6.0.0
|
56
44
|
type: :runtime
|
57
45
|
prerelease: false
|
58
46
|
version_requirements: !ruby/object:Gem::Requirement
|
59
47
|
requirements:
|
60
48
|
- - ">="
|
61
49
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
50
|
+
version: '5.1'
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 6.0.0
|
63
54
|
- !ruby/object:Gem::Dependency
|
64
55
|
name: mongo
|
65
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +71,6 @@ dependencies:
|
|
80
71
|
- - "<"
|
81
72
|
- !ruby/object:Gem::Version
|
82
73
|
version: 3.0.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: origin
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.3'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '2.3'
|
97
74
|
description: Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written
|
98
75
|
in Ruby.
|
99
76
|
email:
|
@@ -120,12 +97,13 @@ files:
|
|
120
97
|
- lib/mongoid/attributes/nested.rb
|
121
98
|
- lib/mongoid/attributes/processing.rb
|
122
99
|
- lib/mongoid/attributes/readonly.rb
|
100
|
+
- lib/mongoid/cacheable.rb
|
123
101
|
- lib/mongoid/changeable.rb
|
124
102
|
- lib/mongoid/clients.rb
|
125
103
|
- lib/mongoid/clients/factory.rb
|
126
104
|
- lib/mongoid/clients/options.rb
|
105
|
+
- lib/mongoid/clients/sessions.rb
|
127
106
|
- lib/mongoid/clients/storage_options.rb
|
128
|
-
- lib/mongoid/clients/thread_options.rb
|
129
107
|
- lib/mongoid/clients/validators.rb
|
130
108
|
- lib/mongoid/clients/validators/storage.rb
|
131
109
|
- lib/mongoid/composable.rb
|
@@ -153,7 +131,37 @@ files:
|
|
153
131
|
- lib/mongoid/criteria/inspectable.rb
|
154
132
|
- lib/mongoid/criteria/marshalable.rb
|
155
133
|
- lib/mongoid/criteria/modifiable.rb
|
134
|
+
- lib/mongoid/criteria/options.rb
|
156
135
|
- lib/mongoid/criteria/permission.rb
|
136
|
+
- lib/mongoid/criteria/queryable.rb
|
137
|
+
- lib/mongoid/criteria/queryable/aggregable.rb
|
138
|
+
- lib/mongoid/criteria/queryable/extensions.rb
|
139
|
+
- lib/mongoid/criteria/queryable/extensions/array.rb
|
140
|
+
- lib/mongoid/criteria/queryable/extensions/big_decimal.rb
|
141
|
+
- lib/mongoid/criteria/queryable/extensions/boolean.rb
|
142
|
+
- lib/mongoid/criteria/queryable/extensions/date.rb
|
143
|
+
- lib/mongoid/criteria/queryable/extensions/date_time.rb
|
144
|
+
- lib/mongoid/criteria/queryable/extensions/hash.rb
|
145
|
+
- lib/mongoid/criteria/queryable/extensions/nil_class.rb
|
146
|
+
- lib/mongoid/criteria/queryable/extensions/numeric.rb
|
147
|
+
- lib/mongoid/criteria/queryable/extensions/object.rb
|
148
|
+
- lib/mongoid/criteria/queryable/extensions/range.rb
|
149
|
+
- lib/mongoid/criteria/queryable/extensions/regexp.rb
|
150
|
+
- lib/mongoid/criteria/queryable/extensions/set.rb
|
151
|
+
- lib/mongoid/criteria/queryable/extensions/string.rb
|
152
|
+
- lib/mongoid/criteria/queryable/extensions/symbol.rb
|
153
|
+
- lib/mongoid/criteria/queryable/extensions/time.rb
|
154
|
+
- lib/mongoid/criteria/queryable/extensions/time_with_zone.rb
|
155
|
+
- lib/mongoid/criteria/queryable/forwardable.rb
|
156
|
+
- lib/mongoid/criteria/queryable/key.rb
|
157
|
+
- lib/mongoid/criteria/queryable/macroable.rb
|
158
|
+
- lib/mongoid/criteria/queryable/mergeable.rb
|
159
|
+
- lib/mongoid/criteria/queryable/optional.rb
|
160
|
+
- lib/mongoid/criteria/queryable/options.rb
|
161
|
+
- lib/mongoid/criteria/queryable/pipeline.rb
|
162
|
+
- lib/mongoid/criteria/queryable/selectable.rb
|
163
|
+
- lib/mongoid/criteria/queryable/selector.rb
|
164
|
+
- lib/mongoid/criteria/queryable/smash.rb
|
157
165
|
- lib/mongoid/criteria/scopable.rb
|
158
166
|
- lib/mongoid/document.rb
|
159
167
|
- lib/mongoid/equality.rb
|
@@ -174,7 +182,10 @@ files:
|
|
174
182
|
- lib/mongoid/errors/invalid_index.rb
|
175
183
|
- lib/mongoid/errors/invalid_options.rb
|
176
184
|
- lib/mongoid/errors/invalid_path.rb
|
185
|
+
- lib/mongoid/errors/invalid_persistence_option.rb
|
186
|
+
- lib/mongoid/errors/invalid_relation.rb
|
177
187
|
- lib/mongoid/errors/invalid_scope.rb
|
188
|
+
- lib/mongoid/errors/invalid_session_use.rb
|
178
189
|
- lib/mongoid/errors/invalid_set_polymorphic_relation.rb
|
179
190
|
- lib/mongoid/errors/invalid_storage_options.rb
|
180
191
|
- lib/mongoid/errors/invalid_storage_parent.rb
|
@@ -218,7 +229,6 @@ files:
|
|
218
229
|
- lib/mongoid/extensions/nil_class.rb
|
219
230
|
- lib/mongoid/extensions/object.rb
|
220
231
|
- lib/mongoid/extensions/object_id.rb
|
221
|
-
- lib/mongoid/extensions/origin/regexp_raw.rb
|
222
232
|
- lib/mongoid/extensions/range.rb
|
223
233
|
- lib/mongoid/extensions/regexp.rb
|
224
234
|
- lib/mongoid/extensions/set.rb
|
@@ -245,6 +255,7 @@ files:
|
|
245
255
|
- lib/mongoid/matchable/all.rb
|
246
256
|
- lib/mongoid/matchable/and.rb
|
247
257
|
- lib/mongoid/matchable/default.rb
|
258
|
+
- lib/mongoid/matchable/elem_match.rb
|
248
259
|
- lib/mongoid/matchable/exists.rb
|
249
260
|
- lib/mongoid/matchable/gt.rb
|
250
261
|
- lib/mongoid/matchable/gte.rb
|
@@ -253,6 +264,7 @@ files:
|
|
253
264
|
- lib/mongoid/matchable/lte.rb
|
254
265
|
- lib/mongoid/matchable/ne.rb
|
255
266
|
- lib/mongoid/matchable/nin.rb
|
267
|
+
- lib/mongoid/matchable/nor.rb
|
256
268
|
- lib/mongoid/matchable/or.rb
|
257
269
|
- lib/mongoid/matchable/regexp.rb
|
258
270
|
- lib/mongoid/matchable/size.rb
|
@@ -271,11 +283,12 @@ files:
|
|
271
283
|
- lib/mongoid/persistable/unsettable.rb
|
272
284
|
- lib/mongoid/persistable/updatable.rb
|
273
285
|
- lib/mongoid/persistable/upsertable.rb
|
286
|
+
- lib/mongoid/persistence_context.rb
|
274
287
|
- lib/mongoid/positional.rb
|
275
288
|
- lib/mongoid/query_cache.rb
|
276
289
|
- lib/mongoid/railtie.rb
|
290
|
+
- lib/mongoid/railties/controller_runtime.rb
|
277
291
|
- lib/mongoid/railties/database.rake
|
278
|
-
- lib/mongoid/railties/document.rb
|
279
292
|
- lib/mongoid/relations.rb
|
280
293
|
- lib/mongoid/relations/accessors.rb
|
281
294
|
- lib/mongoid/relations/auto_save.rb
|
@@ -385,6 +398,7 @@ files:
|
|
385
398
|
- spec/app/models/animal.rb
|
386
399
|
- spec/app/models/answer.rb
|
387
400
|
- spec/app/models/appointment.rb
|
401
|
+
- spec/app/models/array_field.rb
|
388
402
|
- spec/app/models/article.rb
|
389
403
|
- spec/app/models/artist.rb
|
390
404
|
- spec/app/models/artwork.rb
|
@@ -427,6 +441,7 @@ files:
|
|
427
441
|
- spec/app/models/country_code.rb
|
428
442
|
- spec/app/models/courier_job.rb
|
429
443
|
- spec/app/models/definition.rb
|
444
|
+
- spec/app/models/delegating_patient.rb
|
430
445
|
- spec/app/models/description.rb
|
431
446
|
- spec/app/models/dictionary.rb
|
432
447
|
- spec/app/models/division.rb
|
@@ -581,6 +596,7 @@ files:
|
|
581
596
|
- spec/app/models/word_origin.rb
|
582
597
|
- spec/app/models/writer.rb
|
583
598
|
- spec/config/mongoid.yml
|
599
|
+
- spec/integration/document_spec.rb
|
584
600
|
- spec/mongoid/atomic/modifiers_spec.rb
|
585
601
|
- spec/mongoid/atomic/paths/embedded/many_spec.rb
|
586
602
|
- spec/mongoid/atomic/paths/embedded/one_spec.rb
|
@@ -590,9 +606,11 @@ files:
|
|
590
606
|
- spec/mongoid/attributes/nested_spec.rb
|
591
607
|
- spec/mongoid/attributes/readonly_spec.rb
|
592
608
|
- spec/mongoid/attributes_spec.rb
|
609
|
+
- spec/mongoid/cacheable_spec.rb
|
593
610
|
- spec/mongoid/changeable_spec.rb
|
594
611
|
- spec/mongoid/clients/factory_spec.rb
|
595
612
|
- spec/mongoid/clients/options_spec.rb
|
613
|
+
- spec/mongoid/clients/sessions_spec.rb
|
596
614
|
- spec/mongoid/clients_spec.rb
|
597
615
|
- spec/mongoid/composable_spec.rb
|
598
616
|
- spec/mongoid/config/environment_spec.rb
|
@@ -611,6 +629,38 @@ files:
|
|
611
629
|
- spec/mongoid/criteria/inspectable_spec.rb
|
612
630
|
- spec/mongoid/criteria/marshalable_spec.rb
|
613
631
|
- spec/mongoid/criteria/modifiable_spec.rb
|
632
|
+
- spec/mongoid/criteria/options_spec.rb
|
633
|
+
- spec/mongoid/criteria/queryable/aggregable_spec.rb
|
634
|
+
- spec/mongoid/criteria/queryable/extensions/array_spec.rb
|
635
|
+
- spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb
|
636
|
+
- spec/mongoid/criteria/queryable/extensions/bignum_spec.rb
|
637
|
+
- spec/mongoid/criteria/queryable/extensions/boolean_spec.rb
|
638
|
+
- spec/mongoid/criteria/queryable/extensions/date_spec.rb
|
639
|
+
- spec/mongoid/criteria/queryable/extensions/date_time_spec.rb
|
640
|
+
- spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb
|
641
|
+
- spec/mongoid/criteria/queryable/extensions/float_spec.rb
|
642
|
+
- spec/mongoid/criteria/queryable/extensions/hash_spec.rb
|
643
|
+
- spec/mongoid/criteria/queryable/extensions/integer_spec.rb
|
644
|
+
- spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
|
645
|
+
- spec/mongoid/criteria/queryable/extensions/object_spec.rb
|
646
|
+
- spec/mongoid/criteria/queryable/extensions/range_spec.rb
|
647
|
+
- spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
|
648
|
+
- spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
|
649
|
+
- spec/mongoid/criteria/queryable/extensions/set_spec.rb
|
650
|
+
- spec/mongoid/criteria/queryable/extensions/string_spec.rb
|
651
|
+
- spec/mongoid/criteria/queryable/extensions/symbol_spec.rb
|
652
|
+
- spec/mongoid/criteria/queryable/extensions/time_spec.rb
|
653
|
+
- spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb
|
654
|
+
- spec/mongoid/criteria/queryable/forwardable_spec.rb
|
655
|
+
- spec/mongoid/criteria/queryable/key_spec.rb
|
656
|
+
- spec/mongoid/criteria/queryable/mergeable_spec.rb
|
657
|
+
- spec/mongoid/criteria/queryable/optional_spec.rb
|
658
|
+
- spec/mongoid/criteria/queryable/options_spec.rb
|
659
|
+
- spec/mongoid/criteria/queryable/pipeline_spec.rb
|
660
|
+
- spec/mongoid/criteria/queryable/queryable_spec.rb
|
661
|
+
- spec/mongoid/criteria/queryable/selectable_spec.rb
|
662
|
+
- spec/mongoid/criteria/queryable/selector_spec.rb
|
663
|
+
- spec/mongoid/criteria/queryable/smash_spec.rb
|
614
664
|
- spec/mongoid/criteria/scopable_spec.rb
|
615
665
|
- spec/mongoid/criteria_spec.rb
|
616
666
|
- spec/mongoid/document_spec.rb
|
@@ -630,6 +680,7 @@ files:
|
|
630
680
|
- spec/mongoid/errors/invalid_index_spec.rb
|
631
681
|
- spec/mongoid/errors/invalid_options_spec.rb
|
632
682
|
- spec/mongoid/errors/invalid_path_spec.rb
|
683
|
+
- spec/mongoid/errors/invalid_relation_spec.rb
|
633
684
|
- spec/mongoid/errors/invalid_scope_spec.rb
|
634
685
|
- spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb
|
635
686
|
- spec/mongoid/errors/invalid_storage_options_spec.rb
|
@@ -670,7 +721,6 @@ files:
|
|
670
721
|
- spec/mongoid/extensions/nil_class_spec.rb
|
671
722
|
- spec/mongoid/extensions/object_id_spec.rb
|
672
723
|
- spec/mongoid/extensions/object_spec.rb
|
673
|
-
- spec/mongoid/extensions/origin/regexp_raw_spec.rb
|
674
724
|
- spec/mongoid/extensions/range_spec.rb
|
675
725
|
- spec/mongoid/extensions/regexp_spec.rb
|
676
726
|
- spec/mongoid/extensions/set_spec.rb
|
@@ -696,6 +746,7 @@ files:
|
|
696
746
|
- spec/mongoid/matchable/all_spec.rb
|
697
747
|
- spec/mongoid/matchable/and_spec.rb
|
698
748
|
- spec/mongoid/matchable/default_spec.rb
|
749
|
+
- spec/mongoid/matchable/elem_match_spec.rb
|
699
750
|
- spec/mongoid/matchable/exists_spec.rb
|
700
751
|
- spec/mongoid/matchable/gt_spec.rb
|
701
752
|
- spec/mongoid/matchable/gte_spec.rb
|
@@ -704,6 +755,7 @@ files:
|
|
704
755
|
- spec/mongoid/matchable/lte_spec.rb
|
705
756
|
- spec/mongoid/matchable/ne_spec.rb
|
706
757
|
- spec/mongoid/matchable/nin_spec.rb
|
758
|
+
- spec/mongoid/matchable/nor_spec.rb
|
707
759
|
- spec/mongoid/matchable/or_spec.rb
|
708
760
|
- spec/mongoid/matchable/regexp_spec.rb
|
709
761
|
- spec/mongoid/matchable/size_spec.rb
|
@@ -723,9 +775,9 @@ files:
|
|
723
775
|
- spec/mongoid/persistable/updatable_spec.rb
|
724
776
|
- spec/mongoid/persistable/upsertable_spec.rb
|
725
777
|
- spec/mongoid/persistable_spec.rb
|
778
|
+
- spec/mongoid/persistence_context_spec.rb
|
726
779
|
- spec/mongoid/positional_spec.rb
|
727
780
|
- spec/mongoid/query_cache_spec.rb
|
728
|
-
- spec/mongoid/railties/document_spec.rb
|
729
781
|
- spec/mongoid/relations/accessors_spec.rb
|
730
782
|
- spec/mongoid/relations/auto_save_spec.rb
|
731
783
|
- spec/mongoid/relations/bindings/embedded/in_spec.rb
|
@@ -801,10 +853,16 @@ files:
|
|
801
853
|
- spec/mongoid/validatable/uniqueness_spec.rb
|
802
854
|
- spec/mongoid/validatable_spec.rb
|
803
855
|
- spec/mongoid_spec.rb
|
856
|
+
- spec/rails/controller_extension/controller_runtime_spec.rb
|
804
857
|
- spec/rails/mongoid_spec.rb
|
805
858
|
- spec/spec_helper.rb
|
806
859
|
- spec/support/authorization.rb
|
860
|
+
- spec/support/cluster_config.rb
|
861
|
+
- spec/support/constraints.rb
|
807
862
|
- spec/support/expectations.rb
|
863
|
+
- spec/support/macros.rb
|
864
|
+
- spec/support/session_registry.rb
|
865
|
+
- spec/support/spec_config.rb
|
808
866
|
homepage: http://mongoid.org
|
809
867
|
licenses:
|
810
868
|
- MIT
|
@@ -817,15 +875,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
817
875
|
requirements:
|
818
876
|
- - ">="
|
819
877
|
- !ruby/object:Gem::Version
|
820
|
-
version: '
|
878
|
+
version: '2.2'
|
821
879
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
822
880
|
requirements:
|
823
881
|
- - ">="
|
824
882
|
- !ruby/object:Gem::Version
|
825
883
|
version: 1.3.6
|
826
884
|
requirements: []
|
827
|
-
|
828
|
-
rubygems_version: 2.7.3
|
885
|
+
rubygems_version: 3.0.3
|
829
886
|
signing_key:
|
830
887
|
specification_version: 4
|
831
888
|
summary: Elegant Persistence in Ruby for MongoDB.
|
@@ -834,6 +891,7 @@ test_files:
|
|
834
891
|
- spec/mongoid/scopable_spec.rb
|
835
892
|
- spec/mongoid/clients/factory_spec.rb
|
836
893
|
- spec/mongoid/clients/options_spec.rb
|
894
|
+
- spec/mongoid/clients/sessions_spec.rb
|
837
895
|
- spec/mongoid/matchable_spec.rb
|
838
896
|
- spec/mongoid/copyable_spec.rb
|
839
897
|
- spec/mongoid/changeable_spec.rb
|
@@ -915,7 +973,7 @@ test_files:
|
|
915
973
|
- spec/mongoid/attributes_spec.rb
|
916
974
|
- spec/mongoid/findable_spec.rb
|
917
975
|
- spec/mongoid/query_cache_spec.rb
|
918
|
-
- spec/mongoid/
|
976
|
+
- spec/mongoid/persistence_context_spec.rb
|
919
977
|
- spec/mongoid/interceptable_spec.rb
|
920
978
|
- spec/mongoid/extensions_spec.rb
|
921
979
|
- spec/mongoid/criteria_spec.rb
|
@@ -926,6 +984,7 @@ test_files:
|
|
926
984
|
- spec/mongoid/atomic/paths/embedded/many_spec.rb
|
927
985
|
- spec/mongoid/atomic/modifiers_spec.rb
|
928
986
|
- spec/mongoid/indexable/specification_spec.rb
|
987
|
+
- spec/mongoid/cacheable_spec.rb
|
929
988
|
- spec/mongoid/extensions/regexp_spec.rb
|
930
989
|
- spec/mongoid/extensions/big_decimal_spec.rb
|
931
990
|
- spec/mongoid/extensions/time_spec.rb
|
@@ -942,7 +1001,6 @@ test_files:
|
|
942
1001
|
- spec/mongoid/extensions/false_class_spec.rb
|
943
1002
|
- spec/mongoid/extensions/string_spec.rb
|
944
1003
|
- spec/mongoid/extensions/range_spec.rb
|
945
|
-
- spec/mongoid/extensions/origin/regexp_raw_spec.rb
|
946
1004
|
- spec/mongoid/extensions/symbol_spec.rb
|
947
1005
|
- spec/mongoid/extensions/decimal128_spec.rb
|
948
1006
|
- spec/mongoid/extensions/integer_spec.rb
|
@@ -989,6 +1047,7 @@ test_files:
|
|
989
1047
|
- spec/mongoid/errors/document_not_destroyed_spec.rb
|
990
1048
|
- spec/mongoid/errors/invalid_storage_options_spec.rb
|
991
1049
|
- spec/mongoid/errors/too_many_nested_attribute_records_spec.rb
|
1050
|
+
- spec/mongoid/errors/invalid_relation_spec.rb
|
992
1051
|
- spec/mongoid/errors/scope_overwrite_spec.rb
|
993
1052
|
- spec/mongoid/errors/invalid_collection_spec.rb
|
994
1053
|
- spec/mongoid/errors/mongoid_error_spec.rb
|
@@ -1025,6 +1084,38 @@ test_files:
|
|
1025
1084
|
- spec/mongoid/criteria/scopable_spec.rb
|
1026
1085
|
- spec/mongoid/criteria/modifiable_spec.rb
|
1027
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
|
1028
1119
|
- spec/mongoid/criteria/marshalable_spec.rb
|
1029
1120
|
- spec/mongoid/criteria/inspectable_spec.rb
|
1030
1121
|
- spec/mongoid/validatable/presence_spec.rb
|
@@ -1035,6 +1126,7 @@ test_files:
|
|
1035
1126
|
- spec/mongoid/validatable/length_spec.rb
|
1036
1127
|
- spec/mongoid/document_spec.rb
|
1037
1128
|
- spec/mongoid/matchable/regexp_spec.rb
|
1129
|
+
- spec/mongoid/matchable/nor_spec.rb
|
1038
1130
|
- spec/mongoid/matchable/lte_spec.rb
|
1039
1131
|
- spec/mongoid/matchable/ne_spec.rb
|
1040
1132
|
- spec/mongoid/matchable/in_spec.rb
|
@@ -1045,6 +1137,7 @@ test_files:
|
|
1045
1137
|
- spec/mongoid/matchable/gt_spec.rb
|
1046
1138
|
- spec/mongoid/matchable/nin_spec.rb
|
1047
1139
|
- spec/mongoid/matchable/lt_spec.rb
|
1140
|
+
- spec/mongoid/matchable/elem_match_spec.rb
|
1048
1141
|
- spec/mongoid/matchable/default_spec.rb
|
1049
1142
|
- spec/mongoid/matchable/and_spec.rb
|
1050
1143
|
- spec/mongoid/matchable/size_spec.rb
|
@@ -1111,6 +1204,7 @@ test_files:
|
|
1111
1204
|
- spec/app/models/store_as_dup_test2.rb
|
1112
1205
|
- spec/app/models/agent.rb
|
1113
1206
|
- spec/app/models/shipment_address.rb
|
1207
|
+
- spec/app/models/array_field.rb
|
1114
1208
|
- spec/app/models/kangaroo.rb
|
1115
1209
|
- spec/app/models/my_hash.rb
|
1116
1210
|
- spec/app/models/favorite.rb
|
@@ -1171,6 +1265,7 @@ test_files:
|
|
1171
1265
|
- spec/app/models/question.rb
|
1172
1266
|
- spec/app/models/implant.rb
|
1173
1267
|
- spec/app/models/id_key.rb
|
1268
|
+
- spec/app/models/delegating_patient.rb
|
1174
1269
|
- spec/app/models/palette.rb
|
1175
1270
|
- spec/app/models/owner.rb
|
1176
1271
|
- spec/app/models/address_component.rb
|
@@ -1260,7 +1355,14 @@ test_files:
|
|
1260
1355
|
- spec/app/models/kaleidoscope.rb
|
1261
1356
|
- spec/app/models/artwork.rb
|
1262
1357
|
- spec/config/mongoid.yml
|
1358
|
+
- spec/integration/document_spec.rb
|
1263
1359
|
- spec/mongoid_spec.rb
|
1360
|
+
- spec/support/session_registry.rb
|
1361
|
+
- spec/support/constraints.rb
|
1362
|
+
- spec/support/macros.rb
|
1264
1363
|
- spec/support/expectations.rb
|
1265
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
|
1266
1368
|
- spec/rails/mongoid_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
module Mongoid
|
3
|
-
module Clients
|
4
|
-
module ThreadOptions
|
5
|
-
extend ActiveSupport::Concern
|
6
|
-
|
7
|
-
module ClassMethods
|
8
|
-
|
9
|
-
def client_name
|
10
|
-
Threaded.client_override || super
|
11
|
-
end
|
12
|
-
|
13
|
-
def database_name
|
14
|
-
Threaded.database_override || super
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
module Origin
|
2
|
-
module Extensions
|
3
|
-
|
4
|
-
# This module contains additional bson raw regex behaviour.
|
5
|
-
module Regexp
|
6
|
-
|
7
|
-
module Raw
|
8
|
-
|
9
|
-
# Is the object a regexp?
|
10
|
-
#
|
11
|
-
# @example Is the object a regex?
|
12
|
-
# bson_raw_regexp.regexp?
|
13
|
-
#
|
14
|
-
# @return [ true ] Always true.
|
15
|
-
#
|
16
|
-
# @since 5.2.1
|
17
|
-
def regexp?; true; end
|
18
|
-
|
19
|
-
module ClassMethods
|
20
|
-
|
21
|
-
# Evolve the object into a raw bson regex.
|
22
|
-
#
|
23
|
-
# @example Evolve the object to a regex.
|
24
|
-
# BSON::Regexp::Raw.evolve("^[123]")
|
25
|
-
#
|
26
|
-
# @param [ BSON::Regexp::Raw, String ] object The object to evolve.
|
27
|
-
#
|
28
|
-
# @return [ BSON::Regexp::Raw ] The evolved raw regex.
|
29
|
-
#
|
30
|
-
# @since 5.2.1
|
31
|
-
def evolve(object)
|
32
|
-
__evolve__(object) do |obj|
|
33
|
-
obj.is_a?(String) ? BSON::Regexp::Raw.new(obj) : obj
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
BSON::Regexp::Raw.__send__(:include, Origin::Extensions::Regexp::Raw)
|
43
|
-
BSON::Regexp::Raw.__send__(:extend, Origin::Extensions::Regexp::Raw::ClassMethods)
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module Mongoid
|
2
|
-
module Document
|
3
|
-
# Used in conjunction with fields_for to build a form element for the
|
4
|
-
# destruction of this association. Always returns false because Mongoid
|
5
|
-
# only supports immediate deletion of associations.
|
6
|
-
#
|
7
|
-
# See ActionView::Helpers::FormHelper::fields_for for more info.
|
8
|
-
def _destroy
|
9
|
-
false
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "A document loaded from rails" do
|
4
|
-
before(:all) do
|
5
|
-
require 'mongoid/railties/document'
|
6
|
-
end
|
7
|
-
|
8
|
-
after(:all) do
|
9
|
-
Mongoid::Document.class_eval do
|
10
|
-
undef _destroy
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
it "defines a _destroy method" do
|
15
|
-
expect(Person.new).to respond_to(:_destroy)
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#_destroy" do
|
19
|
-
|
20
|
-
it "always returns false" do
|
21
|
-
expect(Person.new._destroy).to be false
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|