rexle 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rexle.rb +6 -2
- metadata +2 -2
data/lib/rexle.rb
CHANGED
@@ -277,8 +277,12 @@ class Rexle
|
|
277
277
|
result
|
278
278
|
end
|
279
279
|
|
280
|
-
def value=(
|
281
|
-
|
280
|
+
def value=(raw_s)
|
281
|
+
|
282
|
+
@value = raw_s.to_s.clone
|
283
|
+
escape_chars = %w(& & < < > >).each_slice(2).to_a
|
284
|
+
escape_chars.each{|x| @value.gsub!(*x)}
|
285
|
+
|
282
286
|
a = self.parent.instance_variable_get(:@child_lookup)
|
283
287
|
if a then
|
284
288
|
i = a.index(a.assoc(@name))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
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: 2011-
|
12
|
+
date: 2011-02-02 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|