mongoid 7.1.6 → 7.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,128 @@
1
+ TOOLCHAIN_VERSION=289d4bec7c61e88000cea582c05fd8073b932122
2
+
3
+ set_env_java() {
4
+ ls -l /opt || true
5
+ ls -l /usr/lib/jvm || true
6
+
7
+ # Use toolchain java if it exists
8
+ if [ -f /opt/java/jdk8/bin/java ]; then
9
+ export JAVACMD=/opt/java/jdk8/bin/java
10
+ #export PATH=$PATH:/opt/java/jdk8/bin
11
+ fi
12
+
13
+ # ppc64le has it in a different place
14
+ if test -z "$JAVACMD" && [ -f /usr/lib/jvm/java-1.8.0/bin/java ]; then
15
+ export JAVACMD=/usr/lib/jvm/java-1.8.0/bin/java
16
+ #export PATH=$PATH:/usr/lib/jvm/java-1.8.0/bin
17
+ fi
18
+
19
+ if true; then
20
+ # newer
21
+ # rhel71-ppc, https://jira.mongodb.org/browse/BUILD-9231
22
+ if test -z "$JAVACMD" &&
23
+ (ls /opt/java || true) |grep -q java-1.8.0-openjdk-1.8.0 &&
24
+ test -f /opt/java/java-1.8.0-openjdk-1.8.0*/bin/java;
25
+ then
26
+ path=$(cd /opt/java && ls -d java-1.8.0-openjdk-1.8.0* |head -n 1)
27
+ export JAVACMD=/opt/java/"$path"/bin/java
28
+ fi
29
+ else
30
+ # older
31
+ # rhel71-ppc seems to have an /opt/java/jdk8/bin/java but it doesn't work
32
+ if test -n "$JAVACMD" && ! exec $JAVACMD -version; then
33
+ JAVACMD=
34
+ # we will try the /usr/lib/jvm then
35
+ fi
36
+ fi
37
+
38
+ if test -n "$JAVACMD"; then
39
+ eval $JAVACMD -version
40
+ elif which java 2>/dev/null; then
41
+ java -version
42
+ else
43
+ echo No java runtime found
44
+ fi
45
+ }
46
+
47
+ set_env_ruby() {
48
+ if test -z "$RVM_RUBY"; then
49
+ echo "Empty RVM_RUBY, aborting"
50
+ exit 2
51
+ fi
52
+
53
+ #ls -l /opt
54
+
55
+ # Necessary for jruby
56
+ set_env_java
57
+
58
+ if [ "$RVM_RUBY" == "ruby-head" ]; then
59
+ # When we use ruby-head, we do not install the Ruby toolchain.
60
+ # But we still need Python 3.6+ to run mlaunch.
61
+ # Since the ruby-head tests are run on ubuntu1604, we can use the
62
+ # globally installed Python toolchain.
63
+ #export PATH=/opt/python/3.7/bin:$PATH
64
+
65
+ # 12.04, 14.04 and 16.04 are good
66
+ curl --retry 3 -fL http://rubies.travis-ci.org/ubuntu/`lsb_release -rs`/x86_64/ruby-head.tar.bz2 |tar xfj -
67
+ # TODO adjust gem path?
68
+ export PATH=`pwd`/ruby-head/bin:`pwd`/ruby-head/lib/ruby/gems/2.6.0/bin:$PATH
69
+ ruby --version
70
+ ruby --version |grep dev
71
+ else
72
+ if test "$USE_OPT_TOOLCHAIN" = 1; then
73
+ # nothing, also PATH is already set
74
+ :
75
+ elif true; then
76
+
77
+ # For testing toolchains:
78
+ #toolchain_url=https://s3.amazonaws.com//mciuploads/mongo-ruby-toolchain/`host_distro`/f11598d091441ffc8d746aacfdc6c26741a3e629/mongo_ruby_driver_toolchain_`host_distro |tr - _`_patch_f11598d091441ffc8d746aacfdc6c26741a3e629_5e46f2793e8e866f36eda2c5_20_02_14_19_18_18.tar.gz
79
+ toolchain_url=http://boxes.10gen.com/build/toolchain-drivers/mongo-ruby-driver/ruby-toolchain-`host_distro`-$TOOLCHAIN_VERSION.tar.xz
80
+ curl --retry 3 -fL $toolchain_url |tar Jxf -
81
+ export PATH=`pwd`/rubies/$RVM_RUBY/bin:$PATH
82
+ #export PATH=`pwd`/rubies/python/3/bin:$PATH
83
+
84
+ # Attempt to get bundler to report all errors - so far unsuccessful
85
+ #curl --retry 3 -o bundler-openssl.diff https://github.com/bundler/bundler/compare/v2.0.1...p-mongo:report-errors.diff
86
+ #find . -path \*/lib/bundler/fetcher.rb -exec patch {} bundler-openssl.diff \;
87
+
88
+ else
89
+
90
+ # Normal operation
91
+ if ! test -d $HOME/.rubies/$RVM_RUBY/bin; then
92
+ echo "Ruby directory does not exist: $HOME/.rubies/$RVM_RUBY/bin" 1>&2
93
+ echo "Contents of /opt:" 1>&2
94
+ ls -l /opt 1>&2 || true
95
+ echo ".rubies symlink:" 1>&2
96
+ ls -ld $HOME/.rubies 1>&2 || true
97
+ echo "Our rubies:" 1>&2
98
+ ls -l $HOME/.rubies 1>&2 || true
99
+ exit 2
100
+ fi
101
+ export PATH=$HOME/.rubies/$RVM_RUBY/bin:$PATH
102
+
103
+ fi
104
+
105
+ ruby --version
106
+
107
+ # Ensure we're using the right ruby
108
+ ruby_name=`echo $RVM_RUBY |awk -F- '{print $1}'`
109
+ ruby_version=`echo $RVM_RUBY |awk -F- '{print $2}' |cut -c 1-3`
110
+
111
+ ruby -v |fgrep $ruby_name
112
+ ruby -v |fgrep $ruby_version
113
+
114
+ # We shouldn't need to update rubygems, and there is value in
115
+ # testing on whatever rubygems came with each supported ruby version
116
+ #echo 'updating rubygems'
117
+ #gem update --system
118
+
119
+ # Only install bundler when not using ruby-head.
120
+ # ruby-head comes with bundler and gem complains
121
+ # because installing bundler would overwrite the bundler binary.
122
+ # We now install bundler in the toolchain, hence nothing needs to be done
123
+ # in the tests.
124
+ if false && echo "$RVM_RUBY" |grep -q jruby; then
125
+ gem install bundler -v '<2'
126
+ fi
127
+ fi
128
+ }
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: 7.1.6
4
+ version: 7.1.7
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
- ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMjAwMTIzMTkzNjAxWhcNMjEwMTIy
15
- MTkzNjAxWjAmMSQw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3uBhImOKZ
26
+ mhwwr/8ZBkeE/PBDxkQjeua+NpqSaPr1lvXQaGpHxJzpR/BmSteeoF49jBu0dHaz
27
+ MRghinst6ROS1qVRae0z+wkbnufpH/NxdCUufb639nAlZguT2rGqvM6VZCC8eSO9
28
+ KfJA7/MEE+qQtiQgJaAUVRaGC8fLtmS555BPjNVITJs+BcGDYWh2clWuqlzjHOp3
29
+ YoFhlyUEi7VLlqNH0H/JFttVZK6+qmLelkVNcIYVLeWOB4Lf4VxEiYGEK1ORxsrY
30
+ iyYKJJALWY1FAInGRIlvkN+B8o3yIhq1
31
31
  -----END CERTIFICATE-----
32
- date: 2020-12-01 00:00:00.000000000 Z
32
+ date: 2021-02-24 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activemodel
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '5.1'
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '6.1'
43
+ version: '6.2'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  version: '5.1'
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '6.1'
53
+ version: '6.2'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: mongo
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -450,6 +450,8 @@ files:
450
450
  - spec/app/models/cookie.rb
451
451
  - spec/app/models/country_code.rb
452
452
  - spec/app/models/courier_job.rb
453
+ - spec/app/models/customer.rb
454
+ - spec/app/models/customer_address.rb
453
455
  - spec/app/models/definition.rb
454
456
  - spec/app/models/delegating_patient.rb
455
457
  - spec/app/models/description.rb
@@ -628,6 +630,8 @@ files:
628
630
  - spec/integration/associations/reverse_population_spec.rb
629
631
  - spec/integration/associations/reverse_population_spec_models.rb
630
632
  - spec/integration/bson_regexp_raw_spec.rb
633
+ - spec/integration/callbacks_models.rb
634
+ - spec/integration/callbacks_spec.rb
631
635
  - spec/integration/criteria/date_field_spec.rb
632
636
  - spec/integration/criteria/default_scope_spec.rb
633
637
  - spec/integration/criteria/logical_spec.rb
@@ -926,8 +930,14 @@ files:
926
930
  - spec/shared/lib/mrss/child_process_helper.rb
927
931
  - spec/shared/lib/mrss/cluster_config.rb
928
932
  - spec/shared/lib/mrss/constraints.rb
933
+ - spec/shared/lib/mrss/docker_runner.rb
929
934
  - spec/shared/lib/mrss/lite_constraints.rb
935
+ - spec/shared/lib/mrss/server_version_registry.rb
930
936
  - spec/shared/lib/mrss/spec_organizer.rb
937
+ - spec/shared/share/Dockerfile.erb
938
+ - spec/shared/shlib/distro.sh
939
+ - spec/shared/shlib/server.sh
940
+ - spec/shared/shlib/set_env.sh
931
941
  - spec/spec_helper.rb
932
942
  - spec/support/authorization.rb
933
943
  - spec/support/child_process_helper.rb
@@ -1254,12 +1264,18 @@ test_files:
1254
1264
  - spec/mongoid/selectable_spec.rb
1255
1265
  - spec/mongoid/copyable_spec.rb
1256
1266
  - spec/mongoid/threaded_spec.rb
1267
+ - spec/shared/shlib/server.sh
1268
+ - spec/shared/shlib/distro.sh
1269
+ - spec/shared/shlib/set_env.sh
1257
1270
  - spec/shared/lib/mrss/constraints.rb
1271
+ - spec/shared/lib/mrss/server_version_registry.rb
1272
+ - spec/shared/lib/mrss/docker_runner.rb
1258
1273
  - spec/shared/lib/mrss/cluster_config.rb
1259
1274
  - spec/shared/lib/mrss/lite_constraints.rb
1260
1275
  - spec/shared/lib/mrss/child_process_helper.rb
1261
1276
  - spec/shared/lib/mrss/spec_organizer.rb
1262
1277
  - spec/shared/LICENSE
1278
+ - spec/shared/share/Dockerfile.erb
1263
1279
  - spec/README.md
1264
1280
  - spec/lite_spec_helper.rb
1265
1281
  - spec/support/authorization.rb
@@ -1304,6 +1320,7 @@ test_files:
1304
1320
  - spec/app/models/eye.rb
1305
1321
  - spec/app/models/business.rb
1306
1322
  - spec/app/models/dungeon.rb
1323
+ - spec/app/models/customer.rb
1307
1324
  - spec/app/models/author.rb
1308
1325
  - spec/app/models/address_component.rb
1309
1326
  - spec/app/models/item.rb
@@ -1359,6 +1376,7 @@ test_files:
1359
1376
  - spec/app/models/login.rb
1360
1377
  - spec/app/models/cat.rb
1361
1378
  - spec/app/models/word.rb
1379
+ - spec/app/models/customer_address.rb
1362
1380
  - spec/app/models/tool.rb
1363
1381
  - spec/app/models/shipment_address.rb
1364
1382
  - spec/app/models/minim.rb
@@ -1510,12 +1528,14 @@ test_files:
1510
1528
  - spec/integration/associations/belongs_to_spec.rb
1511
1529
  - spec/integration/associations/foreign_key_spec.rb
1512
1530
  - spec/integration/associations/has_many_spec.rb
1531
+ - spec/integration/callbacks_models.rb
1513
1532
  - spec/integration/shardable_spec.rb
1514
1533
  - spec/integration/criteria/default_scope_spec.rb
1515
1534
  - spec/integration/criteria/time_with_zone_spec.rb
1516
1535
  - spec/integration/criteria/logical_spec.rb
1517
1536
  - spec/integration/criteria/date_field_spec.rb
1518
1537
  - spec/integration/app_spec.rb
1538
+ - spec/integration/callbacks_spec.rb
1519
1539
  - spec/rails/controller_extension/controller_runtime_spec.rb
1520
1540
  - spec/rails/mongoid_spec.rb
1521
1541
  - spec/mongoid_spec.rb
metadata.gz.sig CHANGED
Binary file