Compare commits

...

8 Commits

Author SHA1 Message Date
bootstraponline a3d85ae8c3 Release 2.4.6 2012-12-18 18:30:17 -07:00
bootstraponline fef62b63cb ASCIIDOC tests don't run on Travis
Tests that use to be green now fail when rerun. The issue is with the travis configuration and asciidoc.

https://travis-ci.org/github/gollum/jobs/3603171
2012-12-18 18:25:41 -07:00
bootstraponline 93ec80f773 Fix #607 2012-12-18 17:41:57 -07:00
bootstraponline 8e3795c317 Update 2012-12-18 17:20:49 -07:00
bootstraponline cb1a633dc5 Fix #607 2012-12-14 19:16:19 -07:00
bootstraponline ace4db6938 Merge pull request #605 from dekimsey/pages-images-now-respect-baseurl
Fix /pages css to the correct path for images
2012-12-11 17:35:03 -08:00
Daniel Kimsey b770062788 Fix /pages css to the correct path for images 2012-12-11 13:00:55 -05:00
bootstraponline 4c4dc5398a Update 1.8 check 2012-12-10 18:41:01 -07:00
6 changed files with 10 additions and 11 deletions
-2
View File
@@ -5,5 +5,3 @@ notifications:
disabled: true disabled: true
before_install: before_install:
- sudo apt-get update - sudo apt-get update
- sudo apt-get install -y --force-yes asciidoc
- ASCIIDOC=1; export ASCIIDOC
+2 -2
View File
@@ -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.5' s.version = '2.4.6'
s.date = '2012-12-10' s.date = '2012-12-18'
s.rubyforge_project = 'gollum' s.rubyforge_project = 'gollum'
s.summary = "A simple, Git-powered wiki." s.summary = "A simple, Git-powered wiki."
+2 -2
View File
@@ -25,10 +25,10 @@ require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
# Set ruby to UTF-8 mode # Set ruby to UTF-8 mode
# This is required for Ruby 1.8.7 which gollum still supports. # This is required for Ruby 1.8.7 which gollum still supports.
$KCODE = 'U' if RUBY_VERSION[2,1] == '8' $KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
module Gollum module Gollum
VERSION = '2.4.5' VERSION = '2.4.6'
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__))
@@ -699,14 +699,14 @@ ul.actions {
#pages li a.file, #pages li a.file,
#pages li a.folder { #pages li a.folder {
background-image: url(/images/fileview/document.png); background-image: url(../images/fileview/document.png);
background-position: 0 1px; background-position: 0 1px;
background-repeat: no-repeat; background-repeat: no-repeat;
padding-left: 20px; padding-left: 20px;
} }
#pages li a.folder { #pages li a.folder {
background-image: url(/images/fileview/folder-horizontal.png); background-image: url(../images/fileview/folder-horizontal.png);
} }
#pages .breadcrumb { #pages .breadcrumb {
+2 -2
View File
@@ -475,7 +475,7 @@ module Gollum
# #
# Returns the placeholder'd String data. # Returns the placeholder'd String data.
def extract_code(data) def extract_code(data)
data.gsub!(/^([ \t]*)(~~~+) ?([^\r\n]+)?\r?\n(.+?)\r?\n\1(~~~+)\r?$/m) do data.gsub!(/^([ \t]*)(~~~+) ?([^\r\n]+)?\r?\n(.+?)\r?\n\1(~~~+)[ \t\r]*$/m) do
m_indent = $1 m_indent = $1
m_start = $2 # ~~~ m_start = $2 # ~~~
m_lang = $3 m_lang = $3
@@ -504,7 +504,7 @@ module Gollum
"#{m_indent}#{id}" # print the SHA1 ID with the proper indentation "#{m_indent}#{id}" # print the SHA1 ID with the proper indentation
end end
data.gsub!(/^([ \t]*)``` ?([^\r\n]+)?\r?\n(.+?)\r?\n\1```\r?$/m) do data.gsub!(/^([ \t]*)``` ?([^\r\n]+)?\r?\n(.+?)\r?\n\1```[ \t]*\r?$/m) do
lang = $2 ? $2.strip : nil lang = $2 ? $2.strip : nil
id = Digest::SHA1.hexdigest("#{lang}.#{$3}") id = Digest::SHA1.hexdigest("#{lang}.#{$3}")
cached = check_cache(:code, id) cached = check_cache(:code, id)
+2 -1
View File
@@ -45,7 +45,8 @@ module Gollum
# Default whitelisted protocols for URLs. # Default whitelisted protocols for URLs.
PROTOCOLS = { PROTOCOLS = {
'a' => {'href' => ['http', 'https', 'mailto', 'ftp', 'irc', 'apt', :relative]}, 'a' => {'href' => ['http', 'https', 'mailto', 'ftp', 'irc', 'apt', :relative]},
'img' => {'src' => ['http', 'https', :relative]} 'img' => {'src' => ['http', 'https', :relative]},
'form' => {'action' => ['http', 'https', :relative]}
}.freeze }.freeze
ADD_ATTRIBUTES = lambda do |env, node| ADD_ATTRIBUTES = lambda do |env, node|