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 +4 -4
- data/app/helpers/fields/html_editor_helper.rb +1 -1
- data/lib/bullet_train/fields/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0d2732f48bcddce33aea2ee8a5f05b5b488d50ce0a8fcb6d95c12da1aef9646
|
|
4
|
+
data.tar.gz: 97b85d0fdbe47a2f72068ba1ca2b93354d5a9a9a8d06bcc48f9d580dffa3bca7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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.
|
|
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-
|
|
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.
|
|
154
|
+
rubygems_version: 3.5.11
|
|
155
155
|
signing_key:
|
|
156
156
|
specification_version: 4
|
|
157
157
|
summary: Bullet Train Fields
|