gollum-lib 5.2.1 → 5.2.3

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: 76bc9820326afb2ae3a0c8768311f7e757dbe763ce7c5064e05edaf45f48f013
4
+ data.tar.gz: 1e6fa1ba6853fd44594c5ffad36148d0022c75bc1bfcd2f05fbc8e2c0e960bfd
5
5
  SHA512:
6
- metadata.gz: 2bf473deb11ddc079aa07dcb3a33d986315a9d7661fe80cf91637e597a352dc874918928f583c5281ec8ee974bef3fb220ca9f6ff1817d7333b521811b34df96
7
- data.tar.gz: 1e6792a5b81d68cf434994e631fe97d5926f606d72fcab789103b5d87e6a931bb1ac9948ef305c6549fe6cd5fddd76f2f1a87c3fc8807dfaec684f27b964a408
6
+ metadata.gz: 630ec62731370539725a760d149cd7940048087ed2a306d8cab9a23de77f137566383c644c177cec5904426fca0b81c210762d61ae64a0570b122fd98ba1fb92
7
+ data.tar.gz: 86546d058561c867d2eacf5df54ab1d7f834444f13202619688b5cccc972016e9119b421574d5e6bc1b3cb97edd11c7037d6be427a1586605056784564b17f9e
data/HISTORY.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 5.2.2 / 2023-01-18
2
+
3
+ * Bugfix release: set Nokogiri default XHTML conversion options more relaibly. See https://github.com/sparklemotion/nokogiri/issues/2761
4
+
5
+
6
+ # 5.2.1 / 2022-09-13
7
+
8
+ * Fixed: 'controls' attribute in audio and video tags should not be sanitized. #430 (@dometto)
9
+
10
+
1
11
  # 5.2 / 2022-05-28
2
12
 
3
13
  * Conditionally render "editable" heading classes. Resolves https://github.com/gollum/gollum/issues/1785 (@benjaminwil)
data/LATEST_CHANGES.md ADDED
@@ -0,0 +1,4 @@
1
+ # 5.2.3 / 2023-03-13
2
+
3
+ * Bugfix release: update adapter dependencies for Ruby 3.2 support.
4
+
data/README.md CHANGED
@@ -3,7 +3,7 @@ gollum lib -- A wiki built on top of Git
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/gollum-lib.svg)](http://badge.fury.io/rb/gollum-lib)
5
5
  [![Ruby Build](https://github.com/gollum/gollum-lib/actions/workflows/test.yaml/badge.svg)](https://github.com/gollum/gollum-lib/actions/workflows/test.yaml)
6
- [![Cutting Edge Dependency Status](https://dometto-cuttingedge.herokuapp.com/github/gollum/gollum-lib/svg 'Cutting Edge Dependency Status')](https://dometto-cuttingedge.herokuapp.com/github/gollum/gollum-lib/info)
6
+ [![Cutting Edge Dependency Status](https://cuttingedge.onrender.com/github/gollum/gollum-lib/svg 'Cutting Edge Dependency Status')](https://cuttingedge.onrender.com/github/gollum/gollum-lib/info)
7
7
 
8
8
  ## DESCRIPTION
9
9
 
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 v#{version} -m 'Release 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"
@@ -189,7 +189,7 @@ end
189
189
  desc 'Build changlog'
190
190
  task :changelog do
191
191
  [latest_changes_file, history_file].each do |f|
192
- unless File.exists?(f)
192
+ unless File.exist?(f)
193
193
  puts "#{f} does not exist but is required to build a new release."
194
194
  exit!
195
195
  end
data/gemspec.rb CHANGED
@@ -56,6 +56,7 @@ def specification(version, default_adapter, platform = nil)
56
56
  Gemfile
57
57
  Guardfile
58
58
  HISTORY.md
59
+ LATEST_CHANGES.md
59
60
  LICENSE
60
61
  README.md
61
62
  Rakefile
data/gollum-lib.gemspec CHANGED
@@ -3,8 +3,8 @@ require File.join(File.dirname(__FILE__), 'lib', 'gollum-lib', 'version.rb')
3
3
  # This file needs to conditionally define the default adapter for MRI and Java, because this is the file that is included from the Gemfile.
4
4
  # In addition, the default Java adapter needs to be defined in gollum-lib_java.gemspec beause that file is used to *build* the Java gem.
5
5
  if RUBY_PLATFORM == 'java' then
6
- default_adapter = ['gollum-rjgit_adapter', '~> 0.6']
6
+ default_adapter = ['gollum-rjgit_adapter', '~> 1.0']
7
7
  else
8
- default_adapter = ['gollum-rugged_adapter', '~> 1.0']
8
+ default_adapter = ['gollum-rugged_adapter', '~> 2.0']
9
9
  end
10
10
  Gem::Specification.new &specification(Gollum::Lib::VERSION, default_adapter)
@@ -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.3'
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.3
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-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gollum-rugged_adapter
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.0'
20
+ version: '2.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '1.0'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rouge
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -400,6 +400,7 @@ files:
400
400
  - Gemfile
401
401
  - Guardfile
402
402
  - HISTORY.md
403
+ - LATEST_CHANGES.md
403
404
  - LICENSE
404
405
  - README.md
405
406
  - Rakefile
@@ -469,7 +470,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
469
470
  - !ruby/object:Gem::Version
470
471
  version: '0'
471
472
  requirements: []
472
- rubygems_version: 3.2.3
473
+ rubygems_version: 3.4.6
473
474
  signing_key:
474
475
  specification_version: 4
475
476
  summary: A simple, Git-powered wiki.