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 +4 -4
- data/CHANGELOG.md +5 -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: 5e1bbfcde2a6f0703dfb211878dff37e4b6861b36afe7228a8a6c97583d7fffe
|
|
4
|
+
data.tar.gz: b86e7bd2dbb9a2afa7000795f0869c1e2b9d6ed01abf85f3c01d0536a9f0d8b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2406e2d2025dae50c1500b01b783a2b9c9c67fc893a279cc84d9b96b51407f6e6e2ddd074cd8af899e2560312ea3e9fdcd19d870fc60dfbc1c2f98642fc338a
|
|
7
|
+
data.tar.gz: 76e80ad39a261c8c64ab8f7c711e00559f6a00d824cf8a623cdb3320c777d38bb55a185badca98355684ff7449dd6295ed5f019108a22826c680f5f8612f1ec7
|
data/CHANGELOG.md
CHANGED
|
@@ -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.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
|
+
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
166
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.0.
|
|
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.
|
|
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: []
|