ruby-xquery 0.0.5.224 → 0.0.6.225
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/xml/xquery/enhanced_find.rb +4 -3
- data/lib/xml/xquery/version.rb +1 -1
- metadata +2 -2
data/README
CHANGED
|
@@ -64,7 +64,9 @@ class XML::Document
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def namespaces=(ns)
|
|
67
|
-
|
|
67
|
+
raise "can't set namespaces (document has no URL)" unless url
|
|
68
|
+
|
|
69
|
+
@namespaces = self.class.namespaces[url] = ns.to_a
|
|
68
70
|
end
|
|
69
71
|
|
|
70
72
|
end
|
|
@@ -74,8 +76,7 @@ class XML::Node
|
|
|
74
76
|
include XML::XQuery::EnhancedFind
|
|
75
77
|
|
|
76
78
|
def namespaces
|
|
77
|
-
|
|
78
|
-
XML::Document.namespaces[doc.to_s]
|
|
79
|
+
XML::Document.namespaces[doc.url]
|
|
79
80
|
end
|
|
80
81
|
|
|
81
82
|
end
|
data/lib/xml/xquery/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.0.6.225
|
|
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-
|
|
12
|
+
date: 2008-03-24 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|