xml-smart 0.3.21 → 0.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -3
- data/lib/xml/smart.rb +6 -6
- data/xml-smart.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 436398fe01b5b7e12cac131af5937f796433212f
|
4
|
+
data.tar.gz: dc8092d1d79a2c30cbcbc5cd6cfe55efd8b83853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb004bcfdb5fc2eb70cc321610d0c694d99997f562d14584fcdb0633db7ae477813da2308d6bfe92bd56d8ef39f151359d20e21e6d429486ee6a200ddd7b5538
|
7
|
+
data.tar.gz: 494fadfcf6d91a20835059dec07b54973e42944d9f64dad09b4c8d60a96162cc032d2d01b7921ec2394f2858bedb27ed4e7a848704ea5491fe3a0cd722a434a1
|
data/Rakefile
CHANGED
data/lib/xml/smart.rb
CHANGED
@@ -36,9 +36,9 @@ module Nokogiri
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def xpath_fast(path)
|
39
|
-
|
40
|
-
ctx = @ctx
|
41
|
-
|
39
|
+
#@ctx = XPathContext.new(self) unless defined? @ctx
|
40
|
+
#ctx = @ctx
|
41
|
+
ctx = XPathContext.new(self)
|
42
42
|
ctx.register_namespaces(self.document.custom_namespace_prefixes.merge(self.document.user_custom_namespace_prefixes))
|
43
43
|
path = path.gsub(/xmlns:/, ' :') unless Nokogiri.uses_libxml?
|
44
44
|
ctx.evaluate(path)
|
@@ -88,9 +88,9 @@ module Nokogiri
|
|
88
88
|
# return xpath(path,self.document.custom_namespace_prefixes.merge(self.document.user_custom_namespace_prefixes))
|
89
89
|
return NodeSet.new(document) unless document
|
90
90
|
|
91
|
-
|
92
|
-
ctx = @ctx
|
93
|
-
|
91
|
+
#@ctx = XPathContext.new(self) unless defined? @ctx
|
92
|
+
#ctx = @ctx
|
93
|
+
ctx = XPathContext.new(self)
|
94
94
|
ctx.register_namespaces(self.document.custom_namespace_prefixes.merge(self.document.user_custom_namespace_prefixes))
|
95
95
|
path = path.gsub(/xmlns:/, ' :') unless Nokogiri.uses_libxml?
|
96
96
|
ctx.evaluate(path)
|
data/xml-smart.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xml-smart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|