wikitext 2.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/parser.c +2 -0
- data/lib/wikitext/version.rb +1 -1
- data/spec/autolinking_spec.rb +1 -1
- data/spec/base_heading_level_spec.rb +1 -1
- data/spec/blockquote_spec.rb +1 -1
- data/spec/em_spec.rb +1 -1
- data/spec/encoding_spec.rb +1 -1
- data/spec/entity_spec.rb +1 -1
- data/spec/external_link_spec.rb +1 -1
- data/spec/fulltext_spec.rb +1 -1
- data/spec/h1_spec.rb +1 -1
- data/spec/h2_spec.rb +1 -1
- data/spec/h3_spec.rb +1 -1
- data/spec/h4_spec.rb +1 -1
- data/spec/h5_spec.rb +1 -1
- data/spec/h6_spec.rb +1 -1
- data/spec/img_spec.rb +1 -1
- data/spec/indentation_spec.rb +1 -1
- data/spec/integration_spec.rb +1 -1
- data/spec/internal_link_spec.rb +1 -1
- data/spec/line_endings_spec.rb +1 -1
- data/spec/link_encoding_spec.rb +1 -1
- data/spec/link_sanitizing_spec.rb +1 -1
- data/spec/nil_class_spec.rb +1 -1
- data/spec/nowiki_spec.rb +1 -1
- data/spec/p_spec.rb +1 -1
- data/spec/parser_spec.rb +1 -1
- data/spec/pre_spec.rb +1 -1
- data/spec/rails_spec.rb +1 -1
- data/spec/regressions_spec.rb +27 -1
- data/spec/spec_helper.rb +8 -11
- data/spec/string_spec.rb +1 -1
- data/spec/strong_em_spec.rb +1 -1
- data/spec/strong_spec.rb +1 -1
- data/spec/tokenizing_spec.rb +1 -1
- data/spec/tt_spec.rb +1 -1
- data/spec/ul_spec.rb +1 -1
- data/spec/version_spec.rb +1 -1
- data/spec/wikitext_spec.rb +1 -1
- metadata +26 -11
data/ext/parser.c
CHANGED
@@ -2011,6 +2011,7 @@ VALUE Wikitext_parser_parse(int argc, VALUE *argv, VALUE self)
|
|
2011
2011
|
wiki_start_para_if_necessary(parser);
|
2012
2012
|
str_append(parser->output, ext_link_start, sizeof(ext_link_start) - 1);
|
2013
2013
|
wiki_append_hyperlink(parser, Qnil, token_str, NULL, parser->external_link_class, parser->external_link_rel, true);
|
2014
|
+
continue;
|
2014
2015
|
}
|
2015
2016
|
}
|
2016
2017
|
else
|
@@ -2054,6 +2055,7 @@ VALUE Wikitext_parser_parse(int argc, VALUE *argv, VALUE self)
|
|
2054
2055
|
wiki_start_para_if_necessary(parser);
|
2055
2056
|
str_append(parser->output, ext_link_start, sizeof(ext_link_start) - 1);
|
2056
2057
|
str_append_str(parser->output, token_str);
|
2058
|
+
continue;
|
2057
2059
|
}
|
2058
2060
|
}
|
2059
2061
|
else
|
data/lib/wikitext/version.rb
CHANGED
data/spec/autolinking_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'autolinking' do
|
27
27
|
before do
|
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
require 'wikitext/parser'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'base_heading_level' do
|
data/spec/blockquote_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'standard blockquotes (">" in first column)' do
|
27
27
|
before do
|
data/spec/em_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <em> spans' do
|
27
27
|
before do
|
data/spec/encoding_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
require 'iconv'
|
26
26
|
|
27
27
|
describe Wikitext, 'with invalidly encoded input' do
|
data/spec/entity_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing entities' do
|
27
27
|
before do
|
data/spec/external_link_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'external links' do
|
28
28
|
before do
|
data/spec/fulltext_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'fulltext tokenizing' do
|
28
28
|
before do
|
data/spec/h1_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <h1> blocks' do
|
27
27
|
before do
|
data/spec/h2_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <h2> blocks' do
|
27
27
|
before do
|
data/spec/h3_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <h3> blocks' do
|
27
27
|
before do
|
data/spec/h4_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <h4> blocks' do
|
27
27
|
before do
|
data/spec/h5_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <h5> blocks' do
|
27
27
|
before do
|
data/spec/h6_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <h6> blocks' do
|
27
27
|
before do
|
data/spec/img_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'embedding img tags' do
|
28
28
|
before do
|
data/spec/indentation_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
# this is the inverse of the dedent method in spec_helper.rb
|
27
27
|
# it's only in this file because it isn't needed anywhere else
|
data/spec/integration_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'with large slab of input text' do
|
28
28
|
before do
|
data/spec/internal_link_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'internal links (space to underscore off)' do
|
28
28
|
before do
|
data/spec/line_endings_spec.rb
CHANGED
data/spec/link_encoding_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
require 'uri'
|
27
27
|
|
28
28
|
describe Wikitext, 'encoding a link target' do
|
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext, 'sanitizing a link target' do
|
28
28
|
it 'should complain if passed nil' do
|
data/spec/nil_class_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
require 'wikitext/nil_class'
|
26
26
|
|
27
27
|
describe NilClass, 'wikitext extensions' do
|
data/spec/nowiki_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'parsing <nowiki> spans' do
|
28
28
|
before do
|
data/spec/p_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing paragraphs' do
|
27
27
|
before do
|
data/spec/parser_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
require 'wikitext/parser'
|
26
26
|
|
27
27
|
describe Wikitext::Parser do
|
data/spec/pre_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
describe Wikitext::Parser, 'parsing PRE blocks' do
|
28
28
|
before do
|
data/spec/rails_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
require 'wikitext/version'
|
26
26
|
require 'fileutils'
|
27
27
|
require 'pathname'
|
data/spec/regressions_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
|
27
27
|
# this is a general-purpose file in which I'll add specs for former bugs to make sure that they don't regress
|
28
28
|
describe Wikitext::Parser, 'regressions' do
|
@@ -864,4 +864,30 @@ describe Wikitext::Parser, 'regressions' do
|
|
864
864
|
# and this one returned: <p><a href="/wiki/">foo</a></p>\n
|
865
865
|
@parser.parse('[[ |foo]]').should == "<p>[[ |foo]]</p>\n"
|
866
866
|
end
|
867
|
+
|
868
|
+
# first manifested itself in this comment: https://wincent.com/comments/6427
|
869
|
+
it 'handles "`[/`"' do
|
870
|
+
# This is, of course, an invalid link, but it could be handled more
|
871
|
+
# gracefully (we were opening a <code> span and instead of just rolling
|
872
|
+
# back the failed link and then proceeding with the parse and closing
|
873
|
+
# the span, we skipped the second backtick, causing the remainder of
|
874
|
+
# the input to appear inside the <code> span).
|
875
|
+
#
|
876
|
+
# Although the bug manifested itself with backticks, it could also have
|
877
|
+
# happened with any non-space token appearing after a EXT_LINK_START +
|
878
|
+
# PATH sequence (any such token would just be dropped on the floor).
|
879
|
+
@parser.parse('with `[/` then').should == "<p>with <code>[/</code> then</p>\n"
|
880
|
+
|
881
|
+
# related example from the original ticket: https://wincent.com/issues/1726
|
882
|
+
@parser.parse('[/bar?baz=bat link]').should == "<p>[/bar?baz=bat link]</p>\n"
|
883
|
+
end
|
884
|
+
|
885
|
+
it 'handles "[http://foo.com]"' do
|
886
|
+
# Same bug as above, but with a EXT_LINK_START + URI rather than
|
887
|
+
# EXT_LINK_START + PATH; again we expect to see a SPACE, but when we
|
888
|
+
# see something else, we roll back and drop the unexpected token on
|
889
|
+
# the floor.
|
890
|
+
expected = %Q{<p>[<a href="http://foo.com" class="external">http://foo.com</a>]</p>\n}
|
891
|
+
@parser.parse('[http://foo.com]').should == expected
|
892
|
+
end
|
867
893
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -22,7 +22,6 @@
|
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
24
|
require 'pathname'
|
25
|
-
require 'rubygems'
|
26
25
|
require 'rspec'
|
27
26
|
|
28
27
|
# allow indenting of multiline spec data for better readability
|
@@ -51,16 +50,12 @@ def dedent spaces, string = nil
|
|
51
50
|
string.gsub /^ {#{spaces.to_i}}/, ''
|
52
51
|
end
|
53
52
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
normalized = $:.collect { |path| Pathname.new(path).realpath rescue path }
|
61
|
-
[libdir, extdir].each { |d| $:.unshift(d) unless normalized.include?(d) }
|
62
|
-
end
|
63
|
-
end # module Wikitext
|
53
|
+
# prepend local directories to search path if not already present
|
54
|
+
basedir = Pathname.new(__FILE__).dirname + '..'
|
55
|
+
extdir = (basedir + 'ext').realpath
|
56
|
+
libdir = (basedir + 'lib').realpath
|
57
|
+
normalized = $:.map { |path| Pathname.new(path).realpath rescue path }
|
58
|
+
[libdir, extdir].each { |d| $:.unshift(d) unless normalized.include?(d) }
|
64
59
|
|
65
60
|
module UTF8
|
66
61
|
if not const_defined? 'Invalid'
|
@@ -85,3 +80,5 @@ module UTF8
|
|
85
80
|
end # module UTF8
|
86
81
|
|
87
82
|
require 'wikitext'
|
83
|
+
|
84
|
+
ENV['RUBYOPT'] = nil
|
data/spec/string_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
require 'wikitext/string'
|
26
26
|
|
27
27
|
describe String, 'wikitext extensions' do
|
data/spec/strong_em_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing combined <strong>/<em> spans' do
|
27
27
|
before do
|
data/spec/strong_spec.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
22
|
# POSSIBILITY OF SUCH DAMAGE.
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'spec_helper'
|
25
25
|
|
26
26
|
describe Wikitext::Parser, 'parsing <strong> spans' do
|
27
27
|
before do
|
data/spec/tokenizing_spec.rb
CHANGED
data/spec/tt_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
require 'wikitext'
|
27
27
|
|
28
28
|
describe Wikitext::Parser, 'parsing <tt> spans' do
|
data/spec/ul_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
require 'wikitext'
|
27
27
|
|
28
28
|
describe Wikitext::Parser, 'parsing unordered lists' do
|
data/spec/version_spec.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
23
|
# POSSIBILITY OF SUCH DAMAGE.
|
24
24
|
|
25
|
-
require
|
25
|
+
require 'spec_helper'
|
26
26
|
require 'wikitext/version'
|
27
27
|
|
28
28
|
describe Wikitext, 'versioning' do
|
data/spec/wikitext_spec.rb
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
24
24
|
# POSSIBILITY OF SUCH DAMAGE.
|
25
25
|
|
26
|
-
require
|
26
|
+
require 'spec_helper'
|
27
27
|
require 'wikitext'
|
28
28
|
|
29
29
|
describe Wikitext::Parser do
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wikitext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 2.1.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Wincent Colaiuta
|
@@ -14,13 +15,27 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-11-06 00:00:00 +01:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
22
|
+
name: rake
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rspec
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
24
39
|
none: false
|
25
40
|
requirements:
|
26
41
|
- - ~>
|
@@ -32,11 +47,11 @@ dependencies:
|
|
32
47
|
- 0
|
33
48
|
version: 2.0.0
|
34
49
|
type: :development
|
35
|
-
version_requirements: *
|
50
|
+
version_requirements: *id002
|
36
51
|
- !ruby/object:Gem::Dependency
|
37
52
|
name: thor
|
38
53
|
prerelease: false
|
39
|
-
requirement: &
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
55
|
none: false
|
41
56
|
requirements:
|
42
57
|
- - ">="
|
@@ -46,11 +61,11 @@ dependencies:
|
|
46
61
|
- 0
|
47
62
|
version: "0"
|
48
63
|
type: :development
|
49
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
50
65
|
- !ruby/object:Gem::Dependency
|
51
66
|
name: yard
|
52
67
|
prerelease: false
|
53
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
54
69
|
none: false
|
55
70
|
requirements:
|
56
71
|
- - ">="
|
@@ -62,11 +77,11 @@ dependencies:
|
|
62
77
|
- 8
|
63
78
|
version: 0.5.8
|
64
79
|
type: :development
|
65
|
-
version_requirements: *
|
80
|
+
version_requirements: *id004
|
66
81
|
- !ruby/object:Gem::Dependency
|
67
82
|
name: wopen3
|
68
83
|
prerelease: false
|
69
|
-
requirement: &
|
84
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
70
85
|
none: false
|
71
86
|
requirements:
|
72
87
|
- - ">="
|
@@ -76,7 +91,7 @@ dependencies:
|
|
76
91
|
- 0
|
77
92
|
version: "0"
|
78
93
|
type: :development
|
79
|
-
version_requirements: *
|
94
|
+
version_requirements: *id005
|
80
95
|
description: " Wikitext is a fast wikitext-to-HTML translator written in C.\n"
|
81
96
|
email: win@wincent.com
|
82
97
|
executables:
|