bullet_train-fields 1.7.15 → 1.7.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 458cc1388b452f6576c67cbb76de3920793e5b31060daaec85d5b6326981fa61
4
- data.tar.gz: b0e46d967a1605cd299dc3d4fb7739ea6ce6baee6c0c3090b04c8b84c6446932
3
+ metadata.gz: f0d2732f48bcddce33aea2ee8a5f05b5b488d50ce0a8fcb6d95c12da1aef9646
4
+ data.tar.gz: 97b85d0fdbe47a2f72068ba1ca2b93354d5a9a9a8d06bcc48f9d580dffa3bca7
5
5
  SHA512:
6
- metadata.gz: ad022c68cb67b3ad8c6b5ccb84626c41b588d942d0950d3bb1b6aa90beb95e095546e08771fb5c540d7152bda3e255547f72c24b0cdf5bf1e87d6a438418f072
7
- data.tar.gz: 74b7e3e5666618ba38f061ee9b7a51f87d0b75cd3a520055043e4274292cf7f0d97270a631b6017e45e65c37e64407ed41e5974dda3147706509747eba2f7a74
6
+ metadata.gz: 8bf883451af00a6bfcd2f8993db9509730c34ef13aae832a188ef17548ec97bf5c757993b2e9d5f21d5947d04349ed1cd021521a52ba207739e1b5652e166a76
7
+ data.tar.gz: bfc3bf76f96249f20fccee07296931327f3598edb3e7d8f6ef2cf3c62e14afc623c4c5f636e60f13e7d57a4ce071083d9ff8ccb954f117e3b85754d395318c55
@@ -5,7 +5,7 @@ module Fields::HtmlEditorHelper
5
5
  return string unless string
6
6
  # TODO this is a hack to get around the fact that rails doesn't allow us to add any acceptable protocols.
7
7
  string = string.gsub("bullettrain://", TEMPORARY_REPLACEMENT)
8
- string = sanitize(string, tags: %w[div br strong em b i del a h1 blockquote pre ul ol li], attributes: %w[href])
8
+ string = sanitize(string, tags: %w[div br strong em b i del a h1 blockquote pre ul ol li action-text-attachment figure figcaption img], attributes: %w[href sgid content-type url filename filesize width height presentation src class])
9
9
  # given the limited scope of what we're doing here, this string replace should work.
10
10
  # it should also use a lot less memory than nokogiri.
11
11
  string = string.gsub(/<a href="#{TEMPORARY_REPLACEMENT}(.*?)\/.*?">(.*?)<\/a>/o, "<span class=\"tribute-reference tribute-\\1-reference\">\\2</span>").html_safe
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Fields
3
- VERSION = "1.7.15"
3
+ VERSION = "1.7.16"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.15
4
+ version: 1.7.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-01 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubygems_version: 3.5.3
154
+ rubygems_version: 3.5.11
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Bullet Train Fields