activemodel 6.1.3.1 → 6.1.4.2

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
  SHA256:
3
- metadata.gz: 48c98dc404f7f57a4e1b769f556d65147d7426978e984fdec45d8832959287ab
4
- data.tar.gz: fff7c4b09436b27bc351f01a242102be258a22f64eabfc4c8c3dbb5d0c636885
3
+ metadata.gz: decf6a40065f14682ea3633971309bf06b77ff4eb8179cae28951e6239c212a5
4
+ data.tar.gz: f664ffe1289e66804177ef9353f55f69ff5671b9f0466d87a4a5f861a65cb90f
5
5
  SHA512:
6
- metadata.gz: ba6a5b3501620c02cec932c330f3b37529f201de1198b6c258a6bb5bba79043942636971319210235e29d59d6012bfb82aad10cb17b854410014ff018e33d8b2
7
- data.tar.gz: 2a8eb8bec3075d986e2d65eddf24ec089ceceb88d45894a5e238816865893021ab27f97487294c020a3fedb5d80a99d812ad88a5b0cc2d52d241872d6ec4f941
6
+ metadata.gz: 78c365280c86730fd5c0a5f102fdc82cc4d3c0dcd5b77b71f6f5e6e08a9fe500c5be95ddc7716dcef5a9972097bde9f806ab57adb6852389d869bdccc431fa05
7
+ data.tar.gz: 377429294c037364519bbf3026163689b23920e7e3dd4cebf61a72b97629530570037bbd2a974c0ab460890b24172f1726e8255f8fdd962c004a6e1459a7e520
data/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## Rails 6.1.4.2 (December 14, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.1.4.1 (August 19, 2021) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.1.4 (June 24, 2021) ##
12
+
13
+ * Fix `to_json` for `ActiveModel::Dirty` object.
14
+
15
+ Exclude +mutations_from_database+ attribute from json as it lead to recursion.
16
+
17
+ *Anil Maurya*
18
+
19
+
20
+ ## Rails 6.1.3.2 (May 05, 2021) ##
21
+
22
+ * No changes.
23
+
24
+
1
25
  ## Rails 6.1.3.1 (March 26, 2021) ##
2
26
 
3
27
  * No changes.
@@ -139,6 +139,11 @@ module ActiveModel
139
139
  @mutations_from_database = nil
140
140
  end
141
141
 
142
+ def as_json(options = {}) # :nodoc:
143
+ options[:except] = [options[:except], "mutations_from_database"].flatten
144
+ super(options)
145
+ end
146
+
142
147
  # Clears dirty data and moves +changes+ to +previous_changes+ and
143
148
  # +mutations_from_database+ to +mutations_before_last_save+ respectively.
144
149
  def changes_applied
@@ -9,8 +9,8 @@ module ActiveModel
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 3
13
- PRE = "1"
12
+ TINY = 4
13
+ PRE = "2"
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: activemodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.3.1
4
+ version: 6.1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-26 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.3.1
19
+ version: 6.1.4.2
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.1.3.1
26
+ version: 6.1.4.2
27
27
  description: A toolkit for building modeling frameworks like Active Record. Rich support
28
28
  for attributes, callbacks, validations, serialization, internationalization, and
29
29
  testing.
@@ -104,11 +104,11 @@ licenses:
104
104
  - MIT
105
105
  metadata:
106
106
  bug_tracker_uri: https://github.com/rails/rails/issues
107
- changelog_uri: https://github.com/rails/rails/blob/v6.1.3.1/activemodel/CHANGELOG.md
108
- documentation_uri: https://api.rubyonrails.org/v6.1.3.1/
107
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.4.2/activemodel/CHANGELOG.md
108
+ documentation_uri: https://api.rubyonrails.org/v6.1.4.2/
109
109
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
110
- source_code_uri: https://github.com/rails/rails/tree/v6.1.3.1/activemodel
111
- post_install_message:
110
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.4.2/activemodel
111
+ post_install_message:
112
112
  rdoc_options: []
113
113
  require_paths:
114
114
  - lib
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubygems_version: 3.1.2
127
- signing_key:
126
+ rubygems_version: 3.2.15
127
+ signing_key:
128
128
  specification_version: 4
129
129
  summary: A toolkit for building modeling frameworks (part of Rails).
130
130
  test_files: []