bullet_train-fields 1.36.0 → 1.37.0

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: 8393eb5ab2437ee9fc0bd4defea5e42debe94eb0ee743c5b1c09226523670d5a
4
- data.tar.gz: a804c00fad5d4e17855a907a2f52ddb3168ec8972262aa12802b5dd7b469d66e
3
+ metadata.gz: 1492573cd42bec496c5434b186ce47c7bd2f41eeec9132b58d6fb8318bc5cd08
4
+ data.tar.gz: b0c1dda574face37c74dc16edda1150db626f22e89f6ee3333af46ed58232cb3
5
5
  SHA512:
6
- metadata.gz: e5da0fb83608b42690d0e57577fbccbe2ff2874bef5791278845cc9abaf0bcf4b533054cdbfb9d9f21849509fafba74caf333ff59787c7011c7dc68540f31e4d
7
- data.tar.gz: 2767f1b18295c159b9748b772d04edcd82ddc6fc71853058099cd21bed403b8fbc6bbab6c1146797cbc602568dbcb7f13b22686a4766928b2566f1c7b63ffd8b
6
+ metadata.gz: d74dc1de830472be730d8ea59f7f4da6e121fd33d3b6ec7b61705e44ac2b4ace224294f83418949ea7630311a50499f89e217032bd4b13e3c1072c7793ed93c9
7
+ data.tar.gz: 4db1ad54929e91de0481482bb75925d82591a6f34c5ad988e361f88f48634c491d050147a43395bee71dd883dae2731befcabb4c0094c146a9155eab9312fe8b
@@ -5,7 +5,9 @@ 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 action-text-attachment figure figcaption img], attributes: %w[href sgid content-type url filename filesize width height presentation src class])
8
+ string = sanitize(string,
9
+ tags: %w[div br strong em b i del a h1 blockquote pre ul ol li action-text-attachment figure figcaption img video source],
10
+ attributes: %w[href sgid content-type url filename filesize width height presentation src class controls preload type poster type])
9
11
  # given the limited scope of what we're doing here, this string replace should work.
10
12
  # it should also use a lot less memory than nokogiri.
11
13
  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.36.0"
3
+ VERSION = "1.37.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.0
4
+ version: 1.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver