mongoid 6.1.1 → 6.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8df15f3d764e3c19bcc5719c656f833ce258bb65
4
- data.tar.gz: 335173b371125d1e84100af19293bccf459df5b8
3
+ metadata.gz: 5ad94ff3f533cda7ba799fbe4ea06a5a3fde553e
4
+ data.tar.gz: 3a20eae84bfb9f4639b3b1efa76dfacc6dbcd46e
5
5
  SHA512:
6
- metadata.gz: e6fabe8ac17c05be402c8dd42bff52a4158e0a0d0650cd36363a7439ea19e32d0a3b28427b85fb88749df2941d2ba5fa4c639aa74f9b70ef0e4875acd4438ae6
7
- data.tar.gz: 40cf34caa79067109baeee5b434f8e2497c654a91248a73a220ac1ded8d685fbc3ea13adaa0e4335246af64f09ed4942848b5b3e6beacb966ae7f7250c655ac8
6
+ metadata.gz: 1b5d2570c1dedf556f81e40bd2e1ef38157c39757decab9d12a111c239c3ad823c0da7a4804c4e558c9b612388f560e8c5b6007daac1e2a23a3505fb52c03db3
7
+ data.tar.gz: 3d966d851b62722926e7dc78ff18badd848722f5a6ebcc0f9da6e7820974a5c521b37d00ccd0029756c7eb28c36b2e9a0bcdbf8150277a2f4fe2e6ee583a90cc
@@ -0,0 +1,2 @@
1
+ �os�5�P��s���F�:9@
2
+ Jϕ����$�9�!yULU��B�˒2V�]���,Efy��Y�-�w�� �\(bb�Q�h��"�#���Mؗ�=Q�4�-�[;9�,����p���0�J[tHQB�I���8���C�x�!��H��߂���Wa�wd&]w|��P����W#,�Q1斸��s�o�,�r.z�4��Ů��ZH)�NVK�>�=*�L�v�w�B��,�=��J�5ٛd�c�=}Y.�H�x���%
Binary file
@@ -254,8 +254,12 @@ module Mongoid
254
254
  chain.append(callback) if callback.kind == place
255
255
  end
256
256
  self.class.send :define_method, name do
257
- runner = ActiveSupport::Callbacks::Filters::Environment.new(self, false, nil)
258
- chain.compile.call(runner).value
257
+ env = ActiveSupport::Callbacks::Filters::Environment.new(self, false, nil)
258
+ sequence = chain.compile
259
+ sequence.invoke_before(env)
260
+ env.value = !env.halted
261
+ sequence.invoke_after(env)
262
+ env.value
259
263
  end
260
264
  self.class.send :protected, name
261
265
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Mongoid
3
- VERSION = "6.1.1"
3
+ VERSION = "6.2.0"
4
4
  end
@@ -484,32 +484,40 @@ describe Mongoid::Interceptable do
484
484
 
485
485
  context "when the child does not have the same callback defined" do
486
486
 
487
- let(:band) do
488
- Band.new
487
+ let(:exhibition) do
488
+ Exhibition.new
489
489
  end
490
490
 
491
- let!(:record) do
492
- band.records.build
491
+ let!(:exhibitor) do
492
+ exhibition.exhibitors.build
493
493
  end
494
494
 
495
495
  context "when running the callbacks directly" do
496
496
 
497
497
  before(:all) do
498
- Band.define_model_callbacks(:rearrange)
499
- Band.after_rearrange { }
498
+ Exhibition.define_model_callbacks(:rearrange)
499
+ Exhibition.after_rearrange { }
500
500
  end
501
501
 
502
502
  after(:all) do
503
- Band.reset_callbacks(:rearrange)
503
+ Exhibition.reset_callbacks(:rearrange)
504
504
  end
505
505
 
506
506
  it "does not cascade to the child" do
507
- expect(band.run_callbacks(:rearrange)).to be true
507
+ expect(exhibition.run_callbacks(:rearrange)).to be true
508
508
  end
509
509
  end
510
510
 
511
511
  context "when the callbacks get triggered by a destroy" do
512
512
 
513
+ let(:band) do
514
+ Band.new
515
+ end
516
+
517
+ let!(:record) do
518
+ band.records.build
519
+ end
520
+
513
521
  before(:all) do
514
522
  Band.define_model_callbacks(:rearrange)
515
523
  Band.set_callback(:validation, :before) do
@@ -57,7 +57,7 @@ CONFIG = {
57
57
  hosts: [ "#{HOST}:#{PORT}" ],
58
58
  options: {
59
59
  server_selection_timeout: 0.5,
60
- max_pool_size: 1,
60
+ max_pool_size: 5,
61
61
  heartbeat_frequency: 180,
62
62
  user: MONGOID_ROOT_USER.name,
63
63
  password: MONGOID_ROOT_USER.password,
metadata CHANGED
@@ -1,14 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durran Jordan
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
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=
32
+ -----END CERTIFICATE-----
33
+ date: 2017-06-07 00:00:00.000000000 Z
12
34
  dependencies:
13
35
  - !ruby/object:Gem::Dependency
14
36
  name: activemodel
@@ -16,14 +38,14 @@ dependencies:
16
38
  requirements:
17
39
  - - "~>"
18
40
  - !ruby/object:Gem::Version
19
- version: '5.0'
41
+ version: '5.1'
20
42
  type: :runtime
21
43
  prerelease: false
22
44
  version_requirements: !ruby/object:Gem::Requirement
23
45
  requirements:
24
46
  - - "~>"
25
47
  - !ruby/object:Gem::Version
26
- version: '5.0'
48
+ version: '5.1'
27
49
  - !ruby/object:Gem::Dependency
28
50
  name: mongo
29
51
  requirement: !ruby/object:Gem::Requirement
@@ -0,0 +1 @@
1
+ \1��j��XD�|� @m�3-@��{�MG�谞�kb��V�$O� ���E[U/��Q���b\77��戮ߨ�s�\����]E� ��KFw(2�h#������$;s-�����W� #@k�c���%@c�G���B6 �GD�WyqA�Y[� �j4�v� �� �x9߮(����j]an�����ۚ~���ྲf����y�Y�Y�N�@�4z6�1�Y��6�~i2=�#��stz���ŚWqi��