gollum-lib 5.2.1-java → 5.2.2-java

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: c8eb75e8cec808b1e8ffe26b5ec999792bdce7a15af24cbdac9117100df5d268
4
- data.tar.gz: 4d4f7d6e12db10532a52860404c2466720ea6e9916b6ede7dfa5bc4edad40673
3
+ metadata.gz: b143e2df33dc9dc9b02d92e03157ffb7e95a04e2ee642e4fc96d504252fc8666
4
+ data.tar.gz: 8f7f128aeeb398dc199130c2f0dad1e5006d9fedf59c772225a41f1287c65552
5
5
  SHA512:
6
- metadata.gz: eb91d755311d03fa94a5062553ae9d8b32672d49632c71699118c9ae5647099e7c7c0b2a30bf3b1912ab99e0a6c42973faf443ee33409105de07a2b613f18edf
7
- data.tar.gz: 4d35c9fff4acf001d76377ffadc1fa26a07ec7e31643a47cd12b6c2c5ce59057db5ac148e57025e72a056dc7b7be499d6414faa14d8ba8c655cada43f4c3f737
6
+ metadata.gz: cf52a1dcfc52a2fc8aaf20b3234920e017decc049a5ca1af3a3990771191a4389655d8ac3e0a3e424f8a6a427b214a527cffba399eb479b6a2633e7fe81488d3
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: java
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-rjgit_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.