review-peg 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/review/latexbuilder.rb +8 -2
- data/lib/review/node.rb +1 -1
- data/lib/review/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: f53d59e9684dca54e7c6dd2a651a729d1e23a367
|
4
|
+
data.tar.gz: da7a67024dfc85a5f95a275bb49cad977a478e65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d69e8bec72b91fb301f077acd076298bb459b4fdab848a921646fa3bd18d3077bb4daaf890488f47f9c9849cee77b8d39b3aa189b763390ca803e279682fe3c1
|
7
|
+
data.tar.gz: e4bdfc4e3f0caa649bc1398690f504f5158687a87b622cd642425d3cc63cbe1db34afdb6930af4a34040e5d6339637ad2a42ac79345e9637773aeb8f31a0fb82
|
data/lib/review/latexbuilder.rb
CHANGED
@@ -459,7 +459,13 @@ module ReVIEW
|
|
459
459
|
|
460
460
|
alias_method :numberlessimage, :indepimage
|
461
461
|
|
462
|
-
def
|
462
|
+
def node_table(node)
|
463
|
+
id = node.args[0].to_doc
|
464
|
+
caption = node.args[1].to_doc
|
465
|
+
lines = []
|
466
|
+
node.content.each do |line|
|
467
|
+
lines << line.to_doc
|
468
|
+
end
|
463
469
|
buf = ""
|
464
470
|
rows = []
|
465
471
|
sepidx = nil
|
@@ -549,7 +555,7 @@ module ReVIEW
|
|
549
555
|
|
550
556
|
def tr(rows)
|
551
557
|
buf = ""
|
552
|
-
buf << rows.join(' & ')
|
558
|
+
buf << rows.join(' & ')
|
553
559
|
buf << ' \\\\ \hline' << "\n"
|
554
560
|
buf
|
555
561
|
end
|
data/lib/review/node.rb
CHANGED
@@ -142,7 +142,7 @@ module ReVIEW
|
|
142
142
|
'{"ruleName":"' + self.class.to_s.sub(/ReVIEW::/,"").sub(/Node$/,"") + '",' +
|
143
143
|
%Q|"symbol":"#{@symbol}",| +
|
144
144
|
"\"offset\":#{position.pos},\"line\":#{position.line},\"column\":#{position.col}," +
|
145
|
-
'"childNodes":[' + @content.map(&:to_json).join(",") + ']}'
|
145
|
+
(@concat ? '"childNodes":[' + @content.map(&:to_json).join(",") + ']' : '"childNodes":[]') + '}'
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
data/lib/review/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: review-peg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kmuto
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|