gollum 2.4.3 → 2.4.4

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.
@@ -5,8 +5,8 @@ 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.4.3'
9
- s.date = '2012-11-29'
8
+ s.version = '2.4.4'
9
+ s.date = '2012-11-30'
10
10
  s.rubyforge_project = 'gollum'
11
11
 
12
12
  s.summary = "A simple, Git-powered wiki."
@@ -29,7 +29,7 @@ require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
29
29
  $KCODE = 'U'
30
30
 
31
31
  module Gollum
32
- VERSION = '2.4.3'
32
+ VERSION = '2.4.4'
33
33
 
34
34
  def self.assets_path
35
35
  ::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
@@ -464,7 +464,7 @@ var applyTimeout = function () {
464
464
 
465
465
  // width -2 for scroll bar & -10 for left offset
466
466
  var previewStyle = 'width:' + (widthHalf - 2 - 10) + 'px;' +
467
- 'height:' + height + 'px;' +
467
+ 'height:' + (height -50) + 'px;' +
468
468
  'left:' + (leftRight === false ? '10px;' : widthHalf + 'px;') +
469
469
  // preview panel top is equal to height of comment tool panel (40px) + 1
470
470
  'top:41px;';
@@ -126,11 +126,7 @@ module Gollum
126
126
  node.add_child(%Q{<a href="##{h_name}">#{h.content}</a>})
127
127
  tail.add_child(node)
128
128
  end
129
- if toc != nil
130
- # convert to HTML first before XHTML
131
- toc = Nokogiri::HTML::fragment toc.to_s
132
- toc = toc.to_xhtml(:encoding => 'UTF-8')
133
- end
129
+ toc = toc.to_xml(@to_xml) if toc != nil
134
130
  [doc, toc]
135
131
  end
136
132
 
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.4.3
4
+ version: 2.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-29 00:00:00.000000000 Z
13
+ date: 2012-11-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: grit