rexle 0.9.2 → 0.9.3

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/rexle.rb +6 -3
  2. metadata +2 -2
data/lib/rexle.rb CHANGED
@@ -230,8 +230,10 @@ class Rexle
230
230
 
231
231
  procs = {
232
232
  Hash: lambda {|x| x[0] || {}},
233
- String: lambda {|x| Hash[*x]}
234
- }
233
+ String: lambda {|x| Hash[*x]},
234
+ Symbol: lambda {|x| Hash[*x]}
235
+ }
236
+
235
237
  h = procs[x[0].class.to_s.to_sym].call(x)
236
238
 
237
239
  @attributes.merge! h
@@ -275,7 +277,7 @@ class Rexle
275
277
 
276
278
  def result.unescape()
277
279
  s = self.clone
278
- %w(&lt; < &gt; > &amp; &).each_slice(2){|x| s.gsub!(*x)}
280
+ %w(&lt; < &gt; > &amp; & &pos; ').each_slice(2){|x| s.gsub!(*x)}
279
281
  s
280
282
  end
281
283
 
@@ -372,6 +374,7 @@ class Rexle
372
374
 
373
375
  h = x.attributes
374
376
 
377
+
375
378
  if element and not(element.empty?) then
376
379
  if x.name == element
377
380
  if attr_search then
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.9.2
4
+ version: 0.9.3
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-08 00:00:00 +00:00
12
+ date: 2011-02-11 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency