ruby-xquery 0.2.4 → 0.2.5

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.2.4
5
+ This documentation refers to ruby-xquery version 0.2.5
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -3,7 +3,7 @@
3
3
  # #
4
4
  # A component of ruby-xquery, mimicking XQuery in Ruby. #
5
5
  # #
6
- # Copyright (C) 2007-2008 Jens Wille #
6
+ # Copyright (C) 2007-2009 Jens Wille #
7
7
  # #
8
8
  # Authors: #
9
9
  # Jens Wille <jens.wille@uni-koeln.de> #
@@ -61,7 +61,13 @@ end
61
61
  }
62
62
 
63
63
  class LibXML::XML::Node
64
+
64
65
  def namespaces
65
- LibXML::XML::Document.namespaces[doc.url]
66
+ @namespaces ||= LibXML::XML::Document.namespaces[doc.url]
66
67
  end
68
+
69
+ def namespaces=(ns)
70
+ @namespaces = ns
71
+ end
72
+
67
73
  end
@@ -3,7 +3,7 @@
3
3
  # #
4
4
  # A component of ruby-xquery, mimicking XQuery in Ruby. #
5
5
  # #
6
- # Copyright (C) 2007-2008 Jens Wille #
6
+ # Copyright (C) 2007-2009 Jens Wille #
7
7
  # #
8
8
  # Authors: #
9
9
  # Jens Wille <jens.wille@uni-koeln.de> #
@@ -43,7 +43,14 @@ end
43
43
  class LibXML::XML::XPath::Object
44
44
 
45
45
  def to_s(sep = ' | ')
46
- map { |n| (c = n.to_s(sep)).empty? ? nil : c }.compact.join(sep)
46
+ res = []
47
+
48
+ each { |node|
49
+ content = node.to_s(sep)
50
+ res << content unless content.empty?
51
+ }
52
+
53
+ res.join(sep)
47
54
  end
48
55
 
49
56
  end
@@ -8,7 +8,7 @@ module LibXML
8
8
 
9
9
  MAJOR = 0
10
10
  MINOR = 2
11
- TINY = 4
11
+ TINY = 5
12
12
 
13
13
  class << self
14
14
 
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.2.4
4
+ version: 0.2.5
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: 2009-04-06 00:00:00 +02:00
12
+ date: 2009-11-09 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -51,17 +51,19 @@ files:
51
51
  - test_data/play.dtd
52
52
  has_rdoc: true
53
53
  homepage: http://prometheus.rubyforge.org/ruby-xquery
54
+ licenses: []
55
+
54
56
  post_install_message:
55
57
  rdoc_options:
58
+ - --inline-source
59
+ - --charset
60
+ - UTF-8
56
61
  - --main
57
62
  - README
58
63
  - --line-numbers
59
- - --inline-source
64
+ - --all
60
65
  - --title
61
66
  - ruby-xquery Application documentation
62
- - --all
63
- - --charset
64
- - UTF-8
65
67
  require_paths:
66
68
  - lib
67
69
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -79,9 +81,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
81
  requirements: []
80
82
 
81
83
  rubyforge_project: prometheus
82
- rubygems_version: 1.3.1
84
+ rubygems_version: 1.3.5
83
85
  signing_key:
84
- specification_version: 2
86
+ specification_version: 3
85
87
  summary: Libxml's XPath support + plain ol' Ruby = XQuery (kind of... ;-)
86
88
  test_files: []
87
89