actiontext 7.1.0.beta1 → 7.1.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff6d3d54018c8afe0b6ac198891859f46c6123de79c1e8c9e1b96eff64b089c5
4
- data.tar.gz: 9699239744fc76adf7e245610dcdd36dd964ab8805dda53846144e0193b56242
3
+ metadata.gz: 5e1bbfcde2a6f0703dfb211878dff37e4b6861b36afe7228a8a6c97583d7fffe
4
+ data.tar.gz: b86e7bd2dbb9a2afa7000795f0869c1e2b9d6ed01abf85f3c01d0536a9f0d8b3
5
5
  SHA512:
6
- metadata.gz: 37ff95258403ed1acbc72509381b2a35d6a2e74362451fce7f413625faf06bb94947a6923e6dab7b29c8d707dbd2cc89790628354f2d3f70dfcc515f8c247669
7
- data.tar.gz: 9fe3dead550cf29b88c4eff21f19de3f520594833052d7c9a79699511c50b3888200d03651023f78850abed0af5e0c3b5c57992945944d165762f6bb5c97af7b
6
+ metadata.gz: e2406e2d2025dae50c1500b01b783a2b9c9c67fc893a279cc84d9b96b51407f6e6e2ddd074cd8af899e2560312ea3e9fdcd19d870fc60dfbc1c2f98642fc338a
7
+ data.tar.gz: 76e80ad39a261c8c64ab8f7c711e00559f6a00d824cf8a623cdb3320c777d38bb55a185badca98355684ff7449dd6295ed5f019108a22826c680f5f8612f1ec7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 7.1.0.rc1 (September 27, 2023) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 7.1.0.beta1 (September 13, 2023) ##
2
7
 
3
8
  * Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
@@ -98,11 +98,6 @@ module ActionText
98
98
  false
99
99
  end
100
100
 
101
- # Returns the attachable as JSON with the +attachable_sgid+ included.
102
- def as_json(*)
103
- super.merge("attachable_sgid" => persisted? ? attachable_sgid : nil)
104
- end
105
-
106
101
  # Returns the path to the partial that is used for rendering the attachable
107
102
  # in Trix. Defaults to +to_partial_path+.
108
103
  #
@@ -142,5 +137,18 @@ module ActionText
142
137
  attrs[:height] = attachable_metadata[:height]
143
138
  end.compact
144
139
  end
140
+
141
+ private
142
+ def attribute_names_for_serialization
143
+ super + ["attachable_sgid"]
144
+ end
145
+
146
+ def read_attribute_for_serialization(key)
147
+ if key == "attachable_sgid"
148
+ persisted? ? super : nil
149
+ else
150
+ super
151
+ end
152
+ end
145
153
  end
146
154
  end
@@ -10,7 +10,7 @@ module ActionText
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
12
  TINY = 0
13
- PRE = "beta1"
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/actiontext",
3
- "version": "7.1.0-beta1",
3
+ "version": "7.1.0-rc1",
4
4
  "description": "Edit and display rich text in Rails applications",
5
5
  "main": "app/assets/javascripts/actiontext.js",
6
6
  "type": "module",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actiontext
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0.beta1
4
+ version: 7.1.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-09-13 00:00:00.000000000 Z
13
+ date: 2023-09-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -18,56 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 7.1.0.beta1
21
+ version: 7.1.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 7.1.0.beta1
28
+ version: 7.1.0.rc1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: activerecord
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 7.1.0.beta1
35
+ version: 7.1.0.rc1
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 7.1.0.beta1
42
+ version: 7.1.0.rc1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: activestorage
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 7.1.0.beta1
49
+ version: 7.1.0.rc1
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 7.1.0.beta1
56
+ version: 7.1.0.rc1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: actionpack
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 7.1.0.beta1
63
+ version: 7.1.0.rc1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 7.1.0.beta1
70
+ version: 7.1.0.rc1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: nokogiri
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -162,10 +162,10 @@ licenses:
162
162
  - MIT
163
163
  metadata:
164
164
  bug_tracker_uri: https://github.com/rails/rails/issues
165
- changelog_uri: https://github.com/rails/rails/blob/v7.1.0.beta1/actiontext/CHANGELOG.md
166
- documentation_uri: https://api.rubyonrails.org/v7.1.0.beta1/
165
+ changelog_uri: https://github.com/rails/rails/blob/v7.1.0.rc1/actiontext/CHANGELOG.md
166
+ documentation_uri: https://api.rubyonrails.org/v7.1.0.rc1/
167
167
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
168
- source_code_uri: https://github.com/rails/rails/tree/v7.1.0.beta1/actiontext
168
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.0.rc1/actiontext
169
169
  rubygems_mfa_required: 'true'
170
170
  post_install_message:
171
171
  rdoc_options: []