actiontext 7.1.0.beta1 → 7.1.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/action_text/attachable.rb +13 -5
- data/lib/action_text/gem_version.rb +1 -1
- data/package.json +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12df7606e72a0d61b89a671c3f24a5cf6afe21205527ca6449e83413ddd6e478
|
4
|
+
data.tar.gz: 39feafb838ff3a7b3fa750b494f43797443405680ecd64016b74f9926c91c5c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 285dbfe26fe446c666f8aeaa3cc5e41ac5027a32f4d7b55617c79f6bd0323dc845790efc61848ce09d7eee056d2d5948c6f771df50768295623b73e12b6a17c7
|
7
|
+
data.tar.gz: e972765248a8b110dd2730a3f969670c2ca5c4b9c418aa0f021b67681a00a64200507c5e6dcd5a5222d87b2c46cca892823267f0aa8013ccf7c01cc226c5756d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## Rails 7.1.0.rc2 (October 01, 2023) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 7.1.0.rc1 (September 27, 2023) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
1
11
|
## Rails 7.1.0.beta1 (September 13, 2023) ##
|
2
12
|
|
3
13
|
* 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
|
data/package.json
CHANGED
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.
|
4
|
+
version: 7.1.0.rc2
|
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-
|
13
|
+
date: 2023-10-01 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.
|
21
|
+
version: 7.1.0.rc2
|
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.
|
28
|
+
version: 7.1.0.rc2
|
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.
|
35
|
+
version: 7.1.0.rc2
|
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.
|
42
|
+
version: 7.1.0.rc2
|
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.
|
49
|
+
version: 7.1.0.rc2
|
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.
|
56
|
+
version: 7.1.0.rc2
|
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.
|
63
|
+
version: 7.1.0.rc2
|
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.
|
70
|
+
version: 7.1.0.rc2
|
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.
|
166
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.0.
|
165
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.0.rc2/actiontext/CHANGELOG.md
|
166
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.0.rc2/
|
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.
|
168
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.0.rc2/actiontext
|
169
169
|
rubygems_mfa_required: 'true'
|
170
170
|
post_install_message:
|
171
171
|
rdoc_options: []
|