rexle 0.8.9 → 0.8.10
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.
- data/lib/rexle.rb +4 -11
- metadata +2 -2
data/lib/rexle.rb
CHANGED
@@ -219,6 +219,10 @@ class Rexle
|
|
219
219
|
item.parent = self
|
220
220
|
item
|
221
221
|
end
|
222
|
+
|
223
|
+
def inspect()
|
224
|
+
"%s ... </>" % self.xml[/<[^>]+>/]
|
225
|
+
end
|
222
226
|
|
223
227
|
alias add add_element
|
224
228
|
|
@@ -300,20 +304,9 @@ class Rexle
|
|
300
304
|
method(msg).call(self.children)
|
301
305
|
end
|
302
306
|
|
303
|
-
# temp methods
|
304
307
|
|
305
308
|
private
|
306
309
|
|
307
|
-
def scan_print222(nodes)
|
308
|
-
out = []
|
309
|
-
nodes.each do |x|
|
310
|
-
out << "<%s>" % x.name
|
311
|
-
out << scan_print(x.children)
|
312
|
-
out << "</%s>" % x.name
|
313
|
-
end
|
314
|
-
out
|
315
|
-
end
|
316
|
-
|
317
310
|
def format_condition(condition)
|
318
311
|
#raw_items = condition[1..-1].scan(/\'[^\']*\'|and|or|\d+|[!=]+|[@\w\.\/]+/)
|
319
312
|
raw_items = condition[1..-1].scan(/\'[^\']*\'|and|or|\d+|[!=<>]+|position\(\)|[@\w\.\/]+/)
|
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.10
|
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-02-
|
12
|
+
date: 2011-02-07 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|