actiontext 7.1.5.1 → 7.2.3
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 +37 -104
- data/app/helpers/action_text/content_helper.rb +2 -0
- data/app/helpers/action_text/tag_helper.rb +38 -28
- data/app/models/action_text/encrypted_rich_text.rb +2 -2
- data/app/models/action_text/record.rb +2 -0
- data/app/models/action_text/rich_text.rb +58 -26
- data/db/migrate/20180528164100_create_action_text_tables.rb +1 -1
- data/lib/action_text/attachable.rb +35 -33
- data/lib/action_text/attachables/content_attachment.rb +2 -0
- data/lib/action_text/attachables/missing_attachable.rb +2 -0
- data/lib/action_text/attachables/remote_image.rb +2 -0
- data/lib/action_text/attachment.rb +27 -25
- data/lib/action_text/attachment_gallery.rb +2 -0
- data/lib/action_text/attachments/caching.rb +2 -0
- data/lib/action_text/attachments/minification.rb +2 -0
- data/lib/action_text/attachments/trix_conversion.rb +2 -0
- data/lib/action_text/attribute.rb +36 -22
- data/lib/action_text/content.rb +48 -28
- data/lib/action_text/deprecator.rb +2 -0
- data/lib/action_text/encryption.rb +2 -0
- data/lib/action_text/engine.rb +2 -0
- data/lib/action_text/fixture_set.rb +34 -34
- data/lib/action_text/fragment.rb +4 -0
- data/lib/action_text/gem_version.rb +6 -4
- data/lib/action_text/html_conversion.rb +2 -0
- data/lib/action_text/plain_text_conversion.rb +2 -0
- data/lib/action_text/rendering.rb +2 -0
- data/lib/action_text/serialization.rb +2 -0
- data/lib/action_text/system_test_helper.rb +20 -17
- data/lib/action_text/trix_attachment.rb +2 -0
- data/lib/action_text/version.rb +3 -1
- data/lib/generators/action_text/install/install_generator.rb +10 -3
- data/lib/rails/generators/test_unit/install_generator.rb +2 -0
- data/package.json +2 -2
- metadata +15 -18
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# :markup: markdown
|
|
4
|
+
|
|
3
5
|
require "pathname"
|
|
4
6
|
require "json"
|
|
5
7
|
|
|
@@ -60,7 +62,12 @@ module ActionText
|
|
|
60
62
|
def enable_image_processing_gem
|
|
61
63
|
if (gemfile_path = Pathname(destination_root).join("Gemfile")).exist?
|
|
62
64
|
say "Ensure image_processing gem has been enabled so image uploads will work (remember to bundle!)"
|
|
63
|
-
|
|
65
|
+
image_processing_regex = /gem ["']image_processing["']/
|
|
66
|
+
if File.readlines(gemfile_path).grep(image_processing_regex).any?
|
|
67
|
+
uncomment_lines gemfile_path, image_processing_regex
|
|
68
|
+
else
|
|
69
|
+
run "bundle add --skip-install image_processing"
|
|
70
|
+
end
|
|
64
71
|
end
|
|
65
72
|
end
|
|
66
73
|
|
|
@@ -73,8 +80,8 @@ module ActionText
|
|
|
73
80
|
end
|
|
74
81
|
|
|
75
82
|
def using_bun?
|
|
76
|
-
# Cannot assume yarn.lock has been generated yet so we look for
|
|
77
|
-
#
|
|
83
|
+
# Cannot assume yarn.lock has been generated yet so we look for a file known to
|
|
84
|
+
# be generated by the jsbundling-rails gem
|
|
78
85
|
@using_bun ||= using_js_runtime? && Pathname(destination_root).join("bun.config.js").exist?
|
|
79
86
|
end
|
|
80
87
|
|
data/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rails/actiontext",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.300",
|
|
4
4
|
"description": "Edit and display rich text in Rails applications",
|
|
5
5
|
"module": "app/assets/javascripts/actiontext.esm.js",
|
|
6
6
|
"main": "app/assets/javascripts/actiontext.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rails/activestorage": ">= 7.
|
|
25
|
+
"@rails/activestorage": ">= 7.2.0-alpha"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"trix": "^2.0.0"
|
metadata
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actiontext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.
|
|
4
|
+
version: 7.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Javan Makhmali
|
|
8
8
|
- Sam Stephenson
|
|
9
9
|
- David Heinemeier Hansson
|
|
10
|
-
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: activesupport
|
|
@@ -18,56 +17,56 @@ dependencies:
|
|
|
18
17
|
requirements:
|
|
19
18
|
- - '='
|
|
20
19
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 7.
|
|
20
|
+
version: 7.2.3
|
|
22
21
|
type: :runtime
|
|
23
22
|
prerelease: false
|
|
24
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
24
|
requirements:
|
|
26
25
|
- - '='
|
|
27
26
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 7.
|
|
27
|
+
version: 7.2.3
|
|
29
28
|
- !ruby/object:Gem::Dependency
|
|
30
29
|
name: activerecord
|
|
31
30
|
requirement: !ruby/object:Gem::Requirement
|
|
32
31
|
requirements:
|
|
33
32
|
- - '='
|
|
34
33
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: 7.
|
|
34
|
+
version: 7.2.3
|
|
36
35
|
type: :runtime
|
|
37
36
|
prerelease: false
|
|
38
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
38
|
requirements:
|
|
40
39
|
- - '='
|
|
41
40
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 7.
|
|
41
|
+
version: 7.2.3
|
|
43
42
|
- !ruby/object:Gem::Dependency
|
|
44
43
|
name: activestorage
|
|
45
44
|
requirement: !ruby/object:Gem::Requirement
|
|
46
45
|
requirements:
|
|
47
46
|
- - '='
|
|
48
47
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 7.
|
|
48
|
+
version: 7.2.3
|
|
50
49
|
type: :runtime
|
|
51
50
|
prerelease: false
|
|
52
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
52
|
requirements:
|
|
54
53
|
- - '='
|
|
55
54
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 7.
|
|
55
|
+
version: 7.2.3
|
|
57
56
|
- !ruby/object:Gem::Dependency
|
|
58
57
|
name: actionpack
|
|
59
58
|
requirement: !ruby/object:Gem::Requirement
|
|
60
59
|
requirements:
|
|
61
60
|
- - '='
|
|
62
61
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 7.
|
|
62
|
+
version: 7.2.3
|
|
64
63
|
type: :runtime
|
|
65
64
|
prerelease: false
|
|
66
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
66
|
requirements:
|
|
68
67
|
- - '='
|
|
69
68
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: 7.
|
|
69
|
+
version: 7.2.3
|
|
71
70
|
- !ruby/object:Gem::Dependency
|
|
72
71
|
name: nokogiri
|
|
73
72
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -163,12 +162,11 @@ licenses:
|
|
|
163
162
|
- MIT
|
|
164
163
|
metadata:
|
|
165
164
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
166
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.
|
|
167
|
-
documentation_uri: https://api.rubyonrails.org/v7.
|
|
165
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.2.3/actiontext/CHANGELOG.md
|
|
166
|
+
documentation_uri: https://api.rubyonrails.org/v7.2.3/
|
|
168
167
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
169
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.
|
|
168
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.2.3/actiontext
|
|
170
169
|
rubygems_mfa_required: 'true'
|
|
171
|
-
post_install_message:
|
|
172
170
|
rdoc_options: []
|
|
173
171
|
require_paths:
|
|
174
172
|
- lib
|
|
@@ -176,15 +174,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
176
174
|
requirements:
|
|
177
175
|
- - ">="
|
|
178
176
|
- !ruby/object:Gem::Version
|
|
179
|
-
version:
|
|
177
|
+
version: 3.1.0
|
|
180
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
179
|
requirements:
|
|
182
180
|
- - ">="
|
|
183
181
|
- !ruby/object:Gem::Version
|
|
184
182
|
version: '0'
|
|
185
183
|
requirements: []
|
|
186
|
-
rubygems_version: 3.
|
|
187
|
-
signing_key:
|
|
184
|
+
rubygems_version: 3.6.9
|
|
188
185
|
specification_version: 4
|
|
189
186
|
summary: Rich text framework.
|
|
190
187
|
test_files: []
|