rexleparser 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. data/lib/rexleparser.rb +2 -2
  2. metadata +2 -2
data/lib/rexleparser.rb CHANGED
@@ -29,13 +29,13 @@ class RexleParser
29
29
  if name then
30
30
 
31
31
  # find the closing tag
32
- i = a.index(a.detect{|x| x == '>'})
32
+ i = a.index('>')
33
33
  raw_values = ''
34
34
 
35
35
  # is it a self closing tag?
36
36
  if a[i-1] == '/' then
37
37
  raw_values << a.shift until a[0] == '/'
38
- 2.times{a.shift}
38
+ a.shift until a[0] == '<' or a.length < 1
39
39
  raw_values.strip!
40
40
 
41
41
  attributes = get_attributes(raw_values) if raw_values.length > 0
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.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-11-11 00:00:00 +00:00
12
+ date: 2010-11-14 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15