ruby-xquery 0.0.6.225 → 0.0.7.226

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to ruby-xquery version 0.0.6
5
+ This documentation refers to ruby-xquery version 0.0.7
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -26,8 +26,8 @@
26
26
 
27
27
  class XML::Node
28
28
 
29
- def to_s
30
- content
29
+ def to_s(sep = nil)
30
+ content.strip
31
31
  end
32
32
 
33
33
  end
@@ -55,12 +55,12 @@ class XML::Node::Set
55
55
  self
56
56
  end
57
57
 
58
- def contents
59
- map { |i| i.content }
58
+ def contents(sep = ' | ')
59
+ map { |n| (c = n.to_s(sep)).empty? ? nil : c }.compact
60
60
  end
61
61
 
62
- def to_s
63
- contents.join(' | ')
62
+ def to_s(sep = ' | ')
63
+ contents(sep).join(sep)
64
64
  end
65
65
 
66
66
  end
@@ -6,7 +6,7 @@ module XML
6
6
 
7
7
  MAJOR = 0
8
8
  MINOR = 0
9
- TINY = 6
9
+ TINY = 7
10
10
 
11
11
  class << self
12
12
 
@@ -26,8 +26,8 @@
26
26
 
27
27
  class XML::XPath::Object
28
28
 
29
- def to_s
30
- set.to_s.strip
29
+ def to_s(sep = ' | ')
30
+ set.to_s(sep)
31
31
  end
32
32
 
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-xquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.225
4
+ version: 0.0.7.226
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-24 00:00:00 +01:00
12
+ date: 2008-03-28 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15