lexxy 0.1.10.beta → 0.1.11.beta

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.
Binary file
Binary file
@@ -24,14 +24,13 @@ module Lexxy
24
24
  # Tempoary: we need to *adaptarize* action text
25
25
  def render_custom_attachments_in(value)
26
26
  if html = value.try(:body_before_type_cast).presence
27
- Nokogiri::HTML.fragment(html).tap do |fragment|
28
- fragment.css("action-text-attachment").each do |node|
29
- if node["url"].blank?
30
- attachment = ActionText::Attachment.from_node(node)
31
- node["content"] = render_action_text_attachment(attachment).to_json
32
- end
27
+ ActionText::Fragment.wrap(html).replace(ActionText::Attachment.tag_name) do |node|
28
+ if node["url"].blank?
29
+ attachment = ActionText::Attachment.from_node(node)
30
+ node["content"] = render_action_text_attachment(attachment).to_json
33
31
  end
34
- end.to_html
32
+ node
33
+ end
35
34
  end
36
35
  end
37
36
  end
data/lib/lexxy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lexxy
2
- VERSION = "0.1.10.beta"
2
+ VERSION = "0.1.11.beta"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lexxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10.beta
4
+ version: 0.1.11.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-10-02 00:00:00.000000000 Z
10
+ date: 2025-10-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -130,7 +130,6 @@ files:
130
130
  - app/controllers/actiontext/lexical/application_controller.rb
131
131
  - app/helpers/actiontext/lexical/application_helper.rb
132
132
  - app/jobs/actiontext/lexical/application_job.rb
133
- - app/mailers/actiontext/lexical/application_mailer.rb
134
133
  - app/models/actiontext/lexical/application_record.rb
135
134
  - app/views/layouts/actiontext/lexical/application.html.erb
136
135
  - app/views/people/_person.html.erb
@@ -1,8 +0,0 @@
1
- module Actiontext
2
- module Lexical
3
- class ApplicationMailer < ActionMailer::Base
4
- default from: "from@example.com"
5
- layout "mailer"
6
- end
7
- end
8
- end