Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0870655455 | |||
| ba24a7bb8c | |||
| f32d7465a2 | |||
| e202698bf1 | |||
| 11c2bf7dae | |||
| 53cf0e1148 | |||
| 2d1e49e3f2 | |||
| 199161f611 | |||
| a0f5a60ea0 | |||
| af29c6e441 |
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# 4.1.0 /2016-03-09
|
# 4.1.0 /2017-03-09
|
||||||
|
|
||||||
* Added file deletion functionality to file view
|
* Added file deletion functionality to file view
|
||||||
* Various performance improvements
|
* Various performance improvements
|
||||||
|
|||||||
+3
-3
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
|
|||||||
s.required_ruby_version = '>= 1.9'
|
s.required_ruby_version = '>= 1.9'
|
||||||
|
|
||||||
s.name = 'gollum'
|
s.name = 'gollum'
|
||||||
s.version = '4.1.0'
|
s.version = '4.1.1'
|
||||||
s.date = '2017-03-09'
|
s.date = '2017-04-17'
|
||||||
s.rubyforge_project = 'gollum'
|
s.rubyforge_project = 'gollum'
|
||||||
s.license = 'MIT'
|
s.license = 'MIT'
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|||||||
s.add_dependency 'sinatra', '~> 1.4', '>= 1.4.4'
|
s.add_dependency 'sinatra', '~> 1.4', '>= 1.4.4'
|
||||||
s.add_dependency 'mustache', ['>= 0.99.5', '< 1.0.0']
|
s.add_dependency 'mustache', ['>= 0.99.5', '< 1.0.0']
|
||||||
s.add_dependency 'useragent', '~> 0.16.2'
|
s.add_dependency 'useragent', '~> 0.16.2'
|
||||||
s.add_dependency 'gemojione', '~> 2'
|
s.add_dependency 'gemojione', '~> 3.2'
|
||||||
|
|
||||||
s.add_development_dependency 'rack-test', '~> 0.6.2'
|
s.add_development_dependency 'rack-test', '~> 0.6.2'
|
||||||
s.add_development_dependency 'shoulda', '~> 3.5.0'
|
s.add_development_dependency 'shoulda', '~> 3.5.0'
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ require File.expand_path('../gollum/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 = '4.1.0'
|
VERSION = '4.1.1'
|
||||||
|
|
||||||
def self.assets_path
|
def self.assets_path
|
||||||
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
|
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
|
||||||
|
|||||||
+2
-1
@@ -348,7 +348,7 @@ module Precious
|
|||||||
wiki.write_page(name, format, params[:content], commit_message, path)
|
wiki.write_page(name, format, params[:content], commit_message, path)
|
||||||
|
|
||||||
page_dir = settings.wiki_options[:page_file_dir].to_s
|
page_dir = settings.wiki_options[:page_file_dir].to_s
|
||||||
redirect to("/#{clean_url(::File.join(page_dir, path, encodeURIComponent(name)))}")
|
redirect to("/#{clean_url(::File.join(encodeURIComponent(page_dir), encodeURIComponent(path), encodeURIComponent(name)))}")
|
||||||
rescue Gollum::DuplicatePageError => e
|
rescue Gollum::DuplicatePageError => e
|
||||||
@message = "Duplicate page: #{e.message}"
|
@message = "Duplicate page: #{e.message}"
|
||||||
mustache :error
|
mustache :error
|
||||||
@@ -464,6 +464,7 @@ module Precious
|
|||||||
@name = name
|
@name = name
|
||||||
@content = page.formatted_data
|
@content = page.formatted_data
|
||||||
@version = version
|
@version = version
|
||||||
|
@bar_side = wikip.wiki.bar_side
|
||||||
mustache :page
|
mustache :page
|
||||||
elsif file = wikip.wiki.file("#{file_path}", version, true)
|
elsif file = wikip.wiki.file("#{file_path}", version, true)
|
||||||
show_file(file)
|
show_file(file)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ require 'gemojione'
|
|||||||
module Precious
|
module Precious
|
||||||
module Helpers
|
module Helpers
|
||||||
|
|
||||||
EMOJI_PATHNAME = Pathname.new(Gemojione.index.images_path).freeze
|
EMOJI_PATHNAME = Pathname.new(Gemojione.images_path).freeze
|
||||||
|
|
||||||
# Extract the path string that Gollum::Wiki expects
|
# Extract the path string that Gollum::Wiki expects
|
||||||
def extract_path(file_path)
|
def extract_path(file_path)
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ context "Frontend" do
|
|||||||
# and in file names saved to disk
|
# and in file names saved to disk
|
||||||
# urls are not case sensitive
|
# urls are not case sensitive
|
||||||
assert_equal 'Title-Space', 'Title Space'.to_url
|
assert_equal 'Title-Space', 'Title Space'.to_url
|
||||||
|
end
|
||||||
|
|
||||||
|
test "translation" do
|
||||||
|
# we transliterate only when adapter is grit
|
||||||
|
return if defined?(Gollum::GIT_ADAPTER) && Gollum::GIT_ADAPTER != 'grit'
|
||||||
|
|
||||||
# ascii only file names prevent UTF8 issues
|
# ascii only file names prevent UTF8 issues
|
||||||
# when using git repos across operating systems
|
# when using git repos across operating systems
|
||||||
|
|||||||
@@ -90,8 +90,11 @@ context "Frontend Unicode support" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test 'transliteration' do
|
test 'transliteration' do
|
||||||
|
# we transliterate only when adapter is grit
|
||||||
|
return if defined?(Gollum::GIT_ADAPTER) && Gollum::GIT_ADAPTER != 'grit'
|
||||||
|
|
||||||
# TODO: Remove to_url once write_page changes are merged.
|
# TODO: Remove to_url once write_page changes are merged.
|
||||||
@wiki.write_page('ééééé'.to_url, :markdown, '한글 text', { :name => '', :email => '' })
|
@wiki.write_page('ééééé'.to_url, :markdown, '한글 text', commit_details)
|
||||||
page = @wiki.page('eeeee')
|
page = @wiki.page('eeeee')
|
||||||
assert_equal '한글 text', utf8(page.raw_data)
|
assert_equal '한글 text', utf8(page.raw_data)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user