rexleparser 0.5.4 → 0.5.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54da533e31ca21accc56dd043d599c75e7d156e8
4
- data.tar.gz: 490f575e1319f8515695eb594e21c2b3b3f951be
3
+ metadata.gz: daae8a7347bf12a32fa2ae177b2a80dcac193142
4
+ data.tar.gz: 2729f9d4603e3ddd415463a15d46cd7bf40fb13f
5
5
  SHA512:
6
- metadata.gz: 309715fb03c2b6f0be03c2008ab0fd85e4a603401c61cc753f045610e5de3defab285e09663ced755d930ac5306dd3f7f491d8106c23d5301d8e6d746cc1f562
7
- data.tar.gz: 338bd16792836f9d59c9217abf38259f94dcbb9a5bbe6d373da5b2a41167d094c7598f98d8d0b2fbb9f8a4ceff84a88ecc817c83620ad824c47b5e2da82cbcb3
6
+ metadata.gz: 39000b7b17976850b6896c8671f6b2a06b6351afcf3794c5acf9601e69ce7225c7ce9ab7107f43db344fbd955c0396defb0747220160188edd8f03f4b5abfc1c
7
+ data.tar.gz: c7771fc446949b2c29a35f446f7db3b88afa12dd680043eda8ff05db7ad4e7e194810dadd6141291b19746a8f345f9307c43f7aed267e360358b59d54b0edb52
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- "4�������Y��J��p���NU�}z�$�Y;~�EX*��!�P����?b�&���vʕ�HR�����-|(f7 i���C�E������ɿi4�C=S\��0+�
2
- hn���q�N������̍���j�Κ���+�wgZ��J�.�����U�Lw+�|�������&��i�i�a/I�`����1��ҙ
1
+ F�#r')B����[^��
data/lib/rexleparser.rb CHANGED
@@ -31,7 +31,7 @@ class RexleParser
31
31
  # end tag match
32
32
  tag = r[/^>[^<]+</]
33
33
 
34
- if tag[/^>.*[^\/]<$/] then
34
+ if tag[/^>.*[^\/]<$/m] then
35
35
 
36
36
  # is it the end tag to match the start tag?
37
37
  tag = r.slice!(/^>[^<]+</)
@@ -43,13 +43,11 @@ class RexleParser
43
43
  return [:end_tag, end_tag]
44
44
 
45
45
  elsif tag[/^>[^>]*\w+<$/] then
46
-
47
46
  # broken tag found
48
47
  broken_tag = tag
49
48
  return [:child, [nil, [], broken_tag]] if broken_tag
50
49
 
51
- elsif tag[/^(?:>--|>\]\]).*(?:--!|\[ATADC\[!<)/] then
52
-
50
+ elsif tag[/^(?:>--|>\]\]).*(?:--!|\[ATADC\[!<)/m] then
53
51
  # it's a comment tag
54
52
  return [:child, create_comment(tag)]
55
53
  else
@@ -58,7 +56,8 @@ class RexleParser
58
56
  r.prepend '>' + tag
59
57
  return [:child, text]
60
58
  end
61
-
59
+ elsif tag[/\/<$/] then
60
+ return [:child, parse_node(r)]
62
61
  elsif r[/^(?:>--|>\]\]).*(?:--!|\[ATADC\[!<)/m] then
63
62
 
64
63
  i = r =~ /(\-\-!<|\[ATADC\[!<)/
@@ -119,7 +118,7 @@ class RexleParser
119
118
  start_tag, children, end_tag = tag, [], nil
120
119
 
121
120
  until end_tag do
122
-
121
+
123
122
  key, res = scan_next r, tagname
124
123
 
125
124
  case key
@@ -177,4 +176,4 @@ class RexleParser
177
176
 
178
177
  return [tag[/[!\-\w\[]+/], ltext, get_attributes(tag), *r]
179
178
  end
180
- end
179
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexleparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  CkjTMLaPwIQI6dsbG4bVJ7/XzL7c8niqJSF7M0yr1+2kUrWFUZMBMrUUxgZxSkjL
32
32
  Cgd76bp2zjiyCw==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-01-26 00:00:00.000000000 Z
34
+ date: 2015-01-29 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
metadata.gz.sig CHANGED
Binary file