gollum-lib 5.2-java → 5.2.2-java

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: 90304790b813ff264f9bbdcb865913290b3e53d3c234a9bb66deaa48a9a79e06
4
- data.tar.gz: b911ed6044d4488a87afbcd50f83e68e980c0941a8e8410141ecdbf835b87053
3
+ metadata.gz: b143e2df33dc9dc9b02d92e03157ffb7e95a04e2ee642e4fc96d504252fc8666
4
+ data.tar.gz: 8f7f128aeeb398dc199130c2f0dad1e5006d9fedf59c772225a41f1287c65552
5
5
  SHA512:
6
- metadata.gz: 6c54a7337aad59a03103e6c95c7b5822eac8912c69e552298d1773b8e5f64dc4a26c1445b108f80fd50bb163918349ca394c3cdc9c8b3a48a60e58c3d737d021
7
- data.tar.gz: 2731cd5fef0f1f3f3e7b937db617c3cbe390b6c79d645dee2a374ba51e3d1059446520c1b5486f558d6662d31878dc19866a6126c38313642854ace36a727b38
6
+ metadata.gz: cf52a1dcfc52a2fc8aaf20b3234920e017decc049a5ca1af3a3990771191a4389655d8ac3e0a3e424f8a6a427b214a527cffba399eb479b6a2633e7fe81488d3
7
+ data.tar.gz: 4c34de87bd2b06d653c0e2dfea5bd013602c2c6b24e95611eff479e848ba389ef501c9bd44e860ea7b1c06cd262dbe974e132f85b86e742eb23e1d316d5433df
data/HISTORY.md CHANGED
@@ -1,3 +1,15 @@
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
+
6
+ # 5.2 / 2022-05-28
7
+
8
+ * Conditionally render "editable" heading classes. Resolves https://github.com/gollum/gollum/issues/1785 (@benjaminwil)
9
+ * Improvement: Allow escaping quotations in quoted macro arguments. #406. (@srbaker)
10
+ * Improvement: [Allow for extended PlantUML types](https://github.com/gollum/gollum/wiki#plantuml-diagrams). #413. (@manofstick)
11
+ * API Addition: allow defining handlers for specific languages in codeblocks. #410. (@dometto)
12
+
1
13
  # v5.1.2
2
14
 
3
15
  * SECURITY UPDATE: sanitize HTML generated by Macros.
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"
@@ -225,21 +225,3 @@ task :changelog do
225
225
  `cat #{history_file} >> #{temp.path}`
226
226
  `cat #{temp.path} > #{history_file}`
227
227
  end
228
-
229
- desc 'Precompile assets'
230
- task :precompile do
231
- require './lib/gollum/app.rb'
232
- Precious::App.set(:environment, :production)
233
- env = Precious::Assets.sprockets
234
- path = ENV.fetch('GOLLUM_ASSETS_PATH', ::File.join(File.dirname(__FILE__), 'lib/gollum/public/assets'))
235
- manifest = Sprockets::Manifest.new(env, path)
236
- Sprockets::Helpers.configure do |config|
237
- config.environment = env
238
- config.prefix = Precious::Assets::ASSET_URL
239
- config.digest = true
240
- config.public_path = path
241
- config.manifest = manifest
242
- end
243
- puts "Precompiling assets to #{path}..."
244
- manifest.compile(Precious::Assets::MANIFEST)
245
- end
@@ -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'
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'
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-05-28 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.0.3
472
+ rubygems_version: 3.2.32
473
473
  signing_key:
474
474
  specification_version: 4
475
475
  summary: A simple, Git-powered wiki.