rexslt 0.5.5 → 0.5.6

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: f6d9715ed9e1468bcd70ac6fcc1ea1c749259f72
4
- data.tar.gz: 456544e887192cd991fde59554f33def48bd838d
3
+ metadata.gz: 8be29888510a0ff64775f8f0fd548fc7315aef5e
4
+ data.tar.gz: 92cf22e38e42cb3459e929d69f3898d46de837c0
5
5
  SHA512:
6
- metadata.gz: 26eae986bf010a3f91ce24dbf9b6464d800b1484d5bb24d8bd0b47d51494d037ce0499f7d2aeff2889115d4798382d46241ac1dbdd92f3e22598fb6cec7c47ef
7
- data.tar.gz: 21aff110c8b62b9a993bf5d235989138a725e1689cdb981f5bdcf2338b59ebd1a765f95794fe7e37d0ec65d5dd0ba6fefdf05f98dbd98c604d0c717844dee920
6
+ metadata.gz: bab9db0e8126b174fa2c1ec551e62a62b68af36dbc738bde46d9838149a09907b7b57da17e4b270a0e4c92b41953f349b491630754824ec2172b80b1429ca613
7
+ data.tar.gz: 13271f23faf47d88fae650ff7606240e881982f8da0e3d6e00f189e0b1178e8c11827f12e0d92c94dd4d66b5227955abc6b4686389198142747f851a2e6270b0
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexslt.rb CHANGED
@@ -301,6 +301,11 @@ class Rexslt
301
301
  end
302
302
 
303
303
  end
304
+
305
+ # Ignores comment tags
306
+ #
307
+ def ignore(*args)
308
+ end
304
309
 
305
310
  def indent_before(element, x, doc_element, indent, i)
306
311
  text = ''
@@ -337,8 +342,12 @@ class Rexslt
337
342
  end
338
343
 
339
344
  def read_node(template_node, element, doc_element, indent, i=0)
340
-
341
- procs = {"Rexle::Element" => :read_raw_element, "String" => :read_raw_text}
345
+
346
+ procs = {
347
+ "Rexle::Element" => :read_raw_element,
348
+ "String" => :read_raw_text,
349
+ "Rexle::Comment" => :ignore
350
+ }
342
351
 
343
352
  template_node.children.each_with_index do |x,j|
344
353
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexslt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file