gollum-lib 5.2.1 → 5.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6398b9ab2c4d261d508568987b550e098b7414d5ece46e43d29c7ff5216b8416
4
- data.tar.gz: a401118da3e76e09a28d436059d1ee9ed81fe145c74af6130c4a41c9fbad26d8
3
+ metadata.gz: 39710261c63c5c6a12402b640c5fb71a5c302c18f39df575e2127b5eebb67be3
4
+ data.tar.gz: 8f7f128aeeb398dc199130c2f0dad1e5006d9fedf59c772225a41f1287c65552
5
5
  SHA512:
6
- metadata.gz: 2bf473deb11ddc079aa07dcb3a33d986315a9d7661fe80cf91637e597a352dc874918928f583c5281ec8ee974bef3fb220ca9f6ff1817d7333b521811b34df96
7
- data.tar.gz: 1e6792a5b81d68cf434994e631fe97d5926f606d72fcab789103b5d87e6a931bb1ac9948ef305c6549fe6cd5fddd76f2f1a87c3fc8807dfaec684f27b964a408
6
+ metadata.gz: 3618878e7eabe6955e9fa83e968dac8087b9990ba5566f263c4d89dbd2d0b44689fe8abc145aa6286c654e531d6df2ee6b6d984f3c738663bb58ab19e75a3047
7
+ data.tar.gz: 4c34de87bd2b06d653c0e2dfea5bd013602c2c6b24e95611eff479e848ba389ef501c9bd44e860ea7b1c06cd262dbe974e132f85b86e742eb23e1d316d5433df
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 5.2.1 / 2022-09-13
2
+
3
+ * Fixed: 'controls' attribute in audio and video tags should not be sanitized. #430 (@dometto)
4
+
5
+
1
6
  # 5.2 / 2022-05-28
2
7
 
3
8
  * Conditionally render "editable" heading classes. Resolves https://github.com/gollum/gollum/issues/1785 (@benjaminwil)
data/Rakefile CHANGED
@@ -126,7 +126,7 @@ task :release => :build do
126
126
  Rake::Task[:changelog].execute
127
127
  sh "git commit --allow-empty -a -m 'Release #{version}'"
128
128
  sh "git pull --rebase origin master"
129
- sh "git tag v#{version}"
129
+ sh "git tag -n v#{version}"
130
130
  sh "git push origin master"
131
131
  sh "git push origin v#{version}"
132
132
  sh "gem push pkg/#{name}-#{version}.gem"
@@ -2,7 +2,7 @@ module Gollum
2
2
  class Macro
3
3
  class Audio < Gollum::Macro
4
4
  def render (fname)
5
- "<audio width=\"100%\" height=\"100%\" src=\"#{CGI::escapeHTML(fname)}\" controls=\"\"> HTML5 audio is not supported on this Browser.</audio>"
5
+ "<audio width=\"100%\" height=\"100%\" src=\"#{CGI::escapeHTML(fname)}\" controls=\"true\"> HTML5 audio is not supported on this Browser.</audio>"
6
6
  end
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@ module Gollum
2
2
  class Macro
3
3
  class Video < Gollum::Macro
4
4
  def render (fname)
5
- "<video width=\"100%\" height=\"100%\" src=\"#{CGI::escapeHTML(fname)}\" controls=\"\"> HTML5 video is not supported on this Browser.</video>"
5
+ "<video width=\"100%\" height=\"100%\" src=\"#{CGI::escapeHTML(fname)}\" controls=\"true\"> HTML5 video is not supported on this Browser.</video>"
6
6
  end
7
7
  end
8
8
  end
@@ -23,7 +23,7 @@ module Gollum
23
23
  class << self
24
24
 
25
25
  def to_xml_opts
26
- { :save_with => Nokogiri::XML::Node::SaveOptions::DEFAULT_XHTML ^ 1, :indent => 0, :encoding => 'UTF-8' }
26
+ { :save_with => Nokogiri::XML::Node::SaveOptions::DEFAULT_XHTML & (~Nokogiri::XML::Node::SaveOptions::FORMAT), :indent => 0, :encoding => 'UTF-8' }
27
27
  end
28
28
 
29
29
  # Only use the formats that are specified in config.rb
@@ -1,4 +1,5 @@
1
1
  ::Loofah::HTML5::SafeList::ACCEPTABLE_PROTOCOLS.add('apt')
2
+ ::Loofah::HTML5::SafeList::ALLOWED_ATTRIBUTES.add('controls')
2
3
 
3
4
  module Gollum
4
5
  class Sanitization
@@ -1,5 +1,5 @@
1
1
  module Gollum
2
2
  module Lib
3
- VERSION = '5.2.1'
3
+ VERSION = '5.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.1
4
+ version: 5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-13 00:00:00.000000000 Z
12
+ date: 2023-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gollum-rugged_adapter
@@ -469,7 +469,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
469
469
  - !ruby/object:Gem::Version
470
470
  version: '0'
471
471
  requirements: []
472
- rubygems_version: 3.2.3
472
+ rubygems_version: 3.2.32
473
473
  signing_key:
474
474
  specification_version: 4
475
475
  summary: A simple, Git-powered wiki.