gollum 2.1.9 → 2.1.10
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.
- data/gollum.gemspec +1 -1
- data/lib/gollum.rb +1 -1
- data/lib/gollum/markup.rb +7 -1
- metadata +3 -3
data/gollum.gemspec
CHANGED
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.
|
|
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
|
|
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:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 2.1.
|
|
9
|
+
- 10
|
|
10
|
+
version: 2.1.10
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tom Preston-Werner
|