roxo 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/roxo.rb +2 -2
- data/roxo.gemspec +1 -1
- metadata +2 -2
data/lib/roxo.rb
CHANGED
@@ -14,7 +14,7 @@ class ROXO
|
|
14
14
|
def to_s; @value; end
|
15
15
|
|
16
16
|
def __attributes
|
17
|
-
@attributes.sort.reject{|
|
17
|
+
@attributes.sort.reject{|k,v|k.to_s =~ /^xmlns/}
|
18
18
|
end
|
19
19
|
|
20
20
|
def initialize(xml)
|
@@ -36,7 +36,7 @@ class ROXO
|
|
36
36
|
def <=>(other)
|
37
37
|
return -1 unless (self.class == other.class)
|
38
38
|
return z unless (z = self.__attributes <=> other.__attributes).zero?
|
39
|
-
return z unless (z = self.value <=> other.value).zero?
|
39
|
+
return z unless (z = self.value.strip <=> other.value.strip).zero?
|
40
40
|
return z unless (z = self.name <=> other.name).zero?
|
41
41
|
|
42
42
|
nodes = lambda{|obj|obj.children.values.flatten.map{|n|self.class.new(n)}}
|
data/roxo.gemspec
CHANGED