Compare commits

..

7 Commits

Author SHA1 Message Date
Dawa Ometto 5781ac6bbd Release 4.0.0 2015-04-11 11:32:03 +02:00
Dawa Ometto a51bc4427a Merge pull request #994 from repotag/kramdown
Move to Kramdown and support JRuby
2015-04-11 11:07:34 +02:00
Dawa Ometto 80854584bb Make test regex more lenient 2015-04-11 01:29:08 +02:00
Dawa Ometto a27b882493 Test on jruby 2015-04-06 00:57:18 +02:00
Dawa Ometto ba6f957692 Move to Kramdown 2015-04-06 00:28:31 +02:00
Dawa Ometto ec0e1bf26f Merge pull request #992 from kirat-singh/fix-upload-file-url
prepend baseUrl to /uploadFile
2015-04-05 23:34:07 +02:00
Kirat Singh e4df298bb4 prepend baseUrl to /uploadFile 2015-04-05 14:22:41 -04:00
5 changed files with 7 additions and 8 deletions
+1
View File
@@ -3,6 +3,7 @@ rvm:
- 2.0.0
- 2.1.0
- 2.1.1
- jruby-19mode
before_install:
- sudo apt-get update
- sudo apt-get install libicu-dev
+3 -3
View File
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 1.9'
s.name = 'gollum'
s.version = '3.1.3'
s.date = '2015-04-04'
s.version = '4.0.0'
s.date = '2015-04-11'
s.rubyforge_project = 'gollum'
s.license = 'MIT'
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w[README.md LICENSE]
s.add_dependency 'gollum-lib', '~> 4.0', '>= 4.0.1'
s.add_dependency 'github-markdown', '~> 0.6.5'
s.add_dependency 'kramdown', '~> 1.6.0'
s.add_dependency 'sinatra', '~> 1.4', '>= 1.4.4'
s.add_dependency 'mustache', ['>= 0.99.5', '< 1.0.0']
s.add_dependency 'useragent', '~> 0.10.0'
+1 -1
View File
@@ -16,7 +16,7 @@ require File.expand_path('../gollum/uri_encode_component', __FILE__)
$KCODE = 'U' if RUBY_VERSION[0, 3] == '1.8'
module Gollum
VERSION = '3.1.3'
VERSION = '4.0.0'
def self.assets_path
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
@@ -121,7 +121,7 @@
formData.append('file', file);
$.ajax({
url: '/uploadFile',
url: baseUrl + '/uploadFile',
data: formData,
cache: false,
contentType: false,
+1 -3
View File
@@ -77,8 +77,7 @@ context "Frontend" do
{ :name => 'user1', :email => 'user1' });
get page
expected = "<h2><a class=\"anchor\" id=\"#{text}\" href=\"##{text}\"><i class=\"fa fa-link\"></i></a>#{text}</h2>"
expected = "<h2><a class=\"anchor\" (href|id)=\"(#)?#{text}\" (href|id)=\"(#)?#{text}\"><i class=\"fa fa-link\"></i></a>#{text}</h2>"
actual = nfd(last_response.body)
assert_match /#{expected}/, actual
@@ -409,7 +408,6 @@ context "Frontend" do
@wiki = Gollum::Wiki.new(@path)
Precious::App.set(:gollum_path, @path)
Precious::App.set(:wiki_options, {})
post "/preview", :content => 'abc', :format => 'markdown'
assert last_response.ok?
end