Skip to content

Commit

Permalink
Remove wikicloth
Browse files Browse the repository at this point in the history
  • Loading branch information
komagata committed Apr 28, 2019
1 parent e8b5a11 commit 4c2c44e
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 20 deletions.
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -39,7 +39,6 @@ gem 'sinatra-flash', '~> 0.3.0'
gem 'slim', '~> 3.0.7'
gem 'tilt', '~> 2.0'
gem 'tux'
gem 'wikicloth', '0.8.3'
gem 'yard-sinatra', '1.0.0'

Dir['public/plugin/lokka-*/Gemfile'].each {|path| load(path) }
Expand Down
1 change: 0 additions & 1 deletion Gemfile.docker
Expand Up @@ -33,7 +33,6 @@ gem 'padrino-helpers', '~> 0.14.1.1'
gem 'coderay', '1.0.5'
gem 'kramdown'
gem 'RedCloth', '4.2.9'
gem 'wikicloth', '0.8.3'
gem 'redcarpet'
gem 'yard-sinatra', '1.0.0'
gem 'backports', '2.3.0'
Expand Down
7 changes: 0 additions & 7 deletions Gemfile.lock
Expand Up @@ -227,12 +227,6 @@ GEM
unf_ext (0.0.7.4)
unicode-display_width (1.3.0)
uuidtools (2.1.5)
wikicloth (0.8.3)
builder
expression_parser
htmlentities
nokogiri
twitter-text
yard (0.9.11)
yard-sinatra (1.0.0)
yard (~> 0.7)
Expand Down Expand Up @@ -292,7 +286,6 @@ DEPENDENCIES
tapp (= 1.3.0)
tilt (~> 2.0)
tux
wikicloth (= 0.8.3)
yard-sinatra (= 1.0.0)

BUNDLED WITH
Expand Down
1 change: 0 additions & 1 deletion lib/lokka.rb
Expand Up @@ -131,7 +131,6 @@ def load_plugin(app)
require 'coderay'
require 'kramdown'
require 'redcloth'
require 'wikicloth'
require 'redcarpet'
require 'haml'
require 'sass'
Expand Down
2 changes: 0 additions & 2 deletions lib/lokka/models/markup.rb
Expand Up @@ -22,8 +22,6 @@ def use_engine(name, text)
end],
['redcloth', 'Textile (Redcloth)',
->(text) { RedCloth.new(text).to_html }],
['wikicloth', 'MediaWiki (WikiCloth)',
->(text) { WikiCloth::Parser.new(data: text).to_html(noedit: true) }],
['redcarpet', 'Markdown (redcarpet)',
lambda do |text|
Redcarpet::Markdown.new(
Expand Down
6 changes: 0 additions & 6 deletions spec/factories.rb
Expand Up @@ -75,12 +75,6 @@
markup 'redcloth'
end

factory :wikicloth, parent: :post do
title 'MediaWiki'
body "= hi! = \nwikicloth test"
markup 'wikicloth'
end

factory :post_with_more, parent: :post do
body "a\n\n<!--more-->\n\nb\n\n<!--more-->\n\nc\n"
slug 'post-with-more'
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/post_spec.rb
Expand Up @@ -45,7 +45,7 @@
end

context 'markup' do
%i[kramdown redcloth wikicloth].each do |markup|
[:kramdown, :redcloth].each do |markup|
describe "a post using #{markup}" do
let(:post) { create(markup) }
let(:regexp) { %r{<h1.*>(<a name.+</a><span .+>)*hi!(</span>)*</h1>\s*<p>#{markup} test</p>} }
Expand Down Expand Up @@ -99,7 +99,7 @@
end

describe '#description' do
%i[kramdown redcloth wikicloth].each do |markup|
%i[kramdown redcloth].each do |markup|
describe 'should use converted markup.' do
let(:post) { create(markup) }
it { post.description.should eq("#{markup} test") }
Expand Down

0 comments on commit 4c2c44e

Please sign in to comment.