infoboxer 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/infoboxer/parser/template.rb +4 -4
- data/lib/infoboxer/parser/util.rb +1 -1
- data/lib/infoboxer/tree/math.rb +3 -0
- data/lib/infoboxer/version.rb +1 -1
- 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: 3dc65cf33309c84191cac67a24377302a220a899
|
4
|
+
data.tar.gz: 64d1a9f50089fa0b676ffa02db045efce5445100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7850a54a7aa864dd0d5d4c8e741877b3bde859d3bd19b0dde1303a411f6948c58144e6fd2389df7626d3b3e967063b2784f91a34bd69b7c6375598e6051044f
|
7
|
+
data.tar.gz: 59cd28da34d3e66c6ecb971985d7fbfecb3f649911f45a8d205df156899d4a265a887f30566a9825f67ca3a4457638c92b4966f75e559c36ea310eb94d05e212
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Infoboxer's change log
|
2
2
|
|
3
|
+
## 0.2.7 (2016-09-18)
|
4
|
+
|
5
|
+
* Fix `Math` node rendering to text (#68);
|
6
|
+
* Fix consequtive apostrophes problem (#69);
|
7
|
+
* Fix math parsing in templates (#70).
|
8
|
+
|
3
9
|
## 0.2.6 (2016-06-27)
|
4
10
|
|
5
11
|
_0.2.5 was erroneously released without any changes._
|
@@ -3,7 +3,7 @@ module Infoboxer
|
|
3
3
|
class Parser
|
4
4
|
module Template
|
5
5
|
include Tree
|
6
|
-
|
6
|
+
|
7
7
|
# NB: here we are not distingish templates like `{{Infobox|variable}}`
|
8
8
|
# and "magic words" like `{{formatnum:123}}`
|
9
9
|
# Just calling all of them "templates". This behaviour will change
|
@@ -12,7 +12,7 @@ module Infoboxer
|
|
12
12
|
def template
|
13
13
|
name = @context.scan_continued_until(/\||:|}}/) or
|
14
14
|
@context.fail!("Template name not found")
|
15
|
-
|
15
|
+
|
16
16
|
name.strip!
|
17
17
|
vars = @context.eat_matched?('}}') ? Nodes[] : template_vars
|
18
18
|
@context.traits.templates.find(name).new(name, vars)
|
@@ -21,10 +21,10 @@ module Infoboxer
|
|
21
21
|
def template_vars
|
22
22
|
num = 1
|
23
23
|
res = Nodes[]
|
24
|
-
|
24
|
+
|
25
25
|
guarded_loop do
|
26
26
|
@context.next! while @context.eol?
|
27
|
-
if @context.check(/\s*([^ =}
|
27
|
+
if @context.check(/\s*([^ =}|<]+)\s*=\s*/)
|
28
28
|
name = @context.scan(/\s*([^ =]+)/).strip
|
29
29
|
@context.skip(/\s*=\s*/)
|
30
30
|
else
|
data/lib/infoboxer/tree/math.rb
CHANGED
data/lib/infoboxer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infoboxer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Shepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|