activemodel 7.0.1 → 7.0.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: ff5383d992224cc3152364a13d41511e0939807069cd18321a34058030c07215
4
- data.tar.gz: 74c42fd51bdb9e83d1abdcd682c69b8327c2d21871a7fee7e23f31a72e8f822b
3
+ metadata.gz: ef3ce96bcaec4231c661dd350bbfbde313b305fd66b2a7275bbc4467eda7c1a8
4
+ data.tar.gz: e6b3b3e852519a6d15ccd0f8e0fb85a3624d69f089f5f63958896adac29c650e
5
5
  SHA512:
6
- metadata.gz: 8e1865f359b4cf4c9b965e2710f5a5aa94ed8f9b3d3d1cf9d41639e458cc5841298b6acef3655a355c8ad070a0d7f94f4f4a6aef6e5d511408ed31b39044a1c9
7
- data.tar.gz: eff97210e99d36d24300dacdd2b35b11222dc475bd85dbf2080e0aa20332c4c9e13d0801ba586032f16b345a173a5d5127bf08e54d37349c08f8a91222a5a32c
6
+ metadata.gz: dba4cf1b904f1e4053ac9a88a35cb9e1d24d627259c9f4a294096ec956613bffdfe75a71c87b7ec2ad1df8607417ff68c270074e4576241d03e4bddc1a20f29c
7
+ data.tar.gz: 329dbf3553472d6fa74d9865469e2cd4d0858286701cf797d457a38b3d8c0f419e301b6c27b2865baff67dc205d296a36c868f7ad882db482cbcedee6cd3fb15
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## Rails 7.0.2 (February 08, 2022) ##
2
+
3
+ * Use different cache namespace for proxy calls
4
+
5
+ Models can currently have different attribute bodies for the same method
6
+ names, leading to conflicts. Adding a new namespace `:active_model_proxy`
7
+ fixes the issue.
8
+
9
+ *Chris Salzberg*
10
+
11
+
1
12
  ## Rails 7.0.1 (January 06, 2022) ##
2
13
 
3
14
  * No changes.
@@ -319,7 +319,7 @@ module ActiveModel
319
319
  if respond_to?(generate_method, true)
320
320
  send(generate_method, attr_name.to_s, owner: owner)
321
321
  else
322
- define_proxy_call(owner, method_name, matcher.target, matcher.parameters, attr_name.to_s, namespace: :active_model)
322
+ define_proxy_call(owner, method_name, matcher.target, matcher.parameters, attr_name.to_s, namespace: :active_model_proxy)
323
323
  end
324
324
  end
325
325
  end
@@ -9,7 +9,7 @@ module ActiveModel
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 0
12
- TINY = 1
12
+ TINY = 2
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -11,7 +11,7 @@ module ActiveModel
11
11
  end
12
12
 
13
13
  def type_cast_for_schema(value)
14
- value.to_formatted_s(:db).inspect
14
+ value.to_fs(:db).inspect
15
15
  end
16
16
 
17
17
  private
@@ -36,7 +36,7 @@ module ActiveModel
36
36
  end
37
37
 
38
38
  def type_cast_for_schema(value)
39
- value.to_formatted_s(:db).inspect
39
+ value.to_fs(:db).inspect
40
40
  end
41
41
 
42
42
  def user_input_in_time_zone(value)
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: 7.0.1
4
+ version: 7.0.2
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: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-02-08 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: 7.0.1
19
+ version: 7.0.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: 7.0.1
26
+ version: 7.0.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.
@@ -107,10 +107,10 @@ licenses:
107
107
  - MIT
108
108
  metadata:
109
109
  bug_tracker_uri: https://github.com/rails/rails/issues
110
- changelog_uri: https://github.com/rails/rails/blob/v7.0.1/activemodel/CHANGELOG.md
111
- documentation_uri: https://api.rubyonrails.org/v7.0.1/
110
+ changelog_uri: https://github.com/rails/rails/blob/v7.0.2/activemodel/CHANGELOG.md
111
+ documentation_uri: https://api.rubyonrails.org/v7.0.2/
112
112
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
113
- source_code_uri: https://github.com/rails/rails/tree/v7.0.1/activemodel
113
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.2/activemodel
114
114
  rubygems_mfa_required: 'true'
115
115
  post_install_message:
116
116
  rdoc_options: []