ruby-xquery 0.2.4 → 0.2.5
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.
- data/README +1 -1
- data/lib/libxml/xquery/namespaces.rb +8 -2
- data/lib/libxml/xquery/string_representation.rb +9 -2
- data/lib/libxml/xquery/version.rb +1 -1
- metadata +10 -8
data/README
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# #
|
4
4
|
# A component of ruby-xquery, mimicking XQuery in Ruby. #
|
5
5
|
# #
|
6
|
-
# Copyright (C) 2007-
|
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-
|
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
|
-
|
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
|
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
|
+
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-
|
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
|
-
- --
|
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.
|
84
|
+
rubygems_version: 1.3.5
|
83
85
|
signing_key:
|
84
|
-
specification_version:
|
86
|
+
specification_version: 3
|
85
87
|
summary: Libxml's XPath support + plain ol' Ruby = XQuery (kind of... ;-)
|
86
88
|
test_files: []
|
87
89
|
|