plainwiki 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/parser.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42004517f17fa8a72c4015c35c2fbb1adb631bff
|
|
4
|
+
data.tar.gz: a5152160202ec710952ce042712078d0541f6448
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0d29453ceb7e18670365d0afa30df1784a66ff79bac0d380d5034b90cbbc6b5bc6ffe4919352e92a8d5177a641fb333142d59469cdf908181a106be3f3c6e70
|
|
7
|
+
data.tar.gz: e0ab30ced53799955e8e2e8eab3bc679815b38a7491fe1154a5cd230b8ed7a1976de843113a4d585c3135fce0c542c37496fa1cd16c8340a5141807330cecbda
|
data/lib/parser.rb
CHANGED
|
@@ -48,7 +48,7 @@ module PlainWiki
|
|
|
48
48
|
ps = "detect"
|
|
49
49
|
elsif helper.match(/ref .*\//) != nil
|
|
50
50
|
ps = "detect"
|
|
51
|
-
elsif helper.match(/ref .*/) != nil
|
|
51
|
+
elsif helper.match(/ref .*/) != nil || helper == "ref"
|
|
52
52
|
ps = "ref"
|
|
53
53
|
else
|
|
54
54
|
ps = "detect"
|
|
@@ -134,6 +134,7 @@ module PlainWiki
|
|
|
134
134
|
helper = ""
|
|
135
135
|
ps = "detect"
|
|
136
136
|
else
|
|
137
|
+
helper = ""
|
|
137
138
|
ps = "ref"
|
|
138
139
|
end
|
|
139
140
|
else
|
|
@@ -218,7 +219,7 @@ module PlainWiki
|
|
|
218
219
|
ps = "special"
|
|
219
220
|
speciallev += 1
|
|
220
221
|
when "special"
|
|
221
|
-
if c == "}"
|
|
222
|
+
if c == "}" || c == "|"
|
|
222
223
|
ps = "specialend"
|
|
223
224
|
elsif c == "{"
|
|
224
225
|
ps = "tabledetect"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plainwiki
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phitherek_
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: This gem provides a parser that strips out MediaWiki' s wikitext to plain
|
|
14
14
|
text. Not affliated with Wikimedia or MediaWiki in any way.
|