gollum 2.2.8 → 2.2.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gollum might be problematic. Click here for more details.

data/README.md CHANGED
@@ -413,7 +413,10 @@ By default, internal wiki links are all absolute from the root. To specify a dif
413
413
 
414
414
  wiki = Gollum::Wiki.new("my-gollum-repo.git", :base_path => "/wiki")
415
415
 
416
- Note that base_path just modifies the links. To map gollum to a non-root location, use `map` in config.ru. See [#532](https://github.com/github/gollum/issues/532). `bin/gollum` now includes a simple map based on base path.
416
+ Note that base_path just modifies the links. To map gollum to a non-root location:
417
+
418
+ - Use the gollum binary: `gollum path/to/wiki --base-path mywiki`
419
+ - Define config.ru with `map`. See [#532](https://github.com/github/gollum/issues/532) for an example.
417
420
 
418
421
  > :base_path - String base path for all Wiki links.
419
422
  >
data/gollum.gemspec CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  s.required_ruby_version = ">= 1.8.7"
6
6
 
7
7
  s.name = 'gollum'
8
- s.version = '2.2.8'
8
+ s.version = '2.2.9'
9
9
  s.date = '2012-10-14'
10
10
  s.rubyforge_project = 'gollum'
11
11
 
data/lib/gollum.rb CHANGED
@@ -23,7 +23,7 @@ require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
23
23
  require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
24
24
 
25
25
  module Gollum
26
- VERSION = '2.2.8'
26
+ VERSION = '2.2.9'
27
27
 
28
28
  def self.assets_path
29
29
  ::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
data/lib/gollum/markup.rb CHANGED
@@ -95,7 +95,8 @@ module Gollum
95
95
  def process_headers(doc)
96
96
  toc = nil
97
97
  doc.css('h1,h2,h3,h4,h5,h6').each do |h|
98
- h_name = h.content.gsub(' ','-')
98
+ # must escape "
99
+ h_name = h.content.gsub(' ','-').gsub('"','%22')
99
100
 
100
101
  level = h.name.gsub(/[hH]/,'').to_i
101
102
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.8
4
+ version: 2.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: