gollum 2.4.10 → 2.4.11

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/gollum.gemspec CHANGED
@@ -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.10'
9
- s.date = '2012-12-20'
8
+ s.version = '2.4.11'
9
+ s.date = '2013-01-08'
10
10
  s.rubyforge_project = 'gollum'
11
11
 
12
12
  s.summary = "A simple, Git-powered wiki."
data/lib/gollum.rb CHANGED
@@ -28,7 +28,7 @@ require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
28
28
  $KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
29
29
 
30
30
  module Gollum
31
- VERSION = '2.4.10'
31
+ VERSION = '2.4.11'
32
32
 
33
33
  def self.assets_path
34
34
  ::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
data/lib/gollum/markup.rb CHANGED
@@ -636,16 +636,8 @@ module Gollum
636
636
  #
637
637
  # Returns the String of formatted data with metadata removed.
638
638
  def extract_metadata(data)
639
- @metadata ||= {}
640
- # The markers are `<!-- ---` and `-->`
641
- data.gsub(/\<\!--+\s+---(.*?)--+\>/m) do
642
- yaml = @wiki.sanitizer.clean($1)
643
- hash = YAML.load(yaml)
644
- if Hash === hash
645
- @metadata.update(hash)
646
- end
647
- ''
648
- end
639
+ @metadata = {}
640
+ data
649
641
  end
650
642
 
651
643
  # Hook for getting the formatted value of extracted tag data.
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.10
4
+ version: 2.4.11
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-12-20 00:00:00.000000000 Z
13
+ date: 2013-01-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: grit