roxo 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/roxo.rb +2 -2
  2. data/roxo.gemspec +1 -1
  3. 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{|a|a.to_s =~ /^xmlns/}
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'roxo'
3
- gem.version = '0.1.9'
3
+ gem.version = '0.1.10'
4
4
 
5
5
  gem.author, gem.email = 'Burke Libbey', "burke@burkelibbey.org"
6
6
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 9
9
- version: 0.1.9
8
+ - 10
9
+ version: 0.1.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Burke Libbey