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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -104
  3. data/app/helpers/action_text/content_helper.rb +2 -0
  4. data/app/helpers/action_text/tag_helper.rb +38 -28
  5. data/app/models/action_text/encrypted_rich_text.rb +2 -2
  6. data/app/models/action_text/record.rb +2 -0
  7. data/app/models/action_text/rich_text.rb +58 -26
  8. data/db/migrate/20180528164100_create_action_text_tables.rb +1 -1
  9. data/lib/action_text/attachable.rb +35 -33
  10. data/lib/action_text/attachables/content_attachment.rb +2 -0
  11. data/lib/action_text/attachables/missing_attachable.rb +2 -0
  12. data/lib/action_text/attachables/remote_image.rb +2 -0
  13. data/lib/action_text/attachment.rb +27 -25
  14. data/lib/action_text/attachment_gallery.rb +2 -0
  15. data/lib/action_text/attachments/caching.rb +2 -0
  16. data/lib/action_text/attachments/minification.rb +2 -0
  17. data/lib/action_text/attachments/trix_conversion.rb +2 -0
  18. data/lib/action_text/attribute.rb +36 -22
  19. data/lib/action_text/content.rb +48 -28
  20. data/lib/action_text/deprecator.rb +2 -0
  21. data/lib/action_text/encryption.rb +2 -0
  22. data/lib/action_text/engine.rb +2 -0
  23. data/lib/action_text/fixture_set.rb +34 -34
  24. data/lib/action_text/fragment.rb +4 -0
  25. data/lib/action_text/gem_version.rb +6 -4
  26. data/lib/action_text/html_conversion.rb +2 -0
  27. data/lib/action_text/plain_text_conversion.rb +2 -0
  28. data/lib/action_text/rendering.rb +2 -0
  29. data/lib/action_text/serialization.rb +2 -0
  30. data/lib/action_text/system_test_helper.rb +20 -17
  31. data/lib/action_text/trix_attachment.rb +2 -0
  32. data/lib/action_text/version.rb +3 -1
  33. data/lib/generators/action_text/install/install_generator.rb +10 -3
  34. data/lib/rails/generators/test_unit/install_generator.rb +2 -0
  35. data/package.json +2 -2
  36. 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
- uncomment_lines gemfile_path, /gem "image_processing"/
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
- # a file known to be generated by the jsbundling-rails gem
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
 
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :markup: markdown
4
+
3
5
  module TestUnit
4
6
  module Generators
5
7
  class InstallGenerator < ::Rails::Generators::Base
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/actiontext",
3
- "version": "7.1.501",
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.1.0-alpha"
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.1.5.1
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: 2024-12-10 00:00:00.000000000 Z
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.1.5.1
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.1.5.1
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.1.5.1
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.1.5.1
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.1.5.1
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.1.5.1
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.1.5.1
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.1.5.1
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.1.5.1/actiontext/CHANGELOG.md
167
- documentation_uri: https://api.rubyonrails.org/v7.1.5.1/
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.1.5.1/actiontext
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: 2.7.0
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.5.22
187
- signing_key:
184
+ rubygems_version: 3.6.9
188
185
  specification_version: 4
189
186
  summary: Rich text framework.
190
187
  test_files: []