Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c7a481ed9 | |||
| c3dedcbba5 | |||
| 1c767a0e9f | |||
| f3b0ba49e0 |
+2
-2
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
|
|||||||
s.required_ruby_version = ">= 1.8.7"
|
s.required_ruby_version = ">= 1.8.7"
|
||||||
|
|
||||||
s.name = 'gollum'
|
s.name = 'gollum'
|
||||||
s.version = '2.4.9'
|
s.version = '2.4.11'
|
||||||
s.date = '2012-12-20'
|
s.date = '2013-01-08'
|
||||||
s.rubyforge_project = 'gollum'
|
s.rubyforge_project = 'gollum'
|
||||||
|
|
||||||
s.summary = "A simple, Git-powered wiki."
|
s.summary = "A simple, Git-powered wiki."
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
|||||||
$KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
|
$KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
|
||||||
|
|
||||||
module Gollum
|
module Gollum
|
||||||
VERSION = '2.4.9'
|
VERSION = '2.4.11'
|
||||||
|
|
||||||
def self.assets_path
|
def self.assets_path
|
||||||
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
||||||
|
|||||||
@@ -38,7 +38,9 @@
|
|||||||
$.GollumEditor.Placeholder.add($('#gollum-editor-edit-summary input'));
|
$.GollumEditor.Placeholder.add($('#gollum-editor-edit-summary input'));
|
||||||
$('#gollum-editor form[name="gollum-editor"]').submit(function( e ) {
|
$('#gollum-editor form[name="gollum-editor"]').submit(function( e ) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$.GollumEditor.Placeholder.clearAll();
|
// Do not clear default place holder text
|
||||||
|
// Updated home (markdown)
|
||||||
|
// $.GollumEditor.Placeholder.clearAll();
|
||||||
debug('submitting');
|
debug('submitting');
|
||||||
$(this).unbind('submit');
|
$(this).unbind('submit');
|
||||||
$(this).submit();
|
$(this).submit();
|
||||||
|
|||||||
+2
-10
@@ -636,16 +636,8 @@ module Gollum
|
|||||||
#
|
#
|
||||||
# Returns the String of formatted data with metadata removed.
|
# Returns the String of formatted data with metadata removed.
|
||||||
def extract_metadata(data)
|
def extract_metadata(data)
|
||||||
@metadata ||= {}
|
@metadata = {}
|
||||||
# The markers are `<!-- ---` and `-->`
|
data
|
||||||
data.gsub(/\<\!--+\s+---(.*?)--+\>/m) do
|
|
||||||
yaml = @wiki.sanitizer.clean($1)
|
|
||||||
hash = YAML.load(yaml)
|
|
||||||
if Hash === hash
|
|
||||||
@metadata.update(hash)
|
|
||||||
end
|
|
||||||
''
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Hook for getting the formatted value of extracted tag data.
|
# Hook for getting the formatted value of extracted tag data.
|
||||||
|
|||||||
Reference in New Issue
Block a user