mongoid 7.1.0.rc0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/mongoid.rb +3 -2
- data/lib/mongoid/association/many.rb +3 -2
- data/lib/mongoid/association/proxy.rb +5 -3
- data/lib/mongoid/association/referenced/has_many/enumerable.rb +2 -22
- data/lib/mongoid/association/referenced/has_many/proxy.rb +3 -2
- data/lib/mongoid/attributes.rb +28 -20
- data/lib/mongoid/config.rb +3 -3
- data/lib/mongoid/config/options.rb +5 -2
- data/lib/mongoid/contextual.rb +5 -4
- data/lib/mongoid/contextual/geo_near.rb +3 -2
- data/lib/mongoid/contextual/map_reduce.rb +3 -2
- data/lib/mongoid/contextual/mongo.rb +2 -1
- data/lib/mongoid/fields/standard.rb +2 -1
- data/lib/mongoid/findable.rb +5 -4
- data/lib/mongoid/interceptable.rb +5 -1
- data/lib/mongoid/railties/database.rake +7 -0
- data/lib/mongoid/serializable.rb +3 -1
- data/lib/mongoid/shardable.rb +56 -4
- data/lib/mongoid/tasks/database.rake +10 -5
- data/lib/mongoid/tasks/database.rb +48 -0
- data/lib/mongoid/timestamps/timeless.rb +3 -1
- data/lib/mongoid/version.rb +1 -1
- data/spec/integration/shardable_spec.rb +133 -0
- data/spec/lite_spec_helper.rb +3 -0
- data/spec/mongoid/association/referenced/has_many/enumerable_spec.rb +41 -68
- data/spec/mongoid/attributes_spec.rb +19 -7
- data/spec/mongoid/changeable_spec.rb +23 -0
- data/spec/mongoid/document_fields_spec.rb +29 -0
- data/spec/mongoid/interceptable_spec.rb +62 -0
- data/spec/mongoid/interceptable_spec_models.rb +76 -0
- data/spec/mongoid/shardable_models.rb +61 -0
- data/spec/mongoid/shardable_spec.rb +69 -16
- data/spec/support/lite_constraints.rb +22 -0
- metadata +20 -12
- metadata.gz.sig +0 -0
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: 7.1.0
|
4
|
+
version: 7.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Durran Jordan
|
@@ -11,8 +11,8 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDDBtkcml2
|
14
|
-
|
15
|
-
|
14
|
+
ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMjAwMTIzMTkzNjAxWhcNMjEwMTIy
|
15
|
+
MTkzNjAxWjAmMSQwIgYDVQQDDBtkcml2ZXItcnVieS9EQz0xMGdlbi9EQz1jb20w
|
16
16
|
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDRXUgGvH0ZtWwDPc2umdHw
|
17
17
|
B+INNm6jNTRp8PMyUKxPzxaxX2OiBQk9gLC3zsK9ZmlZu4lNfpHVSCEPoiP/fhPg
|
18
18
|
Kyfq2xld3Qz0Pki5d5i0/r14343MTKiNiFulLlbbdlN0cXeEFNJHUycZnD2LOXwz
|
@@ -22,14 +22,14 @@ cert_chain:
|
|
22
22
|
AgMBAAGjfTB7MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRbd1mx
|
23
23
|
fvSaVIwKI+tnEAYDW/B81zAgBgNVHREEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5j
|
24
24
|
b20wIAYDVR0SBBkwF4EVZHJpdmVyLXJ1YnlAMTBnZW4uY29tMA0GCSqGSIb3DQEB
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
CwUAA4IBAQBfX4dwxG5PhtxES/LDEOaZIZXyaX6CKe367zhW+HxWbSOXMQJFkIQj
|
26
|
+
m7tzT+sDFJXyiOv5cPtfpUam5pTiryzRw5HD6oxlPIt5vO15EJ69v++3m7shMLbw
|
27
|
+
amZOajKXmu2ZGZfhOtj7bOTwmOj1AnWLKeOQIR3STvvfZCD+6dt1XenW7CdjCsxE
|
28
|
+
ifervPjLFqFPsMOgaxikhgPK6bRtszrQhJSYlifKKzxbX1hYAsmGL7IxjubFSV5r
|
29
|
+
gpvfPNWMwyBDlHaNS3GfO6cRRxBOvEG05GUCsvtTY4Bpe8yjE64wg1ymb47LMOnv
|
30
|
+
Qb1lGORmf/opg45mluKUYl7pQNZHD0d3
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activemodel
|
@@ -622,6 +622,7 @@ files:
|
|
622
622
|
- spec/integration/criteria/time_with_zone_spec.rb
|
623
623
|
- spec/integration/i18n_fallbacks_spec.rb
|
624
624
|
- spec/integration/matchable_spec.rb
|
625
|
+
- spec/integration/shardable_spec.rb
|
625
626
|
- spec/lite_spec_helper.rb
|
626
627
|
- spec/mongoid/association/accessors_spec.rb
|
627
628
|
- spec/mongoid/association/auto_save_spec.rb
|
@@ -839,6 +840,7 @@ files:
|
|
839
840
|
- spec/mongoid/indexable_spec.rb
|
840
841
|
- spec/mongoid/inspectable_spec.rb
|
841
842
|
- spec/mongoid/interceptable_spec.rb
|
843
|
+
- spec/mongoid/interceptable_spec_models.rb
|
842
844
|
- spec/mongoid/loggable_spec.rb
|
843
845
|
- spec/mongoid/matchable/all_spec.rb
|
844
846
|
- spec/mongoid/matchable/and_spec.rb
|
@@ -882,6 +884,7 @@ files:
|
|
882
884
|
- spec/mongoid/scopable_spec.rb
|
883
885
|
- spec/mongoid/selectable_spec.rb
|
884
886
|
- spec/mongoid/serializable_spec.rb
|
887
|
+
- spec/mongoid/shardable_models.rb
|
885
888
|
- spec/mongoid/shardable_spec.rb
|
886
889
|
- spec/mongoid/stateful_spec.rb
|
887
890
|
- spec/mongoid/tasks/database_rake_spec.rb
|
@@ -910,6 +913,7 @@ files:
|
|
910
913
|
- spec/support/cluster_config.rb
|
911
914
|
- spec/support/constraints.rb
|
912
915
|
- spec/support/expectations.rb
|
916
|
+
- spec/support/lite_constraints.rb
|
913
917
|
- spec/support/macros.rb
|
914
918
|
- spec/support/shared/time.rb
|
915
919
|
- spec/support/spec_config.rb
|
@@ -931,14 +935,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
931
935
|
requirements:
|
932
936
|
- - ">="
|
933
937
|
- !ruby/object:Gem::Version
|
934
|
-
version: '2.
|
938
|
+
version: '2.3'
|
935
939
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
936
940
|
requirements:
|
937
941
|
- - ">="
|
938
942
|
- !ruby/object:Gem::Version
|
939
943
|
version: 1.3.6
|
940
944
|
requirements: []
|
941
|
-
rubygems_version: 3.
|
945
|
+
rubygems_version: 3.1.2
|
942
946
|
signing_key:
|
943
947
|
specification_version: 4
|
944
948
|
summary: Elegant Persistence in Ruby for MongoDB.
|
@@ -950,6 +954,7 @@ test_files:
|
|
950
954
|
- spec/support/shared/time.rb
|
951
955
|
- spec/support/authorization.rb
|
952
956
|
- spec/support/spec_config.rb
|
957
|
+
- spec/support/lite_constraints.rb
|
953
958
|
- spec/README.md
|
954
959
|
- spec/mongoid_spec.rb
|
955
960
|
- spec/integration/criteria/logical_spec.rb
|
@@ -957,6 +962,7 @@ test_files:
|
|
957
962
|
- spec/integration/criteria/default_scope_spec.rb
|
958
963
|
- spec/integration/i18n_fallbacks_spec.rb
|
959
964
|
- spec/integration/matchable_spec.rb
|
965
|
+
- spec/integration/shardable_spec.rb
|
960
966
|
- spec/integration/associations/reverse_population_spec_models.rb
|
961
967
|
- spec/integration/associations/embedded_spec.rb
|
962
968
|
- spec/integration/associations/belongs_to_spec.rb
|
@@ -969,6 +975,7 @@ test_files:
|
|
969
975
|
- spec/mongoid/criteria_spec.rb
|
970
976
|
- spec/mongoid/copyable_spec.rb
|
971
977
|
- spec/mongoid/clients_spec.rb
|
978
|
+
- spec/mongoid/shardable_models.rb
|
972
979
|
- spec/mongoid/changeable_spec.rb
|
973
980
|
- spec/mongoid/attributes/dynamic_spec.rb
|
974
981
|
- spec/mongoid/attributes/nested_spec.rb
|
@@ -1081,6 +1088,7 @@ test_files:
|
|
1081
1088
|
- spec/mongoid/criteria/options_spec.rb
|
1082
1089
|
- spec/mongoid/criteria/modifiable_spec.rb
|
1083
1090
|
- spec/mongoid/criteria/marshalable_spec.rb
|
1091
|
+
- spec/mongoid/interceptable_spec_models.rb
|
1084
1092
|
- spec/mongoid/touchable_spec.rb
|
1085
1093
|
- spec/mongoid/findable_spec.rb
|
1086
1094
|
- spec/mongoid/extensions/date_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|