gollum 2.1.9 → 2.1.10

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,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.1.9'
8
+ s.version = '2.1.10'
9
9
  s.date = '2012-08-30'
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.1.9'
26
+ VERSION = '2.1.10'
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
@@ -591,12 +591,18 @@ module Gollum
591
591
  #########################################################################
592
592
 
593
593
  # Extract metadata for data and build metadata table. Metadata
594
- # is content found between ` <!-- --- ` and ` --> ` markers, and must
594
+ # is content found between markers, and must
595
595
  # be a valid YAML mapping.
596
596
  #
597
+ # Because ri and ruby 1.8.7 are awesome, the markers can't
598
+ # be included in this documentation without triggering
599
+ # `Unhandled special: Special: type=17`
600
+ # Please read the source code for the exact markers
601
+ #
597
602
  # Returns the String of formatted data with metadata removed.
598
603
  def extract_metadata(data)
599
604
  @metadata ||= {}
605
+ # The markers are `<!-- ---` and `-->`
600
606
  data.gsub(/\<\!--+\s+---(.*?)--+\>/m) do
601
607
  yaml = @wiki.sanitizer.clean($1)
602
608
  hash = YAML.load(yaml)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 9
10
- version: 2.1.9
9
+ - 10
10
+ version: 2.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Preston-Werner