RubyGems
npm
Organizations
Log in
Sign up
RubyGems
dynarex-parser
Versions diffs
0.2.2 → 0.2.3
dynarex-parser 0.2.2 → 0.2.3
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/dynarex-parser.rb
+1
-2
metadata
+1
-1
data/lib/dynarex-parser.rb
CHANGED
Viewed
@@ -14,8 +14,7 @@ class DynarexParser
14
14
15
15
s.instance_eval{
16
16
def fetch_node(name)
17
-
self
.slice(((self =~
/<#{name}
>/
)
+
name
.length + 2) .. \
18
-
(self =~ /<\/#{name}>/) - 1) if self[/<#{name}>/]
17
+
self
[
/<#{name}
>(.*
)
<\/#{
name
}>/,1]
19
18
end
20
19
}
21
20
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: dynarex-parser
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.2.
2
4
+
version: 0.2.
3
5
5
platform: ruby
6
6
authors: []
7
7