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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03d1ef2fefa11d295fa174c87a4c40275a26f154
4
- data.tar.gz: beac544612280cbb759cb38bad11afc6570d4efc
3
+ metadata.gz: f53d59e9684dca54e7c6dd2a651a729d1e23a367
4
+ data.tar.gz: da7a67024dfc85a5f95a275bb49cad977a478e65
5
5
  SHA512:
6
- metadata.gz: 28bac4ddc963431f7e5886d181ec34e0a5ac51cb6973fba4a2ac872de357a86bac03190d40bcc92c00b0f949362113d4fd090f18a481489b9dbec7abca06eddd
7
- data.tar.gz: c3dee71459430d4dcf890eba2066a27a5c4d7473f81138907f280530ac1ea14402885e177e193a62b8a7247389a443d52484b8ce254bd6ce33506b26dfedded2
6
+ metadata.gz: d69e8bec72b91fb301f077acd076298bb459b4fdab848a921646fa3bd18d3077bb4daaf890488f47f9c9849cee77b8d39b3aa189b763390ca803e279682fe3c1
7
+ data.tar.gz: e4bdfc4e3f0caa649bc1398690f504f5158687a87b622cd642425d3cc63cbe1db34afdb6930af4a34040e5d6339637ad2a42ac79345e9637773aeb8f31a0fb82
@@ -459,7 +459,13 @@ module ReVIEW
459
459
 
460
460
  alias_method :numberlessimage, :indepimage
461
461
 
462
- def table(lines, id = nil, caption = nil)
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(' & ') << "\n"
558
+ buf << rows.join(' & ')
553
559
  buf << ' \\\\ \hline' << "\n"
554
560
  buf
555
561
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module ReVIEW
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-04 00:00:00.000000000 Z
12
+ date: 2015-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake