activerecord 5.2.0.beta1 → 5.2.0.beta2

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
  SHA1:
3
- metadata.gz: 22e4facf2e4a7bd6eccc5391172793dca1bb3f20
4
- data.tar.gz: 210b454b0fec7a44ce0151d2dba267d67717606c
3
+ metadata.gz: 91b2944d649c81f4aa0bbb30fb1f6d203a15ea7e
4
+ data.tar.gz: 428d52c7b7bcc2c22eb65ca55962bb20df16f53e
5
5
  SHA512:
6
- metadata.gz: cdd715e815eeaaed9d749e60f073acdcb56e04ce607f09c8f9540e0fa84ef3d565d7ebb852e73e96c7aa27ab5d3bbca023619786e88a147be7e029279a09fe5b
7
- data.tar.gz: 820e3a53b3e00b51ef2f141f6db8d952ab02348890507a80791aeeb70e0c440c38ff1d608ca1289dbec9d56a2b8d0bb3d5534f9a110d0c8b27b631d140c338ad
6
+ metadata.gz: 5362e13cd1b9b37a8b144dd374510a456f80e1acef25c27230be8d0f782d3fa410e281da2a6533f611e598aecf4556056b9818c8d1bc01dfc6d99905b9c36994
7
+ data.tar.gz: 8d5ae463fdf083c340185878b5bb0e30f63f87d66a5d5d4c1018a9835be886da577c99aa06049797e0868a64a4a155be849be8db3d73e157242840f6f0694e96
@@ -1,3 +1,8 @@
1
+ ## Rails 5.2.0.beta2 (November 28, 2017) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.2.0.beta1 (November 27, 2017) ##
2
7
 
3
8
  * Add new error class `QueryCanceled` which will be raised
@@ -3,7 +3,7 @@
3
3
  require "active_record/connection_adapters/abstract_mysql_adapter"
4
4
  require "active_record/connection_adapters/mysql/database_statements"
5
5
 
6
- gem "mysql2", ">= 0.3.18", "< 0.5", "!= 0.4.3"
6
+ gem "mysql2", "~> 0.4.4"
7
7
  require "mysql2"
8
8
 
9
9
  module ActiveRecord
@@ -10,7 +10,7 @@ module ActiveRecord
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
12
  TINY = 0
13
- PRE = "beta1"
13
+ PRE = "beta2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -323,11 +323,11 @@ module ActiveRecord
323
323
  end
324
324
 
325
325
  def attributes_builder # :nodoc:
326
- @attributes_builder ||= ActiveModel::AttributeSet::Builder.new(attribute_types, primary_key) do |name|
327
- unless columns_hash.key?(name)
328
- _default_attributes[name].dup
329
- end
326
+ unless defined?(@attributes_builder) && @attributes_builder
327
+ defaults = _default_attributes.except(*(column_names - [primary_key]))
328
+ @attributes_builder = ActiveModel::AttributeSet::Builder.new(attribute_types, defaults)
330
329
  end
330
+ @attributes_builder
331
331
  end
332
332
 
333
333
  def columns_hash # :nodoc:
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: 5.2.0.beta1
4
+ version: 5.2.0.beta2
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: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2017-11-28 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: 5.2.0.beta1
19
+ version: 5.2.0.beta2
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: 5.2.0.beta1
26
+ version: 5.2.0.beta2
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: 5.2.0.beta1
33
+ version: 5.2.0.beta2
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: 5.2.0.beta1
40
+ version: 5.2.0.beta2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: arel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -306,8 +306,8 @@ homepage: http://rubyonrails.org
306
306
  licenses:
307
307
  - MIT
308
308
  metadata:
309
- source_code_uri: https://github.com/rails/rails/tree/v5.2.0.beta1/activerecord
310
- changelog_uri: https://github.com/rails/rails/blob/v5.2.0.beta1/activerecord/CHANGELOG.md
309
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.0.beta2/activerecord
310
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.0.beta2/activerecord/CHANGELOG.md
311
311
  post_install_message:
312
312
  rdoc_options:
313
313
  - "--main"