activerecord 6.0.2.rc1 → 6.0.2.rc2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 458c4f148157e395ef92a5830397087711428bdb229ca9eea60cd405eec3af13
4
- data.tar.gz: 940647c02f001e722bf339d93faf088f64747eb3c22be454a30dbec897cf136a
3
+ metadata.gz: 32c3cee74df3dec7c74aef412bf110e7587269d9078bfc235adca6e752482932
4
+ data.tar.gz: 8ae337c647d81716d0c1047733ee1ccca27f4e79ab9929e13001f153e67d62e1
5
5
  SHA512:
6
- metadata.gz: aed3b17f1ba36e57cac853c10e0c6f8ca43c2bbfb00acf58fcc73397e89ee4bca17513ae31ad76e35c06c98fc7e477a41095a3a0dd58febf93179d03db4fe9f3
7
- data.tar.gz: 3bf1aa4541ca63aeb46c499a357f93a79d9b060e15360e6b15a93e70d68616716ece4529499cc970c9799166464ff2f14630ab030b9db5ef708a4f0295499dda
6
+ metadata.gz: 26ba2bc3171ddbcf81271a01e1d411c5f9611082ea30f8ff0bb790bbcca96fae189179b58e82b1f57b14e04f8d4f7b7ad27c0420184da5e2bbd1781c30cc3956
7
+ data.tar.gz: 60f5156b187e87d4590e0d7aa0d0d269dcf5b43aca349f6e8b17176de9a4650a9b8e117bdea2f1af50c4f70b1fa6735c0b27c3264df1b1aa056660647ade90fa
@@ -1,4 +1,4 @@
1
- ## Rails 6.0.2.rc1 (November 27, 2019) ##
1
+ ## Rails 6.0.2.rc2 (December 09, 2019) ##
2
2
 
3
3
  * Share the same connection pool for primary and replica databases in the
4
4
  transactional tests for the same database.
@@ -6,7 +6,7 @@
6
6
  *Edouard Chin*
7
7
 
8
8
  * Fix the preloader when one record is fetched using `after_initialize`
9
- but not the entire colection.
9
+ but not the entire collection.
10
10
 
11
11
  *Bradley Price*
12
12
 
@@ -85,9 +85,7 @@ module ActiveRecord
85
85
  set_callback :checkin, :after, :enable_lazy_transactions!
86
86
 
87
87
  def self.type_cast_config_to_integer(config)
88
- if config.nil?
89
- config
90
- elsif config.is_a?(Integer)
88
+ if config.is_a?(Integer)
91
89
  config
92
90
  elsif SIMPLE_INT.match?(config)
93
91
  config.to_i
@@ -162,7 +162,7 @@ module ActiveRecord
162
162
  type_metadata = fetch_type_metadata(field[:Type], field[:Extra])
163
163
  default, default_function = field[:Default], nil
164
164
 
165
- if type_metadata.type == :datetime && default && /\ACURRENT_TIMESTAMP(?:\([0-6]?\))?\z/i.match?(default)
165
+ if type_metadata.type == :datetime && /\ACURRENT_TIMESTAMP(?:\([0-6]?\))?\z/i.match?(default)
166
166
  default, default_function = nil, default
167
167
  elsif type_metadata.extra == "DEFAULT_GENERATED"
168
168
  default = +"(#{default})" unless default.start_with?("(")
@@ -617,7 +617,7 @@ module ActiveRecord
617
617
  end
618
618
 
619
619
  def has_default_function?(default_value, default)
620
- !default_value && default && %r{\w+\(.*\)|\(.*\)::\w+|CURRENT_DATE|CURRENT_TIMESTAMP}.match?(default)
620
+ !default_value && %r{\w+\(.*\)|\(.*\)::\w+|CURRENT_DATE|CURRENT_TIMESTAMP}.match?(default)
621
621
  end
622
622
 
623
623
  def load_additional_types(oids = nil)
@@ -10,7 +10,7 @@ module ActiveRecord
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
12
  TINY = 2
13
- PRE = "rc1"
13
+ PRE = "rc2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.2.rc1
4
+ version: 6.0.2.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-27 00:00:00.000000000 Z
11
+ date: 2019-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.2.rc1
19
+ version: 6.0.2.rc2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 6.0.2.rc1
26
+ version: 6.0.2.rc2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 6.0.2.rc1
33
+ version: 6.0.2.rc2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 6.0.2.rc1
40
+ version: 6.0.2.rc2
41
41
  description: Databases on Rails. Build a persistent domain model by mapping database
42
42
  tables to Ruby classes. Strong conventions for associations, validations, aggregations,
43
43
  migrations, and testing come baked-in.
@@ -390,10 +390,10 @@ licenses:
390
390
  - MIT
391
391
  metadata:
392
392
  bug_tracker_uri: https://github.com/rails/rails/issues
393
- changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc1/activerecord/CHANGELOG.md
394
- documentation_uri: https://api.rubyonrails.org/v6.0.2.rc1/
393
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc2/activerecord/CHANGELOG.md
394
+ documentation_uri: https://api.rubyonrails.org/v6.0.2.rc2/
395
395
  mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
396
- source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc1/activerecord
396
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc2/activerecord
397
397
  post_install_message:
398
398
  rdoc_options:
399
399
  - "--main"