Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 00751d05b4 | |||
| b5be5df11a | |||
| 7d159273fc | |||
| 70127922ab | |||
| b95df93775 | |||
| dc06edcf5b |
@@ -556,6 +556,8 @@ your changes merged back into core is as follows:
|
|||||||
1. Send a pull request to the github/gollum project.
|
1. Send a pull request to the github/gollum project.
|
||||||
|
|
||||||
## RELEASING
|
## RELEASING
|
||||||
|
x.y.z
|
||||||
|
|
||||||
For z releases:
|
For z releases:
|
||||||
$ rake bump
|
$ rake bump
|
||||||
$ rake release
|
$ rake release
|
||||||
|
|||||||
+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.3.6'
|
s.version = '2.3.7'
|
||||||
s.date = '2012-11-05'
|
s.date = '2012-11-06'
|
||||||
s.rubyforge_project = 'gollum'
|
s.rubyforge_project = 'gollum'
|
||||||
|
|
||||||
s.summary = "A simple, Git-powered wiki."
|
s.summary = "A simple, Git-powered wiki."
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
|
|||||||
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
||||||
|
|
||||||
module Gollum
|
module Gollum
|
||||||
VERSION = '2.3.6'
|
VERSION = '2.3.7'
|
||||||
|
|
||||||
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__))
|
||||||
|
|||||||
@@ -488,8 +488,10 @@ module Gollum
|
|||||||
# extract lang from { .ruby } or { #stuff .ruby .indent }
|
# extract lang from { .ruby } or { #stuff .ruby .indent }
|
||||||
# see http://johnmacfarlane.net/pandoc/README.html#delimited-code-blocks
|
# see http://johnmacfarlane.net/pandoc/README.html#delimited-code-blocks
|
||||||
|
|
||||||
lang = lang.match(/\.([^}\s]+)/)
|
if lang
|
||||||
lang = lang[1] unless lang.nil?
|
lang = lang.match(/\.([^}\s]+)/)
|
||||||
|
lang = lang[1] unless lang.nil?
|
||||||
|
end
|
||||||
|
|
||||||
@codemap[id] = cached ?
|
@codemap[id] = cached ?
|
||||||
{ :output => cached } :
|
{ :output => cached } :
|
||||||
|
|||||||
+16
-3
@@ -212,7 +212,20 @@ context "Markup" do
|
|||||||
assert_equal expected, output
|
assert_equal expected, output
|
||||||
end
|
end
|
||||||
|
|
||||||
test "tilda code blocks #537" do
|
# Issue #568
|
||||||
|
test "tilde code blocks without a language" do
|
||||||
|
page = 'test_rgx'
|
||||||
|
@wiki.write_page(page, :markdown,
|
||||||
|
%Q(~~~
|
||||||
|
'hi'
|
||||||
|
~~~
|
||||||
|
), commit_details)
|
||||||
|
output = @wiki.page(page).formatted_data
|
||||||
|
expected = %Q{<div class=\"highlight\"><pre><span class=\"s\">'hi'</span>\n</pre></div>}
|
||||||
|
assert_equal expected, output
|
||||||
|
end
|
||||||
|
|
||||||
|
test "tilde code blocks #537" do
|
||||||
page = 'test_rgx'
|
page = 'test_rgx'
|
||||||
@wiki.write_page(page, :markdown,
|
@wiki.write_page(page, :markdown,
|
||||||
%Q(~~~ {.ruby}
|
%Q(~~~ {.ruby}
|
||||||
@@ -225,7 +238,7 @@ context "Markup" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Issue #537
|
# Issue #537
|
||||||
test "tilda code blocks with more than one class" do
|
test "tilde code blocks with more than one class" do
|
||||||
page = 'test_rgx'
|
page = 'test_rgx'
|
||||||
@wiki.write_page(page, :markdown,
|
@wiki.write_page(page, :markdown,
|
||||||
%Q(~~~ {#hi .ruby .sauce}
|
%Q(~~~ {#hi .ruby .sauce}
|
||||||
@@ -238,7 +251,7 @@ context "Markup" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Issue #537
|
# Issue #537
|
||||||
test "tilda code blocks with lots of tildes" do
|
test "tilde code blocks with lots of tildes" do
|
||||||
page = 'test_rgx'
|
page = 'test_rgx'
|
||||||
@wiki.write_page(page, :markdown,
|
@wiki.write_page(page, :markdown,
|
||||||
%Q(~~~~~~ {#hi .ruby .sauce}
|
%Q(~~~~~~ {#hi .ruby .sauce}
|
||||||
|
|||||||
Reference in New Issue
Block a user